4 ms·
> So? You run a blocking thread to performing a long-running task in Flask? With Python? Try, then report what you find. I did it for years. It works just fine
by icebraining 7y ago
> So? You run a blocking thread to performing a long-running task in Flask? With Python? Try, then report what you find.
I did it for years. It works just fine. The GIL is essentially like running an app on a single core, which works just fine for many use cases. CPU cores are quite powerful.
> More processes usually imply more complexity.
Right, but I'm only saying you can have more processes without requiring Redis.
> And still, since you don't have a central application with a state, you NEED an extra piece to manage the result from the queue.
A regular thread can do that.