Can we use Redis as an alternative to the original DB?
Based on the above discussion, Redis seems to be a better option for the original DB as it provides faster retrievals. Even then Redis is not used as a primary option for the database in the system.
Redis should always come as the second support to improve the performance of the overall system, because according to the CAP theorem, Redis is neither consistent nor highly available.
This is because, in the case of the server crashes, we would lose all of the data which is in the memory. It is okay to lose this data in case of a crash, but for some other apps, it becomes really important to reload Redis data immediately after the server restarts.
Redis and its role in System Design
Redis is an open-source, in-memory data structure store used as a database, cache, and message broker. It is widely used for its fast performance, flexibility, and ease of use.
|
Contact Us