0

I've recently started learning about microservice architecture. API gateway is a pattern usually proposed for aggregating data from different microservices which own their data stores. However I wasn't able to find anything about being able to do that in a configurable way.

Scenario: Customers should be able to define reports that use aggregated data from different microservices. This should be configurable by not changing the underlying source code.

Possible solution in monolithic architecture:

  • Based on customer needs custom SQL Query kept in JSON file is prepared that feeds data to Reporting Framework.

Possible solution in microservice architecture I can think of:

  • Having another Reporting microservice using events for synchronization on top of a Data warehouse where we keep information from other microservices. Then we can use simmilar solution as in the monolithic app.

Is there any other way of achieving this? If not are there any patterns ,frameworks , things to consider that can be useful in this scenario ?

Regards

2
  • 1
    Your solution is pretty close to the right one - generally speaking the right approach is for your microservices to raise relevant events and for something to aggregate those events into the appropriate data structures for reporting.
    – Ant P
    Nov 13, 2018 at 14:06
  • @AntP Have you seen somewhere an implementation example of such an approach ?
    – cah1r
    Nov 21, 2018 at 9:44

1 Answer 1

2

At our company we are using peekdata.io Data Gateway API and Report Builder that let’s us expose data from several our databases to end users and developers internaly. I think it solves your problem or at least, I would look for a similar solution. We can change and grow the data structures internally, while the users can use the data without changes to them. Have a look, maybe it is not something you are looking for after all.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.