Skip to content

Commit 0d1cf40

Browse files
committed
Organization CQRS doc
1 parent ca7f7eb commit 0d1cf40

File tree

1 file changed

+16
-11
lines changed

1 file changed

+16
-11
lines changed

Course6/index.md

+16-11
Original file line numberDiff line numberDiff line change
@@ -14,28 +14,33 @@ R
1414
1. API composition
1515
2. Dedicated data view
1616

17+
## How to keep data syncronized crossing services
1718

18-
OrderHistoryService
19+
Let's assume OrderHistoryService as a dedicated database-ElasticSearch which needs all data related to order from other services.
1920

20-
handler -> order.created
21-
-> customer.updated
22-
-> ...
2321

24-
ElasticSearch
22+
OrderHistoryEventHandler subscripes domain events published by MessageQueue
23+
```
24+
-> order.created
25+
-> customer.updated
26+
-> ...
27+
```
2528

2629

2730
### Issues
2831

29-
1. Handle duplicated messages
30-
1.1
32+
* Handle duplicated messages
33+
* 1.1
34+
```
3135
PROCESSED_EVENT table
3236
eventId
3337
maxEventId
34-
1.2
35-
幂等性
36-
37-
## API Gateway
38+
```
39+
* 1.2
40+
idempotent(幂等性)
3841
42+
## What is API Gateway?
43+
3944
1. API composition
4045
2. Edge function(Authentication, Authorization, Rate limit, Monitor)
4146
3. Proxy

0 commit comments

Comments
 (0)