You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
How to define multiple DownstreamPathTemplates to work for one UpstreamPathTemplate? #1574
@fdevGit Just want to hit two enpoints means? you can use HttpClient from polly libraray and in same controller you can call two endpoints.
Ocelot is api gateway, these things are not part of gateway instead you need your backend logic for it.
@ggnaegi@raman-m I don't think any action needed here, we can close if answer is right.
@ggnaegi I have question here: if anyone add some time consuming logic in SendAsync method, will it slow down application startup time or any time for request to reach controller level of same api?
changed the title [-]How to define multiple DownstreamPathTemplates to work for one UpstreamPathTemplate[/-][+]How to define multiple DownstreamPathTemplates to work for one UpstreamPathTemplate?[/+]on Oct 12, 2023
Activity
fdevGit commentedon May 6, 2022
@TomPallister
bwn-z commentedon May 6, 2022
I thought it should be at the load balancer level
fdevGit commentedon May 9, 2022
@bwn-z load balancer only provides routing to one endpoint. I want to forward one incoming request to two different endpoints
TanmayS0406 commentedon Oct 11, 2023
@fdevGit Just want to hit two enpoints means? you can use HttpClient from polly libraray and in same controller you can call two endpoints.
Ocelot is api gateway, these things are not part of gateway instead you need your backend logic for it.
@ggnaegi @raman-m I don't think any action needed here, we can close if answer is right.
ggnaegi commentedon Oct 11, 2023
@fdevGit You could implement your own delegating handler https://ocelot.readthedocs.io/en/latest/features/delegatinghandlers.html and call the counter endpoint from there with HttpClient.
TanmayS0406 commentedon Oct 11, 2023
@ggnaegi I have question here: if anyone add some time consuming logic in SendAsync method, will it slow down application startup time or any time for request to reach controller level of same api?
[-]How to define multiple DownstreamPathTemplates to work for one UpstreamPathTemplate[/-][+]How to define multiple DownstreamPathTemplates to work for one UpstreamPathTemplate?[/+]