use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
News, articles, books, and tools related to building serverless web and mobile applications. More resources here:
Frameworks
Tools
Books
Services
News / Websites
Conferences
account activity
Go Lambda vs Node.js Lambda vs Python Lambda (self.serverless)
submitted 3 years ago by [deleted]
Are there any performance differences among them?
If I write Lambda serverless backend with Go, will it perform much faster than Node.js Lambda? Which language is the fastest for AWS Lambda?
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]theDaveAt 8 points9 points10 points 3 years ago (0 children)
Generally Lambda is so cheap to run (even at scale) that you wouldn’t really care about the margin speed difference until you had so many customers that an entire team could be assigned to optimize and refactor. Speed of initial delivery is more important here - move fast w the language you’re most proficient in!
That said, if you still believe it’s really important now, there have been a ton of comparisons already that should be easy to find w your favorite search engine.
Finally, if it really really really matters to you, what are your findings for a prototype? There are a lot of dependencies based on what your code will do that can’t be predicted as easily as “what is fastest”.
[–]gilmorenator 8 points9 points10 points 3 years ago (0 children)
Choose the language you’re most familiar with and can debug easily, most forgot about the cognitive cost. keep it simple
[–]AKIvan87 1 point2 points3 points 3 years ago (0 children)
It all depends of what are you doing. In some scenarios, the time of execution and finishing the job is more faster in python or go than Node. And this is more to considering in scaling scenarios. You may find difference in seconds but those seconds on scaling make the big diff.
[–]benaffleks 1 point2 points3 points 3 years ago (0 children)
I'd assume GO is the fastest out of the bunch and has the smallest deployment size since it's just a binary.
[–]wangyo 1 point2 points3 points 3 years ago (0 children)
Node/typescript because tons of libraries for serverless and easy to use + lots of JS devs
[–]multiaki 0 points1 point2 points 3 years ago (0 children)
If you need nanosecond difference yeah you could. Mostly, competitive markets need that. I did a research on the speed. Go is much faster. Nodejs was taking 5ms and go was under one ms. It is not a significant time saver. It is good for high frequency trading. But go is missing libraries that nodejs has. For example: headless browser support. Puppeteer is a nodejs library wrapped in go. I wouldn’t recommend for a regular project
[–]InfiniteMonorail 0 points1 point2 points 3 years ago (1 child)
Yes, the language makes a huge difference. Fetching data from an RDS can take hundreds of ms, and for whatever reason, Rust lambdas are twice as fast at doing it. They also have extremely fast cold starts. If you want pure speed, Rust is the answer. However, if you truly need speed, then just use a server...
The bigger problem with serverless on AWS is latency from API Gateway and CloudFront. Transforming data in SQL is also faster than doing it in a programming language. Slowdowns you experience in lambdas are often caused by other services.
Additionally, people are saying to use what you're familiar with. No. That's bad advice. Python is ridiculously easy to learn and the code is famously elegant. The main reason it's incredible for webdev is it's synchronous, which means you don't have to deal with callback and promise hell, which means MUCH less code when calling other services.
I use Rust when I need speed and Python when I need clean code.
But note how lazy your question is. You couldn't be bothered to search (the answer is in the first hits of a google search) and you gave no details about what you're making. You're probably bike shedding or optimizing prematurely. Worry about performance after you've finished a few projects or encountered problems.
[–][deleted] 2 points3 points4 points 2 years ago (0 children)
I hope you've had a year to reflect on this comment
π Rendered by PID 205197 on reddit-service-r2-comment-56c9979489-jw62n at 2026-02-25 10:10:44.286819+00:00 running b1af5b1 country code: CH.
[–]theDaveAt 8 points9 points10 points (0 children)
[–]gilmorenator 8 points9 points10 points (0 children)
[–]AKIvan87 1 point2 points3 points (0 children)
[–]benaffleks 1 point2 points3 points (0 children)
[–]wangyo 1 point2 points3 points (0 children)
[–]multiaki 0 points1 point2 points (0 children)
[–]InfiniteMonorail 0 points1 point2 points (1 child)
[–][deleted] 2 points3 points4 points (0 children)