full-stack-fastapi-template icon indicating copy to clipboard operation
full-stack-fastapi-template copied to clipboard

Async not used

Open naidu-rohit opened this issue 4 years ago • 5 comments

The template does not use async at all. Is there any particular reason for that? Do celery, sqlalchemy etc work with async? How much code will have to be changed for async?

naidu-rohit avatar Aug 07 '20 09:08 naidu-rohit

I was trying to find out that info. So no asyncpg?

KrunchMuffin avatar Aug 16 '20 00:08 KrunchMuffin

I couldn't find a way to use sqlalchemy with async-await for my previous project so I decided to use the Databases package

theonesud avatar Aug 26 '20 14:08 theonesud

For database async application, tortoise-orm is fine too.

littleforce163 avatar Oct 09 '20 14:10 littleforce163

sqlalchemy 1.4 enables async use of the ORM

jamesgalt-paminnov avatar Feb 05 '21 21:02 jamesgalt-paminnov

I had similar/related doubts (why the examples were using blocking operations) and I was missing some background information that I found reading this comment and the technical details in the fastapi documentation

But particularly for your question you should find your answer here:

gerazenobi avatar Mar 13 '21 17:03 gerazenobi