↓ Skip to main content

Category: Backend

15 posts

Posts

  1. Apache Kafka Event Streaming with KRaft and Python

    Event streaming on Kafka 4 without ZooKeeper (KRaft): partition sizing, a no-loss producer, offset commits and rebalance tuning, with confluent-kafka in Python.

    8 min read Backend

  2. gRPC High-Performance APIs with Python asyncio

    Service-to-service APIs with gRPC and Protobuf: grpcio asyncio server and client, streaming, deadlines, interceptors, schema evolution, HTTP/2 load balancing.

    7 min read Backend

  3. 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

  4. Elasticsearch Full-Text Search in Production

    Full-text search with Elasticsearch 8/9 and the Python client: strict mappings, language analyzers, zero-downtime reindexing with aliases, shards, pagination.

    8 min read Backend

  5. Celery vs Arq: Async Task Queues in Python

    Celery vs Arq for Python task queues: safe Celery settings, an async Arq worker, idempotency, visibility timeouts, retries and Arq's maintenance mode.

    8 min read Backend

  6. 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

  7. Redis Caching and Session Management in Python

    Redis caching and session management with redis-py asyncio: cache-aside with stampede protection, server-side sessions, Streams, locks and eviction policies.

    8 min read Backend