Skip to content

Request aggregation #1677

Answered by peerpalo
peerpalo asked this question in General
Nov 29, 2021 · 6 comments · 3 replies
Discussion options

You must be logged in to vote

Yes, we have also other routes, in fact the idea is to have something like

https://gateway/products

that would return

{
  "destination1": [
    {
      "id": 1
    },
    {
      "id": 3
    }
  ],
  "destination2": [
    {
      "id": 5
    }
  ]
}

so client can be do calls like this

https://gateway/products/destination1/3
https://gateway/products/destination2/5

I wasn't expecting the gateway scenarios to be written as a proxy middleware

I was thinking if we had something like:

async Task MyHandler(HttpContext context)
{
    var pf = context.GetReverseProxyFeature();
    var cluster = pf.Clusters["cluster1"];
    var dest = cluster.NextDestination();
    var client = cluster.GetHttpCl…

Replies: 6 comments 3 replies

Comment options

You must be logged in to vote
1 reply
@alrz
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@maxiptah
Comment options

@Tratcher
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by karelz
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Idea This issue is a high-level idea for discussion.
7 participants
Converted from issue

This discussion was converted from issue #1414 on April 28, 2022 16:51.