NOTE
Designing an Asynchronous System
An asynchronous call returns without waiting for its result. These notes examine invocation and result handling through the need for higher throughput.
This is a historical learning note and may contain outdated or incomplete understanding.
1. What Is Asynchronous Processing?
- A calls B and returns directly without waiting for the result.
2. Why Do We Need Asynchronous Processing?
- It can increase the throughput of the entire system.
3. How to Design Asynchronous Processing
3.1. Event Driven
3.1.1. API Definition
4. Problems with Asynchronous Processing
4.1. Consistency
Build a consistency platform that listens to events generated by the business, validates consistency according to predefined rules, and alerts when data is inconsistent.
4.2. Ordering
Message Ordering in Message Queues.md
4.2.1. Duplicate Messages
4.2.2. Message Loss
Drag to pan, scroll to zoom, and click a node to expand or collapse it. Large maps start with deeper levels collapsed; click nodes to expand them.
Discussion
Sign in with GitHub to comment. Discussions are stored as GitHub Issues.View on GitHub