Skip to main content

CSEP 552 Reading 3

Due Monday, November 30 at 11:59pm.

In this reading we look at caching and weak consistency. When is a stale answer acceptable? What keeps a stale answer from becoming a wrong one?

Choose one of the papers below, read it, and write a response. See the readings page for more details on your response.

  • Nishtala et al. Scaling Memcache at Facebook.

    • This paper describes Facebook's distributed cache.
    • Questions to consider while reading: how do they use leases, and what problems do the leases solve? When can a client read stale data? How much staleness is acceptable? How does invalidation work across regions?
    • Local copy (UW login required).
  • Brewer. CAP Twelve Years Later: How the "Rules" Have Changed.

    • The author revisits the "CAP theorem" ("Consistency, Availability, Partition-tolerance -- pick 2 out of 3") and argues that "pick 2 out of 3" is misleading.
    • Questions to consider while reading: what choices does a system actually face during a partition? How does a system recover consistency once the partition heals? Which of the systems you have built or studied this quarter chose consistency, and which chose availability?
    • Local copy (UW login required).
  • Hellerstein and Alvaro. Keeping CALM: When Distributed Consistency Is Easy.

    • This paper asks which programs can run correctly without any coordination, and identifies monotonicity as a key technique.
    • Questions to consider while reading: which parts of the labs are monotonic, and which need coordination? What would you give up to make a system coordination-free? How does monotonicity help us decide whether a system should give strongly consistent guarantees (e.g. linearizability) or use weak consistency?
    • Local copy (UW login required).

Extra (optional) readings

Leases, locks, and time

Weak consistency models

If you read one of these, read Session Guarantees (10 pages). Burckhardt is a 150-page monograph; chapters 3 and 5 are the core.

Deterministic simulation testing

Submit

Submit your response on Gradescope by Monday, November 30 at 11:59pm.