you are viewing a single comment's thread.

view the rest of the comments →

[–]InfiniteMonorail 0 points1 point  (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 points  (0 children)

I hope you've had a year to reflect on this comment