How to run multiple kafka consumers on the same box independent of each other?

前端 未结 3 716
太阳男子
太阳男子 2020-12-11 20:27

I have two Kafka consumer ConsumerA and ConsumerB. I want to run these two kafka consumers independent of each other on the same machine. There is

3条回答
  •  抹茶落季
    2020-12-11 20:57

    Try Apache Samza. It solves these consumer problems. No messy (and sometimes problematic) handling of threads, redundancy via clustering, proven solution by trillions of proven processed mesages, etc. We are currently running more than one job on the cluster. Our code is much less complex than what you have here.

提交回复
热议问题