Advanced Backend #schema-registry #Avro #Protobuf #schema-evolution

Event Schema Registry Vocabulary

5 exercises — master the vocabulary of schema registries in event-driven systems: Avro vs Protobuf, backward/forward compatibility modes, schema evolution, and schema drift prevention.

0 / 5 completed
Schema registry vocabulary quick reference
  • Schema registry — centralised service that stores, versions, and enforces event message schemas
  • Avro — binary serialisation format with schema-based encoding; very compact, native registry integration
  • Protobuf — Google's binary format; uses field numbers for stable encoding across renames
  • Backward compatibility — new schema can be read by old consumers (add optional fields, don't remove required ones)
  • Forward compatibility — old schema can be read by new consumers
  • Full compatibility — simultaneously backward and forward compatible
  • Schema drift — divergence between actual event structure and registered schema
  • Schema evolution — changing a schema over time without breaking the system
1 / 5

In an event-driven architecture, dozens of services produce and consume events. A senior architect insists: "Before we add any new event type, it must be registered and versioned in the schema registry." What is a schema registry, and why is it so critical?