File tree 1 file changed +16
-11
lines changed
1 file changed +16
-11
lines changed Original file line number Diff line number Diff line change 14
14
1 . API composition
15
15
2 . Dedicated data view
16
16
17
+ ## How to keep data syncronized crossing services
17
18
18
- OrderHistoryService
19
+ Let's assume OrderHistoryService as a dedicated database-ElasticSearch which needs all data related to order from other services.
19
20
20
- handler -> order.created
21
- -> customer.updated
22
- -> ...
23
21
24
- ElasticSearch
22
+ OrderHistoryEventHandler subscripes domain events published by MessageQueue
23
+ ```
24
+ -> order.created
25
+ -> customer.updated
26
+ -> ...
27
+ ```
25
28
26
29
27
30
### Issues
28
31
29
- 1 . Handle duplicated messages
30
- 1.1
32
+ * Handle duplicated messages
33
+ * 1.1
34
+ ```
31
35
PROCESSED_EVENT table
32
36
eventId
33
37
maxEventId
34
- 1.2
35
- 幂等性
36
-
37
- ## API Gateway
38
+ ```
39
+ * 1.2
40
+ idempotent(幂等性)
38
41
42
+ ## What is API Gateway?
43
+
39
44
1. API composition
40
45
2. Edge function(Authentication, Authorization, Rate limit, Monitor)
41
46
3. Proxy
You can’t perform that action at this time.
0 commit comments