Hacker News new | past | comments | ask | show | jobs | submit login

The whole stack of waiterio.com runs on AWS Lambda. We do use several Monolith lambdas and it works well.

I believe the reason why Lambda has seen so little adoption is because cloud architects suggest to break existing services into a Lambda function for each endpoint. This causes an explosion of complexity and code that runs in the cloud in one way but it can't be reproduced locally on developer machine easily.

My advice is the opposite: DO USE MONOLOTHIC LAMBDAS.




I'm currently using tools like CDK and Pulumi, which allow to abstract multiple resources neatly into one component.

Do you think monolitic Lambdas still make sense in that case?


CDK(and infra as code in general) is amazing, especially for use cases like this where one would be responsible for deploying and creating resources around 10s of lambdas for one 'service'.


We are using AWS CDK too! CDK is freaking AWESOME to write Infrastructure as Code. AWS CDK https://anjith-p.medium.com/writing-infrastructure-as-code-w...

Yes in my opinion the right division is

GOOD 1 lambda = 1 service

BAD 1 lambda = 1 endpoint

I'm eager to chat with you about CDK since it's kind of new and I don't know anyone else using it. Feel free to write me at giorgio DOT zamparelli AT gmail DOT com to chat about CDK, Lambda, serverless, Infrastructure as Code.


If you are using CDK then check out SST: https://github.com/serverless-stack/serverless-stack

It's based on CDK and has a great local development environment for Lambda. It allows you to set breakpoints and test it locally: https://serverless-stack.com/examples/how-to-debug-lambda-fu...


You might want to edit that comment and speak towards cold start times, dependency management, your deployment strategy (e.g. are you using a docker image lambda or zip, etc) and what you're paying for provisioned concurrency to keep those big lambdas warm and available. That's all nuance you're missing from promoting monolith lambdas, and those kinds of things will get the non-architect-minded in hot water.


We use node.js and the cold start times are negligible. Java, C# and docker based lambdas have problems with cold start times but we do not suffer from them. We also use JAMstack and our html pages are statically generated in advance with Cloudfront CDN in front. We use Lambda for the backend REST JSON APIs.


+1 working on a very large project that's using microservices and microlambdas a real nightmare




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: