I'm always excited to take on new projects and collaborate with innovative minds.
say@bplbmki.in
https://www.bplbmki.in/
ASGI vs WSGI
Install FastAPI + Uvicorn
Project structure (modular & scalable)
.env + python-dotenv
App factory pattern
Path/query parameters
Dependency injection with Depends
Pydantic response models
Custom responses, headers, cookies
Methods: GET, POST, PUT, DELETE, PATCH
JSON body validation
File upload (form-data, multipart)
Versioned API strategy
SQLAlchemy 2.0 ORM (declarative)
DB config via settings.yml
Pydantic β SQLAlchemy bridge
Sync/Async engine setup
Entity β Repository β Service β Controller
AbstractBaseRepository (generic CRUD)
Use session in service layer only
Auto rollback/commit flow
Postgres + Redis + SQLite bindings
DB router logic
Redis caching (fastapi-cache2)
Alembic migrations per environment
OAuth2 + JWT (access + refresh)
Password hashing (bcrypt/passlib)
Role-based auth
3rd-party login (Google, GitHub)
httpx.AsyncClient usage
Circuit breaker with Tenacity
Call Spring Boot APIs or external LLMs
Internal auth tokens
BackgroundTasks in FastAPI
APScheduler (cron + interval jobs)
Event-driven architecture intro
CORS, GZip, logging middleware
Scoped DB session via middleware
Custom exceptions & handlers
Pytest with FastAPI test client
Unit + Integration tests
Mock DB/HTTP
GitHub Actions CI pipeline
Build Auth/User/Feed services
Shared schema package (Pydantic)
Service discovery (DNS/Consul)
Inter-service comm with tokens
Multi-stage Dockerfile
docker-compose.yml with FastAPI + DB + Redis
Environment-specific overrides
Helm chart for each service
YAMLs for Deployment, Ingress, ConfigMap
Health checks, rolling updates
Async routes, httpx, asyncpg, Redis
Async SQLAlchemy 2.0
Concurrency patterns
Kafka / RabbitMQ setup
Pydantic schemas for messages
Producer/Consumer services
FastAPI Admin dashboard
Prometheus + Grafana setup
Logs, metrics, uptime checks
Tokens, context windows, embeddings
Prompt engineering (zero-shot, few-shot, CoT)
OpenAI, Ollama (LLaMA, Mistral), HuggingFace models
API vs self-hosted comparison
Embed text via Sentence Transformers/OpenAI
Store in Chroma, Pinecone, Weaviate
Search + merge results into LLM prompt
Endpoints: /chat, /embed, /agent, /upload
Prompt router + memory handler (Redis)
Token/session tracking + rate limiting
LangChain for tools, memory, agents
Chain: User β Embed β Retrieval β LLM β Output
WebSocket / SSE streaming
Topics: query_event, feedback_event, usage_event
FastAPI β Kafka logs
Spring Boot Kafka consumers
Kafka β Spark / Beam
Real-time intent tagging, sentiment, analytics
Store in S3 + Data Warehouse
DWH: BigQuery / Snowflake / Redshift
Tables: query_fact, user_dim, model_usage_fact
BI tools: Superset, Metabase, Grafana dashboards
Whisper / Deepgram STT
ElevenLabs / Coqui TTS
Per-user vector memory
Session profiles + preferred config
JWT with rate limits
Stripe / Razorpay billing
Usage metering + tiered plans
Β
β Auth Service (FastAPI)
β LLM Gateway (FastAPI)
β Spring Boot Services (Billing, Profile, Config)
β VectorDB RAG Engine
β Kafka + Spark Stream Analytics
β Frontend: Vue.js (chat + upload)
β Docker + K8s Deployment (Helm)
β Monitoring + Dashboards (Grafana + Metabase)