Krakow is a Ruby client library for NSQ. The current
0.2.0 release pulls it out of its
initial “alpha” phase, providing a feature complete client library. The road to finalizing a stable
release will consist of tight release iterations to fill out the tests, stablize the core,
and add in some extra features like non-standard distributions and custom contexts for SSL.
Some cool things about this library include Celluloid backed
Celluloid::IO backed connections, with auto reconnection on connection failures.
Full connection feature support which includes Snappy and Deflate compression as well as TLS.
All this talk. Who cares about talk, lets see how to use it! OK!
Lets start with a producer:
producer = Krakow::Producer.new(
Awesome! Now lets consume those messages:
consumer = Krakow::Consumer.new(