Hello, I have a Python web-application that provides a REST-like API, which takes commands and arguments in the form of JSON payloads POSTed to the server. It runs as N worker processes (N=4 for now).
The application has several methods, some take longer than others to handle. I am looking for a way to route requests to specific workers, such that some of them only handle the quick requests, while others - only the "long" ones. Thus, the system should stay responsive, as a couple of long-running requests (which consumers expect to take a while) won't block everything else. The documentation provides examples of routing, by host, uri, and other parameters, but there's nothing to explain whether the router can look into the request body and make a decision based on that. Is this feasible? If so, what are the adequate uwsgi mechanisms for accomplishing that? If not, what is the best alternative way to make it happen? Looking forward to your feedback, Alex _______________________________________________ uWSGI mailing list uWSGI@lists.unbit.it http://lists.unbit.it/cgi-bin/mailman/listinfo/uwsgi