Skip to main content
7 events
when toggle format what by license comment
Dec 15, 2023 at 17:14 comment added Sebastian Sotto M. Yeah sure. Consider an aggregation service designed to unify data retrieval for an application in the retail sector. This service exposes an endpoint, say /mobile-data, which internally communicates with some microservices. The service may utilize HTTP requests or asynchronous messaging to fetch product availability from an inventory microservice, customer details from a customer microservice, and order information from an order processing microservice. The aggregation logic then combines these data sets, perhaps using JSON payloads, into a cohesive API response for the mobile client.
Dec 8, 2023 at 1:35 comment added tlt @SebastianSottoM. how do you implement aggregation as a dedicated service, actually? do you have some example? tnx
Feb 21, 2023 at 7:44 comment added Maxim Zabolotskikh I had seen that section - it allows to do pretty everything with the request, but it does not allow to take one client request, send it to >=2 destinations, wait for the results and aggregate them in a single response. That's basically what I was after..
Feb 20, 2023 at 23:29 comment added Sebastian Sotto M. Yes, that's possible. Take a look here: microsoft.github.io/reverse-proxy/articles/transforms.html
Feb 20, 2023 at 14:44 comment added Maxim Zabolotskikh Do you know if it's possible to map a single request in YARP to several target paths and aggregate the responses? Like with some transformations? I cannot really find an extension point there. What works is putting an aggregation service behind YARP, but than that service will have to call microservices by itself, and many benefits of YARP, like load balancing, are lost.
Feb 17, 2023 at 9:09 vote accept Maxim Zabolotskikh
Feb 16, 2023 at 18:17 history answered Sebastian Sotto M. CC BY-SA 4.0