Green Threads on the Server
In theory, we can run Gunicorn with green threads and get better performance on I/O-bound stuff. Since BlockPy is mostly database accesses, this could be nice. It might even be essential when we start proxying feedback through the Alchemy server.
One barrier is that apparently psycopg2 (which we use to connect to Postgres) can have issues with green threads. There are apparently several options to deal with this, such as using the binary version or switching to a different library like psycogreen. We might already be using the compiled binary version, I'm not sure, but it's worth testing all this when the server is down for maintenance this summer and seeing if it improves things.
Alternatively, we could move to Quart and get this mostly for free. Might be time.