↓ Skip to main content

#fastapi

7 posts

Posts

  1. Real-Time WebSockets with FastAPI and Redis

    Build a FastAPI WebSocket server, scale it across instances with Redis Pub/Sub, and handle pings, auth, Nginx proxying and client reconnects with backoff.

    7 min read Backend

  2. Python Logging Best Practices with structlog

    Python logging best practices: stdlib logging rules, JSON logs with structlog, request IDs, redacting secrets, OpenTelemetry trace IDs, common mistakes.

    7 min read Python

  3. Building a Reliable Webhook Handler in Python

    A reliable webhook handler in Python and FastAPI: HMAC signature checks, replay protection, a durable inbox table, idempotent processing and event fan-out.

    8 min read Backend