Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Scatter/Gather support #498

Open
mauroservienti opened this issue May 23, 2023 · 0 comments · May be fixed by #513
Open

Scatter/Gather support #498

mauroservienti opened this issue May 23, 2023 · 0 comments · May be fixed by #513
Labels
feature New feature or request

Comments

@mauroservienti
Copy link
Member

mauroservienti commented May 23, 2023

A potential user's use case is to compose a set of responses from different sources. Those responses are structurally all the same.

It would be possible to expose a configuration API like the following that, under the hood, would automatically fan out to the configured set of desintation, and composes back the list of responses before returning to the client:

app.UseEndpoints(builder =>
{
    builder.MapScatterGather(template: "/source", new ScatterGatherOptions
    {
        Gatherers = new List<Gatherer>
        {
            new Gatherer()
            {
                Key = "sample",
                Destination = "http://foo.bar/source"
            }
        }
    });
});
@mauroservienti mauroservienti linked a pull request Jun 11, 2023 that will close this issue
12 tasks
@mauroservienti mauroservienti added the feature New feature or request label Jun 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant