Share on twitter

EAI Patterns with Actor Model: Dynamic Router

You may have become a bit bored with the previously discussed routing patterns, Splitter and Content-Based Router. It’s not that they aren’t necessary or useful. They absolutely are. But they are also sort of simple and much like each other, with only slight differences in the way they route messages. Sure, in an actual project we would always face additional challenges with the implementations. Still, it’s nice to move on to the more advanced Dynamic Router.

With this router there are several moving parts, and anything that’s dynamic is always more fun to code and discuss. Besides, it uses rules, and rules have a sort of intrigue about them. The rules aren’t that complex, but it’s an improvement over those observed in Splitter and Content-Based Router.

To receive messages from a Dynamic Router an Actor must register interest in a given message. With the most basic of registration processes an Actor would tell a Dynamic Router that it is interested in a specific type of message. Or there could be more elaborate rules that require the Dynamic Router to perform a multi-level look up to resolve the Actor to receive a given message.

. . .

The full text is now available as part of my book Reactive Enterprise with Actor Model on Safari Books Online.

Share on twitter

More to explore

What You Need From Agile

There continues to be all kinds of messages about Agile. My assessment is that there is both a rejection of Agile and

Actors Are Ok!

I have been using various forms of messaging for more than 30 years. Messaging has become second nature to me, but I