maestrojs/postal.js — Issue #1: Exchange+Topic Linking
Author: ifandelse
Created: 2011-12-06 07:48:56+00:00
State: open

I need to add a feature that allows two exchanges to be linked, so that messages can be forwarded from one to the other based on configuration. Ex.

postal.Exchange("Products").forwardTo("Orders"); // would result in ANY topic being forwarded from Products to Orders

OR

postal.Exchange("Products")
.forwardTo("Orders").
withTopicMap({
"someSourceTopic" : "SomeDestTopic",
"someOtherSourceTopic: "SomeOtherDestTopic"
});

Just some thoughts....