Kafka didn’t write anything

Time:2020-1-17

1 Kafka concept
A distributed message queue with high performance, persistence, multi copy backup and horizontal expansion. Producers write messages to the queue, and consumers take messages from the queue for business logic.
1.1 Kafka’s way of reading and sending messages
Kafka uses the concept of topic externally. Producers write messages to topics, and consumers read messages from them. In order to achieve horizontal expansion, a topic is actually composed of multiple partitions. When encountering bottlenecks, you can increase the number of partitions to expand horizontally. Within a single partition, messages are ordered.

1.2 topic, division, group
The topic tag is actually a queue;

1.3 KafkaProducer

1.4 how to copy backups between Kafka nodes?
1.5 will Kafka messages be lost? Why?
1.6 what is the most reasonable configuration of Kafka?
1.7 what is Kafka’s leader election mechanism?
1.8 what are the requirements of Kafka for hardware configuration?
1.9 how to guarantee Kafka messages?
Why did 10kafka lose the message?

Recommended Today

Vs code usage

Common shortcut keys: Shift + Alt + F on Windows format code Shift + option + F on MAC format code Shift + Alt + a block comment Common plug-ins: [plug in installation method] Markdown Preview Enhanced Preview markdown in real time, which is necessary for users Path Intellisense Automatically prompt file path, support various […]