Home / Companies / Redis / Blog / July 2019

July 2019 Summaries

3 posts from Redis

Filter
Month: Year:
Post Summaries Back to Blog
Redis modules offer flexibility and speed by providing access to lower-level APIs compared to Lua scripts, but they are more challenging to maintain and distribute. Modules can add new commands that execute arbitrary C functions, which can be useful for solving coordination problems or adding small additions to existing commands. When designing a module, it's essential to consider data type implementation, error handling, and API polishing to ensure usability. The goal is to create a simple yet effective solution that complements the existing Redis ecosystem without sacrificing simplicity or ease of use.
Jul 22, 2019 1,418 words in the original blog post.
RedisGears is a new module for Redis that allows developers to write Python scripts and run them in a full-fledged Python interpreter inside Redis. It enables reactive programming at the database level, allowing developers to process data in real-time without having to spin up client consumers. The module can be used to query data in Redis, perform complex computations, and even launch demanding jobs without blocking the Redis instance. With RedisGears, developers can tap into the full power of Python libraries like NumPy and access their own code inside Redis. The module is still in preview but can already be tried out with a Docker container or by installing it on an open-source Redis server.
Jul 16, 2019 994 words in the original blog post.
You may need to consider using probabilistic data structures in your code, depending on the size of your dataset and available memory. Probabilistic data structures can provide high accuracy and fast execution times when dealing with large datasets. The latest implementation of Top-K in Probabilistic uses an algorithm called HeavyKeeper, which provides a count-with-exponential-decay strategy that ensures high accuracy while keeping memory utilization low. This algorithm is biased against small flows, making it suitable for applications where large flows are more common, such as tracking network traffic or game leaderboards. The Top-K data structure also provides real-time notifications when elements enter or leave the top-k list, allowing for timely updates and prevention of denial-of-service attacks. Initializing Top-K requires four parameters, including width, depth, decay, and minimum values, which can be tuned to fine-tune performance. In comparison to Redis' Sorted Set data structure, Top-K provides faster execution times and lower memory usage, especially for lower K values, making it a suitable option for projects with streams or growing datasets that require low memory usage.
Jul 02, 2019 772 words in the original blog post.