简体   繁体   中英

Micro Services Architecture

In Microservice Architecture Pattern, How can we generate reporting queries? Because we have different database for every service as in Monolithic we write joins for tables.

In a microservice architecture there are 4 ways this is typically handled. The first 3 are an antipattern called "reach-in reporting." The 4th way is called asynchronous event pushing.

Essentially, in addition to the microservices writing to their respective DBs, each service also pushes an "event" to a data capture service. The data capture service writes to its own DB, which you can then write a reporting service for querying.

You can read more about all 4 options here .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM