Node scales very "predictably", whereas JVM apps scale- but only as good as 
the hardware you deploy them on.  Let me explain, a single node process 
will be able to respond to the to N number of requests per second before 
response times start to rise to unacceptable amounts.  The amount for N 
will be surprisingly performant off the bat, the actual value doesn't 
matter for what I'm explaining.  You will be able to scale on a single 
machine by increasing the number of node processes to the number of CPU 
cores (C) to handle them.  The total requests per second (RPS) will not 
necessarily be N x C since you will still be contending for network IO and 
other resources- but it will be fairly close.  If the value of the total 
RPS isn't good enough on a single machines with many node processes, then 
simply add more machines to scale horizontally.  

Generally speaking it is not the greatest idea to deploy Node.js 
applications on a physical machine that is tuned for a large "scalable" JVM 
application.  The reason is most JVM machines are tuned for many CPU's and 
even more RAM.  Node.js' heap has an upper bound of around 1.5 (this can be 
raised), and most importantly is NOT shared between different node 
processes.  So in a way you need a sizable amount of RAM since you will be 
launching a lot of node processes on a single machine to utilize CPU cores, 
but there is no economy of scale of a shared heap that JVM applications 
enjoy so often times there is a lot of RAM left laying on the table.  It is 
typically cheaper and more cost effective to deploy node applications on 
smaller hardware, but pay for more machines to scale horizontally. 


On Monday, June 15, 2015 at 5:04:25 AM UTC-7, Joe Arun Kumar wrote:
>
> Weblogic is highly scalable, we can have multiple managed servers, load 
> balancing and site based server concepts. Is there similar kind of 
> scalability in Node JS?
>

-- 
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 nodejs+unsubscr...@googlegroups.com.
To post to this group, send email to nodejs@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/nodejs/24c11816-8dc8-45b7-9d94-303b6496b9e3%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to