This content has been marked as final.
Show 2 replies
-
1. Re: ContentBasedRouter vs ServiceInvoker
kennethbowen Jul 9, 2009 3:04 PM (in response to kennethbowen)Any thoughts? Does my question make sense?
-
2. Re: ContentBasedRouter vs ServiceInvoker
ryanhos Jul 10, 2009 10:28 AM (in response to kennethbowen)It was a developer wiser than I who once said,
"If you ever find yourself attempting to write:if (obj instanceof Foo)
smack yourself and reexamine the design of your program."
That being said, the rules engine (that is, the CBR) used in the simple manner you describe is just an expensive, glorified instanceof. It is only after the routing rules multiply and become more complex that you begin to realize the efficiencies that a rules engine can provide. If you expect to eventually encounter this complexity, go ahead and begin using the CBR today.