What do you do when a web page starts responding slowly or hanging once requests hit 100K+? 1. Backend data
- Put all the data into a cache and let the server’s memory handle it.
- Optimize the data-fetching code.
- Reduce duplicate requests to the API.
- Server
- Enable multi-threaded service on the server.
- Check CPU load and memory load.
- Check the server bandwidth.
- Remove redirects
- Page
- Use a third-party CDN to load common JS files.
- Compress images and other types of files (compressed resource loading).
- Optimize the JS code.
- Preload the page (delayed rendering), defer JS execution.
- Cache JS/CSS/images in the local browser.
- Optimize the JS code

