logoalt Hacker News

eastonyesterday at 7:45 PM2 repliesview on HN

Counterpoint: https://justingarrison.com/blog/2024-02-08-fargate-is-not-fi...

And also, you’ll notice that Fargate takes minutes to launch while Lambda takes a second or less. You’re waiting on AWS to launch a EC2 with your config and pull your containers into it.

(that article matches things I heard from Amazon when I asked why my stuff is slow)


Replies

luhnyesterday at 10:30 PM

I can't tell you why Fargate is so slow, but the reason Lambda containers are so fast is because it doesn't actually load the image. It loads a manifest of the layers and the files in each, and then each file is loaded on-demand from a multi-tier cache. 90% of the image is never loaded, and 90% of the remainder is served from local cache. It's a pretty cool architecture.

everfrustratedyesterday at 10:00 PM

Container pulls are slow. Lambda starts fast as it's not unpacking your container to a local disk on every start.