Code RoomEvent schema evolution
HardPrep Room Coding #3307

Event schema evolution

System designDistributed systemsSenior–Staff~45 min

An event-streaming platform has ~400 topics and ~1500 producer/consumer services owned by independent teams. Producers want to evolve event schemas (add fields, deprecate fields, occasionally change a type) without coordinating a deploy with every consumer, and consumers must not crash when they read events written by an older or newer producer. Millions of events/sec across topics, multi-week retention so old-format events stay readable on replay. Design the schema-evolution and compatibility strategy so teams move independently without breaking each other.

What a strong answer looks like

Clarify scale and constraints first. Propose a clean component breakdown, then go deep on the hard parts (data model, bottlenecks, consistency, failure modes) and name the trade-offs you are making.

Clarify5:00 left
Estimate5:00 planned
Design15:00 planned
Deep dive12:00 planned
Failure8:00 planned
0:00
Which questions mattered is sealed until you submit. Telling you now would just be handing over the edge cases.