Write-through or write-back

  • Choose
  • Cache 05

Difficulty 1 of 5

Half of the requests read and half write. Writes take 300 ms to reach the database. The cache crashes at 0:10 for 2 s. Choose the write policy. No acknowledged write may be lost, and no read may return an old value.

Play level

Options

  • Write-back: acknowledge now, flush later
  • Write to the database only
  • Write-through to the database
Cache size and hit ratioDrag or use arrow keys to change the cache size

Goals and limits

Lost writes
none
Stale reads
none
Monthly cost
under 30 USD/mo
Traffic
100 req/s

Concepts

How players did

Player results load from the server.