Implementing Microservices on AWS AWS Whitepaper
Distributed
data managementIn traditional applications, all components often share a single database. In contrast, each component of a microservices-based application maintains its own data, promoting independence and decentralization.
This approach, known
as distributed data management, brings new challenges.
One such challenge arises from the trade-off between consistency and performance in distributed systems. It's often more practical to accept slight delays in data updates (eventual consistency) than to insist on instant updates (immediate consistency).
Sometimes, business operations require multiple microservices to work together. If one part fails, you might have to undo some completed tasks. The
Saga pattern helps manage this by coordinating a series of compensating actions.
To help microservices stay in sync, a centralized data store can be used. This store, managed with tools like AWS Lambda,
AWS Step Functions, and Amazon EventBridge, can assist in cleaning up and deduplicating data.
Share with your friends: