Re: Async web servers and database

2020-03-01 Thread rufusroflpunch
Treeform, that is great!

Re: Async web servers and database

2020-03-01 Thread JohnAD
An alternative is to have a pooled driver that is friendly to async. My MongoDb driver does this: `mongopool` (on nimble). Essentially, the connections to the database are pooled and used dynamically by the server threads. So no slow down at scale. With postgresql and mysql this is not as

Re: Async web servers and database

2020-03-01 Thread treeform
Also don't forget mine! [https://github.com/treeform/pg](https://github.com/treeform/pg)

Re: Async web servers and database

2020-03-01 Thread mrhdias
I find this repos for mysql and postgresql: [https://github.com/wiml/nim-asyncmysql](https://github.com/wiml/nim-asyncmysql) [https://github.com/cheatfate/asyncpg](https://github.com/cheatfate/asyncpg)

Re: Async web servers and database

2020-03-01 Thread dom96
Nope, you're correct. Someone needs to create an async mysql/sqlite/postgres etc. driver.

Async web servers and database

2020-02-28 Thread rufusroflpunch
Coming from other runtime environments with async support such as Python, one thing I have seen is that in order to take full advantage of async web servers, you need async database support. It doesn't seem in nim that the DB clients support async connections, which would lead me to believe