[Question] Redirecting clients to distinct upstream servers #1027
-
Hi, I came across this amazing repo as I sought solutions to reroute HTTP requests from different users to distinct cloud-hosting containers listening on port 80 (one user per container due to the intrinsic limitation of the containerized application). Essentially, I intend to add logic to identify every new client IP and create a new cloud instance to which the HTTP requests would be redirected. When inactivity of HTTP requests to a specific container is detected for a prolonged period of time, the instance would be deleted. It seems like Do you have any suggestions on how I could build my proxy server on top of this project? I'd also like to ask for clarification on this suggestion to not fork the project. Thanks |
Beta Was this translation helpful? Give feedback.
Replies: 5 comments 15 replies
-
Hello @achen353 , thanks for trying out
Reason I recommend not to fork
NOTE: How to use
|
Beta Was this translation helpful? Give feedback.
-
Note that it's also important to understand how clients will communicate with your instance. Will they use it as a proxy or will they use it as a direct service endpoint. For the former you will need |
Beta Was this translation helpful? Give feedback.
-
@abhinavsingh Since the idea is to isolate the containerized service to each user with distinct EC2 instances assigned to each client, without authentication, what would you recommend to use to identify different clients? Would IP addresses be sufficient? (The public URL wouldn't be known by many people so I'm looking to scale to around 10 users at most for now). |
Beta Was this translation helpful? Give feedback.
-
@abhinavsingh My apologies for the bombardment of questions. How should I handle concurrent requests with |
Beta Was this translation helpful? Give feedback.
-
Hi @abhinavsingh, So I decided to build a simple authentication with Django REST Framework + React Single Page Application. I'm embedding my main application below the "WhoAmI" and "Log out" buttons with some endpoint like I'm looking to direct requests made for |
Beta Was this translation helpful? Give feedback.
Note that it's also important to understand how clients will communicate with your instance. Will they use it as a proxy or will they use it as a direct service endpoint. For the former you will need
RedirectToCustomServerPlugin
, for later you will wantReverseProxyPlugin
.