Syntax - Tasty Web Development Treats

Pros + Cons of JavaScript Servers, Serverless, and Cloudflare Workers

Feb 7, 2022
Dive into the intriguing world of JavaScript servers, serverless options, and Cloudflare Workers! Explore the benefits and challenges of server architectures, particularly within the MERN stack. Discover the complexities of caching and scaling, and how external services like Redis can help. Unpack serverless design's cost efficiency, while getting insights on SSL management and database strategies. Finally, evaluate the trade-offs between serverless and traditional hosting, and learn valuable API management techniques.
Ask episode
AI Snips
Chapters
Transcript
Episode notes
ANECDOTE

Recipe API Recreation

  • Wes describes rebuilding a simple recipe API after a third-party API failed.
  • He considered traditional Node servers, serverless functions, and Cloudflare Workers.
INSIGHT

Portable Backend Logic

  • Most backend logic is portable between different server-side approaches.
  • The core work lies in database queries, data manipulation, and templating, which remain consistent.
ADVICE

Traditional Node.js Hosting

  • Host simple Node.js apps on a Linux server for easy setup and full control.
  • Consider load balancers for scaling, but it adds complexity with sessions.
Get the Snipd Podcast app to discover more snips from this episode
Get the app