Hi

I am new to node js. I am currently trying to work on a project where a 
node js server can provide n different functionalities.
I envision each of these functionalities as a separate module,for eg music 
control, task list manager etc.
A command will be received by the server.
This command could be handled by any of the possible n 
modules/functionalities..
The server has to identify which module can handle it, and dispatch it.

1) Am i correct to implement each of the different unrelated 
functionalities as separate modules that the server requires
2) Each of the functionalities can support n different commands for eg, 
music control can support play music, pause music etc.
2) I believe the different supported commands can be accessed through 
exports attribute of a module, however mapping an incoming command to the 
correct module is a challenge.

I am not sure if such use cases already have elegant solutions in nodejs.
Off the top of my head I can think of some sort of hash computation (if 
there is nodejs support for it) on the supported commands of a module for 
faster access.

Thank you for your help.

Hanumant

-- 
Job board: http://jobs.nodejs.org/
New group rules: 
https://gist.github.com/othiym23/9886289#file-moderation-policy-md
Old group rules: 
https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
--- 
You received this message because you are subscribed to the Google Groups 
"nodejs" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/nodejs/94c358b2-1e3e-41b2-80b9-46566f3fbb70%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to