|
|
|
|
|
by zzzeek
3341 days ago
|
|
> if you schedule them in an async fashion you can begin operating on the first one that's ready and not the first one you defined. This type of operation is a given in any production quality webserver, whether it runs with multiple threads and blocking IO or using a non-blocking approach with greenlets. For a web application, this is an implementation detail that should not be explicit within the request handling code (a request handled in the context of a web container after all is a package of data in, a package of data out. no network reading/writing is usually exposed to the web application unless it's trying to expose IO handles to the app, which is unusual). Easy enough with something like Gunicorn. |
|