Skip to content

Instantly share code, notes, and snippets.

@ssebro
ssebro / generated-event-consumer.js
Last active November 10, 2015 15:57 — forked from kristofsajdak/complex1.js
Generic template for event consumer
//This is a representation of what would be generated by the generic-event-consumer
var rabbit = require('rabbitConnect');
//Data consumer can be anything that depends on a queue - it's just a placeholder.
var dataConsumer = require('dataConsumer');
//The dataConsumer will dispatch messages to the change handler functions appropriately.
var exchange = rabbit.topic('change.events');
exchange