TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Running Containers on AWS Lambda

170 pointsby shaicolemanabout 3 years ago

14 comments

adamgordonbellabout 3 years ago
Author here. I didn&#x27;t expect this to show up here. I found containers on lambda to work really well. I can easily test them locally and they scale to zero when I&#x27;m not using them in AWS. So it&#x27;s perfect for things that are idle a lot.<p>I have a follow up coming where I use go in a container, and the request speed got a lot better.<p>The service in this article is my html to text convert, so having a container where I could install OS-dependencies was crucial to getting this working. It&#x27;s covered here and here:<p><a href="https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=30829568" rel="nofollow">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=30829568</a><p><a href="https:&#x2F;&#x2F;earthly-tools.com&#x2F;text-mode" rel="nofollow">https:&#x2F;&#x2F;earthly-tools.com&#x2F;text-mode</a>
评论 #31183678 未加载
excuses_about 3 years ago
I had much better experience with GCP Cloud Run. Prepare a OCI&#x2F;Docker image, type `gcloud run` with a few flags and you’re done. In 2021 they added a bunch of features which in my opinion make Cloud Run one of the most trivial ways of deploying containers indented for production usage.
评论 #31186513 未加载
评论 #31189312 未加载
gadflyinyoureyeabout 3 years ago
We&#x27;re trying this out at a large insurance company. Historically actuarial teams created excel workbooks, r code, and python. Then those models were given to development teams to implement in a different language. As one might guess there were loads of bugs and the process was slow. Now we&#x27;re going to deploy an R lambda that owned by DevOps which integrates all the I&#x2F;O into dataframes. The lambda calls a calculation in R that takes those dataframes and returns a dataframe answer. If all goes well (prototype works fine), we saved probably 500k and 6 months.
carfactsabout 3 years ago
You’ll have to deal with lambda cold starts if you want it to be performant:<p>&gt; When the Lambda service receives a request to run a function via the Lambda API, the service first prepares an execution environment. During this step, the service downloads the code for the function, which is stored in an internal Amazon S3 bucket (or in Amazon Elastic Container Registry if the function uses container packaging). It then creates an environment with the memory, runtime, and configuration specified. Once complete, Lambda runs any initialization code outside of the event handler before finally running the handler code.<p><a href="https:&#x2F;&#x2F;aws.amazon.com&#x2F;blogs&#x2F;compute&#x2F;operating-lambda-performance-optimization-part-1&#x2F;" rel="nofollow">https:&#x2F;&#x2F;aws.amazon.com&#x2F;blogs&#x2F;compute&#x2F;operating-lambda-perfor...</a>
评论 #31183331 未加载
评论 #31183487 未加载
评论 #31183572 未加载
评论 #31183281 未加载
fswdabout 3 years ago
Lambda is Greek for CGI script.
评论 #31183256 未加载
评论 #31183791 未加载
评论 #31184000 未加载
quaffapintabout 3 years ago
We are using a container hosting .net6 with our lambda. We use it where I think lambdas really work well, that is to process queue items off of SQS. It works well with the dead-letter queue as well. We dont notice any performance issues, but this is just a processor, so we don&#x27;t need to worry about real-time responses either.
评论 #31186037 未加载
victor106about 3 years ago
I found using AWS Copilot to deploy to AWS Fargate easy to deploy, maintain and scale.
评论 #31186535 未加载
vorpalhexabout 3 years ago
I went down the rabbithole of wanting to build my own lightweight Lambda, only to wonder if Lambda is just distributed CGI by another name.
评论 #31183067 未加载
评论 #31183550 未加载
评论 #31183018 未加载
holografixabout 3 years ago
No offence but Cloud Run has been doing this for a while?<p>And now Cloud Functions gen 2 as well…?
fulafelabout 3 years ago
I&#x27;v found that using this will cause Lambda sometimes to return 500 errors while it&#x27;s reloading the container image from the registry. This might be the price for allowing large images, they&#x27;ve decided not to do it in a blocking way.
Kalanosabout 3 years ago
How long does it take to fetch the container - is it warm or cold? For AWS Batch it was taking me 1-3 min. So I was really surprised&#x2F; happy to see this lambda container post.
评论 #31182717 未加载
评论 #31182637 未加载
scottydeltaabout 3 years ago
Is it possible to host an app like Django inside container on lambda? This could help the Django&#x2F;postgres apps to scale horizontally easily.
评论 #31183855 未加载
评论 #31183326 未加载
评论 #31185356 未加载
评论 #31184509 未加载
评论 #31185273 未加载
评论 #31184420 未加载
评论 #31186445 未加载
spullaraabout 3 years ago
I have an entire video analytics pipeline running about a dozen containers for inference. Works great.
评论 #31184717 未加载
faangiqabout 3 years ago
“Why run on lambda instead of fargate? Oops, we won’t tell you.” - AWS
评论 #31188490 未加载