NOTE

2.3 Distributed Transaction Solution: Reliable-Message Eventual Consistency

Reliable messaging coordinates local transactions across services toward eventual consistency. These notes introduce local message tables and transactional messages through the process diagram.

Distributed SystemsCreated Updated 1 min readhistorical

This is a historical learning note and may contain outdated or incomplete understanding.

1. What Is Reliable-Message Eventual Consistency?

A distributed transaction solution that guarantees eventual consistency.

2. Reliable-Message Eventual-Consistency Process

Local Message Table - Reliable-Message Eventual Consistency

3. Use Cases for Reliable-Message Eventual Consistency

  • Suitable for business operations that require eventual consistency, are not time-sensitive, and require the distributed transaction to succeed rather than end in failure, such as awarding points after registration or coupons after login.
  • Multiple services use multiple data sources, and the data sources do not have to be DBs.

4. Implementations of Reliable-Message Eventual Consistency

4.1. Local Message Table

Local Message Table - Local Message Table

4.2. Transaction Messages

Compared with the local message table approach, this moves both the scheduled background task and the message table into the message-queue middleware.

Local Message Table - Transaction Messages

5. References

Discussion

Sign in with GitHub to comment. Discussions are stored as GitHub Issues.View on GitHub