~/talk

Using sagas to maintain data consistency in a microservice architecture

Talkat Devoxx UK 2017 · 2017-05-11..05-12· [microservices, distributed-systems]
slides:none on file

Explains why two-phase commit is impractical for microservices, defines a saga as a sequence of local transactions with explicit compensating actions, and shows a Java-based state‑machine orchestrator that drives steps and replies. Uses asynchronous transactional messaging to make updates and commands atomic by writing to an outbox table within the local transaction, then pushing messages via transaction log tailing (MySQL binlog, Mongo oplog, DynamoDB streams). Compares waiting for completion versus immediate async responses and discusses API and business‑logic tradeoffs.

AI-written summary · about

  1. 0:00Introduction
  2. 3:55Why distributed transactions fail
  3. 8:12Microservices and data consistency
  4. 13:11Saga pattern overview
  5. 18:29Compensating transactions
  6. 22:06API design challenges
  7. 28:50Saga coordination models
  8. 35:13Implementing saga orchestrators
  9. 39:59Transactional messaging foundation
  10. 47:50Key takeaways and conclusion
~/search
type to search 8,222 conferences, 162,397 speakers and 219,688 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
← →
on a talk: 5 seconds back / forward
0–9
on a talk: jump to 0%–90% of the recording
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.