You can distribute your system, but you will need your data back...

@RaulJuncoV
Raul Junco@RaulJuncoV
48 views Dec 27, 2023 ~1 min read
Advertisement
1
You can distribute your system, but you will need your data back together at some point.

The microservices architecture style migrates the data to separate databases (or schemas).

While this works well for services, it isn't good for Reporting.

There are four main techniques for handling reporting in microservices:

- Database pull model
- HTTP pull model
- Batch pull model
- finally, the event-based push model

The first three techniques pull data from each service database.

These are examples of the antipattern name "reach-in reporting."

The problem with pull data is that it creates dependencies between services.

The solution to the antipattern is to use an event-based push model.

This model uses asynchronous events to send the information to the reporting database.

Instead of pulling data, each service sends its data updates as an event to a data-capture service.

The data-capture service updates the reporting database.

This solution allows you to decouple the reporting service from the database schema.

Do you need help with your reports?
Media image
Actions
What You Can Do
  • Export as PDF or Markdown
  • Batch Export to Notion
  • Bookmark & Highlight
  • Screenshot Tweet
Create Free Account

Includes 7-day Premium trial

Advertisement