Kafka installation and use tutorial quick start

 1. Kafka download

Download address: Apache Kafka

Take the version indicated by the key as an example

Kafka core concept

Before introducing Kafka's architecture and basic components in detail, you need to understand some core concepts of Kafka.
Producer: The producer of the message is responsible for sending the message to the Kafka cluster;
Consumer: The consumer of the message actively pulls the message from the Kafka cluster.
Consumer Group: Each Consumer belongs to a specific Consumer Group. When creating a new Consumer, you need to specify the corresponding Consumer Group ID.
Broker: A service instance in a Kafka cluster, also known as a node. Each Kafka cluster contains one or more Brokers (a Broker is a server or node).
Message: The object entity transmitted through the Kafka cluster, storing the information that needs to be transmitted.
Topic: The category of the message, which is mainly used to logically distinguish the messages. Each message sent to the Kafka cluster needs to have a specified topic, and the consumer consumes the specified message according to the topic.
Partition: The partition of the message. Partition is a physical concept, which is equivalent to a folder. Kafka will create a folder for each partition of each topic, and a Topic message will be stored in one or more Partitions.
Segments

Guess you like

Origin blog.csdn.net/yetaodiao/article/details/130868013
Recommended