KyleGalvin / webapps

1 stars 0 forks source link

server side dispatcher plugin architecture #4

Open KyleGalvin opened 9 years ago

KyleGalvin commented 9 years ago

the server side dispatcher is an abstraction that takes commands and dispatches them to various workers. Adding all the possible workers into the dispatcher is too coupled and rigid. we need a modular plugin architecture that allows the dispatcher to import the desired functionality.

this may involve adding a plugin name space we can use as a calling convention

KyleGalvin commented 9 years ago

The log publishing tools can be grouped with a few other tools into a 'utils' namespace. This will likely be the first test plugin developed. Namespace convention may be grouped onto the "commands" section of a message packet (which acts as the command data in a typical command pattern)

Now instead of a single command string, an array specifying the namespace path followed by the specified command string can be used.

The dispatcher will also have to be updated accordingly.