LESSON 06 · Scheduling and load

Control when and how much to send

Respect send times, quiet hours, user frequency caps, and provider capacity.

SYSTEM VIEW

The delivery path

Diagram view
Campaign rate—
Done in—
Receipt age—

Watch an announcement to 1.2 million people leave in paced batches under two separate limits, while receipts keep a lane of their own.

  1. An announcement to 1.2 million people waits in the Scheduler as a due time and a recipient selection plan. The Scheduler doesn’t load every recipient into one process or fire the whole campaign in one second.

    Audience
    1.2 million people
    Stored
    due time + selection plan

    What changed

    • Campaign scheduled
    • 1.2M recipients planned
  2. At the due time, the Scheduler releases due intents in bounded batches through the Frequency cap into the Campaign queue. It follows each recipient’s time zone and quiet hours, and rechecks newly changed preferences.

    Released by
    zone, quiet hours
    Rechecks
    changed preferences

    What changed

    • Batches released at the due time
    • By time zone and quiet hours
  3. The Frequency cap stops one person receiving too many promotional messages: a recipient already at the cap is held while the rest of the batch passes. It protects people; it doesn’t protect the provider during a huge burst.

    Limits
    promos per person
    Doesn’t limit
    total send rate

    What changed

    • Recipient at the cap held
    • The rest of the batch passes
  4. Each provider account has a send-rate budget, as Amazon SES sets per account; this one allows 2,000 sends a second. The Provider quota keeps 200 of them for the Receipts queue, so the campaign gets 1,800. It protects the provider, not any one person.

    Quota
    2,000/s
    Receipts
    200/s reserved
    Campaign
    1,800/s

    What changed

    • Receipts queue
    • 200 of 2,000/s kept for receipts
    • Campaign gets 1,800/s
  5. At 900 sends every half second, 1,800 a second, the campaign’s 1.2 million take about 11 minutes: fine for marketing, unacceptable for a login code. Batches stay small enough for retries and per-recipient status; a list well within the quota may need no scheduler.

    Batch
    900 every 0.5 s
    Time
    1.2M ÷ 1,800/s: about 11 min

    What changed

    • 900 sends every 0.5 s
    • Done in about 11 minutes
  6. Watch the oldest receipt’s age, not only queue length. 200/s reserved: receipts keep a low age. None: the campaign takes all 2,000 a second, done in 10 minutes, and receipts age behind it. Drop stale promos only by expiry policy; never silently drop receipts.

    What changed

    • Receipts: reserved or waiting
    • Watch age, not only length
    Receipt reserve

Space plays · ← → step · Home resets

THE IDEA

How it works

A scheduled campaign stores a due time and recipient selection plan. A scheduler releases due intents into channel queues in bounded batches, taking account of time zones, quiet hours, and newly changed preferences. For a large audience, avoid loading every recipient into one process or firing the whole campaign in one second.

Apply limits at several levels: a frequency cap stops an individual user receiving too many promotional messages; each provider account has a throughput or cost budget, such as the maximum send rate Amazon SES sets per account; urgent transactional work may need reserved capacity. These limits solve different problems. A global provider quota does not prevent one user from being overwhelmed, and a per-user cap does not protect a provider during a huge burst.

As an example, an announcement goes to 1.2 million people on an account limited to 2,000 sends per second, with 200 reserved for receipts. The campaign gets 1,800 per second, perhaps 900 every half second, so it takes about 11 minutes (1.2 million ÷ 1,800). That spread is fine for marketing and unacceptable for a login code. A list that fits well within the quota may need no scheduler at all.

Batching reduces provider calls when the channel supports it, but batches should remain small enough for retries and per-recipient status. Queue age, not only queue length, reveals whether a campaign is making people wait beyond its promised window. Drop stale promotional items only under a documented expiry policy; do not silently drop transactional alerts.

DECISION POINT

A campaign for five million users is due at 9 a.m. local time, while receipts must still arrive quickly. How should the scheduler release work?

Write a sentence or two to unlock the guidance. Committing first is what makes it stick.

Keep in mind

  • Schedule and pace large fanouts rather than releasing all recipients at once.
  • Use separate user-frequency and provider-capacity limits.
CHECK YOUR UNDERSTANDING

Put it into practice.

1 OF 3
RecallQUESTION 01

Why are a per-user cap and provider throughput limit both useful?

Choose an answer. You’ll see the explanation once you get it right.

Next lesson

0 of 3 checkpoints answered correctly to complete this lesson.