[{"data":1,"prerenderedAt":77},["ShallowReactive",2],{"term-s\u002Fscale-to-zero":3,"related-s\u002Fscale-to-zero":60},{"id":4,"title":5,"acronym":6,"body":7,"category":40,"description":41,"difficulty":42,"extension":43,"letter":44,"meta":45,"navigation":46,"path":47,"related":48,"seo":54,"sitemap":55,"stem":58,"subcategory":6,"__hash__":59},"terms\u002Fterms\u002Fs\u002Fscale-to-zero.md","Scale to Zero",null,{"type":8,"value":9,"toc":33},"minimark",[10,15,19,23,26,30],[11,12,14],"h2",{"id":13},"eli5-the-vibe-check","ELI5 - The Vibe Check",[16,17,18],"p",{},"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 moment a request shows up. It's the opposite of the old always-on server humming away at 2am for no reason. Great for your wallet on low-traffic services, less great for the person who hits it first and has to wait for it to wake up.",[11,20,22],{"id":21},"real-talk","Real Talk",[16,24,25],{},"Scale to zero is an autoscaling behavior where a service's running instance count drops to zero during idle periods, eliminating compute cost for unused capacity, and scales back up on the next incoming request. It's a defining feature of serverless platforms and serverless containers, and the tradeoff for the cost savings is a cold start on the first request after idling, which platforms mitigate with pre-warming or minimum instance settings.",[11,27,29],{"id":28},"when-youll-hear-this","When You'll Hear This",[16,31,32],{},"\"Set min-instances to zero on the staging environment, nobody hits it overnight anyway.\" \u002F \"Scale to zero saved us real money, but the first request each morning eats a 2-second cold start.\"",{"title":34,"searchDepth":35,"depth":35,"links":36},"",2,[37,38,39],{"id":13,"depth":35,"text":14},{"id":21,"depth":35,"text":22},{"id":28,"depth":35,"text":29},"cloud","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...","beginner","md","s",{},true,"\u002Fterms\u002Fs\u002Fscale-to-zero",[49,50,51,52,53],"Cold Start","Serverless Containers","Auto Scaling","Warm Pool","Serverless Functions",{"title":5,"description":41},{"changefreq":56,"priority":57},"weekly",0.7,"terms\u002Fs\u002Fscale-to-zero","RVQMhES5BfikbxX8WJjeLzsN1-7-FLxKFotClj8CC_c",[61,65,68,71,74],{"title":51,"path":62,"acronym":6,"category":40,"difficulty":63,"description":64},"\u002Fterms\u002Fa\u002Fauto-scaling","intermediate","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":49,"path":66,"acronym":6,"category":40,"difficulty":63,"description":67},"\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":50,"path":69,"acronym":6,"category":40,"difficulty":63,"description":70},"\u002Fterms\u002Fs\u002Fserverless-containers","Serverless functions make you squeeze your code into a tiny handler function with a strict shape.",{"title":53,"path":72,"acronym":6,"category":40,"difficulty":42,"description":73},"\u002Fterms\u002Fs\u002Fserverless-functions","Serverless functions are snippets of code that run in the cloud without you managing any servers.",{"title":52,"path":75,"acronym":6,"category":40,"difficulty":63,"description":76},"\u002Fterms\u002Fw\u002Fwarm-pool","A warm pool is a small stash of pre-started instances or containers sitting around idling, ready to grab a request the instant it arrives, so nobody has to...",1792528121527]