REDIS
Redis is an opensource data structure store, it is distributed under BSD license. Redis stands for Remote Dictionary Server. Redis is extremely fast IN memory data store. It does not support SQL and that makes it much faster. Redis store the data in Key value pair. Accessing the data based on key. Data can be any binary data. Redis support different data structure like abstract data structures, such as strings, lists, maps, sets, sorted sets, hype loglogs, bitmaps, streams and spatial indexes. Along with IN memory data structure, it also support storing the data on disk for persistency, with little compromise on speed. Almost all languages provide the interface towards Redis for storing and accessing data.
How It Works
- Stores all data in memory, which allows for extremely fast data access and manipulation. This makes it well-suited for real-time applications that require low-latency data access.
- Supports a variety of data structures, including strings, hashes, lists, sets, and sorted sets. This allows for the storage and manipulation of complex data structures, such as lists of user profiles or sets of online users.
- Allows for on-disk persistence, which means that data can be written to disk in order to prevent data loss in the event of a system failure.
- Supports data replication, which allows for the creation of a replica of the data stored on a master server. This can be used to improve data availability and to scale out read-heavy workloads.
- Supports the use of Lua scripts, which can be used to perform complex operations on the data stored in Redis, such as atomic transactions.
- Supports a publish-subscribe model, which allows for the sending of messages between different clients. This can be used to implement real-time notifications or to send messages to multiple clients at once.