Similar to how the WhatsApp icon shows a count of unique unread chat windows above its icon, we have to implement an efficient logic to render that number.
-
On the fly computation
As soon as a new message, arrives we have to update the unread message count for the given user.
-
Lazy computation
As the name implies, we can "lazily" compute the unread message count for the given user.
- Load testing framework using artillery.