educative.io

Not clear how client will know updates of status of friends?

Hi @Design_Gurus

There is lot of confussions in “Managing user’s status”
As mentioned, “With 500M active users at any time, if we have to broadcast each status change to
all the relevant active users, it will consume a lot of resources”

Then again in below 3rd point:
3.Whenever a user comes online, the server can always broadcast that status…
Doubt:- When we say above that every status change is a resource consuming, then why to push this client when ever some one comes online?

4.Clients can pull the status from the server about those users that are being shown
on the user’s viewport. This should not be a frequent operation, as the server is
broadcasting the online status of users
Doubt: when the server sends in point 3, then what client needs to pull here?And how exactly does point 3 makes this a less frequent operation? If server is sending online status, then in case client sends to get viewport friends request, how can above thing helps here?So much confusion, please clear it

1 Like