While each microservice will usually have its own data, certain objects must be coordinated between several services.
For such a requirement for data consistency in a highly distributed landscape such as microservice architecture, what are the design options? Of course, I don’t need a common database architecture where one database manages the state in all services. This violates the principles of isolation and the general principle.
I understand that a microservice can publish an event when an entity is created, updated, or deleted. All other microservices that are interested in this event can accordingly update related objects in their respective databases.
This works, but it leads to a lot of careful and coordinated programming efforts in services.
Can Akka or any other infrastructure solve this use case? How?
EDIT1:
Adding a chart below for clarity.
Basically, I am trying to understand if today there are frameworks available that can solve this problem of data consistency.
For the queue, I can use any AMQP software such as RabbitMQ or Qpid, etc. For a data consistency framework, I'm not sure if Akka or any other software can currently help. Or is this scenario so unusual and an anti-pattern that no structures will ever need?

design-patterns akka microservices
Santanu Dey
source share