Skip to content

Latest commit

 

History

History
16 lines (13 loc) · 490 Bytes

File metadata and controls

16 lines (13 loc) · 490 Bytes

FastAPI DB Optimization Demo

A small service that demonstrates async FastAPI, PostgreSQL connection pooling (asyncpg), simple in-memory caching, and Kubernetes manifests.

Quick start (Docker Compose)

python -m venv .venv && source .venv/bin/activate
pip install -r requirements.txt
docker compose up -d
# Seed sample data:
psql postgresql://postgres:postgres@localhost:5432/appdb -f app/db/init.sql
# Query:
curl "http://localhost:8080/items?q=widget"