News for hackers. Stuff that matters.
Re:Show HN: A flask app to make dashboards, easily by happyslobro on Friday September 09, 2016 @10:47PM (#12467414)
Yeah, I was running it under gunicorn. But that still leaves you with a small number of concurrent connections. If you want to have long connections, for something like long polling or websockets, then being limited to one request per CPU core seems a little sketchy.

Mind you, it could just be that I take high concurrency for granted. I build most web stuff on Node or Clojure, but now that I think about it, apps that require long quiet connections are actually not the norm.

Re:Show HN: A flask app to make dashboards, easily by est on Saturday September 10, 2016 @03:33AM (#12468135)
> for something like long polling or web sockets

Are you imagine this scenario or you are actually using Flask for long polling? What's your Flask websocket setup looks like?

FYI Flask internal does not stop you from using thousands of threads of greenlets to process concurrency. And web request-response model is embarrassingly parallel on multi-core. Just spawn one worker per core.

For a simple API service if you can not handle 3K rps per Flask instance you are doing it wrong.

Re:Show HN: A flask app to make dashboards, easily by greglindahl on Saturday September 10, 2016 @12:35AM (#12467705)
Python does high concurrency just fine, this example just isn't using it.

  from gevent import monkey
  monkey.patch_all()