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

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.
主站蜘蛛池模板: 卓资县| 斗六市| 青浦区| 肇东市| 六盘水市| 宁夏| 甘德县| 威远县| 东阿县| 界首市| 吴忠市| 新乡县| 鄂尔多斯市| 潼关县| 招远市| 镇江市| 剑河县| 临城县| 斗六市| 贵德县| 葫芦岛市| 慈溪市| 都江堰市| 黄浦区| 仙桃市| 澎湖县| 清新县| 明星| 深泽县| 江油市| 新余市| 本溪| 惠州市| 浦江县| 富裕县| 卓资县| 芒康县| 宝坻区| 肇源县| 永春县| 郓城县|