BotNetwork

Run broadcasts on a separate worker

Run broadcasts on a separate worker

Published 1 min read

Takeaway

Run broadcasts on a separate worker

Why

Fan-out jobs will starve interactive latency if they share the webhook process.

Do this

  1. Enqueue broadcast recipients; ACK the admin command immediately.
  2. Rate-limit sends to stay under platform budgets.
  3. Give the worker its own concurrency cap and kill switch.

Tools