internalsGet Pro

Module 09 · Lesson 7 of 14Pro

Event schemas and the schema registry

Level
Intermediate
Topic
Event streaming with Kafka
Reading time
17 min

When you finish this page you can

  1. Explain what a schema registry stores and how a Kafka record points to its schema with a 5-byte prefix.
  2. Predict which schema changes each compatibility mode accepts, and which side must upgrade first.
  3. Set up a Python producer with confluent-kafka’s AvroSerializer and a CI step that rejects incompatible schemas.
  4. Choose between Avro, Protobuf and JSON Schema for a topic.

Builds on 3 lessons

Start with lesson 417 min
  1. Kafka consumers: groups, commits and rebalancing17 min
  2. Avro and Protobuf: schemas for events17 min
  3. Schema evolution: changing data without breaking jobs18 min

is an online store in India. Its apps send about 200 million click events a day to the Kafka topic kartly.clicks. Two readers matter here: the S3 sink, which copies every click into kartly-raw-prod for the nightly jobs, and product-views, which counts product page views per minute for the merchandising team’s “trending now” list.

Our biggest sale ever · Black Friday

Flat 50% Off

Pro

Continue reading

Unlock every course, now and later

  • System Design, live
  • AI Engineering, live
  • Data Engineering, live
  • Machine Learning Engineering, live
  • Inference Engineering, coming soon
  • AI Research, coming soon
  • Performance Engineering, coming soon
  • Agent & Harness Engineering, coming soon
  • LLM Fine-tuning, coming soon
  • LLM Pre-training & Post-training, coming soon
  • Reinforcement Learning, coming soon
  • AI Infrastructure & Platform Engineering, coming soon
  • AI Evaluation & Safety, coming soon
  • Forward Deployed Engineering, coming soon
  • Cloud Computing, coming soon
  • DevOps, coming soon

50% off · Annual and Lifetime

BLACKFRIDAY50Applied at checkout

Choose a plan