Last active
January 22, 2017 15:00
-
-
Save tulios/8bd40224dd939879a70d10c06b8bed68 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class MyHandler | |
include Phobos::Handler | |
def consume(payload, metadata) | |
# payload - This is the content of your Kafka message, Phobos does not attempt to | |
# parse this content, it is delivered raw to you | |
# metadata - A hash with useful information about this event, it contains: key, | |
# partition, offset, retry_count, topic, group_id, and listener_id | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment