Twitter responds to questions over its architecture

Twitter Technology Blog: Twittering About Architecture:

“Twitter is, fundamentally, a messaging system. Twitter was not architected as a messaging system, however. For expediency’s sake, Twitter was built with technologies and practices that are more appropriate to a content management system. Over the last year and a half we’ve tried to make our system behave like a messaging system as much as possible, but that’s introduced a great deal of complexity and unpredictability. When we’re in crisis mode, adding more instrumentation to help us navigate the web of interdependencies in our current architecture is often our primary recourse. This is, clearly, not optimal.

Our direction going forward is to replace our existing system, component-by-component, with parts that are designed from the ground up to meet the requirements that have emerged as Twitter has grown. First and foremost amongst those requirements is stability. We’re planning for a gradual transition; our existing system will be maintained while new parts are built, and old parts swapped out for new as they’re completed. The alternative – scrapping everything for “the big rewrite” – is untenable, particularly given our small (but growing!) engineering and operations team.”

Twitter’s taken a lot of stick over its architecture, largely around the “Ruby on Rails won’t scale” meme. This fact – that it wasn’t actually architected as a messaging system – is an interesting and revealing one.