6 ms·
> Why WhatsApp Only Needs 50 Engineers for Its 900M Users Answer: because sending short messages from A to B is basically a solved problem. There is even a pro
by amelius 11y ago
> Why WhatsApp Only Needs 50 Engineers for Its 900M Users
Answer: because sending short messages from A to B is basically a solved problem. There is even a programming language (Erlang) that was made with this application in mind. The prototypical "Hello World" example for Erlang is a messaging application.
- radmuzom 11y agoThis comment focuses on the back-end. As important as it is, as far as I remember when FB acquired WhatsApp then one of the main advantages was the presence of clients in almost any mobile device (thanks to J2ME). I am pretty sure it is not trivial to maintain so many clients, even though over time the older clients will disappear and it will be mostly Android / IPhone / Windows (??) that the engineers need to maintain.
- mpweiher 11y agoYep. And of course, Erlang is really only a functional language in the small, the parts that don't matter so much. In the large, arguably the scale that matters, it's an actor language, with highly encapsulated entities exchanging messages. So essentially what Alan Kay had in mind when he coined the term "object oriented". http://gagne.homedns.org/~tgagne/contrib/EarlyHistoryST.html http://gagne.homedns.org/~tgagne/contrib/EarlyHistoryST.html
- karmajunkie 11y agoUpvoted for correctly invoking Alan Kay's vision of object oriented. :)
- noblethrasher 11y agoIndeed, Joe Armstrong once said that he believes Erlang to be the only OO language according to Alan Kay's idea [1]. Also, let's not forget to give credit to Carl Hewitt who came up with actors in the first place [2]. [1] http://www.infoq.com/interviews/johnson-armstrong-oop http://www.infoq.com/interviews/johnson-armstrong-oop [2] https://www.youtube.com/watch?v=7erJ1DV_Tlo https://www.youtube.com/watch?v=7erJ1DV_Tlo
- jpatokal 11y agoActually, over lossy links, it's well known to be an impossible problem: https://en.wikipedia.org/wiki/Two_Generals%27_Problem https://en.wikipedia.org/wiki/Two_Generals%27_Problem
- amelius 11y agoYou are right. But on that level, even breathing is an impossible problem, because the air molecules could statistically bounce out of the room.
- rlpb 11y agoI don't see how that's an issue here. The recipient doesn't need to know if his message receipt has been received. The burden remains with the sender to retry, just like TCP. The real Two Generals' Problem in instant messaging can just be passed to the communicating humans to deal with.
- vacri 11y agoA whatsapp conversation is not dependent on the parties coming to a consensus on the timing for a common event. Also, an army can only send so many messengers before you run out of soldiers (or operational readiness). Packets are free and plentiful. If you're on a network link so bad that you can't even occasionally receive a TCP ack, then you're very much an outlier.
- alkonaut 11y agoThe only thing simpler would be sending messages to a centralized queue for people to fetch. Yet Twitter needs 4100 employees for that (though not all engineers I hope).
- xyzzyz 11y agoCentralized queue and global fan-out makes it only harder to do at scale, not easier. With 1-to-1 messaging, it's trivial to shard the whole system. http://xkcd.com/1425/ http://xkcd.com/1425/
- jsprogrammer 11y agoTwitter is not 1-to-1 messaging, generally.
- liviu- 11y agoTwitter does IM too: https://about.twitter.com/directmessages https://about.twitter.com/directmessages
- joeyspn 11y agoLoads of recognition for erlang, but not a single word about ejabberd in the article...
- forgottenpass 11y agoTalking about Erlang has the cred of an esoteric language. And you can hype up your company for using it, the allure of different languages seems to be in fashion right now (the article goes on tangents about Facebook/Haskell, Mozilla/Rust and Google/Go). Talking about ejabberd is admitting a core piece of the product is standing on the solders of giants. Something startups are often loathe to do.
- oskarth 11y agoI'm sure you could do it in an afternoon, right? Just like anyone on HN can make a "basic CRUD app" like Facebook in a weekend. I really dislike the arrogant attitude behind these types of comments. Have you worked at WhatsApp? Do you have any idea what they spend their days doing, what their systems look like, what their requirements are like? WhatsApp have close to a billion users, 50 engineers and they manage to produce a near flawless experience. This is not trivial, no matter how many armchair critics claim otherwise. It used to be the case that people dismissed FB as just another CRUD app ("not even written in RoR, but in PHP, yuck" ~ 2005-2010), but given the tools they have been pushing the last few years people seem to have stopped dismissing them as casually. Perhaps in a few years people will stop dismissing WhatsApp as casually as well.
- hellofunk 11y agoWell said.
- sidcool 11y agoI second you. People throw in things like "Duh, it's a lame technology, duh, I am working on something far superior, duh, that 3 people will ever use, duh" Don't forget WhatsApp has applications on all platforms.
- danieldk 11y agoI believe that the line of reasoning of your parent still has merit. Erlang OTP was developed for telephony systems and has proven to be very reliable for distributed system. Messaging maps relatively nicely to Erlang OTP and as such Whatsapp are leveraging decades of research and work by Ericsson. Of course, this is how it should be: a good software infrastructure should save users time. Obviously, creating Whatsapp is nothing near a weekend project. But I think there founders should be commended especially for avoiding some classic mistakes: the NIH syndrome and going on a hiring spree once the investments started rolling in. Their managerial skills are at least as good as their engineering skills.
- gutnor 11y agoI think that indeed the important thing here. The article try to focus a bit too much on some intrinsic qualities of the language as if it was the silver bullet of scalability while the real lesson is that they used the right tool for the job. Not so long ago, maintaining hardware that could support 900M user would have required an IBM scale company. A single developer today can develop, deploy and maintain a medium scale ecommerce site using infrastructure like AWS, a myriad of OpenSource solutions, plenty of services to handle payments, ... yet he will probably be using the same language than 15 years ago when 20 times more developers were needed to achieve the same result.
- lordnacho 11y agoSure, the initial business case is "Send a message from A to B". But it's not hard to think of more things to do: - What if A has a Nokia and B has an iPhone? - What if you want A, B, and C to have a chatroom? - What if someone starts spamming random people? - How do we QA the thing for all these platforms? - How about someone to keep the visual design fresh? - What about a million corner cases like when someone is not online, someone sends a message that's too big, one of the servers goes down, and so on? Etc. You're right that the scope is not as big as some other apps, and that's what makes 50 a sensible number rather than 5000.
- Alupis 11y agoPretty much every single one of your test cases has already been solved in the XMPP specification, which WhatsApp is likely using (essentially all modern chat services/servers/clients speak XMPP).
- lordnacho 11y agoSure. And someone's got to take the XMPP package and put it on the different platforms, test them all for correctness, etc. I'm not saying there aren't existing parts that can be used. But even if you have a plausible component, someone's got to look at the docs, maybe build a toy version, think about whether you're hitting the limits, integrate with the rest of the codebase, and so on. It's easy to see what pieces you need. But there's still work in glueing them together and testing the result. I think 50 is a sensible number of in-house engineers for this sort of thing. You want cover as well in case someone leaves or gets ill. You want people to be able to upgrade the system when things change. You want people to look ahead at future requirements. And you want to be able to do these things all at once, with slack built in for peak load.
- Alupis 11y agoWell, you sort of are making my point -- 50 engineers is plenty (maybe even too many) to cobble together a solution to a problem that already has been solved and solved again. WhatsApp did nothing technically challenging, but they did strap a business model (err, sort of) to something many others failed to capitalize on.
- deleted 11y ago[deleted]
- atmosx 11y agoI bet that WhatsUp infrastructure would work ~ 35 engineers. That's a social problem though (the fact that 35 guys generate so much cash, while on the other side of the planet 350 millions are looking for a way to pay the rent), not a technical one :-)
- raverbashing 11y agoBy that logic CouchDB would have been a big success and wouldn't have suffered from scalability problems Also make sure to support offline devices being sent text, audio, video and image files (and the client application on several platforms)