i am asking myself if the ReactiveKafkaConsumerTemplate
of the spring-kafka project does guarantee the correct ordering of messages. I read the documentation of the reactor-kafka project and it states that messages should be consumed using the concatMap
operator, but the ReactiveKafkaConsumerTemplate uses the flatMap
operator at least in case of the receiveAutoAck
method here:
Reference documentation of the reactor-kafka project: https://projectreactor.io/docs/kafka/release/reference/#_auto_acknowledgement_of_batches_of_records
I am interested in using receiveAutoAck
as it seems to be the most simpelst and comfortable approach, which suffices my use case. The only way to overcome this behaviour of the receiveAutoAck
method seems to subclass the ReactiveKafkaConsumerTemplate and overwrite this behaviour. Is this correct?