3 ms·
As SRE, I got interested in https://levkk.github.io/rwf/migrating-from-python/ https://levkk.github.io/rwf/migrating-from-python/. On one hand, this is crazy ne
by stackskipton 2y ago
As SRE, I got interested in https://levkk.github.io/rwf/migrating-from-python/ https://levkk.github.io/rwf/migrating-from-python/. On one hand, this is crazy neat you were able to pull it off. On the stability SRE hand, I'm internally screaming. At scale, this should be handled by Reverse Proxy (Caddy, Nginx, Traefik, whatever)
- biorach 2y agoI imagine the author assumed a technical audience wouldn't need to be told of the necessity of a reverse proxy in front of the wsgi server
- drcongo 2y agoAs a Python dev, I imagined the same.
- stackskipton 2y agoAs SRE, you assume 100% wrong. Devs totally need to be told "Please don't do this in production." They will ignore you but hey, you might reach a few.
- levkk 2y agoI thought the same thing, but this allows you to test your changes locally as an application engineer, without the back and forth. This goes back to the good old monolith vs. microservices debate. Writing a stable WSGI server is possible, and not very hard with a bit of attention to detail, e.g. thread counts, vacuum (just like good old php-fpm, restart every n requests...), etc. Basically if you implement most options uwsgi has, you're on the right path. It's on the roadmap to make Rwf comparable to running Gunicorn.
- stackskipton 2y agoSure, but Gunicorn doesn't try and run Node. I totally get benefit for development; I was just worried about someone YOLOing this into production.
- deleted 2y ago[deleted]