ruby-kafka
https://github.com/zendesk/ruby-kafka
Ruby
A Ruby client library for Apache Kafka
Kafka::Broker#fetch_messages_async
Fetches messages asynchronously. The fetch request is sent to the broker, but the response is not read. This allows the broker to process the request, wait for new messages, and send a response without the client having to wait. In order to read the response, call `#call` on the returned object. This will block the caller until the response is available.
Edit
git clone [email protected]:zendesk/ruby-kafka.git
cd ruby-kafka
open lib/kafka/broker.rb
Contribute
# Make a new branchgit checkout -b -your-name--update-docs-Kafka--Broker-fetch_messages_async-for-pr
# Commit to gitgit add lib/kafka/broker.rbgit commit -m "better docs for Kafka::Broker#fetch_messages_async"
# Open pull requestgem install hub # on a mac you can `brew install hub`
hub fork
git push <your name> -your-name--update-docs-Kafka--Broker-fetch_messages_async-for-pr
hub pull-request
# Celebrate!