Skip to content

cthulhuology/opifex.filter.routes

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Opifex.filter.routes

Creates a multiple routing key filter based on a common routing key scheme

Getting Started:

opifex 'amqp://guest:guest@localhost:5672//route-in/#/router/route-out/router' filter.routes

This will read a config file in ~/.routes.coffee:

module.exports =
	exchange: "filtered-exchange"
	prefix: "routing.key.prefix"
	channels: [ "suffix1","suffix2", ... "suffixN" ]
	message: "out-bound-message-name"

So assuming your inbound messages have a routing key of the form:

"#{prefix}.#{channel}"

This module will create a series of bindings of a set of key suffixes from a single exchange, to it's queue.

The module will then rewrite the message and send it to the commandline specified outbound exchange.

About

Creates a multiple in single out filter off of a single exchange for subselecting multiple arbitrary routing keys

Resources

License

Stars

Watchers

Forks

Packages

No packages published