AlgoViz

Memcached

medium 30 min

Memcached is a small, fast, shared cache for plain values.

Where it shows up

The same pattern appears across everyday software.

  • Facebook

    A 2013 paper describes Memcached as a building block of a distributed store that handled billions of requests a second and held trillions of items in front of sharded MySQL.

  • Twitter: Twemcache

    Twitter published Twemcache, a heavily changed fork of Memcached 1.4.4. Its repository now points to Pelikan for newer work.

  • Netflix: EVCache

    EVCache is built on Memcached and the spymemcached client for frequently used data on AWS. It adds the copies that plain Memcached does not have.

  • LiveJournal

    The first user. The 2004 article describes a site with about 70 machines and 2.5 million accounts that cached query results and objects.

  • Rendered page parts

    Sites cache finished pieces of HTML, such as a menu or a product card, so that the template and its queries run once.

  • Object cache for an ORM

    Web frameworks store database rows as serialized objects by primary key, and delete the key when the row changes.