Introduction to Redis
Redis is one amazing Open Source software that can serve various needs in a Web Application.
What is Redis?
It is a NoSQL database, and in particular a key/value store. It can be used with any programming language, because it’s not a JavaScript-specific technology - it’s written in C.
We can store values and associate them to a key, and later retrieve them.
One of its special features is high performance. High performance is provided by one of its main characteristics: it’s an in-memory database. Data is kept, stored and accessed in memory instead of being written to a database.
Most databases keep data stored on disk and they optimize by keeping a cached set in memory.
Redis does the opposite: it keeps the data in memory.
By default Redis saves snapshots of the stored data set to disk, and you can configure the details of how this happens and where the data is stored.
Redis is one of my favorite tools because of its flexibility. You have lots of freedom in how you store and manage data storage, and it can be used in many different ways depending on your needs.
This is also because it’s a NoSQL database, meaning it’s very flexible compared to PostgreSQL or other SQL and schema-based databases.
It’s often used as a cache storage mechanism, but also as a message broker, a way to communicate between different processes and applications.
Continue here:
- How to install Redis
- First steps with Redis
- Redis Sets
- Redis Lists
- Redis Sorted Lists
- How to use Redis Hashes
- Redis Publish/subscribe
download all my books for free
- javascript handbook
- typescript handbook
- css handbook
- node.js handbook
- astro handbook
- html handbook
- next.js pages router handbook
- alpine.js handbook
- htmx handbook
- react handbook
- sql handbook
- git cheat sheet
- laravel handbook
- express handbook
- swift handbook
- go handbook
- php handbook
- python handbook
- cli handbook
- c handbook
subscribe to my newsletter to get them
Terms: by subscribing to the newsletter you agree the following terms and conditions and privacy policy. The aim of the newsletter is to keep you up to date about new tutorials, new book releases or courses organized by Flavio. If you wish to unsubscribe from the newsletter, you can click the unsubscribe link that's present at the bottom of each email, anytime. I will not communicate/spread/publish or otherwise give away your address. Your email address is the only personal information collected, and it's only collected for the primary purpose of keeping you informed through the newsletter. It's stored in a secure server based in the EU. You can contact Flavio by emailing flavio@flaviocopes.com. These terms and conditions are governed by the laws in force in Italy and you unconditionally submit to the jurisdiction of the courts of Italy.