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

Deep Dive into Kafka Producers

In previous chapters, you have learned about messaging systems and Kafka architecture. While it is a good start, we will now take a deeper look into Kafka producers. Kafka can be used as a message queue, message bus, or data storage system. Irrespective of how Kafka is used in your enterprise, you will need an application system that can write data to the Kafka cluster. Such a system is called a producer. As the name suggests, they are the source or producers of messages for Kafka topics. Kafka producers publish messages as per Kafka protocols defined by the makers of Kafka. This chapter is all about producers, their internal working, examples of writing producers using Java or Scala APIs, and some of the best practices of writing Kafka APIs. We will cover the following topics in this chapter:

  • Internals of a Kafka producer
  • The Kafka Producer API and its uses
  • Partitions and their uses
  • Additional configuration for producers
  • Some common producer patterns
  • An example of a producer
  • Best practices to be followed for a Kafka producer
主站蜘蛛池模板: 兰西县| 朝阳市| 西乌| 内丘县| 长海县| 富锦市| 屏东市| 西充县| 梁平县| 民权县| 泌阳县| 海口市| 林甸县| 新营市| 萍乡市| 加查县| 霍邱县| 岳池县| 博罗县| 新和县| 韶关市| 大邑县| 图木舒克市| 陇西县| 石狮市| 奉新县| 德令哈市| 金湖县| 泉州市| 木兰县| 天长市| 武夷山市| 恩平市| 扎赉特旗| 通河县| 舟曲县| 平昌县| 阳朔县| 临漳县| 三穗县| 鹰潭市|