Recall & Review
beginner
What is data consistency in the context of microservices?
Data consistency means that all microservices have the same, up-to-date information at the same time, so users see correct and reliable data everywhere.
Click to reveal answer
intermediate
Why is maintaining strong consistency difficult in microservices?
Because microservices are separate and communicate over networks, delays and failures can cause data to be out of sync temporarily, making strong consistency hard to guarantee.
Click to reveal answer
beginner
What is eventual consistency?
Eventual consistency means data will become consistent across services after some time, even if it is temporarily different during updates.
Click to reveal answer
intermediate
Name one common pattern to handle data consistency in microservices.
The Saga pattern helps manage distributed transactions by breaking them into smaller steps with compensations to keep data consistent.
Click to reveal answer
advanced
What problem does the two-phase commit protocol solve, and why is it less used in microservices?
It solves atomic transactions across services but is less used because it can cause delays and reduce system availability due to locking resources.
Click to reveal answer
Which consistency model allows temporary data differences but guarantees eventual synchronization?
✗ Incorrect
Eventual consistency means data will sync over time, allowing temporary differences.
What is a main challenge of using two-phase commit in microservices?
✗ Incorrect
Two-phase commit locks resources and can delay the system, reducing availability.
Which pattern helps manage distributed transactions by breaking them into smaller steps with compensations?
✗ Incorrect
Saga pattern manages distributed transactions with steps and compensations.
Why do microservices often face data consistency challenges?
✗ Incorrect
Distributed nature and network delays cause consistency challenges.
Which consistency model requires all services to see the same data instantly?
✗ Incorrect
Strong consistency means all see the same data immediately.
Explain the main data consistency challenges in microservices and how they differ from monolithic systems.
Think about how separate services communicate and update data.
You got /5 concepts.
Describe the Saga pattern and how it helps maintain data consistency in microservices.
Imagine a multi-step process that can be reversed if something fails.
You got /4 concepts.