In this lesson · topic 3 of 7
Topic 3
Crash a consumer around the ack
7 min read
Compare the three modes
The lab below runs all three modes on the same messages and the same crashes. Each square in a panel is one finished message. A green square was processed once. A crossed red square was lost. An amber square with two bars was processed more than once. Under the squares, the model line says what the crash settings alone predict, so you can compare it with what the run produced.
Predict before you press play
Things to try
- Set the share of crashes inside the ack gap to 0. Every mode becomes harmless. Crashes before the first step only cause a redelivery.
- Set it to 1 and raise the crash chance. Lost messages climb under at most once, and extra effects climb under at least once.
- Turn crashes off, then raise the slow-attempt chance. At least once still repeats work.
- Choose the idempotent mode and write the key in a separate step. Count the repeats that come back.
- Watch the redelivery count in each panel. It is almost the same with and without the key.
The full-page lab has five guided experiments you can apply with one click.