In-flight request tracking is a core architectural concern in distributed systems. This post explores correlation, timeouts, locality, atomic state transitions, and recovery through examples from card payments and HTTP/2.
Blind retries can duplicate side effects; resilient systems need business-aware reconciliation, idempotency, or compensation when outcomes are uncertain.
This post explores the pitfalls of relying on production traffic to validate changes and offers better strategies like canary releases, shadow traffic, synthetic traffic, and smoke tests to reduce risk and catch issues early.
Mirror live traffic to a secondary system for migration testing or out-of-band inspection. Responses stay off the primary path, but sidecar overhead and parallel infrastructure still need evaluation.
Persistent HTTP/2 connections can concentrate gRPC requests on a few instances. Use request-aware load balancing or client connection pools to distribute traffic.
Availability reroutes traffic around failures; resiliency defines how processing continues or recovers. Cached configuration illustrates how to survive a failed dependency.
Canary releases limit exposure through gradual traffic shifts but require versions to coexist. Compare that complexity with blue/green cutovers against the risk your system can tolerate.
During shutdown, fail readiness checks while keeping the listener open until routing updates propagate and in-flight requests drain, then stop accepting connections.
Persistent gRPC connections can keep sending requests to old instances during failover. HTTP/2-aware load balancing or periodic reconnection helps move that traffic.
Store requests during a dependency outage and forward them after recovery. Store and Forward requires degraded responses, failure detection, and controlled replay instead of blind retries.
In this post, we explore how minor oversights like not setting timeout values can exacerbate issues in services, and the importance of testing failure scenarios to mitigate such risks.