Good Performance is a key indicator of good health like human beings. We are all inclined to use applications who are highly performant in nature. We make sure our applications are highly performant by incorporating the best practices/tools across the complete stack( UI Framework, Backend Framework, Backend Databases).
Steps we follow to make highly performant applications.
- Use Ngnix server to serve content via http/2.
- Use Http/2 server push whenever you can to push resources to client to prevent roundtrip based on assumptions and history
- Effectively use cache expiration headers to store static content in browsers cache.
- Effectively use ETag headers to manage cache contents.
- Use Paging and filtering of data for methods returning long list of data.
- Use CDN to store your static contents e.g. styles and JavaScript files
- Segregate your application code bundle file from other used libraries as your application code tends to change more often than other dependencies. In such scenarios only your application bundle will be downloaded again by clients.
- Use Service Worker, indexed db on your client app to support PWA.
- Check for Memory leaks and CPU spikes, they are the major culprit to bring application down.