Win a copy of The Career Toolkit this week in the Jobs Discussion 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
  • Paul Clapham
  • Ron McLeod
  • Bear Bibeault
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Jj Roberts
  • Carey Brown
Bartenders:
  • salvin francis
  • Frits Walraven
  • Piet Souris

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: 67496
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: 67496
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: 22984
    156
    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.
     
    Author
    Posts: 45
    5
    MySQL Database PHP Linux
    • Likes 1
    • Mark post as helpful
    • send pies
    • Quote
    • Report post to moderator

    SunilK Chauhan wrote: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.



    Not at all. Java was, and is more robust than Node.js
    Node.js became popular because of the Everything in Javascript Approach, and those quick dirty applications which can stand a loosely written script. If your front end is controlled by Javascript, considering Node.JS for a backend is not a bad option at all. Java is always the first choice for high security systems, which want to target complex frameworks in the making. Smaller applications where a bunch of micro services is enough of the business logic - NodeJs is indeed helpful with feature rich frameworks and a less steeper learning curve.

    Infact, my book discusses this in brief. https://www.apress.com/gp/book/9781484258040

     
    reply
      Bookmark Topic Watch Topic
    • New Topic