Getting data from two different monoliths

107 Views Asked by At

We are developing a feature that will require getting a similar data set from two monolithic applications and displaying it in one application. The monoliths use totally different tech stacks. We are considering defining a set of data and service contracts that will be implemented as microservices exposing the data from the monoliths. Is that a reasonable approach? Are there other design/architectural patterns that better suit our use case?

1

There are 1 best solutions below

0
On

Is that a reasonable approach?

If you want to make it to adapt responses from two monoliths to have one unified response, then yes, it is reasonable. As you can reuse this response without worrying what monolith returned answer. And it is similar to Adapter pattern.

Otherwise, it is not reasonable as it brings new application which should be maintained.