Skip to main content
FastAPI is a modern, high-performance web framework for building APIs with Python. It is designed for speed, ease of use, and automatic validation, leveraging Python type hints to generate interactive API documentation and ensure data correctness. FastAPI supports asynchronous programming, making it ideal for handling high-concurrency applications, while integrating easily with databases, authentication systems, and other web technologies.

Application settings and deployment

The Deployment section guides you through an example FastAPI app using SQLModel. It includes how to configure the database models, pydantic-settings and main.py. It also covers creating a database in Sevalla and choosing between Nixpacks or a Dockerfile, with guidance on configuring your application based on the selected deployment method and instructions for deploying the application.

Background tasks

The Background Tasks section explains how to add background task workers to your FastAPI app using Celery and Redis.

Caching

The Caching page explains how to configure the FastAPI-Cache library using Redis and how to fully leverage Sevalla’s CDN and edge caching to maximize performance.

Health checks

Health checks explains the options available to integrate health check endpoints into your FastAPI app for zero-downtime deployments.