Queues · Flashcard

Why must a new post be stored durably before its fan-out is queued?

medium Consistency

Answer

If fan-out runs first and anything fails, the post is lost while some feeds point to it. Stored first, the post is the source of truth: fan-out can be retried from it at any time, and every feed entry refers to a post that exists.

Review this in your daily deck All cards in Queues