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.

In Twitter’s early days, only one celebrity could tweet at a time

243 pointsby evanweaveralmost 7 years ago

15 comments

liquidgeckaalmost 7 years ago
If anybody is interested in random Twitter internal stuff I might bang up a medium post one day. I was neck deep in the infra side of things for years and have all sorts of funny stories.<p>Our managed hosting provider wouldn&#x27;t let us use VPNs or anything that allowed direct access to the managed network they provided, but we wanted to make internal only services that were not on the internet so I setup a simple little system that used DNS to point to private space in the office and a SSH tunnel to forward the ports to the right places. Worked great, but over time the internal stuff grew up, and our IT team refused to let me have a server in the office so it was all running of a pair of mac mini&#x27;s. We called them the &quot;load bearing mac minis&quot; since basically 90% of the production management traffic went over the SSH tunnels they hosted. =)
评论 #17152438 未加载
评论 #17152524 未加载
评论 #17151717 未加载
评论 #17152546 未加载
评论 #17151804 未加载
评论 #17152437 未加载
moleculealmost 7 years ago
2010: &quot;At any moment, Justin Bieber uses 3% of our infrastructure. Racks of servers are dedicated to him&quot;<p><a href="https:&#x2F;&#x2F;gizmodo.com&#x2F;5632095&#x2F;justin-bieber-has-dedicated-servers-at-twitter" rel="nofollow">https:&#x2F;&#x2F;gizmodo.com&#x2F;5632095&#x2F;justin-bieber-has-dedicated-serv...</a>
评论 #17151448 未加载
评论 #17150438 未加载
评论 #17149497 未加载
评论 #17150352 未加载
评论 #17149648 未加载
tschellenbachalmost 7 years ago
If you want to read more about activity feeds there are a ton of papers listed here: <a href="https:&#x2F;&#x2F;github.com&#x2F;tschellenbach&#x2F;stream-framework" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;tschellenbach&#x2F;stream-framework</a> I&#x27;ve been working on this stuff for years. Recently I&#x27;ve also enjoyed reading Linkedin&#x27;s posts about their feed tech. Three are a few different posts but here&#x27;s one of them: <a href="https:&#x2F;&#x2F;engineering.linkedin.com&#x2F;blog&#x2F;2016&#x2F;03&#x2F;followfeed--linkedin-s-feed-made-faster-and-smarter" rel="nofollow">https:&#x2F;&#x2F;engineering.linkedin.com&#x2F;blog&#x2F;2016&#x2F;03&#x2F;followfeed--li...</a><p>Scaling a social network is just inherently a very hard problem. Especially if you have a large userbase with a few very popular users. Stackshare recently did a nice blogpost about how we at Stream solve this for 300 million users with Go, RocksDB and Raft: <a href="https:&#x2F;&#x2F;stackshare.io&#x2F;stream&#x2F;stream-and-go-news-feeds-for-over-300-million-end-users" rel="nofollow">https:&#x2F;&#x2F;stackshare.io&#x2F;stream&#x2F;stream-and-go-news-feeds-for-ov...</a><p>I think the most important part is using a combination of push and pull. So you keep the most popular users in memory and for the other users you use the traditional fanout on-write approach. The other thing that helped us scale was using Go+RocksDB. The throughput is just so much higher compared to traditional databases like Cassandra.<p>It&#x27;s also interesting to note how other companies solved it. Instagram used a fanout on write approach with Redis, later on Cassandra and eventually a flavor of Cassandra based on RocksDB. They managed to use a full fanout approach using a combination of great optimization, a relatively lower posting volume (compared to Twitter at least) and a ton of VC money.<p>Friendster and Hyves are two stories of companies that didn&#x27;t really manage to solve this and went out of business. (there were probably other factors as well, but still.) I also heard one investor mention how Tumblr struggled with technical debt related to their feed. A more recent example is Vero that basically collapsed under scaling issues.
评论 #17150602 未加载
评论 #17154403 未加载
评论 #17152268 未加载
评论 #17150270 未加载
collinfalmost 7 years ago
I haven&#x27;t seen anyone touch on this, but I remember reading about this in Data Intensive Applications[1]. The way that they solved the celebrity feed issue was to decouple users with high amounts of followers from normal users.<p>Here is a quick excerpt, this book is filled to the brim with these gems.<p>&gt; The final twist of the Twitter anecdote: now that approach 2 is robustly implemented,Twitter is moving to a hybrid of both approaches. Most users’ tweets continue to be fanned out to home timelines at the time when they are posted, but a small number of users with a very large number of followers (i.e., celebrities) are excepted from this fan-out. Tweets from any celebrities that a user may follow are fetched separately and merged with that user’s home timeline when it is read, like in approach 1. This hybrid approach is able to deliver consistently good performance.<p>Approach 1 is a global collection of tweets, the tweets are discovered and merged in that order.<p>Approach 2 involves posting a tweet from each user into each follower&#x27;s timeline, with a cache similar to how a mailbox would work.<p>[1] <a href="https:&#x2F;&#x2F;www.amazon.com&#x2F;Designing-Data-Intensive-Applications-Reliable-Maintainable&#x2F;dp&#x2F;1449373321&#x2F;ref=sr_1_1?ie=UTF8&amp;qid=1527213498&amp;sr=8-1&amp;keywords=data+intensive+application&amp;dpID=51PjhtI9VRL&amp;preST=_SX218_BO1,204,203,200_QL40_&amp;dpSrc=srch" rel="nofollow">https:&#x2F;&#x2F;www.amazon.com&#x2F;Designing-Data-Intensive-Applications...</a>
评论 #17151119 未加载
gringoDanalmost 7 years ago
This isn&#x27;t shocking - Twitter was notorious for being held together with Scotch tape technically.<p>Honestly this hands-on approach is an impressive example of doing things that don&#x27;t scale.
评论 #17153654 未加载
评论 #17149451 未加载
评论 #17149935 未加载
sewercakealmost 7 years ago
There was a fun high-scalability article around their &#x27;fan-out&#x27; approaches to disseminating tweets by popular users etc : <a href="http:&#x2F;&#x2F;highscalability.com&#x2F;blog&#x2F;2013&#x2F;7&#x2F;8&#x2F;the-architecture-twitter-uses-to-deal-with-150m-active-users.html" rel="nofollow">http:&#x2F;&#x2F;highscalability.com&#x2F;blog&#x2F;2013&#x2F;7&#x2F;8&#x2F;the-architecture-tw...</a> .<p>When I was working on something with similar technical requirements I also came across this paper (<a href="http:&#x2F;&#x2F;jeffterrace.com&#x2F;docs&#x2F;feeding-frenzy-sigmod10-web.pdf" rel="nofollow">http:&#x2F;&#x2F;jeffterrace.com&#x2F;docs&#x2F;feeding-frenzy-sigmod10-web.pdf</a>) that outlined the approach in a more &#x27;formal&#x27; manner.
anyfooalmost 7 years ago
Ah, I read that Twitter thread a few days (weeks?) ago and it was much longer. As far as I remember, it started with someone asking Twitter ops people, former and current, to share some stories about things that went spectacularly wrong.<p>It contained a lot of Twitter ops battle stories, some very interesting. I was pretty impressed to read Twitter internals in the given level of detail, but now it seems that the thread that held them all together is protected (probably didn&#x27;t expect it to be so popular, or just wanted to continue more privately).
评论 #17151655 未加载
评论 #17150544 未加载
city41almost 7 years ago
In the early days of Twitter the &quot;fail whale&quot; was so common it got assimilated into culture as a term to use for anytime any site gets overloaded. Nowadays it seems like that term is &quot;hugged to death&quot;<p><a href="https:&#x2F;&#x2F;www.theatlantic.com&#x2F;technology&#x2F;archive&#x2F;2015&#x2F;01&#x2F;the-story-behind-twitters-fail-whale&#x2F;384313&#x2F;" rel="nofollow">https:&#x2F;&#x2F;www.theatlantic.com&#x2F;technology&#x2F;archive&#x2F;2015&#x2F;01&#x2F;the-s...</a>
评论 #17151398 未加载
评论 #17150092 未加载
evanweaveralmost 7 years ago
Missed that this went to the front page! I will answer questions if I can.<p>I am now CEO @ <a href="https:&#x2F;&#x2F;fauna.com&#x2F;" rel="nofollow">https:&#x2F;&#x2F;fauna.com&#x2F;</a>, making whales and fails a thing of the past for everybody. We are hiring, if you want to work on distributed databases.
评论 #17151428 未加载
tschellenbachalmost 7 years ago
Fun fact, Twitter&#x27;s feed is still kinda broken. If you visit the site after being gone for a week or so it tells your timeline is empty. It recovers after a few minutes, but its still a pretty poor user experience.
评论 #17150127 未加载
评论 #17151348 未加载
评论 #17151606 未加载
评论 #17154141 未加载
评论 #17149701 未加载
logicalleealmost 7 years ago
Say what you will, Twitter managed to make a $25.23B company out of printing<p><pre><code> char whatever[140];</code></pre>
评论 #17153212 未加载
lunchbreakalmost 7 years ago
What frameworks would you use to handle such an steep growth curve? Most startups I know of start of with rails or the like - and obviously they couldn&#x27;t handle the strain. So what would you use?
评论 #17149595 未加载
评论 #17149615 未加载
评论 #17149631 未加载
评论 #17149550 未加载
评论 #17149553 未加载
评论 #17149840 未加载
评论 #17151513 未加载
评论 #17149806 未加载
评论 #17149787 未加载
评论 #17149588 未加载
adrianhelalmost 7 years ago
This made me laugh and feel better. Being in a startup is tough!
JohnJamesRamboalmost 7 years ago
It would be fascinating if they returned to this capability. One celebrity gets the podium at a time.
评论 #17149793 未加载
iamaelephantalmost 7 years ago
&gt; Jason Goldman, who served as Vice President of Product at Twitter between 2007 and 2010, responded to Weaver’s tweets with the observation that early Twitter was “held together by sheer force of will.”<p>I would dispute that, I don&#x27;t think they can take that much credit. Regardless of their &quot;sheer force of will&quot; the site was down very, very frequently.
评论 #17151425 未加载