Changelog Master Feed

Nine pillars of great Node apps (JS Party #347)

Nov 21, 2024
Join experts Matteo Collina, co-author of the Nine Node Pillars document and a Node.js guru, and Natalia Venditto, Lead owner of JavaScript DX at Azure, as they delve into the principles for building robust Node.js applications. They discuss the nine crucial pillars that mitigate common pitfalls and emphasize strong dependency management. The duo also explores the implications of global variables, the significance of API specifications, and tips for leveraging performance best practices. Don't miss their insights on engaging with open source and enhancing authentication with innovative tools!
Ask episode
AI Snips
Chapters
Transcript
Episode notes
ADVICE

NODE_ENV

  • Always set NODE_ENV=production, even in staging environments, for consistency.
  • This resolves the language barrier between operations and development regarding "environment."
ADVICE

Error Handling and Logs

  • Implement comprehensive error handling from database to API to application.
  • Create meaningful logs for debugging and user-facing error messages.
ADVICE

Graceful Shutdown

  • Ensure error handling anticipates someone catching errors, especially with promises.
  • Implement graceful shutdown to handle errors, stopping new requests and processing in-flight ones before exiting.
Get the Snipd Podcast app to discover more snips from this episode
Get the app