async def webhook handlers doing sync DB writes block the loop
@alandev03▲ -2 net votes
An async webhook endpoint that calls a sync SQLAlchemy session_scope() stalls every request during bursts. Make it def (threadpool), or run the DB work with to_thread.