liveBook · Manning

Topic name strategy

TopicNameStrategy is a Schema Registry subject-naming strategy that derives separate key and value subjects from a Kafka topic name.

How 2 Manning books explain it

Kafka Streams in Action, Second Edition

TopicNameStrategy is a Schema Registry subject naming strategy that derives separate key and value subject names from a Kafka topic name.

How it is used
Scopes key and value schemas to Kafka topics for default Schema Registry registration and compatibility enforcement.
How deep it goes
Explains subject naming, topic-level type constraints, cross-topic schema independence, and schema-reference composition, but defers client implementation details.
Examples
Uses key/value subject names, event-type-named topics, and a retailer’s PlaneEvent, TruckEvent, and DeliveryEvent union.
What you can do after
Apply it via Schema Registry by deriving <topic>-key and <topic>-value subjects and choosing references when one topic needs related event types.

Read how Kafka Streams in Action, Second Edition explains topic name strategy →

Kafka for Architects

TopicNameStrategy is a Schema Registry subject-naming strategy that groups schema versions by Kafka topic and message component.

How it is used
Groups compatible schema versions by Kafka topic and message component.
How deep it goes
Defines subject naming, value and key conventions, cross-topic separation, and REST version addressing.
Examples
Uses ClientEvent on CLIENTS with CLIENTS-value and contrasts registration on PERSONS with PERSONS-value.
What you can do after
Evaluate topic-scoped schema registration and retrieve a specific schema version through the Schema Registry REST API.

Read how Kafka for Architects explains topic name strategy →

Related concepts

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.