Produce messages to and consume messages from a Kafka cluster using the rdkafka gem that exposes librdkafka.
You can find the documentation and instructions for running this Ruby example at https://docs.confluent.io/platform/current/tutorials/examples/clients/docs/ruby.html