
Graceful Shutdown in Node.js Production Services
Most Node.js services silently drop in-flight requests on every deploy. Here's how to handle SIGTERM correctly, drain connections, and exit cleanly in Kubernetes.
Tags
15 articles

Most Node.js services silently drop in-flight requests on every deploy. Here's how to handle SIGTERM correctly, drain connections, and exit cleanly in Kubernetes.

Configure Kubernetes liveness, readiness, and startup probes correctly to prevent cascading failures, avoid unnecessary restarts, and ensure traffic only reaches pods that are genuinely ready to serve requests.

A practical guide to implementing GitOps workflows using Flux and ArgoCD, covering repository structure, drift detection, automated reconciliation, and progressive delivery through pull requests.

A practical guide to implementing zero-downtime deployment strategies including blue-green deployments, canary releases, and rolling updates with automated rollback mechanisms.

Understand service mesh architecture through practical Istio and Linkerd examples covering traffic management, mutual TLS, observability, and circuit breaking, with honest guidance on when a service mesh adds value versus unnecessary complexity.

Implement GitOps workflows that manage Kubernetes infrastructure through pull requests using ArgoCD and Flux, with practical examples of repository structure, sync policies, health checks, and rollback strategies.

Master Kubernetes resource requests, limits, QoS classes, Horizontal Pod Autoscaler, Vertical Pod Autoscaler, and cluster autoscaling with practical configurations that balance performance, cost, and reliability.

Implement robust secrets management using HashiCorp Vault, AWS Secrets Manager, and sealed secrets with patterns for rotation, injection, least-privilege access, and preventing secret sprawl across microservices.

Implement GitOps workflows with ArgoCD for Kubernetes infrastructure management, covering application-of-applications pattern, secret handling, drift detection, multi-cluster sync, and progressive rollout integration.

Implement GitOps workflows using declarative configurations and Git-driven deployment pipelines that bring version control, auditability, and reproducibility to Kubernetes cluster management.

Master Kubernetes network policies to control pod-to-pod traffic, implement microsegmentation, and build defense-in-depth for your cluster workloads.

How to set CPU and memory requests and limits in Kubernetes correctly — avoiding OOMKills, CPU throttling, and wasted cluster capacity with practical sizing strategies.

How to store, rotate, and distribute secrets securely across environments — covering HashiCorp Vault, AWS Secrets Manager, and Kubernetes secrets.

A hands-on guide to Kubernetes Pods, Deployments, and Services — covering the core abstractions you need to run production workloads.

Running one container is easy — orchestrating hundreds across multiple hosts requires scheduling, networking, service discovery, and self-healing, which is exactly what Kubernetes provides.