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.
💻 CLI Quickstart
1-StepInstall 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
OptionalOptional 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.
Push Code to Deployxa
Deployxa detects main.py or app.py with FastAPI instance and packages dependencies.
Automated Dependency Caching
Pip wheels are cached between builds for lightning-fast 12-second deployments.
Uvicorn ASGI Startup
Multi-worker process management with auto-restart on unhandled exceptions.
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.