Syntax - Tasty Web Development Treats
Syntax - Tasty Web Development Treats

Serverless / Cloud Functions - Part 1

In this episode of Syntax, Scott and Wes talk about serverless and cloud providers - the benefits, limitations, providers and more! .TECH Domains - Sponsor If you need eyes on your project, you’ll need a domain, and .TECH is perfect for representing your brand. Find out if your .TECH domain is avail

Featured Speakers

Wes Bos & Scott Tolinski - Full Stack JavaScript Web Developers Host

Topics Discussed

Episode Summary

Executive Summary: The episode explains serverless/cloud functions as small, URL-driven backend pieces that run only when invoked, then spin down. Scott and Wes compare raw providers (AWS Lambda, Cloudflare Workers, etc.) with easier platforms (Netlify, Begin, Vercel/Now, Serverless Framework), highlighting benefits like lower cost, faster deploys, easier scaling, and reduced sysadmin burden, while noting tradeoffs such as cold starts, dependency bloat, and lock-in.

Main Topics: What serverless functions are: Serverless is presented as server-side code split into individual functions/endpoints rather than one always-on server. Each function handles a specific route or task such as an API call, webhook, or data transformation. Benefits: scaling, cost, and faster deploys: Because functions run only when needed, teams can scale individual hot spots instead of entire apps, pay only for execution time, and redeploy only changed functions, speeding iteration significantly. Cold starts and function limitations: The hosts explain that functions are not always running, so first requests incur cold starts. They also note limits such as overloading a single function with too much logic and practical package size constraints. Use cases and developer experience: Serverless is shown as a strong fit for Jamstack sites, front-end developers, small APIs, preprocessors, and narrowly scoped backend tasks, lowering the barrier to building backend features. Providers and platforms: They survey raw cloud providers (AWS Lambda, Google Cloud, Azure, Cloudflare Workers, etc.) and easier abstractions like Netlify, Begin/Architect, Vercel/Next.js API routes, Serverless Framework, AWS Amplify, Apex Up, and OpenFaaS. Lock-in, control, and corporate constraints: The conversation touches on tradeoffs around provider lock-in, dependency management, and cases where organizations need full control or self-hosted infrastructure, making some serverless options less suitable.

Key Arguments: Serverless is not “no server”; it is shifting from managing one always-on server to invoking discrete server-side functions on demand. The major advantage is efficiency: compute is only paid for when a function runs, which can dramatically cut costs for small or intermittent workloads. Cold starts are the main performance drawback, especially when a function is overloaded or depends on large bundles. Serverless can simplify deployment because changing one function often means redeploying only that function instead of the entire application. It lowers the backend barrier for front-end developers, especially in Jamstack workflows where tiny backend tasks are all that is needed. Raw providers offer flexibility and lower cost, but easier platforms are preferred by many developers because they reduce operational complexity and documentation overhead. Serverless can improve security posture by isolating functions instead of depending on one large server with broad access to the whole application. Dependency sharing is awkward in many serverless systems because code is often bundled per function, increasing duplication and package size concerns.

Data Points: Cold start delay: ~300 ms - Wes notes Heroku/serverless-style bootup delays of around 300 milliseconds when a service wakes up. Syntax site deployment time: ~12 seconds - Scott says a function update on one provider was deployed and live in about 12 seconds. Typical deployment time: ~45 seconds - Scott says his full Node app deploys in less than 45 seconds. Syntax website deployment time: ~6 minutes - Wes says the Syntax site deploys in about six minutes on its current setup. Alternative deployment time: ~9 minutes - Wes mentions a current deployment process taking about nine minutes before migrating to a newer platform. Function bundle limit: 500 MB - They mention a common size cap for many serverless applications. Syntax site bundle size: just over 200 MB - Wes says the Syntax site, with dependencies included, is a bit over 200 MB. Lazy reactivation window: 15 to 30 minutes - Scott references Lambda instances spinning down after idle periods, with one request every 15–30 minutes bringing them back up. Performance penalty of data URIs: 6x slower - Wes cites his own YouTube/video work and says data URIs are about six times slower to load than images. Community size: almost 700 people - They mention the Syntax Reddit community nearing 700 members. Discount offer: 90% off - The .tech sponsor ad offers 90% off one-, five-, and ten-year domain registrations. Course discount: $10 off - Scott plugs BeginnerJavaScript.com with a Syntax discount code for $10 off.

Pivotal Quotes: "Serverless is just someone else's server." — Scott: A humorous shorthand early in the discussion that frames the concept as outsourcing server management. "I don't care much about what tools people use... but to me, serverless and the Jamstack in general has been a gateway into actually building apps. Myself. Backend always has been too much of a hurdle for me. And now that hurdle is lower. It isn't just lower, it's gone." — Listener quote read by Wes: Used to illustrate how serverless lowers the barrier for developers who struggle with traditional backend setup. "We know you want to do server-side stuff on our platform. So here, we're going to make it pretty easy to set up some functions for you." — Wes: Describing the motivation behind easier platforms like Netlify and similar abstraction layers.

Implications: Serverless is maturing into a practical default for small-to-medium backend tasks, especially in Jamstack workflows. Expect easier tooling, faster iteration, and broader adoption, but teams still need to weigh cold starts, bundle size, and vendor lock-in.

🔓 Sign Up for Unlimited Episode Search

About Syntax - Tasty Web Development Treats

View all episodes from Syntax - Tasty Web Development Treats