swift-server / swift-kafka-client

Apache License 2.0
83 stars 24 forks source link

`KafkaConsumer`: drop messages on sequence termination #85

Closed felixschlegel closed 1 year ago

felixschlegel commented 1 year ago

Motivation:

We want to avoid running out of memory when the user stops reading the KafkaConsumer.messages AsyncSequence. Therefore we drop any incoming messages that we receive after the AsyncSequence was terminated.

Modifications: