How to use multi-thread consumer in kafka 0.9.0?

后端 未结 3 1903
忘了有多久
忘了有多久 2020-12-15 10:56

The doc of kafka give an approach about with following describes:

One Consumer Per Thread:A simple option is to give each thread its own consumer > in

3条回答
  •  伪装坚强ぢ
    2020-12-15 11:28

    Maybe is not your case, but if you are mergin processing of data of serveral topics, then you can read data from multiple topics with the same consumer. If not, then is preferable to create separate jobs consuming each topic.

提交回复
热议问题