java
6 minJava deadlines: spend one budget across every stage
Separate elapsed time from civil time and carry a shrinking deadline through a request.
Loading page...
java
6 minSeparate elapsed time from civil time and carry a shrinking deadline through a request.
Q&A
Q&AFresh timeouts at each stage multiply the total wait.
Measure elapsed time locally with nanoTime and give each stage only the shared budget remaining. Expiry stops admission of more work; it does not prove a remote write was cancelled.
Q&A
Q&ABound concurrency and queue depth at the scarce resource, and enforce an end-to-end deadline.
Use bounded connection pools, semaphores or worker queues, request deadlines, and deliberate overload responses. Local limits must account for replica count because each replica has its own pool. Avoid unbounded in-memory tasks and retries that amplify load during an incident.
Q&A
Q&AReadiness decides whether traffic reaches a pod, while liveness decides whether the container needs a restart.
Readiness is a traffic signal: if it fails, the pod is removed from service endpoints and users are not routed to it. Liveness is a health check for the process itself: if it fails, Kubernetes restarts the container. A pod can be alive but not ready, and that is often the correct state during startup or dependency warm-up.
kubernetes
10 minDeployments are easy to start and hard to trust. Learn how readiness probes, rollout strategies, and traffic shaping keep Kubernetes services stable during real releases.
distributed systems
9 minSeparate consistency guarantees from delivery guarantees and design for the partial failures that make retries necessary.
Q&A
Q&AReadiness, termination grace, endpoint withdrawal, and ingress draining may be misaligned.
Check whether readiness turns true before the app can serve, whether shutdown stops accepting work too early, and whether terminationGracePeriodSeconds/preStop allow endpoint withdrawal and connection draining. Also inspect maxUnavailable/maxSurge and ingress upstream errors. Correlate events, endpoint changes, and 502 timestamps before tuning a single probe.
kubernetes
6 minUnderstand eviction admission, readiness accounting, and why a drain can correctly refuse to proceed.