A consumer subscribing to more than one topics. Can it have separate process methods? #282
Answered
by
dasch
rohitkumarrana67
asked this question in
General
-
class TestConsumer< Racecar::Consumer def process(message) |
Beta Was this translation helpful? Give feedback.
Answered by
dasch
Oct 3, 2022
Replies: 1 comment
-
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
`` |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
dasch
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You can easily set that up yourself: