Urgent.News

What's breaking now, across hundreds of outlets.

Tech

Engineering Resilient Webhook Systems: Retries, Backoff, and Queue Mechanics

Webhook delivery sits at the boundary between decoupled distributed systems. Basic queue-and-retry tutorials cover exponential backoff and dead-letter queues. Production webhook infrastructure fails at the edges: system clocks that disagree across containerized workers, batched payloads that fail partially, and retry schedules that outlive the business windows they exist to serve. Provider…

Webhook delivery connects decoupled distributed systems but can fail at the edges due to system clock disagreements, partially failed batched payloads, and overly long retry schedules. Different providers have varying practices; GitHub requires manual redelivery or scripts, Stripe retries live-mode events with exponential backoff for up to three days, and Svix publishes a fixed schedule spanning roughly 27.5 hours.

When building a sender, one must choose where on this spectrum to sit, with consequences beyond the backoff formula. Clock skew and drift in delayed webhook schedulers rely on time-ordered data structures like Redis sorted sets or relational scheduled_at indexes. However, mixing timestamps produced by different machines assumes machines agree on time, leading to premature retries, stalled retries, and lease expiry issues in homegrown lease queues.

To mitigate these issues, it's crucial to stop using uncoordinated node wall clocks as the source of truth for retry scheduling. Instead, use scheduling primitives that are resilient to clock skew. For Redis-backed schedulers, compute the score inside a Lua script from Redis's own clock, TIME, and then write it to the sorted set. This ensures that the retry scheduling is not affected by clock discrepancies across nodes.

Rewritten by urgent.news; may contain errors — check the original.

Source: dev.to

Read the original at dev.to →

Report a problem with this story

More in Tech

How to Reply to a TikTok Comment With a Video (2026): Pick One Real Comment, Stick to Your Facts, Script It in 25 Seconds

Full disclosure: I built a comment-reply script tool on Capafy, so I'm biased. Everything below works with a notes app, the comment you want to answer and about fifteen minutes.

  • Select a real comment worthy of a reply, such as a question or objection.
  • Write only confirmed facts like numbers, experiences, and limitations.
  • Draft three reply angles: direct answer, demonstration, or reframed perspective.

When a review sends the plan back

First published on openspec-ui.dev . A tester ran Review on an OpenSpec change and got five things to fix. They ran Propose again and saw no change in the files.

  • Review sends plan back for changes
  • Tester identifies five necessary fixes
  • Verdict "changes needed" triggers Update stage

How to Evaluate and Block SQL Injection Attempts Hidden in JSON Bodies

An API can reject suspicious query strings while still accepting dangerous input inside a JSON request body. A search endpoint might receive {"filter":"pending"} , then concatenate that value into a…

  • Identify endpoint and set safe test conditions
  • Install SafeLine WAF to filter HTTP/S traffic
  • Test JSON bodies in controlled environment

More from Sunday, 29 November 2026 →