I can see that anyserver.py uses monkey patching to make the standard
library cooperative with gevent.

Could the same be done with eventlet and with Gunicorn (with eventlet,
gevent or both)?

Eventlet has the advantages of being (AFAIK) pure python, and can
monkey patch psycopg as well as the standard library.

Has anyone measured whether it is significantly more memory efficient
to run web2py on green threads?

My use case is that I will have long running controllers (while
fetching data from web services). I would like it to be memory
efficient, but I am nt* looking for massive scalability or extreme
speed. I do not want it to be trivial to DOS (so I need either threads
or green threads to handle the long running controllers).

Reply via email to