21 ms·
The naive implementation of sending a notification to all friends whenever a user comes online or goes offline Did I miss it, or does the note not mention how
by alex_c 18y ago
The naive implementation of sending a notification to all friends whenever a user comes online or goes offline
Did I miss it, or does the note not mention how they actually implemented the notification?
- dabeeeenster 18y agoI didn't see an explanation for an alternative solution. I've been trying to think of one all morning and can't! Maybe he just means all friends whether they are logged in or not?
- carterschonwald 18y agono, they're not sending notifications at every event. As far as I can tell, they're using an asynchronous algorithm that lazily propagates events and provides no responsiveness guarantees. (sort of ultra mushy stretchy unreal time guaranteed)
- dabeeeenster 18y agoSorry, but how is that different to sending all notification events to all users? You are still sending all notification events to all users, whether you do it lazily or not!
- deleted 18y ago[deleted]
- huhtenberg 18y agoI guess they meant they don't send a notification per message, but rather batch them somehow.
- carterschonwald 18y agoexactly! This leads to people having inconsistent (with reality) information about the availability of other people who have just logged on or off!