Win a copy of Serverless Applications with Node.js this week in the NodeJS 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
  • Bear Bibeault
  • Jeanne Boyarsky
  • paul wheaton
Sheriffs:
  • Junilu Lacar
  • Paul Clapham
  • Knute Snortum
Saloon Keepers:
  • Stephan van Hulst
  • Ron McLeod
  • Tim Moores
  • salvin francis
  • Carey Brown
Bartenders:
  • Tim Holloway
  • Frits Walraven
  • Vijitha Kumara

Serverless Programming Cookbook: best language?  RSS feed

 
Marshal
Posts: 6634
443
BSD Linux Mac OS X VI Editor
  • Likes 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Welcome to the ranch, Heartin Kanikathottu,

I have a question. Either on AWS or Google Cloud, in particular lambdas and cloud functions, you can write them using a certain set of languages, mainly: Go, Java, JavaScript, Python. So my question is, in cloud environments, are there any known significant differences, why one language would be better over the other to use specifically in cloud environment, or they are purely just for the variety purpose? Or maybe it is a standard model, which is very much related with the "use tool which fits the task best"? Thanks.
 
Author
Posts: 18
5
  • Likes 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Liutauras Vilda wrote:Welcome to the ranch, Heartin Kanikathottu,

I have a question. Either on AWS or Google Cloud, in particular lambdas and cloud functions, you can write them using a certain set of languages, mainly: Go, Java, JavaScript, Python. So my question is, in cloud environments, are there any known significant differences, why one language would be better over the other to use specifically in cloud environment, or they are purely just for the variety purpose? Or maybe it is a standard model, which is very much related with the "use tool which fits the task best"? Thanks.


Selection of runtime may some impact on cold start times. JavaScript or Python may have lesser cold start time compared to Java. Also, if you are building a web app with a JavaScript based front end, you may prefer JavaScript. Similarly, if you are working on a machine learning project, you may select Python because of its libraries. However, in most cases it is decided based on your team's knowledge level. If you have a team of Java developers you will most probably develop in Java as long as all of the required functionality can be met using that runtime. AWS Lambda now even support custom runtimes. So you are no more restricted to few predefined runtimes.  
 
Liutauras Vilda
Marshal
Posts: 6634
443
BSD Linux Mac OS X VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Heartin Kanikathottu wrote:Selection of runtime may some impact on cold start times.


Good to know and actually makes sense. So for the functions which are meant just to glue some processes it does make sense to choose execution env which starts up quicker. That probably also gets reflected in runtime bills over the time.

Heartin Kanikathottu wrote:AWS Lambda now even support custom runtimes. So you are no more restricted to few predefined runtimes.


I haven't tried AWS Lambda's yet, just Google Cloud functions, unfortunately latter is still in beta and the supported languages list is not as rich as in AWS, but I'm expecting it to catch up over the time. In anyway, book sounds to be very interesting and useful to read, regardless in which cloud environment one works.

Thank you for an answer.

 
A teeny tiny vulgar attempt to get you to buy our stuff
global solutions you can do at home or in your backyard
https://www.kickstarter.com/projects/paulwheaton/better-world-boo
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!