Ask YC: How hard is it to keep a service like twitter online
There have been so many posts about twitter downtime lately that it is must be pretty embarrassing for them, and do some serious damage to their reputation. The latest one is on the frontpage now: http://news.ycombinator.com/item?id=476910
Not having worked with high-traffic websites I've been wondering why they're having such problems. I would imagine that if you have money (which they do) you could just throw more servers and a good SQL consultant after the problem. Is there a problem specific to their architecture that is hard to scale? If so what is the constraint?
I'm just puzzled that they haven't solved it, and hope they do.
(
13 comments
| 13 points
| on HN
)
Twitter is a particularly difficult problem, because unlike most high-traffic sites the number of writes is pretty close to the number of reads. The latency expected by users is also very low - people are carrying on conversations over it after all, and these two factors combined mean that there's very little that can be done in the way of caching. Add this the complex relationships between all the different users and you've got a difficult site to scale to the sort of volumes they're experiencing.
If the guys at Twitter want to offer me a job, I've got a few ideas though ;)
Excuse me? Twitter, at its core, is a large-scale pub/sub system with a bunch of frontends. Such systems are well understood and, frankly, quite trivial as far as the non-existant constraints of the twitter-app are concerned. After all no ordering guarantees or fancy routing are needed and obviously they don't give a damn about fault tolerance or latency either.
Their constant failure to keep that thing online just screams incompetency very loudly...
There are plenty of mature building blocks available in the OSS world to implement such a system. RabbitMQ and the spread toolkit come to mind.
Or, if you have the dough, you could buy a shrinkwrapped solution from TIBCO, Solace or the like. The latter will even come with fancy functionality and availability guarantees in writing because those are normally deployed in "mission critical" industrial systems, such as logistics, banks, stock exchanges.
Now, twitter is not SWIFT and doesn't need five nines of uptime. But saying that this is a "particularly difficult problem" is, sorry, ridiculous.
This is only a "problem" if your database is MySQL. People have been doing this kind of workload on the major commercial database for decades.
http://highscalability.com/scaling-twitter-making-twitter-10...
http://www.slideshare.net/Blaine/scaling-twitter
I also wonder whether Twitter's downtime doesn't psychologically reinforce the sense that everybody's using it so it must be valuable. Scarcity and all that.
One thing about Twitter does make me pause. Haven't they hired tons of programmers? What are they all doing?
But if I might ask? Would re-designing the entire architecture to accommodate for its current use be a wise idea to solve their downtime issue? I am just curious
If all this is correct, then it's probably not "that hard" to keep something like twitter with an "acceptable" uptime.