TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

How Facebook Keeps Messenger from Crashing on New Year's Eve

275 pointsby victorvationover 6 years ago

13 comments

sn41over 6 years ago
I found the concept of affinity used for bunching messages to be a new concept. The other concepts are not surprising, they are the typical engineering solutions used.<p>One thing I am curious about: how does it compare to how the old postal systems used to handle Christmas and new year loads?<p>On a lighter note: perhaps you can predictively generate and cache messages at the receiver&#x27;s end based on their contacts and their style of communication. When a sender actually sends a message, just send one bit across, and the local cache gets flushed and displayed :)
评论 #18782378 未加载
评论 #18782619 未加载
评论 #18784323 未加载
robertAngstover 6 years ago
Interesting how they decide to remove features like &#x27;seen&#x27; and &#x27;online&#x27; in an effort to prioritize the actual message.<p>Offtopic- I hate those features to begin with, but I know I&#x27;m the product not the customer, and those features are to keep people on the app.
评论 #18781363 未加载
评论 #18781132 未加载
评论 #18781126 未加载
Jaruzelover 6 years ago
Back in the day when SMS text message was <i>the</i> way to send messages to each other over the mobile phone network (in the UK), people would jump the gun by sending &#x27;Happy NY!&#x27; messages 5 minutes before midnight, because the moment 12am hit, any messages sent then could be queued for <i>hours</i> as the mobile networks struggled to cope with the massive uptick in messages being sent at the same time.
评论 #18783001 未加载
sjrootover 6 years ago
As someone who typically works on front-end projects, this was a very interesting read. I particularly loved the discussion of “graceful degradation.” That’s the kind of collaboration across the stack that makes a service like Messenger very pleasant to use.
secabeenover 6 years ago
Interesting that the messenger team is ~40 people, as compared to WhatsApp having 32 engineers at the time of their sale to FB.
评论 #18781219 未加载
评论 #18783398 未加载
ngngngngover 6 years ago
I didn&#x27;t realize message queues were used for this type of task. I&#x27;m assuming you would then also use autoscaling pods that respond to the number of messages in the queue. How do you scale pods fast enough for a messaging application or anything else trying for 100ms or less per operation?
评论 #18782144 未加载
评论 #18781276 未加载
评论 #18782104 未加载
评论 #18782068 未加载
评论 #18782868 未加载
hellofunkover 6 years ago
One thing I find very manipulative about Facebook is how, when someone sends you a message, the email notification has a link to open messenger and it says that messenger is the only way you can read that message, even if you don’t have messenger installed. They are trying everything they can do to have everyone install that app. Yet, of course you can just read and respond directly on their website without any app, but they don’t link to that or mention it.
评论 #18783022 未加载
mrdickbigover 6 years ago
I read the title and instantly thought &quot;Erlang&quot;
评论 #18781307 未加载
porpoiselyover 6 years ago
Essentially what everyone else does - distributed systems with load balancing, load balancing and more load balancing. And if that goes awry, triage - where they prioritize messages and simply timeout and drop the lower priority messages. Of course the Messenger team is lucky in that they can drop messages since your family and friends missing a &quot;Happy New Years&quot; message isn&#x27;t the end of the world. Other systems ( such as finance ), aren&#x27;t so lucky. Drop a few transactions or apply them out of order and it is the end of the world. Was an interesting read, though it would have been nice if there were more specifics but I guess Facebook wouldn&#x27;t approve that.
评论 #18781776 未加载
评论 #18782507 未加载
评论 #18781918 未加载
评论 #18789098 未加载
评论 #18781799 未加载
lostmsuover 6 years ago
Mine crashes stably on launch right now on two different machines. Therefore not so good :-D
评论 #18781022 未加载
评论 #18782768 未加载
评论 #18782134 未加载
Markoffover 6 years ago
this certainly feel like paid article to bring some good image to Facebook
dominotwover 6 years ago
Cant wait for akward new yr wishes from ppl I haven&#x27;t heard from since last new year.
评论 #18781283 未加载
John_KZover 6 years ago
This is a 2018 internet-connected app, not a 1985 GSM network.<p>1 billion 100 Byte messages sums up to an almost trivial 100GB. This might be a technical challenge for the neighborhood&#x27;s web admin but not for any real company.
评论 #18784604 未加载