Spring Boot 之 Kafka

Kafka is a distributed workflow platform, has the following features:
1. publish and subscribe messaging.
2. stored fault-tolerant message flow.
3. stream processing in real time.

The two major applications:
1. As a real-time streaming data channel, passing messages between applications.
2. Construction of real-time streaming, the data stream conversion or reaction.

Four core the API:
Producer the API (outputs), Consumer API (the input), Streams API (&& input to output), Connector API (input to output ||)

https://www.orchome.com/5

Kafka installation:
https://blog.csdn.net/m0_37738114/article/details/80405068
https://blog.csdn.net/zajbetterme/article/details/84553594
installation zookeeper can not find the main class will be reported error and replace it with low version of
kafka reported zookeeper command is not recognized, the new version of command

spring boot and kafka integration:
1. introducing dependent
2. Configure spring.kafka ...... in the configuration file
3. Create producers
4. Configuring consumer component (component), indicate the need to pay attention to consumer groups.

Guess you like

Origin www.cnblogs.com/zd540/p/11288232.html