Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
pixelcaliber authored Feb 16, 2024
1 parent 973c21c commit 8070746
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
# user-presence-service

Part of chat-application microservices: Enables real time user-presence functionality which marks user active/inactive or online/offline based on last user activity received from the client timestamp (here: mouse-up mouse-down movements) and comparing it with a threshold time quantum.
Part 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.

- 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)
- Utilizes heartbeat mechinism to query for user status using pooling
- utilized redis cluster to store the last active timestamp; evicition pollicy: LRU and cache size: 100mb
- has enpoints for:
- updating user's last active timestmap in the redis cluster
Expand Down

0 comments on commit 8070746

Please sign in to comment.