pigeon-post

YAML configuration based RabbitMQ interface

npm install pigeon-post
8 downloads in the last week
32 downloads in the last month

pigeon

Configuration based RabbitMQ interface based on node-amqp

Installation

npm install pigeon

Synopsis

An example of connecting to a server, publishing an event and receiving it

Configuration file

publishers:
  -
    name: greeter
    options:
      type: fanout
    publishes:
      - greeting
subscribers
  -
    name: receptionist
    bindings:
      greeter:
        - greeting

Publisher

var Pigeon = require('pigeon').getInstance();

Pigeon
    .connect('config.yml')
    .publish('greeting', {value:'Hello World'})

Subscriber

var Pigeon = require('pigeon').getInstance();

Pigeon
    .connect('config.yml')
    .subscribe('receptionist', function(msg) {
        console.log(msg);
    });
npm loves you