What problem does it solve?
This Skill addresses the critical need for robust error handling, monitoring, and backup strategies in web applications, preventing data loss and ensuring continuous operation.
Core Features & Use Cases
- Error Handling: Implements patterns for swallowed errors, unhandled promise rejections, and React error boundaries.
- Error Tracking: Guides setup for services like Sentry for real-time error monitoring.
- Database Reliability: Covers connection pooling, error recovery, and graceful shutdown procedures.
- Backup Configuration: Emphasizes the importance of automated backups for managed and self-hosted databases.
- Health Checks: Details how to implement basic and dependency-aware health check endpoints.
- Monitoring & Observability: Outlines minimum viable monitoring and when to scale up.
- Graceful Degradation: Provides strategies for handling third-party API failures and implementing timeouts.
- Platform-Specific Advice: Differentiates reliability needs for PaaS vs. self-hosted environments.
- Use Case: When improving the stability of a live e-commerce application, ensuring that database connection drops or third-party payment gateway errors do not bring down the entire site.
Quick Start
Configure Sentry for error tracking in your Node.js application by following the provided setup instructions.