Hacker News new | past | comments | ask | show | jobs | submit login
Ask HN: Which one to choose: Serverless or Containers?
4 points by sitajay on March 8, 2018 | hide | past | favorite | 2 comments
I've read about people switching over from Docker (container) to AWS Lambda (serverless) but what scratches my head is, are there any performance (latency and cold start especially) difference? I mean, both are quite similar, so there shouldn't be any difference at all?

Let's say you create a single function that returns a certain calculated number, and you deploy this as Lambda function and to docker. My guess is that both should perform that function equally fast, am I wrong?

My question: Why should you prefer one over the other?

My understanding is that AWS Lambda functions are just like Docker except they're "smaller" and stateless and only runs when the function is being called.




With docker you can run a different operating system and version of the app dependencies for each application (and each container can have different configuration and environment), and you can run it locally on your computer. Aws Lambda is extremely limited compared to that, no?


serverless have limitations on the computing power time and memory limits. Also they need to finish in 300 seconds or something like that.




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

Search: