News for hackers. Stuff that matters.
Re:Show HN: A flask app to make dashboards, easily by foob on Friday September 09, 2016 @10:43PM (#12467396)
You would typically use something like nginx as a proxy, in conjunction with uwsgi for managing a number of workers, and then offload slow operations to a task queue via redis or something similar. Caching obviously helps if it's applicable and it's also easy to expand to multiple servers with a load balancer. Websockets are a little bit more complicated but definitely possible.

As a side note, the synchronous request processing is more a consequence of Python rather than flask itself. I've personally found that I build more scalable things in Python, compared to something like node, because it lends itself to scalable architecture decisions. You can do a lot of things in node that are super convenient when you have a single server but that require major changes when you expand.

Re:Show HN: A flask app to make dashboards, easily by spdionis on Saturday September 10, 2016 @05:31AM (#12468462)
> I've personally found that I build more scalable things in Python, compared to something like node, because it lends itself to scalable architecture decisions. You can do a lot of things in node that are super convenient when you have a single server but that require major changes when you expand.

That's one of the major plus points of PHP too.