⚡ Python 3.12 (ASGI)

Deploy High-Performance FastAPI to Production in 60s

Deploy asynchronous Python FastAPI APIs with Uvicorn ASGI workers, automated OpenAPI docs, zero-downtime rollouts, and automatic SSL.

Git Push Deploys
Auto TLS 1.3 SSL
Managed PostgreSQL / Redis / SQLite
Zero Downtime Rollouts

💻 CLI Quickstart

1-Step

Install the Deployxa CLI and deploy your application directly from your terminal:

npm install -g @deployxa/cli
deployxa login
deployxa up --framework fastapi

📄 deployxa.json Blueprint

Optional

Optional manifest for custom workers, cron jobs, and build commands:

{
  "name": "fastapi-api",
  "framework": "fastapi",
  "runtime": "python-3.12",
  "build": "pip install -r requirements.txt",
  "start": "uvicorn main:app --host 0.0.0.0 --port 8000 --workers 4"
}

How to Deploy FastAPI to Production

Follow these simple steps to move your FastAPI codebase from local development to a globally scaled production environment.

01

Push Code to Deployxa

Deployxa detects main.py or app.py with FastAPI instance and packages dependencies.

02

Automated Dependency Caching

Pip wheels are cached between builds for lightning-fast 12-second deployments.

03

Uvicorn ASGI Startup

Multi-worker process management with auto-restart on unhandled exceptions.

04

Instant Public HTTPS

Access your API immediately on your custom domain or deployxa.app subdomain.

Production Architecture & Capabilities

Asynchronous Event Loop

Native Python asyncio execution for non-blocking I/O operations.

Automated TLS 1.3

Free Let's Encrypt SSL certificate provisioned automatically.

Recommended Environment Variables

Variable Key Description Production Example
ENV Runtime environment mode production
PORT Application listen port 8000
JWT_SECRET Token authorization secret secret_...

Performance Benchmarks vs Traditional Hosting

Benchmark Metric Deployxa Cloud Traditional VPS / Legacy PaaS
P99 Response Time 4ms 42ms
Cold Start 0ms 1.2s

Frequently Asked Questions

Can I run background tasks with Celery or Redis?

Yes, Deployxa allows you to attach Redis queues and run Celery workers alongside your FastAPI API.

How many workers should I configure for Uvicorn?

We recommend 2 to 4 workers per CPU core. Deployxa auto-tunes this based on your assigned container tier.

Ready to ship your FastAPI app?

Get your live HTTPS production URL with zero server management in under 60 seconds.