I'm fairly new to node, but quite experienced at development (PHP, Java, C, asp, .Net, VB - I've been round the block a few times).
I'm in the early stages of planning the redevelopment of a web-app servicing several thousand active users per day and currently NodeJS is looking to be a good platform choice. The existing application is written in PHP and whilst it's serviceable, it has a mess of output code and business logic mashed together, and is build in a poorly implemented MVC style. We've been looking to redevelop it for some time, with an objective of improving throughput, and separating the business logic from the templates to make the application more modular and enable the development of a some companion mobile apps. So to my question: What approach is Node better suited to? - a single monolithic runtime - multiple instances on a single machine - I've seen the new "Cluster" module, which certainly looks interesting, but is listed as experimental... - multiple instances on multiple machines with proxying/vhosting - some other configuration I've seen some examples of load balancing between processes on a single server, load balancing between servers, using a primary node instance as a routing controller, using a single node instance for everything, multiple http servers in a single js app, and it all seems pretty straight forward, but I'm not sure of the pros/cons of the different approaches, so I'm after recommendations and best practices (if there are any) rather than just blundering forward. I know risky to ask an open ended opinion-based question of developers, but I'm looking for a start point from any developers who've actually done medium-scale applications with NodeJS. Thanks. -- 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/c0587c39-a577-407b-9a49-e75464701af2%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
