Skip to content

A consumer subscribing to more than one topics. Can it have separate process methods? #282

Answered by dasch
rohitkumarrana67 asked this question in General
Discussion options

You must be logged in to vote

You can easily set that up yourself:

def process(message)
  send("process_#{message.topic}", message)
end

private

def process_comments(message)
  # ...
end

def process_events(message)
  # ...
end
``

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by dasch
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants