Skip to content

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

3 participants