Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

asyncio? #5

Open
yohanboniface opened this issue Sep 7, 2015 · 5 comments
Open

asyncio? #5

yohanboniface opened this issue Sep 7, 2015 · 5 comments

Comments

@yohanboniface
Copy link
Member

It may help to have SQL requests to be run in //.

https://github.com/aio-libs/aiopg

@yohanboniface
Copy link
Member Author

@songololo
Copy link

aioredis and aiopg work well for this purpose.

@songololo
Copy link

I have used your package as a base for an asyncio / aiohttp / aiopg implementation over at: https://github.com/shongololo/aiovectortiler

The changes were chaotic and extensive so I've split it to a new project rather than trying to merge back into utilery.

Still pending completion of the new testing to accommodate the asyncio context.

@yohanboniface
Copy link
Member Author

Interesting. Have you benchmarked?
We've made some tests recently, and our conclusion is that the ratio I/O Bounds / CPU bounds is not balanced enough to cancel the coroutines overhead.
I'm currently working on a switch to Falcon + asyncpg (which should worth it anyway because it seems faster than psycopg2 by itself).
cc @magopian

@songololo
Copy link

ah that's interesting. No benchmarks yet.

@yohanboniface yohanboniface mentioned this issue Aug 27, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants