Posts about devops

5 posts

  1. Zero-downtime schema migrations with expand and contract

    Old and new code run side by side during every deploy. Here is how to change a database schema in small, safe steps so neither version breaks.

    3 min read

  2. Graceful shutdown: handling SIGTERM without dropping requests

    Every deploy stops your old processes. Here is how to handle SIGTERM so in-flight requests finish, connections close cleanly and users never notice.

    3 min read

  3. Structured logging: why your logs should be JSON

    Plain text logs are easy to write and hard to search. Here is how structured logs with consistent fields make debugging production services faster.

    2 min read

  4. Liveness vs readiness: writing health checks that actually help

    What liveness and readiness checks are for, why mixing them up causes restart loops, and how to write health endpoints that tell your platform the truth.

    3 min read

  5. Smaller Docker images with multi-stage builds

    How multi-stage Dockerfiles keep compilers and dev dependencies out of your final image, with a simple Node example and a few habits that help.

    2 min read