官术网_书友最值得收藏!

Spring for Apache Kafka

Spring for Apache Kafka supports the broker-based Apache Kafka applications. It provides a high-level API to interact with Apache Kafka. Internally, the projects use the Kafka Java APIs.

This module supports the annotation programming model. The basic idea is that with a couple of annotations and some POJO models, we can bootstrap the application and start listening to and producing messages.

KafkaTemplate is a central class of this project. It enables us to send messages to Apache Kafka with a high-level API. Asynchronous programming is supported as well.

This module offers support for transactions via annotations. This feature is enabled via standard transactional annotations used in Spring-based applications, such as @Transactional.

We also learned about Spring AMQP. This project adds the Spring concept of creating applications based on this broker. The dependency injection features are supported as well.

Some common annotations are  @EnableKafka and  @KafkaListener.
主站蜘蛛池模板: 大足县| 绥中县| 达拉特旗| 嘉兴市| 西贡区| 横峰县| 镇远县| 塔城市| 调兵山市| 吉安市| 曲阜市| 泸溪县| 孝昌县| 高青县| 乌鲁木齐县| 古田县| 绥化市| 习水县| 彭州市| 桂阳县| 含山县| 皮山县| 拉萨市| 靖西县| 安福县| 宽甸| 扎囊县| 老河口市| 依安县| 四子王旗| 和政县| 滕州市| 新巴尔虎左旗| 二手房| 治县。| 申扎县| 平阴县| 彭山县| 海城市| 兖州市| 德江县|