Skip to content

Can this proxy be used to route the request to available server #1080

Discussion options

You must be logged in to vote

That's awesome. Indeed scaling will be another aspect for any codebase. With proxy.py you can achieve it automagically. Before you dig into it, here is a recap to understand whats going on:

  1. Internally proxy.py is a TCP/UDP server. This core component is responsible for listening on one or several port (or sock files). It doesn't know about what functionality will run on-top of a listening server. It's job is to accept connections, delegate them to a worker class for handling the connection.

  2. By default, --work-klass flag points to proxy.http.HttpProtocolHandler class. This class knows how to handle an incoming HTTP client connection (server or proxy is inferred at runtime and handled a…

Replies: 3 comments 1 reply

Comment options

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

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by abhinavsingh
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
Question Questions related to proxy server
2 participants