Back pressure in Kafka

前端 未结 2 429
走了就别回头了
走了就别回头了 2021-01-12 11:45

I have a situation in Kafka where the producer publishes the messages at a very higher rate than the consumer consumption rate. I have to implement the back pressure impleme

2条回答
  •  南笙
    南笙 (楼主)
    2021-01-12 12:14

    Kafka acts as the regulator here. You produce at whatever rate you want to into Kafka, scaling the brokers out to accommodate the ingest rate. You then consume as you want to; Kafka persists the data and tracks the offset of the consumers as they work their way through the data they read.

提交回复
热议问题