Urgent.News

What's breaking now, across thousands of outlets.

Tech

Your zero-downtime deploy is probably fine. Check your p99 before you believe it.

I went looking for dropped requests during a rolling restart and found something more annoying than dropped requests: a deploy that looks perfect and isn't. Setup is deliberately boring. Two Node/Express replicas behind nginx, ten clients hammering an endpoint that takes three seconds, docker stop on one replica halfway through. The app is the version most of us have shipped at some point, with…

The article discusses a scenario where a zero-downtime deploy appears successful but actually fails during the process. The setup includes two Node/Express replicas behind Nginx, with a ten-client load test on an endpoint that takes three seconds to complete. During a Docker stop on one replica, the app's lack of signal handling results in mid-flight requests dying.

Unexpectedly, Nginx detects the upstream connection drop and retries the request, causing clients to experience twice the latency. While error rate metrics may appear flawless, latency metrics reveal a spike during each deploy, which may be overlooked. The author explains that once headers are in transit, Nginx cannot prevent the retry.

The solution involves removing the instance from the load balancer before sending SIGTERM, ensuring no requests are sent to a non-responsive instance. This approach eliminates the issue, as demonstrated by a zero-failure rate during testing. The article emphasizes the importance of monitoring latency rather than just error rates to detect potential issues during deploys.

Written by urgent.news from Dev.to's reporting — not their text. Machine-written — may contain errors; check the original before relying on it.

Read the original at dev.to →

More in Tech

Matt Haughey: ‘The Car Industry a/B Tested Selling a Car With and Without CarPlay and the Results Are Not Shocking’

Matt Haughey: One case in point is the Honda Prologue EV. It’s a partnership between Honda and Chevrolet, where the Prologue is basically a Chevy Blazer EV with Honda badges, slight visual differences…

  • Honda Prologue outsells Chevrolet Blazer by 43%, 73%, and 166% in three periods
  • Prologue includes Apple CarPlay and Android Auto integration, unlike Blazer
  • In 2026, consumers purchase Prologue 1.5 times more often than Blazer

Building a Birthstone Lookup Into a Gift-Shop Checkout: An Engineering Walkthrough

If you run an online gift shop, you eventually hit a question that looks nothing like an engineering problem until it becomes one: "Can the customer just type their birthday and get the right…

  • Multiple birthstone lists exist, such as U.S. traditional, modern, mystical, and Ayurvedic
  • Systems must handle various calendar formats like DD/MM/YYYY and MM/DD/YYYY
  • Birthstone data stored in JSON file for maintainability and easy updates

The three-state dark mode toggle is the correct answer

An application should not take away the decision a user has previously selected. That is the main point of the argument. All other details are insignificant.

  • Three-state dark mode toggle proposed as solution
  • Addresses time-of-day bug in two-state toggles
  • Adopted by GitHub, StackOverflow, CodePen

More from Sunday 6 September →