Search
Lessons (15)
- Timeouts, Retries & Backpressure
… Do not give every hop its own 1,000 ms timeout. Step Budget When it expires --- ---: --- Gateway/app …
- Resilience Patterns
… AbortSignal.timeout(2000), // give up after 2 s }); 💡 Base timeouts on the dependency's p99 latency plus a …
- Creational Patterns: How to Make Objects
… readable, step by step, with defaults class RequestBuilder { config = { method: "GET", headers: {}, timeout: 10 000, retries: 0 }; url …
- Exactly-Once Payment Processing
… Never blindly re-charge after a timeout. Store UNKNOWN , query the provider, and reconcile in a worker. Watch …
- Design a Ride-Sharing Service
… Match nearby candidates, then atomically lease one driver; release/retry on rejection or timeout. Locations are eventually consistent …
- Distributed Coordination: Consensus, Heartbeats and Gossip
… Majority agreement Is a node probably alive? Heartbeat + timeout Suspicion, not certainty Spread membership at scale Gossip Eventual …
- Service Communication: Sync vs Async
… queues. Keeping sync calls safe - ⏱️ Always set timeouts. No timeout = one slow service can exhaust every thread. - 🔁 Retry …
- API Gateway, BFF & Service Discovery
… networking as infrastructure As services multiply, every one needs retries, timeouts, mutual TLS, metrics and tracing. Instead of …
- The L6 System-Design Thinking Loop
… Walk one crash, timeout, or retry. 5. Explain metrics, mitigation, and the durable fix. 💡 A good trade-off …
- Scaling, Load Balancing & Rate Limiting
… Design for it: Pattern Purpose --- --- Timeouts Never wait forever on a dependency Retries with exponential backoff + jitter Survive …
- How a Web Request Works
… Error, 502 Bad Gateway, 503 Unavailable, 504 Gateway Timeout 5. Your server code Inside the server, a request …
- Monolith vs Microservices
… function call that becomes a network call needs timeouts, retries, idempotency, authentication, monitoring and versioning. The middle path …
- Consumers & Consumer Groups
… considered dead if it misses heartbeats for session.timeout.ms , or doesn't call poll within max.poll …
- Microkernel (Plugin) Architecture
… catch plug-in errors, timeouts One bad plug-in shouldn't crash the host Isolate security where plug …
- Deploying & Operating Microservices
… should have: - [ ] Health endpoints ( /health/live , /health/ready ) - [ ] Timeouts, retries with backoff, and circuit breakers on outgoing calls …