Urgent.News

What's breaking now, across thousands of outlets.

Tech

The Timeout Math That Breaks Your Retry Loop

Your client has a 10-second timeout and three retries. You expect a worst case of roughly 30 seconds. Your caller, who put a 30-second deadline on the whole operation, disagrees — and finds out when their request dies anyway. The problem is that most retry loops treat timeouts as per-attempt values with no global budget. By the end of this article you'll be able to compute a real worst-case…

The article discusses the issue of per-attempt timeouts in retry loops and how they can lead to exceeding a caller's deadline. It explains that a timeout on a single HTTP attempt only bounds one connection and does not take into account the total time of the operation. The author introduces a method to budget the deadline across attempts, starting from the total time the caller is willing to spend and dividing it among the attempts.

This approach ensures that the timeout for each attempt is capped by the remaining budget, preventing any single attempt from outliving the caller's deadline. The article also emphasizes the importance of propagating the deadline down the call stack, so that each layer of the system knows the remaining time for its operations.

Brief written by urgent.news from Dev.to's own syndicated text. Machine-written — may contain errors; check the original before relying on it.

Read the original at dev.to →

More in Tech

When the Freezers Went Warm: Did a Maintenance Connection Expose Europe's Cold Chain?

When the Freezers Went Warm: Did a Maintenance Connection Expose Europe's Cold Chain? Somebody turned Europe's supermarket freezers up to 50 degrees without setting foot in a single store.

  • Unexpectedly heated freezers reached 50°C without human intervention.
  • Temperature abnormalities reported in multiple European supermarkets.
  • Vulnerability exploited via remotely controlled refrigeration systems.

A guardrail that decides at the door lets the intruder walk in later

I report security bugs in AI-agent guardrails, and I keep finding the same shape of bug. This is the first one that's fully public, so I can show you the whole thing — the finding, the fix that…

  • Flaw in AI-agent guardrails allows dangerous actions to bypass security measures
  • Stringly-typed guardrails consistently fail, permitting unchecked actions
  • CleiMesh proposes alternative solution with signed, delegable tokens for agent permissions

interview questions and answers based on real interview for Jibek

TELL ME ABOUT YOURSELF My name is Zhibek. I am a DevOps Engineer with more than 5 years of experience in AWS cloud. I started at Yelp in 2021, where I worked 4 years on high traffic consumer apps.

  • Zhibek has 5+ years of AWS DevOps experience, focusing on high traffic apps
  • At Yelp, she improved CI CD pipelines with GitHub Actions, reducing deployments by 35%
  • Zhibek is transitioning to leadership role at Herc Rentals

More from Monday 2 November →