Services ask one API to tell a user something. The notice waits in a queue, and a worker hands it to a push, email or SMS provider. Stop a provider, send events twice, or turn retries off, and watch who is told late, twice or never.
Try it
Speed
Lab time 3.0 s
Your services — 10 events a second — healthy — 10% are sent twice
Providers — push, email, SMS — healthy — all answering
An event, or a send to a provider
Check the user's settings
A notice in or out of a queue
A send that failed
Delivered
22/ 25
of the notices the API accepted
Told twice
0
the same notice reached a user again
Lost
0
failed once and not tried again
Set aside
0
failed 4 tries; a person must look
Tried again
1
sends that failed and went back to wait
Workers busy
2/ 6
2 for each channel
Numbers add up:28 arrived = 25 accepted + 0 repeats dropped + 2 not wanted + 1 on the way · 25 accepted = 22 delivered + 0 set aside + 0 lost + 3 waitingThe lab checks this sum as it runs, so a counting mistake would show here.
Controls
Channel by channel
Channel
Provider
Waiting
Wait
Delivered
Set aside
Lost
Push
answering
0
98 ms
9
0
0
Email
answering
1
289 ms
9
0
0
SMS
answering
2
241 ms
4
0
0
Wait is the time from the API accepting a notice to its delivery, over the last 3 seconds. If the oldest notice still in the queue has waited longer, that age is shown.
Wait by channel (seconds)
PushEmailSMS
00.10.30.40.51s2s3s
Show data table
Time
Push
Email
SMS
1s
0.1
0
0.2
1s
0.1
0.3
0.2
2s
0.1
0.3
0.2
2s
0.1
0.3
0.2
3s
0.1
0.3
0.2
3s
0.1
0.3
0.2
What just happened
Nothing yet. Start traffic or run an experiment.
What this model simplifies
Half the notices are push, 3 in 10 email and 2 in 10 SMS. 10% are for a channel the user turned off, and the API drops them.
A provider here answers, fails 2 sends in 100, or stops. Real providers also slow down, limit how fast you may send, and fail for one country or one phone network.
A stopped provider costs a worker 2 s for each try. Real systems also stop sending to a provider that keeps failing, for a while.
A notice that is set aside stays there. In a real system a person, or a later job, looks at these and sends them again.
The API remembers event ids for 20 seconds. Real systems keep them for hours or days.
There is no order of importance: a password code waits behind a marketing notice. Real systems give urgent notices their own queue.