Skip to Content
Acing the System Design Interview
book

Acing the System Design Interview

by zhiyong tan
January 2024
Intermediate to advanced
472 pages
15h 11m
English
Manning Publications
Content preview from Acing the System Design Interview

5 Distributed transactions

This chapter covers

  • Creating data consistency across multiple services
  • Using event sourcing for scalability, availability, lower cost, and consistency
  • Writing a change to multiple services with Change Data Capture (CDC)
  • Doing transactions with choreography vs. orchestration

In a system, a unit of work may involve writing data to multiple services. Each write to each service is a separate request/event. Any write may fail; the causes may include bugs or host or network outages. This may cause data inconsistency across the services. For example, if a customer bought a tour package consisting of both an air ticket and a hotel room, the system may need to write to a ticket service, a room reservation service, and a payments ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Designing Data-Intensive Applications

Designing Data-Intensive Applications

Martin Kleppmann
Prompt Engineering for LLMs

Prompt Engineering for LLMs

John Berryman, Albert Ziegler

Publisher Resources

ISBN: 9781633439108Publisher SupportPublisher WebsiteSupplemental ContentErrata PageOtherPurchase Link