Optimizing Node.js Startup Time
Optimizing Node.js Startup Time

Optimizing Node.js Startup Time

Author
Shiv Bade
Tags
nodejs
performance
Published
September 2, 2021
Featured
Slug
Tweet
We had a startup time issue on our microservices — especially noticeable in local dev.
What helped: - Deferred require() calls - Breaking up init logic - Profiling with --trace-startup
Bonus: Using esbuild for bundling shaved off more seconds.
Small tweaks, big dev experience win.