Hi Cliff,
Building on the same thread but consider the scenario on the server-side for the node.js environment with several modules plumbed to the Shell and I quote
sends pipe message on a STDOUT pipe to all plumbed modules. That message would pass the hash fragment to the modules, and any that need to respond may do so.
Will this be considered inefficient if each
requestVO (request/response) is broadcast to all modules while knowing that only one will handle it. Although with this strategy I can connect a
Filter to each module's Junction's
STDIN and check for URL segment (
/customer,
/product) before I let it in to respond and fulfill the
GET/POST request.
The other strategy is to determine the destination within the shell in a
Command, then send
Notification (
body: requestVO type: pipeName) followed by
JunctionMediator's writing to a specific named
Pipe. (Con: possibly will have too many checks/branches based on number of modules)
Personally I'd like to go for the broadcast option, please advise.