mardi 26 octobre 2021

[architecture][patterns] Multi-service sync implementation

I have this one service that integrates some third party data provider with our systems. The service runs as Spring Batch jobs, so every step is a single job executed one after another.

The responsibilities of the service:

  1. gathering data from different files, databases and other services

  2. process the data

  3. produce one unified entity from the gathered data

  4. update several other systems with unified entity

I have no impact on the framework or tech stack here.

I faced the following issue: how to update other services and mark somehow that the particular update succeeded?

I thought about the db flags for every service to be updated, but this approach seems not to scale well (for every next service someone has to remember to add the flag).

There are broadcast patterns or bi-directional sync patterns but are they applicable for my scenario? How are they implemented?

Aucun commentaire:

Enregistrer un commentaire