Got it

Kafka data production

Latest reply: Jul 29, 2019 06:42:52 984 3 11 0 0

This post refers to the Kafka data production. More details to be found below.


1. Introduction to Kafka


Originally developed by Linkedin, Kafka is a distributed, partitioned, multi-copy, multi-subscriber and distributed log system based on ZooKeeper.


It can also be used as an MQ system. Kafka is mainly used in two types of applications:


1. Construct a real-time data stream channel between applications;


2. Construct real-time streaming applications for transmitting or processing data streams.


153325c8bwjsnyx7nwyabb.png?image.png


2. Basic realization of producers


1. Schematic


153411eiw4tj2tc2fuww2w.png?image.png


2. Specific implementation


2.1. Fire-and-forget mode


After a message is sent, the logic program does not need to check whether the message is sent successfully. This is the default writing mode. It depends on the high availability of the producer api itself (the retry is performed after the related parameters are configured). By default, the high throughput asynchronous transmission is used. In most cases, the data will be successful, but there will also be failures.


153551odwlmwqhtt6xbtli.png?image.png


very detail,thank you for your share.
View more
  • x
  • convention:

Thanks
View more
  • x
  • convention:

great
View more
  • x
  • convention:

Comment

You need to log in to comment to the post Login | Register
Comment

Notice: To protect the legitimate rights and interests of you, the community, and third parties, do not release content that may bring legal risks to all parties, including but are not limited to the following:
  • Politically sensitive content
  • Content concerning pornography, gambling, and drug abuse
  • Content that may disclose or infringe upon others ' commercial secrets, intellectual properties, including trade marks, copyrights, and patents, and personal privacy
Do not share your account and password with others. All operations performed using your account will be regarded as your own actions and all consequences arising therefrom will be borne by you. For details, see " User Agreement."

My Followers

Login and enjoy all the member benefits

Login

Block
Are you sure to block this user?
Users on your blacklist cannot comment on your post,cannot mention you, cannot send you private messages.
Reminder
Please bind your phone number to obtain invitation bonus.