1.1 Introduction中 Producers官网剖析(博主推荐)
2017-04-25 23:12
399 查看
不多说,直接上干货!
一切来源于官网
Producers publish data to the topics of their choice. The producer is responsible for choosing which record to assign to which partition within the topic. This can be done in a round-robin fashion simply to balance load or it can be done according to some semantic partition function (say based on some key in the record). More on the use of partitioning in a second!
一切来源于官网
http://kafka.apache.org/documentation/
Producers
生产者(Producers)
Producers publish data to the topics of their choice. The producer is responsible for choosing which record to assign to which partition within the topic. This can be done in a round-robin fashion simply to balance load or it can be done according to some semantic partition function (say based on some key in the record). More on the use of partitioning in a second!
生产者往某个Topic上发布消息。生产者也负责选择发布到Topic上的哪一个分区。最简单的方式从分区列表中轮流选择。 也可以根据某种算法依照权重选择分区。开发者负责如何选择分区的算法。
相关文章推荐
- 1.1 Introduction中 Topics and Logs官网剖析(博主推荐)
- 1.1 Introduction中 Distribution官网剖析(博主推荐)
- 1.1 Introduction中 Consumers官网剖析(博主推荐)
- 1.1 Introduction中 Guarantees官网剖析(博主推荐)
- 1.1 Introduction中 Kafka as a Messaging System官网剖析(博主推荐)
- 1.1 Introduction中 Kafka as a Storage System官网剖析(博主推荐)
- 1.1 Introduction中 Kafka for Stream Processing官网剖析(博主推荐)
- 1.1 Introduction中 Putting the Pieces Together官网剖析(博主推荐)
- 1.1 Introduction中 Apache Kafka™ is a distributed streaming platform. What exactly does that mean?(官网剖析)(博主推荐)
- Flume Channel Selectors官网剖析(博主推荐)
- 1.3 Quick Start中 Step 2: Start the server官网剖析(博主推荐)
- 2.2 Consumer API官网剖析(博主推荐)
- Flume Sinks官网剖析(博主推荐)
- 1.3 Quick Start中 Step 3: Create a topic官网剖析(博主推荐)
- Flume Sink Processors官网剖析(博主推荐)
- Event Serializers官网剖析(博主推荐)
- Flume Interceptors官网剖析(博主推荐)
- 1.3 Quick Start中 Step 4: Send some messages官网剖析(博主推荐)
- 1.3 Quick Start中 Step 5: Start a consumer官网剖析(博主推荐)
- 1.3 Quick Start中 Step 6: Setting up a multi-broker cluster官网剖析(博主推荐)