liveBook · Manning

Apache Kafka

As explained in Microservices Patterns, Second Edition

Apache Kafka is a distributed event-streaming platform for publishing, storing, and consuming streams of records.

Choose a messaging technology only after defining each channel’s requirements, such as delivery guarantees, ordering, persistence, durability, scalability, and latency. Kafka is one candidate broker to evaluate against those needs. section 8.3.3

Table 8.4 Each message broker implements the message channel concept in a different way.

Point-to-point channel

Publish-subscribe channel

ActiveMQ

Queue

Topic

Apache Kafka

Topic

Topic

RabbitMQ

Exchange + Queue

Fanout exchange and a queue per consumer

AWS Kinesis

Stream

Stream

AWS SQS

Queue

-

AWS SNS

-

Topic

Compare how brokers represent point-to-point and publish-subscribe channels; Kafka uses topics for both. section 8.3.3

How Microservices Patterns, Second Edition covers it

How deep it goes
Maps both point-to-point and publish-subscribe channels to Kafka topics, without detailing Kafka internals.
Examples
Uses Kafka topics to represent both point-to-point and publish-subscribe channels.
What you can do after
Evaluate channel requirements before choosing a messaging broker.
How it connects
Connects Kafka to asynchronous messaging, message channels, and broker selection.

Also explained in

Compare how 7 books explain Apache Kafka →

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Microservices Patterns, Second Edition. The section links point to the parts of the book it draws on.