Hacker News new | ask | show | jobs
by ntenenz 3565 days ago
Do you mean something like this?

https://www.youtube.com/watch?v=tdIIJuPh3SI

https://github.com/miguelgrinberg/flack

https://speakerdeck.com/miguelgrinberg/flask-at-scale

1 comments

So, move expensive operations outside of the web processes. Looks like the Flask community has worked out good ways of doing that. Seems legit, answers my question :)
If you want async, use gevent or other async implementation and you'll get ~same as node. If you want parallellism, you'll need multiple processes. Every framework in whatever language should move expensive operations outside of request-response.