See the written version of this tutorial for links to prerequisites and related tutorials: https://heynode.com/tutorial/optimize...
We can optimize some aspects of our Express API server to increase the performance of a Node.js application. Two major strategies are caching requests and compressing responses. Compression reduces the size of responses that are sent back to clients, saving bandwidth both for the server and for the client. Caching allows you to reuse retrieved data to speed up serving requests to your API.
By the end of this tutorial, you should be able to:
Understand caching and compression
Explain the benefits of compressing responses
Identify when we should and shouldn’t use caching
Learn about different options for a caching layer
Heynode.com: The best online Node.js courses and tutorials to help you solve hard problems fast.