Mark As Completed Discussion

One Pager Cheat Sheet

  • Redis, an in-memory multi-model database developed by _antirez_, has become popular for its sub-millisecond latency and is used in many startups, such as Instagram and Github.
  • Redis stores and indexes data in multiple ways, such as Strings, Lists, Sets, Hashes, Bitmaps, HyperLogLogs, Streams, and Geospatial Indexes.
  • Redis can be used to store and cache data in RAM for quick access and to reduce application load, with built-in authentication to restrict usage to trusted sources.
  • Redis improves access latency, throughput, and eases the load on the database and application by storing frequently requested data in RAM instead of having to query the database each time.
  • Redis can be used as a powerful tool to both improve application performance as a cache as well as to serve as a multi-model database, reducing complexity and increasing speed.
  • By using Redis to store data on the main system memory, which is much faster than retrieving it from a spinning hard disk, web applications can benefit from drastically reduced wait time, often to less than 5 seconds or even 1 second.
  • We can use Redis to interact with a key value store that supports multiple data structures and extend its abilities with Redis Modules, as well as persist data using Snapshots (RDB), Append Only File (AOF), or a combination of both.
  • Redis is not cheaper than other databases as it requires multiple mechanisms, such as Snapshots (RDB) and Append Only File (AOF), for data persistence, which increases costs.
  • Create a Redis Client with Node.js using node-redis and the npm package manager.
  • Redis provides automatic data persistence with its log-structured Append-Only File (AOF) system, allowing it to recover all data post system crashes or power failure.