Skip to content

Instantly share code, notes, and snippets.

@dasch
Last active September 7, 2020 11:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dasch/b35e0e1e584b7d973badfb661f75f31a to your computer and use it in GitHub Desktop.
Save dasch/b35e0e1e584b7d973badfb661f75f31a to your computer and use it in GitHub Desktop.
# app/consumers/hello_consumer.rb
class HelloConsumer < Racecar::Consumer
subscribes_to "some-topic"
def process(message)
puts "Received message: #{message.value}"
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment