We're trying to push data to Kafka in a sync mode, but we're struggling on how to achieve this.
Afaik, there are two main Ruby Kafka libs ruby-kafka
and rdkafka-ruby
.
ruby-kafka
is a ruby implementation that works great but lacks support for newer Kafka versions,
rdkafka-ruby
is a C implementation but according to the maintainers it only supports async producing,
Our current plan is to push data into a Redis and then pop it to Kafka using a Python lib or a Kafka connector - but I feel there must be a better way.
What am I missing? Can someone provide source code on how to push to Kafka synchronously?