Pipelines and OpenAdaptor
The “Pragmatic Duo”:http://www.pragmaticprogrammer.com have published a nice “article on Pipelines”:http://www.pragmaticprogrammer.com/articles/nov_03_pipelines.pdf in a recent issue of IEEE Software. It talks about moving the idea of pipes from the realm of unix shell programming into general software architecture. Couldnt agree more.
The implementation section however suffers from a little bit of “handwaving”. I would suggest that rather than writing a thread/processor/queue implementation (which is a dog to get right unless you are Doug Lea :), or using a messaging middleware (which is usually an overkill if you dont need distributed messaging), try out “OpenAdaptor”:http://www.openadaptor.org. There is nothing that’s easier for getting a random set of data sources, sinks and filters tied together without much coding. I think its the best way to do pipelining, at least in Java … it’s saved me months of work at various occasions.