Reputation: 820
Is ReplyingKafkaTemplate blocking? Any reactive alternative?
Upvotes: 1
Views: 754
Reputation: 174729
It doesn't block under normal circumstances, it returns a ListenableFuture
which can be used to either block (get()
) or get the reply asynchronously with a listenable.
It will, however, block waiting for topic metadata when the first message is sent so it's not reactive.
There is the reactor-kafka project, but Spring Kafka does not currently use it.
There is a pull request that we plan to look at for the next (2.3) release.
Upvotes: 2