Live data from Hacker News

What would make AWS even better

yehudacohen.substack.com

11–20 of 70 posts

Re: What would make AWS even better

#12
post #7

Lambda is insanely expensive is why they don’t allow long-running jobs. A 1GB allocation is $43/mo. And most lambda users are running 1 single task/process per lambda invocation.

Wait, so AWS does not allow long running lambdas because that would make too much money for them?

The actual reason is that long running invocations run synchronous workflows, typically requiring holding threads and sockets open for the entire duration of execution.

Lambda is a complex system, and holding those sockets for long times across many services could cause resource starvation issues. You've got load balancers, data plane, control plane, tenant vms, and a whole bunch of caches, and support services that all need to be ready to roll over the lifetime of the invocation.

And you have to consider the use case for draining and patching lambda pools. If someone is running a two hour function and you need to take down any server that's currently holding a thread or socket for it, you need to wait for the function to complete. You can't start a new load, so you are really inefficiently using resources until the function completes.

Re: What would make AWS even better

#14
Long running lambda functions are called AWS Batch. It’s a relatively unknown service but pretty decent if you need something like a GPU or long running jobs and can tolerate a 90 second cold start.

Re: What would make AWS even better

#15
What about, "treat AWS workers better"? Pay your people for their on call hours! Let them work on side projects and games in their spare time! Give them more than seven paid holidays. Give them more than two weeks vacation!

Only six weeks of paid parental leave?

I would absolutely be willing to pay more for AWS if I knew that amount was going to treating the poor folks who built it all better.

Re: What would make AWS even better

#16
I am pretty surprised they don't compete with Stripe. They have some Amazon pay thing I'd never use, but competing with Stripe seems obvious.

Same with Twilio. They do kind of compete with them, but not really.

Their managed airflow is insanely basically unusably expensive, I don't get that.

Re: What would make AWS even better

#17
post #10

Long running lambdas would be sick for infrequent / low concurrency data pipelines. My wet dream is "bidirectional IaC". Let me make changes using the GUI, commit to repo automatically.

In most cases, I think you can do fine with just having a proper async interface to the data pipeline, where you trigger something, and then you respond to the trigger that it has completed.
Post reply on HN