Pay
Message Distribution Sequence Diagram

Message Distribution Sequence Diagram

svr-pay

Message

MQ

svr-acct

1. Message to be confirmed

2.2.1, modify the message

to be confirmed

3. Perform local affairs

4. Confirmation message

6. Monitoring news

8. Confirm

2.2, return

5.1. Modify the message

status to send status

5.2, send a message

10. Modify the message status as complete

9. Confirm that the message is consumed

7. Perform local affairs

1. Pay sends a message to be confirmed to the message system

2. The message system saves the message to be confirmed and returns

3. Pay performs local business and records the event-driven event table

4. The scheduled task scans the event table to notify the message system to confirm that the service has been executed and send the message.

5. Acct monitors the MQ message component and obtains the message

6. Acct processes local services according to the MQ message body information

7, acct confirms to MQ that the message is consumed

8. Acct notifies the reliable message system that the message is successfully consumed, and the reliable message changes the status of the message to completed

Optimization point: Use database-specific MySQL Binlog tracking (Ali's Canal) or Oracle's

GoldenGate technology can obtain notification of changes to the event table of the database, avoiding regular scanning of the event table

Order service

Canal

Line item table

news

queue

release

Listen

change

update data

3
0
1
publish time: 2021-03-03
easy diagrams

Distributed transactions are used to ensure data consistency between different nodes in a distributed system. Optimization point: Use database-specific MySQL Binlog tracking (Ali's Canal) or Oracle's GoldenGate technology can obtain notification of changes to the event table of the database, avoiding regular scanning of the event table. This template is a sequence diagram of distributed message transactions, which can be used for related reference.

See More Related Templates

UML Diagram - Add event to calendar
This is an example of a UML diagram about adding events to the calendar.
UML Diagram - Add event to calendar
15
1
0
easy diagrams
Class diagram example
This is an example of a uml class diagram.
Class diagram example
151
4
3
easy diagrams
ecommerce website - UML diagram
This is an example of a UML collaboration diagram.
ecommerce website - UML diagram
9
1
0
easy diagrams
Collaboration diagram adminpanel
This is an example of a UML collaboration diagram about adminpanel.
Collaboration diagram adminpanel
6
1
0
easy diagrams
Communication diagram example
This is an example of a UML communication diagram.
Communication diagram example
8
1
0
easy diagrams
Composite structure diagram
This is an example of a composite structure diagram.
Composite structure diagram
3
0
0
easy diagrams