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 #513

Draft
wants to merge 28 commits into
base: master
Choose a base branch
from
Draft

Scatter/gather support #513

wants to merge 28 commits into from

Conversation

mauroservienti
Copy link
Member

@mauroservienti mauroservienti commented Jun 11, 2023

Fix #498

Introduces Scatter/Gather support. Given an incoming HTTP request matching the configured template, the request will be fanout to downstream endpoints identified by each Gatherer.

app.UseEndpoints(builder =>
{
    builder.MapScatterGather(template: "/source", new ScatterGatherOptions
    {
        Gatherers = new List<Gatherer>
        {
            new Gatherer()
            {
                Key = "sample",
                Destination = "http://foo.bar/source"
            },
            new Gatherer()
            {
                Key = "another-sample",
                Destination = "http://another/source"
            }
        }
    });
});

PoA

  • PR description
  • Apply labels as appropriate
  • tests
    • Basic GET
    • Query string propagation
    • Works with other composition
    • Custom aggregators
    • Custom gatherers
    • What happens if no HttpClient is registered in DI
  • Documentation
    • aggregators
    • Link from docs README
    • mention in repo README

@mauroservienti mauroservienti self-assigned this Jun 11, 2023
@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 this pull request may close these issues.

Scatter/Gather support
2 participants