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.