{"id":20459337,"url":"https://github.com/pixelcaliber/user-presence-service","last_synced_at":"2026-04-11T13:34:52.763Z","repository":{"id":220626068,"uuid":"749649746","full_name":"pixelcaliber/user-presence-service","owner":"pixelcaliber","description":"Enables real time user-presence functionality which marks user active/inactive based on last user activity using heartbeat mechanism, received from the client (here: mouse-up mouse-down movements) and comparing it with a threshold time quantum.","archived":false,"fork":false,"pushed_at":"2024-02-16T19:37:38.000Z","size":15368,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2026-01-03T22:03:02.338Z","etag":null,"topics":["flask","heartbeat-monitor","kafka","python","redis","worker-pool"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/pixelcaliber.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-01-29T05:37:22.000Z","updated_at":"2024-02-16T19:38:40.000Z","dependencies_parsed_at":"2025-01-16T00:03:45.671Z","dependency_job_id":null,"html_url":"https://github.com/pixelcaliber/user-presence-service","commit_stats":null,"previous_names":["pixelcaliber/user-presence-service"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/pixelcaliber/user-presence-service","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pixelcaliber%2Fuser-presence-service","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pixelcaliber%2Fuser-presence-service/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pixelcaliber%2Fuser-presence-service/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pixelcaliber%2Fuser-presence-service/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pixelcaliber","download_url":"https://codeload.github.com/pixelcaliber/user-presence-service/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pixelcaliber%2Fuser-presence-service/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31682953,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-11T13:07:20.380Z","status":"ssl_error","status_checked_at":"2026-04-11T13:06:47.903Z","response_time":54,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["flask","heartbeat-monitor","kafka","python","redis","worker-pool"],"created_at":"2024-11-15T12:15:46.072Z","updated_at":"2026-04-11T13:34:52.739Z","avatar_url":"https://github.com/pixelcaliber.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# user-presence-service\n\nPart of chat-application microservices: Enables real time user-presence functionality which marks user active/inactive or online/offline using HEARTBEAT mechanism based on last user activity received from the client timestamp (here: mouse-up mouse-down movements) and comparing it with a threshold time quantum.\n\n- Worker running infinitely, checking for user's last timestamp and if found more than the threshold time quantum (~10 mins) mark them as inactive in the user-presence database (here: postgres)\n- Utilizes heartbeat mechinism to query for user status using pooling\n- utilized redis cluster to store the last active timestamp; evicition pollicy: LRU and cache size: 100mb\n- has enpoints for:\n  - updating user's last active timestmap in the redis cluster\n  - retrieving the user's last active timestamp from the redis cluster\n  - querying for user's active/inactive status in the database (here: postgres)\n\ntech-stack: Kafka, Redis, Postgres, Python, Flask, Postgres\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpixelcaliber%2Fuser-presence-service","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpixelcaliber%2Fuser-presence-service","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpixelcaliber%2Fuser-presence-service/lists"}