Prototype works, but scale issues – auth, DB, testing, deployment? Real-world config?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Key configs: Depends() dependency injection everywhere. Background tasks Celery. DB: asyncpg pool. Monitoring: Prometheus + Grafana. Docs: Custom OpenAPI tags. Security: CORS strict, helmet equiv. Docker multi-stage build. CI: GitHub Actions pytest + black. Scaled to 1M users, zero downtime deploys.
Hey James, Production stack:
1) SQLAlchemy async + Alembic migrations.
2) FastAPI Users (OAuth/JWT).
3) Pydantic v2 strict models.
4) Docker + Gunicorn 4workers/CPU.
5) Redis slowapi rate limit.
Tests: 90% coverage pytest-httpx. Deploy Railway/DigitalOcean. Handled 50k req/min stable.