Process Flow - Why Nginx handles API routing
Client sends API request
Nginx receives request
Check request URL path
Yes No
Forward to API server
API server processes request
Response sent back through Nginx
Client receives API response
Nginx receives client requests, checks if the URL path matches API routes, forwards API requests to the API server, and returns the response to the client.