Win a copy of Zero to AI - A non-technical, hype-free guide to prospering in the AI era this week in the Artificial Intelligence and Machine Learning forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Paul Clapham
  • Bear Bibeault
  • Jeanne Boyarsky
Sheriffs:
  • Ron McLeod
  • Tim Cooke
  • Devaka Cooray
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Jj Roberts
  • Stephan van Hulst
  • Carey Brown
Bartenders:
  • salvin francis
  • Scott Selikoff
  • fred rosenberger

Is node really better than Java for Microservices apps?

 
Ranch Hand
Posts: 136
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,

I am thinking like in today's market Microservices are very demanding. And seems like apps like low in memory consumption and giving the same features compare to others is booming.

So I think node js is the language which comes as best in those parameters and also it can provide the same features by consuming less memory compare to java.

And also node can handle more requests than Java for the same api build.

So is it true that node js will be the replacement of Java in future?

Anu suggestions are welcome.

Thanks.
 
Marshal
Posts: 67463
173
Mac Mac OS X IntelliJ IDE jQuery Java
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

SunilK Chauhan wrote:
So I think node js is the language which comes as best in those parameters and also it can provide the same features by consuming less memory compare to java.

And also node can handle more requests than Java for the same api build.


Can you cite your sources for the above claims?
 
SunilK Chauhan
Ranch Hand
Posts: 136
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can you please elaborate more as I don't understand what are you asking by cite?
 
Bear Bibeault
Marshal
Posts: 67463
173
Mac Mac OS X IntelliJ IDE jQuery Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You claimed:
  • node js is the language which comes as best in those parameters
  • it can provide the same features by consuming less memory compare to java
  • node can handle more requests than Java for the same api build

  • What evidence do you have to support these claims?
     
    SunilK Chauhan
    Ranch Hand
    Posts: 136
    • Mark post as helpful
    • send pies
    • Quote
    • Report post to moderator
    Currently I am working on Microservices based project since long and here we are shifting projects from Java to node for the same purpose.

    Here i can Check as the project being shifted from Java to node js. Purpose is same but only thing is memory consumption is less compare to have java app.

    This the reason i am saying.
     
    Saloon Keeper
    Posts: 22648
    153
    Android Eclipse IDE Tomcat Server Redhat Java Linux
    • Likes 1
    • Mark post as helpful
    • send pies
    • Quote
    • Report post to moderator
    I honestly don't know about the "low in memory services" part. The darling of the day is containers, and while containers are less memory than full VMs or independent computers, they typically need hundreds of megabytes each just for disk storage. So it has to be a fairly fat application to outweigh the container's overhead.

    In any event, while I've used NodeJS for some microservices myself, I don't think what it's producing is really all that compact. And in my opinion, it's a lot less tidy than a Java webapp bundled in Spring Boot.

    Also, of course, if you consider what kind of havoc an insecure microservice could potentially wreak, the Java security architecture holds about the best record around - providing you avoid applets, of course.
     
    Could you hold this kitten for a sec? I need to adjust this tiny ad:
    the value of filler advertising in 2020
    https://coderanch.com/t/730886/filler-advertising
    reply
      Bookmark Topic Watch Topic
    • New Topic