|
|
|
|
|
by prirun
1300 days ago
|
|
If Twitter's Grand Pubah sends one tweet, it goes to 118M people. I can't see how many times he tweets per day, but it's way over 10, and just that would generate 1.2B messages. When Elon tweets, I'm guessing Twitter doesn't go do 118M write transactions to all his followers. But what it would have to do is flag all 118M accounts as "something as changed". Then the next time one of his followers is on Twitter, which could be a month from now, that flag means "uh oh, better go see what changed", and to do that, all of the follower's "following" accounts have to be accessed to find the change, if there is only 1 change flag per Twitter account. If Twitter keeps a change flag per "Following" user, that makes finding changes easier, but also means lots more flags to keep updated. Or, you could go "stateless" and not use flags, but then it seems like you'd be doing a lot of work for users who may not see it for days or months. Way different problem than 1-on-1 messaging. |
|
if my mom sends a message to the family group it goes to 50 people.
How many billion WhatsApp groups are there?
with the same constraints and problems Twitter has to face (offline users, notifications, keep users messages until they are online again, etc.)