7 ms·
Handling on average something like 76000 status updates per second (much higher when something interesting happens in the world), each of which must quickly bec
by tzs 16y ago
Handling on average something like 76000 status updates per second (much higher when something interesting happens in the world), each of which must quickly become available to anywhere from 1 to a million clients.
Wordpress.com is trivial compared to Twitter.
- ck2 16y agoYes but that's handled by hardware, not by people, and I am sure only a few critical coders handle the software performace. WordPress.com is not as trivial as you might think http://en.wordpress.com/stats/ http://en.wordpress.com/stats/ Certainly it's just a matter of scaling once you hit a certain level of volume, you just have to be able to bring more servers online into the grid. Scaling from 10,000 users to 1 million is probably very hard. Scaling from 1 million to 100 million, well you better have a pattern down that works with easy hardware replication (like google does).
- __Joker 16y agohttp://www.quora.com/Twitter-Inc-company/Why-does-Twitter-need-300-employees http://www.quora.com/Twitter-Inc-company/Why-does-Twitter-ne...
- jacques_chester 16y agoBased on the stats on the site, I calculate that Wordpress.com is averaging about 10 writes and around 8800 reads per second. edit: Correction, ~880 reads per second.
- ck2 16y agoLooking at the posts per day detail I think it's more like 30 per second with bursts that probably go to twice that, while nighttime is idle depending on timezones. But I agree it's a fraction of 7k/sec peak for twitter. However, twitter does not have to parse html, has no plugins to execute or templates, and has a max string length of 140 characters which is trivial. Each post/comment published on wp.com takes many, many more cpu cycles than twitter.
- jacques_chester 16y agoI agree that Wordpress requires far more CPU time (I run a network of Wordpress blogs). My figures: 900,000 transactions (500,000 posts + 400,000 comments) / 86,400 seconds per day: ~= 10 transactions per second on average, though like twitter, activity probably has a power law distribution corresponding with US daylight hours. Reads: 2.3 billion / month Suppose a 30-day month, that's 86,400*30 or 2,592,000 seconds per month. 2,300,000,000 / 2,592,000 ~= 887 pageviews per second. I was incorrect by an order of magnitude, though the same uneven traffic patterns caveat applies.
- nostrademons 16y agoUnderstand that Google is continuously rewriting their infrastructure to handle increased scale. That's what they have 25k employees for. Jeff Dean's rule of thumb is that you should build a growth factor of 10 into the design, but any more than that and you will probably have to re-architect anyway. So going from 10,000 to 1 million and 1 million to 100 million are probably roughly equivalent in difficulty.
- eleusive 16y agoHow many of those 25k employees actually handle any of the infrastructure scaling?
- nostrademons 16y agoA fairly large percentage of them, and many of the ones whose direct job responsibility isn't infrastructure (like me) frequently have to deal with the consequences of building for scale as they develop features.
- tzs 16y agoThe big difference between blog hosting and things like Twitter (or Reddit, or Digg, etc) is that blogs are independent, so adding servers scales you up linearly. When you are looking at X's blog, basically everything you see is coming from one server. You will have to have something that deals with mapping URLs in the unified logical name space of your site to the individual servers that the particular blogs on--that's the part that you can't just throw machines at and get good results. With the social sites, you can't isolate things easily, because what a given person sees at any time is drawn from an ever changing set of content from other users, with each viewer drawing from a different set.
- benologist 16y agoYou're an order of magnitude past their peak load - New Years Eve they set a new record of almost 7000/second. http://thenextweb.com/twitter/2011/01/06/new-years-eve-set-a-new-twitter-record-6939-tweets-per-second-sent/ http://thenextweb.com/twitter/2011/01/06/new-years-eve-set-a... I don't believe Twitter is trivial, but I think they're perceived as more complex than they are - WordPress + Reddit + Heroku only have like 10% that number combined. Apples to oranges, but those 3 companies would be doing more everythings per second than Twitter when you combine them.
- zohebv 16y agoHandling updates to 7000 user accounts per second isn't what makes it hard for twitter. It is the propagation of these updates to a gazillion followers that taxes the system. Their primary overhead is the messaging update to followers. Ashton Kutcher has 6 million followers. Sending instantaneous notifications to all those million twitter clients is what makes it a killer. TLDR; It is not the vertices in the twitter graph but the number of edges in it that is unprecedented.
- benologist 16y agoUnprecedented, except is it really unprecedented or are we just looking at it from the sexy social startup whatever must say graph and also disrupt angle, where everything is new and super hard and nobody has problems that have ever been solved before. RSS strikes me as an almost identical process other than the time subscribers wait to check for new content, and there are feeds with millions of subscribers. So now the problem is reduced to doing it in a timely fashion. This is why I wonder if they're really that immensely complicated - isn't Google doing much the same thing, and possibly even at a bigger scale at one point, with their reader and FeedBurner?
- jimbokun 16y ago"isn't Google doing much the same thing, and possibly even at a bigger scale at one point, with their reader and FeedBurner?" Another company with a ton of employees. Probably not that many on the FeedBurner team itself, but a lot of people at Google working on the general problem of keeping things unreasonably responsive at massive scale.
- gaius 16y agoJust to put that into perspective, right now, you can buy off the shelf from Tibco an appliance for routing 10 million messages/sec (at an average message size of 50 bytes). What Twitter does is not hard, and they do it badly.
- ig1 16y agoHaving used Tibco and having written high-performance message routing services for investment banks, I'd like to say yes it is hard, and Tibco does it badly.
- csomar 16y agoI'm not sure where you got your numbers, but based on it, there are 6.5 billion new status everyday. I don't think it's quite accurate.