Is it really advisable to try to run fastapi with predominantly sync routes in a real world application?

This page summarizes the projects mentioned and recommended in the original post on /r/FastAPI

Our great sponsors
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • WorkOS - The modern identity platform for B2B SaaS
  • SaaSHub - Software Alternatives and Reviews
  • starlette

    The little ASGI framework that shines. 🌟

  • In this thread, starlette people admitting they don’t have anywhere near the tuning features necessary for more heavily sync oriented people https://github.com/encode/starlette/issues/1724

  • fastapi

    FastAPI framework, high performance, easy to learn, fast to code, ready for production

  • Lack of docs explaining how to deal with configuring timeouts which is absolutely essential when using sync workers, and for example this absolute trainwreck of a discussion about configuring timeouts, which the lead dev / creator of fastapi fails to contribute to or offer any guidance https://github.com/tiangolo/fastapi/discussions/7364

  • InfluxDB

    Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.

    InfluxDB logo
  • asgiref

    ASGI specification and utilities

  • dispatch

    All of the ad-hoc things you're doing to manage incidents today, done for you, and much more!

  • mangum

    AWS Lambda support for ASGI applications

  • In the real world I'm never using static cloud resources. It's all serverless, containers, or horizontal auto-scaling. I let the infrastructure handle asynchronous scaling when needed. For FastAPI specifically I've used Mangum: https://mangum.io/ to provide the asynchronous invocation below the ASGI layer. Then all my FastAPI code can just be synchronous.

  • WorkOS

    The modern identity platform for B2B SaaS. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.

    WorkOS logo
NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts