Topic
A topic is a named channel or category that groups messages or records for publication and delivery to interested consumers.
Apache Kafka in Action
A Kafka topic is a named stream of records to which producers publish and from which consumers read.
- How it is used
- Organizes producer-published records into named streams that independent consumers can read for real-time processing or later analysis.
- How deep it goes
- Works through creation and reading, then connects topics to partitions, replication, and leader metadata without detailing their implementations.
- Examples
- Uses a product-price changelog, Kafka command-line tools, and separate inventory and sales-analysis consumers.
- What you can do after
- Operate/configure it with kafka-topics.sh, then publish and independently reread price updates with Kafka console tools.
Kafka for Architects
A Kafka topic is a named, append-oriented stream of records that Kafka stores and makes available to consumers.
- How it is used
- Uses topics to route related messages between producers and consumers and to separate event types in a customer-data workflow.
- How deep it goes
- Explains naming, subscriptions, partitions, ordering, retention and compaction, including the limits of cross-partition order and key lookup.
- Examples
- Uses separate transaction and profile topics for a customer dashboard and a compacted account-balance topic for current state.
- What you can do after
- Operate/configure Kafka topics by choosing keys, partitioning and retention policies to meet ordering, history and current-state needs.
Kafka Streams in Action, Second Edition
A Kafka topic is a named, append-only stream of records that producers publish to and consumers read from.
- How it is used
- Connects producers and independent consumers through durable event storage for event-streaming applications.
- How deep it goes
- Explains topic storage, partitions, replication, ordering, local creation, and consumer polling; defers prior Schema Registry detail.
- Examples
- Uses retail sales, rewards, sales trends, inventory, and keyed login-search-purchase clickstream events.
- What you can do after
- Operate/configure topics locally, then produce and poll records through Kafka clients.
Read how Kafka Streams in Action, Second Edition explains topic →
AI-Powered Developer: Build software with ChatGPT and Copilot
A Kafka topic is a named, partitioned stream to which producers publish records and from which consumers read them.
- How it is used
- Deploys topics as event streams connecting producers, consumers, and domain updates in an asset-monitoring application.
- How deep it goes
- Demonstrates creation, console operations, Python consumption, JSON records, and architectural review, but does not detail Kafka internals.
- Examples
- Uses the asset_location topic, location-update JSON records, console commands, and a Python KafkaConsumer.
- What you can do after
- Operate/configure a local topic, publish and consume records, and evaluate generated consumer code for coupling and correctness.
Read how AI-Powered Developer: Build software with ChatGPT and Copilot explains topic →
Spring Microservices in Action
A Kafka topic is a named stream to which records are published and from which they can be consumed.
- How it is used
- Carries organization-change messages published by the organization service to Kafka.
- How deep it goes
- Configures a destination and broker connection, without explaining topic internals.
- Examples
- Uses orgChangeTopic for JSON messages about organization changes, including the organization ID and action.
- What you can do after
- Apply it via Spring Cloud Stream by routing producer output to a configured Kafka destination.
Digital Twins in Action
An MQTT topic is a hierarchical name used to route published messages to clients that subscribe to matching topic names.
- How it is used
- Routes sensor messages through a decoupled publish-subscribe bus for a digital twin.
- How deep it goes
- Defines topics and explains hierarchical naming, wildcard selection, and broker routing through a concrete sensor architecture.
- Examples
- Uses home electricity, water, and environmental sensor names, plus a bedroom temperature and humidity sensor payload.
- What you can do after
- Evaluate topic hierarchies for logical subscriptions and growth in a sensor network.
Microservices Patterns, Second Edition
A topic is a broker-managed message destination representing a stream or publication target for messages.
- How it is used
- Guides messaging-technology selection by defining requirements for each channel first.
- How deep it goes
- Lists channel-selection criteria but does not describe topic internals or configuration.
- Examples
- Compares Kafka topics with channel constructs in ActiveMQ, RabbitMQ, Kinesis, SQS, and SNS.
- What you can do after
- Evaluate channel requirements before selecting a messaging broker.
Read how Microservices Patterns, Second Edition explains topic →
Also covered in
- Robotics for ProgrammersIn early access (MEAP)
- Contract Testing in Action
- ActiveMQ in Action
- Quarkus in Action
- Spring in Action, Sixth Edition
- MongoDB 8.0 in Action, Third Edition
- Platform Engineering on Kubernetes
- Grokking Software ArchitectureIn early access (MEAP)
- Learn AI Data EngineeringIn early access (MEAP)
- Architecting for AutonomyIn early access (MEAP)
- Rust Servers, Services, and Apps
What to know first
- messageA message is a discrete unit of information or data communicated between participants or software components, often represented as a structured record.
- stream processingStream processing is the incremental processing of data items as they become available, without requiring the complete dataset to be present first.
- JSONJSON is a language-independent text-based data-interchange format that represents structured values using objects, arrays, strings, numbers, booleans, and null.
- partitionA division of a whole into distinct parts that together comprise the whole.
Related concepts
- partitionhas part · A division of a whole into distinct parts that together comprise the whole.
- publish-subscribe patternused by · The publish-subscribe pattern is a messaging model in which publishers send messages to channels or topics and subscribers receive messages for which they have registered interest, without direct coupling between them.
- messaging destinationkind of · A messaging object that identifies an endpoint to which messages can be sent or from which they can be received.
- persistent queryproduced by · A persistent query is a server-side ksqlDB query whose continuously computed results are stored in a Kafka topic for later consumption.
- virtual topicused by · An ActiveMQ messaging pattern in which publishers send to a topic and consumers receive the resulting messages from queues.
- sink nodeused by · A sink node is a destination component or endpoint that receives data, messages, events, or flow from an upstream source for consumption or processing.
Questions about topic
What is topic?
A topic is a named channel or category that groups messages or records for publication and delivery to interested consumers.
Which Manning books explain topic?
Apache Kafka in Action, Kafka for Architects, Kafka Streams in Action, Second Edition, AI-Powered Developer: Build software with ChatGPT and Copilot, Spring Microservices in Action, Digital Twins in Action and Microservices Patterns, Second Edition.
What should I know before learning topic?
Manning books that teach topic usually introduce message, stream processing, JSON and partition first.
What is topic a kind of?
Topic is a kind of messaging destination. A messaging object that identifies an endpoint to which messages can be sent or from which they can be received.
What are the parts of topic?
Topic includes partition.
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.






