Saving data and sending a message are two separate steps, so a crash between them leaves two systems disagreeing. The outbox pattern closes that gap. This lesson also compares queues and streams.
More lessons in 60 Days of Software Architecture