Urgent.News

What's breaking now, across thousands of outlets.

Tech

Failed Webhook Backoff and DLQ Redrive for 3 Marketplace Deadline Guarantees

Short answer: A marketplace renewal reminder should enter the dead-letter queue when another attempt cannot finish before its business deadline; use at-least-once delivery, a stable idempotency key, exponential backoff with jitter, and explicit redrive rather than retrying forever. A queue can accept every job and still fail the business requirement if retries wake after the offer, reservation,…

A marketplace must deliver reminders within a specific deadline to avoid failures. When an attempt cannot complete before the deadline, the reminder should go to the dead-letter queue. Proper handling involves using at-least-once delivery, stable idempotency keys, exponential backoff with jitter, and explicit redrive. A queue can accept all jobs, but if retries occur after the window closes, the business requirement will still be missed.

Exponential backoff with jitter prevents synchronized failure waves and controls pressure, but it doesn't guarantee delivery. The business deadline is the contract, not the number of retries. Each successful reminder should have a durable delivery ID, and the consumer must treat it idempotently. The scheduler won't initiate new automatic attempts if the estimated completion time surpasses the business deadline.

Just like in exact-once delivery scenarios, at-least-once delivery with receiver-side idempotency is a safer choice. The message should carry both business and delivery state separately, and the deadline should always be included. The visibility timeout is an operational tool, not proof of message processing. Acknowledge only after classifying the result and persisting the state transition.

If the process dies between the remote commit and the local acknowledgement, another worker will attempt the same delivery ID, handling duplicates. The deadline should be managed as a state machine, classifying response types, and treating retryable errors appropriately. Authentication failures should be quarantined and escalated.

Here's a simple Python model to manage the scheduling decision. It's a pure function, making it easier to test the boundary conditions. This model can be used in any worker language, as long as the same fields and transition rules are applied.

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

Idempotency for Reliable APIs

Why idempotency matters When you build an API, retries are inevitable. Clients lose connections, timeouts happen, and users double-click buttons.

  • Idempotency prevents duplicate actions and side effects in APIs
  • HTTP GET, PUT, DELETE are inherently idempotent while POST isn't
  • POST idempotency achieved via unique Idempotency-Key header

Stop guessing your mana curve: Deterministic math vs LLM intuition

If you've ever played a competitive TCG—Magic: The Gathering, Pokémon, Lorcana—you know the feeling. You spend three hours tweaking a list.

  • TCG Mana Curve Analyzer tool uses deterministic hypergeometrical distribution logic
  • Eliminates guesswork in deckbuilding calculations
  • Provides precise land counts, mana consistency, and mulligan strategies

Building a High-Performance Fan Speed & Temperature Manager with C# and .NET

Hello, I'm Dr. Jhonatan. I recently published an open-source Windows Forms application built with C# / .NET designed for real-time hardware temperature monitoring and dynamic PWM fan speed control…

  • Dr. Jhonatan unveils open-source Windows Forms app called Cooler Speed Change & Management
  • Features real-time monitoring, dynamic PWM fan control, async/await for precise telemetry
  • Multi-language support with UI in 8 languages, source code on GitHub

Architecting a Low-Power GPS Geofencing Engine for Android Background Services

The atmosphere in the room was dense, the kind where every whisper echoes. I was sitting in the third row of a local community center during a Friday prayer session, my head bowed in reflection.

  • Architect designed low-power GPS geofencing engine for Android background services.
  • Implemented ForegroundService to bypass Android Doze mode reliability issues.
  • Prioritized battery efficiency over accuracy with 50-meter geofence variance.

More from Saturday 29 August →