Is one to one mapping necessary between Write Applications and Read Applications

  softwareengineering

Introduction: We have a bunch of micro services (about 40) to serve our customers.

To facilitate scaling and audit-ability of selected few micro services we have decided to redesign them using CQRS and event sourcing.

Current Situation: We started out with a one to one mapping between read applications and write applications. For example WriteApplicationA and ReadApplicationA, WriteApplicationB and ReadApplicationB, so on…

Problem: However at this point, we are considering to have some read applications that listened to events from more than one write application.

Is it okay to have read applications that listen to events from more that one write application? (At this point it looks very convincing, but will I run in to errors in the future). (Reporting is the use case where we want to listen to events from multiple write applications)

3

LEAVE A COMMENT