Posts about devops
5 posts
-
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.
-
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.
-
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.
-
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.
-
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.