147 points · by pitchups · 12y ago · 81 comments
Let the clients handle end-to-end encryption with something zk DH/OTR/SMP.
I'm curious how they later monitored this and did other common SRE stuff. Also deployments.
ZeroMQ also has its own experimental elliptical-curve encryption protocol now: http://curvezmq.org/ They call it experimental, but I've haven't heard anything negative about the implementation from the cryptographers, and elliptical curve crypto is well-established (it's the basis for Bitcoin's key signing, for example). Also, it's closely based on Daniel J. Bernstein's CurveCP.
As an aside, MQTT has a constrained device optimized sibling MQTT-SN, which works over UDP and supports sleepy nodes, etc. Unfortunately that one's stuck in licensing hell and does not yet have good tooling, at least last time I checked.
I gave a talk about MQTT-SN Gateway at Erlang User Conference 2013:
http://www.erlang-factory.com/conference/ErlangUserConferenc...
http://www.erlang-factory.com/upload/presentations/807/ZviMQ...
32. Even by the standards of the world’s best technology companies, WhatsApp runs lean. With only 32 engineers, one WhatsApp developer supports 14 million active users, a ratio unheard of in the industry. (WhatsApp’s support team is even smaller.) This L E G E N D A R Y crew has built a reliable, low-latency service that processes 50 billion messages every day across seven platforms using Erlang, an unusual but particularly well-suited choice. All that, while maintaining greater than 99.9% uptime, so users can rely on WhatsApp the way they depend on a dial-tone.
The same is true of client engineers too I suppose. One developer putting out an app to 1 person is identical to putting one out for 100 million. The work is related to the number of clients, not the number of installs.
The backend service is rather simple for 50 billion messages a day? hmmm not so much, I'm thinking.
I ran and scaled the Napster server to 80 million users. We pushed about 70 billion "index file" commands an hour alone at peak. We had a chat and messaging system that also pushed millions of messages an hour.
There were some pieces of data that had to live on all the servers (what user was connected to what server) which would have caused some problems eventually (though with how much memory you scan stick in today's machines, not for a very long time), but from experience, 10k really was the same as 80 million.
The code to do this was a relatively small amount of C++ code. Most of our problems with scaling had to do with bugs in Linux when it was younger and "line-speed" Cisco switches that would blow up just because you pushed a few million packets per second through them.
Yes and no. It's a solved problem (Tibco RV installations handle this volume without breaking a sweat and have done so for years). On the other hand, this is some impressive price:performance for doing it. Or was; $19Bn would buy you a hell of a lot of Tibco licenses...
BEAM locks are within the VM's implementation[0]: http://www.erlang.org/doc/apps/tools/lcnt_chapter.html. BEAM lock counting is about introspecting runtime state and capabilities.
I doubt Go's runtime is lockfree. The answer would thus be "yes, most likely".
> I think the idiomatic way to work with golang is goroutines rather than mutex
1. depends: http://stackoverflow.com/questions/10728863/how-to-lock-sync... https://code.google.com/p/go-wiki/wiki/MutexOrChannel
2. I doubt channels implementation is lock-free, though I could well be wrong
[0] and maybe in NIF[1] as well
"Non-goals: make channels completely lock-free (this would significantly complicate implementation and make it slower for common cases)"
You may view this comment as too cynical for this particular topic, but the ridiculous surge in Whatsapp stories doesn't lie. And of course we should inspect the action of successful companies.
I am merely pointing at the crude vulgarity of the Valley's barometer for success.
Yes? It is not only vulgar, it is utterly clueless.
Many people here want to understand how WhatsApp managed to convince someone to pay so much money for it, perhaps so they can replicate this success and also become rich. What's so wrong with that?
So yeah, get off your high horse and please stop lecturing people with cheap and meaningless moral judgments.
I don't have the knowledge or experience to say otherwise, so if someone were to ask me if WhatsApp was a success, $16B seems like a good reason to say yes. Are you implying that WhatsApp's sale was a failure case for their owners, and success for them would have looked differently? (reject the sale and continue growth of the platform?)
WhatsApp is also not associated with the titillating "share nude pics" culture of SnapChat.
http://hn.algolia.com/#!/story/forever/prefix/0/Whatsapp%20s...
(Correction: the presentation is from 2012; I don't know when it was posted online.)
Would be great to have someone from WhatsApp speak at CUFP this year [1]. If anyone reading this can encourage them to do so (or put me in touch with someone one there), that would be great.
[1] http://cufp.org/
*My understanding is that it's a similarly architected system, but built on a Linux/luajit stack
>If a lot of smart people thought WhatsApp was worth 14B
Why are they smart? Because they have billions of dollars? Because Whatsapp is valuable? Because Whatsapp was less useful before the smart people bought it?
Are you incapable of viewing the transaction of 16 billion as a possible utter mistake? As financial hand-waving assigning a liquid value to shares whose value might well be inflated?
Money is a poor measure of value. Plain and simple. Are you drawn to the volume of the transaction because you think it signifies true success?
> it's probably worth taking a second look at what WhatsApp did to get to this point.
Something I never contested and agreed with explicitly.
Money is just a number. I can't quite tell if you're suggesting that value can't be quantified, or if you believe we could quantify value some other way that would be more functional than capital markets. Do Tell.