Performance
Core Web Vitals, bundles, latency, database queries.
Revision Sheet
- Frontend: Minimize bundle size, defer JS, optimize images, utilize caching headers, eliminate render-blocking resources.
- Backend: Don't block the event loop, use connection pools, paginate data, cache heavily, use async I/O.
- Database: Add indexes, avoid N+1 queries, understand EXPLAIN plans.
- Golden Rule: Measure first, profile, then optimize. Never guess.
Connections
This chapter links heavily to Database Internals (how indexes work), Node.js Architecture (the event loop), and Frontend Build Tools (how Webpack/Vite splits bundles). Performance is the culmination of understanding the full stack.