Live data from Hacker News

Why WhatsApp Was Able to Support 50B Messages a Day with 32 Engineers

newsletter.systemdesign.one

1–10 of 31 posts

Re: Why WhatsApp Was Able to Support 50B Messages a Day with 32 Engineers

#4
My first question would be if the messages can be sent P2P or if they have to be passed through / stored on servers.

If they can be sent and stored on the users devices, the server would only be a discovery service processing the occasional "Hey, I have a new IP" and "Hey, I want to send a message to X, please give me their current IP" messages.

If the messages would have to be processed by servers, the system could be set up similar to email servers, where each server can handle - say - 10 million users and be completely independent of the other servers. So scaling would just mean adding a new "email" server for every new 10 million users.

If 50B messages amount to - say - 500 million users, that would mean operating 50 servers.

Re: Why WhatsApp Was Able to Support 50B Messages a Day with 32 Engineers

#6
It was just a system designed from the start with efficiency in mind, rather than business flexibility.

Almost any system can do the same if you start from the basics of "how many bytes of data do I need to move?", and "how many bytes of data can this ethernet cable/CPU transfer each second?"

The end result is a system which is typically lower level and less flexible, but has much better money and hardware efficiency.

You'll end up delving into the Linux kernel and sockets API's, rather than using NodeJS and MongoDB. It'll take a totally different type of engineer to do so too, so make sure you hire appropriately!

Re: Why WhatsApp Was Able to Support 50B Messages a Day with 32 Engineers

#7
post #5

> They eliminated feature creep at all costs. Not anymore. I'm wondering how many engineers they have now to develop and maintain all the non-chat features.

They are still so much better than almost anyone else in the space at preventing feature creep. It is still a remarkably small and focused app.
Post reply on HN