Skip to content

Instantly share code, notes, and snippets.

@tulios
Last active January 22, 2017 15:00
Show Gist options
  • Save tulios/8bd40224dd939879a70d10c06b8bed68 to your computer and use it in GitHub Desktop.
Save tulios/8bd40224dd939879a70d10c06b8bed68 to your computer and use it in GitHub Desktop.
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