Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/trulymittal/caching-nodejs-redis
https://github.com/trulymittal/caching-nodejs-redis
Last synced: 7 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/trulymittal/caching-nodejs-redis
- Owner: trulymittal
- Created: 2020-09-03T17:19:43.000Z (about 4 years ago)
- Default Branch: master
- Last Pushed: 2020-09-03T17:20:12.000Z (about 4 years ago)
- Last Synced: 2023-03-03T08:00:22.848Z (over 1 year ago)
- Language: JavaScript
- Size: 5.86 KB
- Stars: 8
- Watchers: 1
- Forks: 10
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Caching in NodeJS Express app (using **REDIS**)
## Why use caching?
- To improve the response time of our application by upto 1000 times, and in turn we make our application super fast.
> And for the purpose of this example we will be using the **SPACE X** api to get the list of rockets used by them.## When to use caching?
- The simple answer is that you should cache data which is NOT frequently changing, and never for data that keeps changing frequently.
> So in this example we'll get the list of rockets from the spaceX api, the information about rockets do not change frequently so we can use caching, therefore, instead of hitting the API again n again for every request coming from client, we can cache data of previous request and we can use that cached data to send a response back to the new request.## Author
- [**Truly Mittal**](https://trulymittal.com)
## Contribute
You can fork this repo and send me a PR.
## License
This project is licensed under the MIT License.