Topic archive
Infrastructure
General development tips, troubleshooting, and engineering guides.
-
Canary Releases With Automated Rollback on Kubernetes: Flagger and Istio, Run and Recorded
A Flagger v1.45.0 + Istio 1.31.0 canary on kind: a healthy candidate promoted in five weight steps, a candidate returning HTTP 500 rolled back after five failed checks, the VirtualService weights at every step, and the metric-window mistake that almost rolled back the healthy one.

-
Blue-Green Deployments in Kubernetes: What a Service Selector Switch Actually Does, Measured
Blue and green Deployments, a Service selector switch under a 50 ms request loop, readiness gating, a failure-then-revert sequence, and the merge-patch trap, all recorded on kind with Kubernetes 1.34.11.

-
Percentage Rollouts in Application Code: Bucketing, Cohort Correlation, and a Flag Metric With a Denominator
A tested Node.js flag evaluator with user, segment and percentage toggles: measured bucket distribution, why hashing the user id alone gives every flag the same cohort, and an evaluations counter whose exposition passes promtool.

-
API Key Rotation and Revocation: A Verifier That Stores Hashes, Overlaps Two Keys, and Cuts a Key Off on the Next Request
A tested Python 3.14 / Flask 3.1 key store: public id plus 256-bit secret, SHA-256 at rest, hmac.compare_digest, rotation with a grace window that both keys survive and one does not, revocation that beats the window, and a log that never sees the secret. Plus what the earlier version’s code did when run.

-
Backpressure, Rate Limiting and Load Shedding in an API Gateway: Three Different Things, Measured
A dependency-free Java gateway with a token bucket, a bounded queue and a downstream timeout, each measured under 50 concurrent requests; a JDK Flow API run that shows what backpressure actually is; and the published Node.js example run as printed, which answered 500 to every admitted request.

-
Building Production-Ready Webhooks with Retries and Dead Letter Queues
Discover best practices to implement robust webhooks using retries and dead letter queues to ensure reliable event delivery and system resilience.

-
Implementing Distributed Cache Invalidation Strategies for Consistent Data
Explore key strategies and a practical Redis Pub/Sub example to implement consistent distributed cache invalidation.

-
Implementing Rate Limiting with Token Bucket Algorithm in High-Traffic APIs: A Dev Guide
A practical guide to applying the token bucket algorithm for effective rate limiting in high-traffic API environments.
