Re:Go performance from version 1.2 to 1.18
by marcus_cemes on Friday February 04, 2022 @06:22AM
(#30205433)
Fly.io is amazing, I'm very excitied for it! They spin up a long-lived instance on the edge closest to the user and create a Wireguard tunnel in-between. They also have a free tier and reasonable pricing. Heroku is just far too expensive for a hobby project.
Re:Go performance from version 1.2 to 1.18
by throwaway894345 on Friday February 04, 2022 @12:04PM
(#30209431)
Usually the database (not the compute) is where things get expensive (Heroku's 10K rows is not practical for most tasks unless you're willing to do unholy things to put more data into a row).
Re:Go performance from version 1.2 to 1.18
by potta_coffee on Friday February 04, 2022 @12:00PM
(#30209376)
I've written many lambdas in Python but have switched entirely to Go for all my new lambda work. Go is just better in every way - uses a fraction of the memory and executions take a tiny amount of the time Python takes.
Re:Go performance from version 1.2 to 1.18
by tgtweak on Friday February 04, 2022 @12:36PM
(#30209904)
I have a feeling AWS lambda's hypervisor has a lot of overhead, and simply making your workload smaller/lighter has a very noticeable reduction in execution time (cold start is <10ms on most of our GO lambdas).
re: full serverless:
I mean, try for yourselves but unless you're running an echo statement, you'll probably be hard pressed to get lower than this. Some early experiments with Rust showed 5x that, and that is as close to GO as I would dare to compare.
A while back I saw perf. tests on lambda cold starts per language. And somewhat surprisingly python was the fastest.
It's probably not the same test but python is still at the top [1]
[1] https://www.simform.com/blog/aws-lambda-performance/#Startup...
I guess those who are already into AWS would probably be choosing Lambda for serverless Go. If the experience is same as Node JS or Python on Lambda, Then I don't think there would be much to complain other than the cost; But of course cannot match the speed or cost of a CF worker for the reasons you've pointed.