Why Your MongoDB Needs Redis
5 Popular Redis Use Cases
1. User session storage: When you have hundreds, thousands or millions of user sessions to manage and session data needs to be instantly retrievable on the server-side for lightning fast decisions, Redis’ hash data structures and automatic key expiration features deliver the lowest complexity and fastest response times.
2. Real-time analytics: When you have thousands or millions of users playing a game or users collecting points on an ecommerce site, implementing real time rankings or leaderboards becomes simple with Redis’ in-memory sorted sets and set operations. Simple Redis commands help you achieve blazing fast retrieval of top users, user ranks, high scores
3. As a message broker for queues: When you have many items to be worked on in a queue, by several different worker processes, a single list operation with Redis can manage complex operations like removing a job from one queue and adding it to another. Managing queues as lists is a very popular Redis use case.
4. In-app Social functionality: Lets say you have tons of items and you manage sorting them with tags. Single Redis set commands can execute complex set membership questions rapidly for operations such as “all articles with a particular tag” or “all articles intersecting on specific tags.” Other use cases include computing friends of friends, or users with similar preferences.
5. High-speed data ingestion: Given how fast Redis is, another popular use case is to act as a data ingestion buffer. For high volume mobile, Internet of Things (IoT), API or web applications where throughput is required to be very high, Redis can store data points before they are processed by the application or stored in slower disk-based databases.
Download the full content and keep expanding your knowledge. It’s free!