Redis is an open-source, in-memory data store that can be used as:
-
a database
-
a cache
-
and a message broker
It is super fast because it keeps data in RAM, and it's widely used to boost application performance.
Redis = REmote DIctionary Server
What Redis can Do?
| Use Case | Example |
|---|---|
| Cache | Caching API responses or SQL queries |
| Session Store | Storing logged-in user sessions |
| Queue | Background task queues (via lists) |
| Pub/Sub | Real-time chat or notifications |
| Leaderboards | Using sorted sets (ZADD, ZRANGE) |
| Rate Limiting | Count requests per user (using INCR) |