This article is more than one year old. Older articles may contain outdated content. Check that the information in the page has not become incorrect since its publication.
A business logic for user purchasing commodities. The whole business logic is powered by 3 microservices:
We just need an annotation @GlobalTransactional
on business method:
Note: In fact, there should be 3 database for the 3 services in the example use case. However, we can just create one database and configure 3 data sources for simple.
Modify Spring XML with the database URL/username/password you just created.
dubbo-account-service.xml dubbo-order-service.xml dubbo-storage-service.xml
UNDO_LOG
table is required by Seata AT mode.