News for hackers. Stuff that matters.
Re:A bank runs serverless with PHP and AWS Lambda by ndriscoll on Wednesday November 01, 2023 @06:00PM (#38105925)
Lambda scalability for an API is awful; it can't run concurrent requests (of course PHP largely can't do this either). An ECS service with pretty much any other language (for async/multithreaded runtimes) will scale far better.
Re:A bank runs serverless with PHP and AWS Lambda by cebert on Wednesday November 01, 2023 @06:07PM (#38105999)
A single lambda can only handle one request at a time, but you can scale up 1,000s of instances if needed.
Re:A bank runs serverless with PHP and AWS Lambda by ndriscoll on Wednesday November 01, 2023 @06:19PM (#38106149)
A single minimal ECS instance can handle thousands of concurrent requests with an async runtime without running into so many cold starts that your p25 time is in the hundreds of ms.

1000 lambdas with 1000 database connections is also going to be a horrible way to do things on the backend.