3 ms·
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
by datalopers 4y ago
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.
- philliphaydon 4y agoIt sounds like you’re trying to use lambda for the wrong things and complaining.
- deleted 4y ago[deleted]
- pid-1 4y agoWait, so AWS does not allow long running lambdas because that would make too much money for them?
- killyourcar 4y agoThe 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.