system-design-primer/resources/noat.cards/14-5 Write-behind (write-ba...

773 B

+++ noatcards = True isdraft = False weight = 145 +++

Write-behind (write-back)

Introduction

Source: Scalability, availability, stability, patterns

In write-behind, tha application does the following:

  • Add/update entry in cache
  • Asynchronously write entry to the data store, improving write performance

Disadvantage(s) : write-behind

  • There could be data loss if the cache goes down prior to its contents hitting the data store.
  • It is more complex to implement write-behind than it is to implement cache-aside or write-through.