4 ms·
True but such foundational code is rarely kept synchronous in prod, you'd usually have a coroutine (or equiv) and await the reply, or timeout after X seconds? I
by intelVISA 3y ago
True but such foundational code is rarely kept synchronous in prod, you'd usually have a coroutine (or equiv) and await the reply, or timeout after X seconds? Installing a random, kinda crappy, third party service like Consul seems overkill imo
- spiffytech 3y agoDepending on your request rate and how much higher the latency is than usual, I could see wanting a tool with full-system visibility rather than just independent timeouts at the call site. Some examples of holistic problems: How many partially-processed requests can you hold in memory at once as they pile up under that delay? If the downstream service suddenly fulfills all the pending requests at once, does the thundering herd cause your service to overload other systems?