Skip to content
This repository has been archived by the owner on Oct 10, 2018. It is now read-only.

Enable dynamic routing #10

Closed
ycrumeyrolle opened this issue Oct 20, 2015 · 7 comments
Closed

Enable dynamic routing #10

ycrumeyrolle opened this issue Oct 20, 2015 · 7 comments

Comments

@ycrumeyrolle
Copy link

The proxy should be able to send the underlying request to different hosts based on the request context.

For example
Incoming request: https://mysite.com/api1/
Outgoing request : http://myapi1.local/

Incoming request: https://mysite.com/api2/
Outgoing request : http://myapi2.local/

We could imagine a IProxyRouter. Default implementation is a DirectProxyRouter (the current implementation). Other implementation could be a rule-based router.
This will allow to have a basic reverse proxy.

@Tratcher
Copy link
Member

It makes sense to enable forwarding to multiple back-ends. The first scenario I'd test would be for load balancing, but you could have other rules as well.

At the lowest level it could be as simple as a Func on the Options that takes an HttpContext and returns a destination url.

@muratg muratg added this to the backlog milestone Jan 12, 2016
@mkosieradzki
Copy link
Contributor

It seems I have created a duplicate issue #43 - sorry for that - I will close it. However I would like to grab this one.

@kevinrood
Copy link

I would like to see dynamic routing added as well.

@mkosieradzki
Copy link
Contributor

@kevinrood
It's already done #46 it's waiting for merge.

@kevinrood
Copy link

@mkosieradzki great to hear. What is the performance like so far?

@mkosieradzki
Copy link
Contributor

@kevinrood Should be great as the proxy layer is really thin, fully asynchronous and it's really bound to the HttpSys/Kestrel + HttpClient performance. But have not done any performance tests yet.

@aspnet-hello
Copy link

This issue was moved to aspnet/Home#2503

@aspnet aspnet locked and limited conversation to collaborators Jan 1, 2018
@aspnet-hello aspnet-hello removed this from the Backlog milestone Jan 1, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants