Calculate Kafka consumer lag: Lag = latest_offset - consumer_offset per partition. High lag indicates consumers cannot keep up with producers. Time to clear lag = lag / (consumer_rate - producer_rate).
Enter the values for the scenario you are assessing. Calculate Kafka consumer lag: Lag = latest_offset - consumer_offset per partition. High lag indicates consumers cannot keep up with producers. Time to clear lag = lag / (consumer_rate - producer_rate). Use the kafka consumer lag result to inform your calculation.