Realtime · Flashcard

When should a chat server acknowledge a message to its sender?

medium Consistency

Answer

After the message is durably stored, and before delivering it. The ack is a promise that the message will not be lost. Delivery to the recipient (over their connection or by push) happens afterwards, and can be retried from the store if it fails.

Review this in your daily deck All cards in Realtime