Using Sagas to Maintain Data Consistency in a Microservice Architecture
Offered By: Devoxx via YouTube
Course Description
Overview
Explore the challenges of maintaining data consistency in microservice architectures and learn how to implement sagas as an alternative to distributed transactions. Dive into the benefits and drawbacks of using sagas, understand their eventually consistent nature, and discover how to design and implement them in Java applications. Gain insights into encapsulated data, compensating transactions, API design complexities, and the differences between implicit and explicit orchestrators. Follow along as the speaker demonstrates initializing sagas, handling commands in customer services, and publishing messages using polling techniques.
Syllabus
Intro
About Chris
Microservice architecture
Loose coupling = encapsulated data
Use Sagas instead of 2PC
Rollback using compensating transactions
Sagas complicate API design
Sagas complicate the business logic
Implicit vs. explicit orchestrator
Initializing the saga
Customer Service - command handling
Publishing message using polling
Summary
Taught by
Devoxx
Related Courses
Algorithms, Part IPrinceton University via Coursera Introduction à la programmation orientée objet (en Java)
École Polytechnique Fédérale de Lausanne via Coursera MongoDB for Java Developers
MongoDB University Initiation à la programmation (en Java)
École Polytechnique Fédérale de Lausanne via Coursera Intro to Java Programming
San Jose State University via Udacity