Mehdi Akiki

Posts tagged "networking"

  • Published on

    Investigation · Part 2 of 10 · Following a TCP connection

    The Accept Queue: What Happens When a Server Accepts Too Slowly

    A successful connect() does not mean that the server program saw you. I filled the accept queue of a local server and watched clients connect, send data and wait, while the kernel kept their connections in a queue, half open, or nowhere at all.
  • Published on

    Investigation · Part 1 of 10 · Following a TCP connection

    What Happens When Your Program Calls connect()

    On my laptop connect() returns in about 8 microseconds, and the same call can also block for 133 seconds. I followed it with strace and ss: the handshake that the kernel does alone, a port where nobody listens, and a server that never answers.
  • 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.
  • Published on
    What actually happens between bytes arriving on a socket and your gRPC handler running? This article walks one real request through every parsing layer — TCP, HTTP/2 frames, HPACK, gRPC envelope, protobuf — so the magic disappears.
  • Published on

    Article · Through the layers

    WebSockets From the Wire Up

    Most WebSocket tutorials start at the API. This one starts at the wire — electrons, NIC interrupts, kernel socket buffers, the TCP state machine, the HTTP upgrade handshake, the binary frame format — and works up to what ws.send() actually does.