Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Python: With gevent, is a front-end server / reverse proxy necessary?

In a related question I'm trying to figure out how a Python web application "ties together" from end to end, and I've been making the assumption that Apache/lighttpd/nginx is required with a WSGI module. (Let's assume I'm serving static content using a CDN.)

Is it possible to skip WSGI and use the gevent library to serve clients directly?

like image 764
Matty Avatar asked Jan 25 '26 18:01

Matty


1 Answers

gevent doesn't include a pre-made HTTP server, but it could be possible to write one using gevent.server. It's probably easier to use a lightweight WSGI container such as Paste Deploy though.

like image 138
Ignacio Vazquez-Abrams Avatar answered Jan 27 '26 07:01

Ignacio Vazquez-Abrams



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!