Skip to main content

ERASED_REASON

Constant ERASED_REASON 

Source
pub const ERASED_REASON: &str = "erased";
Expand description

Durable inbound-event handling.

The ordering rule that makes this correct, stated once:

Store the event before looking for anyone to give it to.

An event that arrives before its waiter must survive until the waiter appears. Matching first and discarding on a miss is the bug that makes a run wait forever for something that already happened. The dead-letter reason of an unclaimed event whose payload was erased.