Realtime systems use versioned event contracts for safe presence validation in collaborative apps
The article proposes treating event discovery as versioned contracts rather than simple topic lists for realtime collaborative systems. It advocates publishing a signed catalog of event types and validating client updates against it to prevent data corruption. This approach ensures presence accuracy across reconnections, partial rollouts, and multiple client versions. The system maintains four key invariants regarding event shape, cursor ephemerality, schema handling, and catalog negotiation. Runtime discovery with pinned schema versions is recommended as the optimal balance between accuracy and operational cost.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.
Discussion (0)
Log in to join the discussion and vote.
Log in