r/awslambda • • Feb 16 '23

Good Developer Experience Programming Language for AWS Lambda

Like the title, which language you prefer to use for AWS lambda? I don’t have many experience, but my personal opinion.

Python:

  • Easy to use

  • But might be slow since it is Python

  • But the slow performance might be fine, because Lambda is used for not heavy calculation because of time limit

Node:

  • Big community and first target language for serverless

  • might be slow as well

  • Personally don’t like node’s coding style such as async, callback, etc

Java:

  • Long cold start

  • But this cold start can be much faster if use Lambda snapstart

  • But it’s fast if it comes to warm start phase

  • Guess build file’s size might be pretty big

Go:

  • Performance is good

  • Build binary file might be pretty light weight

  • Goroutine is good for parallel programming

  • Small community, and this might cause lack of support (I have some problems with using aws-sdk-v2)

Kotlin(Adding for fun, butI think it can be a good option as well)

  • Have Syntax sugar to not use Java any more and provide better developer experience

  • Can use all of the Java’s packages, so have a big community support

  • Many options to compile (GraalVM, JVM, JS)

  • GraalVM compile has actually has fast cold start

  • Coroutine will be good for parallel programming

  • But still have big build size I guess

How do you guys think?

3 Upvotes

5 comments sorted by

View all comments

1

u/[deleted] Feb 17 '23

Python 3.9

1

u/derfarmaeh Mar 10 '23

It's a pity that they still don't officially support python 3.10/3.11. But at least you can build your own images.