javascript - In sails js should we plug a mongoDB database calculating app into a POST Controller? -


the main interface app return variables based on posted client, , subsequent database calculations performed in real time dedicated engine.

in sails can plug engine controller used returning calculated variable?

what best way implement real time link between client , engine ?

sails comes sockets support built in. can transmit data out of controller client via sockets keep in sync.

reference page sockets in sails: https://gist.github.com/mikermcneil/6598661

as aside, using sockets, including posting.

what 'dedicated engine'? separate service running somewhere else, or logic processing data , handing controller?

if want put data processing logic in same app can create service exports whatever data processing functions need. in controller handling post requests can call on services needed, process data, , emit client. sockets logic can go in same controller since communicating client interface. consider moving of sockets. if @ sails docs see has similar interface sockets can standard crud operations: sockets.put, etc.

sails.js websockets


Comments

Popular posts from this blog

asp.net mvc - SSO between MVCForum and Umbraco7 -

Python Tkinter keyboard using bind -

ubuntu - Selenium Node Not Connecting to Hub, Not Opening Port -