Twitter architecture (cache)

Source: Internet
Author: User
Tags ruby on rails

The Twitter architecture, based on public information on the Internet, is mainly in the cache aspect. It is not necessarily the same as the actual architecture because it is supplemented by the author.

Some data:

  • The cache is divided into page cache, fragment cache, row cache, vector cache, and cache hit rate.
  • Fragment cache stores data in various API request formats, including XML, JSON, RSS, and atom.
  • Posting tweets is first put into Kestrel and then asynchronously processed. Kestrel uses the memcached protocol.
  • API requests: 550 R/S.
  • Post tweets: peak value: 80 tweets/s at ordinary times. When Obama takes office, he reaches 350 tweets/s.
  • The aggregator module needs to access memcached multi get several hundred/s.
  • Varnish is also used as the front-end reverse proxy before Ruby on Rails.

References:

  • Qcon London 2009: upgrading Twitter without service disruptions
  • Improving running components at Twitter (PDF slide)
Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.