I am designing an application written in C# and AspNetCore that requires making multiple HTTP requests to microservices and aggregating the results before returning to the controller.
I have looked into MediatR pipelines but seems limited and unfit for this particular scenario.
I imagine there being something useful within the realm of map and reduce but struggling to find a framework my developers can get going with quickly.
We want to ensure aggregation is terminated should one or more requests fail.
I created a proof of concept using worker threads e.g.
var results = await Task.WhenAll(task1, task2);
But this does not provide a framework like MediatR developers can easily adopt and unit test.
I suppose the same can be said had my proof of concept been written using Rx extensions and Observable.zip. I am nonetheless rather curious and hoping to find examples of using Observable.zip in C# similar to what has been demonstrated in this Netflix blog post