Topic record name strategy
TopicRecordNameStrategy is a Schema Registry subject-naming strategy that derives subjects from a Kafka topic name and a record’s fully qualified name.
Kafka Streams in Action, Second Edition
TopicRecordNameStrategy is a schema subject naming strategy that derives subjects from both the topic name and the record schema, isolating schemas by topic.
- How it is used
- Scopes schema compatibility by topic and record type when topics contain multiple event types.
- How deep it goes
- Explains naming scope, trade-offs, and producer-consumer configuration but stops short of implementation internals.
- Examples
- Uses CustomerPurchaseEvent across current and legacy topics plus Java producer and consumer configuration.
- What you can do after
- Operate/configure producers and consumers to isolate per-topic record schemas while supporting multiple event types.
Read how Kafka Streams in Action, Second Edition explains topic record name strategy →
Kafka for Architects
TopicRecordNameStrategy is a Schema Registry subject-naming strategy that combines topic association with fully qualified record names.
- How it is used
- Supports polyglot topics whose event types require topic association and independent schema evolution.
- How deep it goes
- Defines subject composition and coexistence behavior, but stops short of configuration or implementation walkthroughs.
- Examples
- Uses the CLIENTS topic, com.example.ClientEvent schema, and an Avro record containing client and event fields.
- What you can do after
- Evaluate whether multiple event types can share a topic while retaining distinct, independently evolving subjects.
Read how Kafka for Architects explains topic record name strategy →
Related concepts
- subject name strategykind of · A subject name strategy is a rule that determines how Schema Registry subject names are derived and therefore where compatibility is checked.
- record name strategycontrasts with · RecordNameStrategy is a Schema Registry subject-naming strategy that derives each subject from the fully qualified name of its schema record, independently of its Kafka topic.
- topic name strategycontrasts with · TopicNameStrategy is a Schema Registry subject-naming strategy that derives separate key and value subjects from a Kafka topic name.
- polyglot topicuses · A polyglot topic is a Kafka topic that contains multiple event types with distinct schemas.
- strategykind of · A strategy is a planned approach for achieving objectives through coordinated choices, priorities, and actions.
These guides are generated from the text of Manning books by Manning's knowledge graph and link to the sections they draw on. The full books are available on liveBook and at manning.com.

