nomisRev / kotlin-kafka

Kafka bindings for Kotlin `suspend`, and Kafka streaming operators for KotlinX Flow.
https://nomisRev.github.io/kotlin-kafka/
Apache License 2.0
104 stars 10 forks source link

[WIP] Backpressure strategy #102

Open nomisRev opened 1 year ago

nomisRev commented 1 year ago

Users have reported that in some cases you don't want kotlin-kafka to automatically pause the partitions in case the downstream cannot process the events fast enough but rather you want it to blow up. For example in cases where a slow processor is considered a bug, and you prefer it crashing the server or stream. For this reason this PR implements a strategy that allows customising this.