what happens if i write to dynamodb data after a stale read?

From your answers it’s no.2. By default, DynamoDB has eventually consistent reads, but writes are always strongly consistent.

The way it works:

  • You always get 3 nodes, 1 for writes, 2 for reads
  • On write, you send the request. Data is written to write node and synchronously replicated to one of read nodes. At this point you get a response.
  • Data is asynchronously replicated between read nodes
  • When you make a read, you have 50% chance of performing strongly consistent read (if you target, the node that had synchronous write)

CLICK HERE to find out more related problems solutions.

Leave a Comment

Your email address will not be published.

Scroll to Top