Business Drivers for High Performance Real-time Analytics
Figure 1. End-to-end application response time requirements
Analytical Capabilities of Redis
Redis is an in-memory database platform most well-known for its high performance, extreme versatility with data structures and modular extensibility to any data processing, analysis or storage use case.
Sets, Hashes, Lists, Strings, Bitmap and Hyperloglog. The data structures provide not just mechanisms to store variably
structured data, they come with built-in operations that perform complex in-database analytics on the data, right in memory, where it is stored. This approach eliminates network and computing overhead while also radically simplifying application development complexity.
Sorted Sets order their members by a score. Retrieving members by score ranges is trivial with Sorted Set operations and make them a natural fit for time-series data, real-time bid management, purchases by order amounts, most viewed articles, top scores etc. Sorted Sets are built in Redis with mechanisms that provide high performance sorting, operations like ranking, range operations, counts in a range and also set operations like generating intersections, unions, are executed with the maximum possible efficiency and simplicity. Using Sorted Sets for analyses like time-series data analysis is usually an order of magnitude or two faster using Redis than with any other regular key/value store or with disk based databases.
Figure 2. Sorted Set representation
Download the complete content and keep expanding your knowledge. It’s free!