[{"data":1,"prerenderedAt":169},["ShallowReactive",2],{"term-s\u002Fserverless-containers":3,"related-s\u002Fserverless-containers":150},{"id":4,"title":5,"acronym":6,"body":7,"category":130,"description":131,"difficulty":132,"extension":133,"letter":134,"meta":135,"navigation":136,"path":137,"related":138,"seo":144,"sitemap":145,"stem":148,"subcategory":6,"__hash__":149},"terms\u002Fterms\u002Fs\u002Fserverless-containers.md","Serverless Containers",null,{"type":8,"value":9,"toc":124},"minimark",[10,15,19,23,26,30,113,117,120],[11,12,14],"h2",{"id":13},"eli5-the-vibe-check","ELI5 - The Vibe Check",[16,17,18],"p",{},"Serverless functions make you squeeze your code into a tiny handler function with a strict shape. Serverless containers say fine, just give us a Dockerfile, run whatever you want inside it, in whatever language, for as long as a real request takes, and we'll still scale it to zero and bill you by the second. It's the container flexibility you already know, minus the part where you manage the servers underneath it.",[11,20,22],{"id":21},"real-talk","Real Talk",[16,24,25],{},"Serverless containers run arbitrary containerized workloads with the operational model of serverless functions: automatic scaling (including to zero), per-second billing, and no server or cluster management required from the developer. Services like AWS App Runner, Fargate, Google Cloud Run, and Azure Container Apps sit between raw Kubernetes and narrow FaaS platforms, supporting long-running processes, arbitrary runtimes, and larger request bodies that traditional FaaS handlers struggle with.",[11,27,29],{"id":28},"show-me-the-code","Show Me The Code",[31,32,37],"pre",{"className":33,"code":34,"language":35,"meta":36,"style":36},"language-bash shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","# Deploy any container as a serverless service (Cloud Run)\ngcloud run deploy my-api \\\n  --image gcr.io\u002Fmy-project\u002Fmy-api:latest \\\n  --min-instances 0 \\\n  --max-instances 20 \\\n  --memory 512Mi\n","bash","",[38,39,40,49,70,81,93,104],"code",{"__ignoreMap":36},[41,42,45],"span",{"class":43,"line":44},"line",1,[41,46,48],{"class":47},"sHwdD","# Deploy any container as a serverless service (Cloud Run)\n",[41,50,52,56,60,63,66],{"class":43,"line":51},2,[41,53,55],{"class":54},"sBMFI","gcloud",[41,57,59],{"class":58},"sfazB"," run",[41,61,62],{"class":58}," deploy",[41,64,65],{"class":58}," my-api",[41,67,69],{"class":68},"sTEyZ"," \\\n",[41,71,73,76,79],{"class":43,"line":72},3,[41,74,75],{"class":58},"  --image",[41,77,78],{"class":58}," gcr.io\u002Fmy-project\u002Fmy-api:latest",[41,80,69],{"class":68},[41,82,84,87,91],{"class":43,"line":83},4,[41,85,86],{"class":58},"  --min-instances",[41,88,90],{"class":89},"sbssI"," 0",[41,92,69],{"class":68},[41,94,96,99,102],{"class":43,"line":95},5,[41,97,98],{"class":58},"  --max-instances",[41,100,101],{"class":89}," 20",[41,103,69],{"class":68},[41,105,107,110],{"class":43,"line":106},6,[41,108,109],{"class":58},"  --memory",[41,111,112],{"class":58}," 512Mi\n",[11,114,116],{"id":115},"when-youll-hear-this","When You'll Hear This",[16,118,119],{},"\"We moved the video processor off Lambda to Cloud Run, the 15-minute timeout was killing us.\" \u002F \"Fargate gives us serverless containers without touching Kubernetes.\"",[121,122,123],"style",{},"html pre.shiki code .sHwdD, html code.shiki .sHwdD{--shiki-light:#90A4AE;--shiki-light-font-style:italic;--shiki-default:#546E7A;--shiki-default-font-style:italic;--shiki-dark:#676E95;--shiki-dark-font-style:italic}html pre.shiki code .sBMFI, html code.shiki .sBMFI{--shiki-light:#E2931D;--shiki-default:#FFCB6B;--shiki-dark:#FFCB6B}html pre.shiki code .sfazB, html code.shiki .sfazB{--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D}html pre.shiki code .sTEyZ, html code.shiki .sTEyZ{--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8}html pre.shiki code .sbssI, html code.shiki .sbssI{--shiki-light:#F76D47;--shiki-default:#F78C6C;--shiki-dark:#F78C6C}html .light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html.light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html.dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}",{"title":36,"searchDepth":51,"depth":51,"links":125},[126,127,128,129],{"id":13,"depth":51,"text":14},{"id":21,"depth":51,"text":22},{"id":28,"depth":51,"text":29},{"id":115,"depth":51,"text":116},"cloud","Serverless functions make you squeeze your code into a tiny handler function with a strict shape.","intermediate","md","s",{},true,"\u002Fterms\u002Fs\u002Fserverless-containers",[139,140,141,142,143],"Serverless Functions","Scale to Zero","Cold Start","Kubernetes","Auto Scaling",{"title":5,"description":131},{"changefreq":146,"priority":147},"weekly",0.7,"terms\u002Fs\u002Fserverless-containers","ElgTi-a3EvzARsUglhbZf_mxasv8gBlrEb2p4RhBgBU",[151,154,157,162,166],{"title":143,"path":152,"acronym":6,"category":130,"difficulty":132,"description":153},"\u002Fterms\u002Fa\u002Fauto-scaling","Auto scaling is when the cloud automatically adds more servers when traffic spikes and removes them when it drops, so you're not paying for idle machines a...",{"title":141,"path":155,"acronym":6,"category":130,"difficulty":132,"description":156},"\u002Fterms\u002Fc\u002Fcold-start","A cold start is the delay you get when a serverless function hasn't been used for a while and the cloud needs to spin up a fresh container to run it.",{"title":142,"path":158,"acronym":6,"category":159,"difficulty":160,"description":161},"\u002Fterms\u002Fk\u002Fkubernetes","cicd","advanced","Kubernetes is a robot manager for your containers.",{"title":140,"path":163,"acronym":6,"category":130,"difficulty":164,"description":165},"\u002Fterms\u002Fs\u002Fscale-to-zero","beginner","Scale to zero means when literally nobody is using your service, it shrinks down to nothing and stops costing you money, then springs back to life the mome...",{"title":139,"path":167,"acronym":6,"category":130,"difficulty":164,"description":168},"\u002Fterms\u002Fs\u002Fserverless-functions","Serverless functions are snippets of code that run in the cloud without you managing any servers.",1792528123408]