Sha256: 59d5f88362611f44f18d56e6114178006c9574bdb1271b12fd3da43c00a8771b
Contents?: true
Size: 440 Bytes
Versions: 15
Compression:
Stored size: 440 Bytes
Contents
module RabbitFeed module Consumer extend self attr_accessor :event_routing def run ConsumerConnection.instance.consume do |raw_event| event = Event.deserialize raw_event RabbitFeed.log.info {{ event: :message_received, metadata: event.metadata }} event_routing.handle_event event RabbitFeed.log.info {{ event: :message_processed, metadata: event.metadata }} end end end end
Version data entries
15 entries across 15 versions & 1 rubygems