Sr. Backend Engineer at Grappus·
Needs advice
on
JavaJavaNode.jsNode.js
and
Spring CloudSpring Cloud

I am trying to write a cloud function that needs to perform a specific task. I will be using AWS Lambda for executing the function. I have 3 choices for stacks to write the lambda function: Plain Java, Node.js, or a Spring Boot stack. I have an idea of the time that the lambda would take to execute for a Hello World example for each of these stacks, and based on that, it is a close competition between Java and Node.js. I want to get some insight into what to chose and also how it would affect if my lambda would need scaling.

READ LESS
4 upvotes·11.2K views
Replies (3)
Recommends
on
Node.js

Hi Nikhil, I agree either Node.js or Java can be used to write the AWS lambda function. As you didn't say the type of task is going to be performed in AWS function. I would recommend Node.js if the task has to run asynchronous (i.e) Don't wait and simple continue with the next request.

Some difference between Node JS and Java

  • Node JS is open source where as Public updates for Oracle Java SE 8 released after January 2019 will not be available for business, commercial, or production use without a commercial license, as Oracle announced.
  • Node.JS uses asynchronous programming language, so its easier to write and executions is non blocking.
READ MORE
4 upvotes·1 comment·4.8K views
Nikhil Gurnani
Nikhil Gurnani
·
October 13th 2020 at 7:11AM

Agreed, however my task is not asynchronous in nature. Although, its still a lightweight task so I think this argument would still apply. Thanks for your insight!

·
Reply
Recommends
on
Spring Cloud

I find Spring Boot is the most productive environment, and written properly, it is fast. However, speed is the least of your concerns. You should be considering support and maintenance, along with time to market. The best tool for the job is the one that you can support 5 years in to the future. It is the one that will return dollars from customers soonest. You can always scale up your AWS Lambda servers to get more power.

READ MORE
4 upvotes·1 comment·6.9K views
Nikhil Gurnani
Nikhil Gurnani
·
October 13th 2020 at 7:10AM

Agreed on the points. Thanks for your insight!

·
Reply
View all (3)
Avatar of v-rajasekar