Process Flow - Least connections
Client Request Arrives
Check Backend Servers
Find Server with Least Active Connections
Forward Request to That Server
Increase Active Connection Count for That Server
Server Handles Request
Decrease Active Connection Count After Response
Ready for Next Request
When a client request comes, nginx checks all backend servers and sends the request to the one with the fewest active connections, balancing load dynamically.