MediumScenarioKafka and streaming pipelines
A Kafka consumer group shows growing lag on a few partitions only. How do you investigate?
What a good answer covers
Uneven lag points to hot keys or a slow consumer for those partitions. Check key distribution, per-partition throughput, consumer GC or poison messages, and rebalances. Fix by re-keying, increasing partitions with care for ordering, or isolating the slow handler.
PreviousYou must reprocess two years of history with Spark without overwriting good recent partitions. How do you write it safely?Next Your pipeline must be exactly-once from Kafka to a warehouse table. How do you design it?
More on Kafka and streaming pipelines
Flashcards for this topic- HardYour pipeline must be exactly-once from Kafka to a warehouse table. How do you design it?
- MediumWhat does min.insync.replicas combined with acks=all guarantee?
- MediumWhat is log compaction in Kafka and when would you use it?
- HardA consumer rebalance storm keeps pausing processing every few minutes. What are likely causes and fixes?