Syntax - Tasty Web Development Treats

Serverless Limitations

Nov 28, 2022
This discussion dives into the limitations of serverless architecture, revealing the trade-offs developers face. The speakers share personal experiences grappling with function limits and managing dependencies like Chromium in serverless environments. Challenges such as environmental constraints, local development hurdles, and issues with database access are tackled. They highlight how serverless can complicate what was once straightforward, encouraging listeners to rethink their approach to web application architecture.
Ask episode
AI Snips
Chapters
Transcript
Episode notes
ADVICE

Function Limit

  • Consider function size limits when using serverless.
  • 50 MB is a common limit, easily reached with large dependencies like Puppeteer.
ANECDOTE

Puppeteer Size Issues

  • Wes Bos used Puppeteer, a headless Chrome browser, for generating website thumbnails.
  • He exceeded the function limit due to Chromium's size, requiring a workaround.
ADVICE

Node.js Support

  • Edge functions have limited Node.js support.
  • Choose packages compatible with the pared-down environment.
Get the Snipd Podcast app to discover more snips from this episode
Get the app