system-design-primer/resources/noat.cards/Write-behind (write-back).md

760 B

+++ noatcards = True isdraft = False +++

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.