With Donkey, you don't need to reinvent the wheel everytime you want to write something to a file or send something to a message queue (e.g. RabbitMQ): you just tell Donkey and he will relentlessly do it!
First of all tell Donkey the routes you want it to walk:
<route> <from uri='direct://inOrders'/> <to uri='log://MyLogger?level=log'/> </route>
Here is another definition:
<route> <from uri='file://orders/incoming?delay=10000'/> <multicast> <to uri='log://orders_orig?level=log'/> <to uri='amqp://orders'/> </multicast> <route> <route> <from uri='amqp://orders'> <choice> <when> <simple>filterA</simple> <to uri='log://filterA?level=log'/> </when> <when> <simple>filterB</simple> <to uri='log://filterB?level=log'/> </when> </choice> </route>
Donkey offers you patterns to organise you routes and endpoints to interface with the world.
Donkey is not yet available on the npm repository, but the package.json is properly setup. Until I add a script, you wil have to:
node_modulesfolder if not already there
node_modules, create a simlink pointing at each subfolders of
lib/node-donkey/componentsand call them
In order to use components that are not part of the donkey core (e.g. donkey-amqp), you need of course to install that first, simply using npm.
This is a loooong list, Donkey is just born!
Well, I guess the biggest sources of inspiration are Apache Camel and the EIP book. Very good work and great ideas!