Hi, team! Since I am pretty new to this service, I have a question about this 
powerful load balancer tool HAProxy's working mechanism at the lower level of 
process and threads. I have gone through the documentation, but it seems that 
the explanation of the working mechanism is pretty high-level and focus on what 
it does and how it could be configured to achieve different goals of routing 
client requests to proper backends. I am more interested in how HAProxy manages 
processes and threads to achieve the highly efficient distribution of incoming 
client connections and requests to workers (not sure what specifically a worker 
means for HAProxy scheduler) and how workers process the request independently 
(or with shared resources). I would be really appreciate if someone explains 
this mechanism or gives a lead to look up. (either in codebase or doc with 
details) I am also trying to add a lua script to the HAProxy configuration file 
to be executed for each incoming request. This Lua script will make network 
requests using the header data from the incoming client request being handled 
to an external service, (e.g. a backend or a data store like Redis etc) to get 
a response. Then HAProxy redirects the routes according to this response. Since 
I am trying to add this lua script and it will be executed for almost each 
incoming request, I am trying to evaluate the performance effect of adding this 
script. I read docs of adding lua script in HAProxy, and figured out network 
calls are non-blocking to the main thread of HAProxy, but I still want to 
understand how it works at low level and what effects it has so that I know 
what I am doing here. Thank you very much! Looking forward to your reply! Best 
regards,Ryan 

Reply via email to