News for hackers. Stuff that matters.
Re:Growler: Asyncio Micro-Framework in Python by akubera on Wednesday May 04, 2016 @06:28PM (#11632450)
Yes!

An initial test last night of a trivial growler app (i.e. one method that replies with a simple string) saw a median response time drop from ~200ms to ~80ms.

(using apachebenchmark, n=1000 c=100)

Re:Growler: Asyncio Micro-Framework in Python by xxpor on Wednesday May 04, 2016 @07:26PM (#11632797)
Wait, p50 using the built in asyncio loop is 200ms?

That seems incredibly slow.

Re:Growler: Asyncio Micro-Framework in Python by zeemonkee3 on Wednesday May 04, 2016 @06:58PM (#11632650)
How well would it work with, say, PostgreSQL? Would you need to use async wrappers like aiopg in your views?
Re:Growler: Asyncio Micro-Framework in Python by akubera on Wednesday May 04, 2016 @07:14PM (#11632745)
For optimal performance, yes use aiopg or equivalent (it looks like there is an asyncio sqlalchemy project which might be nice.)

Any middleware may be a coroutine object, so it's as easy as `await res.render("whatever")` in an async function

Re:Growler: Asyncio Micro-Framework in Python by ssahoo on Wednesday May 04, 2016 @07:08PM (#11632712)
Re:Growler: Asyncio Micro-Framework in Python by sandGorgon on Thursday May 05, 2016 @01:22AM (#11634164)
do you have this in a github somewhere ? would love to check it out. Also would be nice to see this same thing with postgres DB access.