TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

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

275 点作者 victorvation超过 6 年前

13 条评论

sn41超过 6 年前
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 未加载
robertAngst超过 6 年前
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 未加载
Jaruzel超过 6 年前
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 未加载
sjroot超过 6 年前
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.
secabeen超过 6 年前
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 未加载
ngngngng超过 6 年前
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 未加载
hellofunk超过 6 年前
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 未加载
mrdickbig超过 6 年前
I read the title and instantly thought &quot;Erlang&quot;
评论 #18781307 未加载
porpoisely超过 6 年前
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 未加载
lostmsu超过 6 年前
Mine crashes stably on launch right now on two different machines. Therefore not so good :-D
评论 #18781022 未加载
评论 #18782768 未加载
评论 #18782134 未加载
Markoff超过 6 年前
this certainly feel like paid article to bring some good image to Facebook
dominotw超过 6 年前
Cant wait for akward new yr wishes from ppl I haven&#x27;t heard from since last new year.
评论 #18781283 未加载
John_KZ超过 6 年前
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 未加载