From 80707461dc95b1e9ca89e055ea23a0d96e3b80a5 Mon Sep 17 00:00:00 2001 From: Abhinav Pandey <79640544+pixelcaliber@users.noreply.github.com> Date: Sat, 17 Feb 2024 01:07:38 +0530 Subject: [PATCH] Update README.md --- README.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index e815c09..12bbf5e 100644 --- a/README.md +++ b/README.md @@ -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