Mehdi Akiki

Writing archive

Everything published under Writing, newest first. Each entry is labelled as part of an investigation, an article or reference. Short engineering notes have their own archive.

  • Published on

    Reference · Interrupted execution

    What an Idempotency Key Is (and How to Build One)

    A request times out, you retry, and now the customer is charged two times. An idempotency key is the small idea that makes retries safe. Here is what it is and how to build one.
  • Published on
    The right way to learn Kafka is to build a tiny log broker — not a fake queue with ack/delete. One topic, one log file, one offset per consumer group. That is the whole model.
  • Published on
    Most Kafka vs RabbitMQ comparisons say it depends and stop there. This article cuts through the noise by asking one key question about what your system is actually trying to preserve, and maps that directly to the right tool.
  • Published on

    Reference · Through the layers

    The 4 Real Reasons Kafka Is Fast

    "Kafka is fast" is correct but too abstract. Here is the concrete version: four cheap operations that explain why Kafka handles millions of messages without breaking a sweat.
  • Published on
    Learn load balancing from scratch: build a production-ready load balancer with sticky sessions in Go. Complete with WebSocket support, health checking, rate limiting, and real-world deployment strategies.