7 questionsRedis modules are dynamically loadable extensions that add entirely new commands and data types to Redis, letting you gain specialized capabilities like full text search, native JSON support, or time series data handling, without needing to switch to an entirely separate database system for those specific features.
Example
-- Modules are loaded when Redis starts
redis-server --loadmodule /path/to/module.so
Real-world example
A company needing both simple caching and full text search capabilities loads the RedisSearch module into their existing Redis instance, avoiding the operational overhead of running and maintaining a completely separate search engine.
Likely follow-ups
- How do you check which modules are currently loaded on a Redis instance?
- Are Redis modules available on all Redis deployment options, including managed cloud services?
RedisJSON RedisSearch (Full Text Search)
RedisJSON adds native support for storing and querying JSON documents, RedisSearch adds full text search and secondary indexing capabilities, RedisTimeSeries adds specialized support for time stamped data, and RedisBloom adds probabilistic data structures like Bloom filters for efficient approximate membership testing.
-- Each module adds its own set of new commands
JSON.SET mykey $ '{"name":"Alice"}'
FT.SEARCH myindex 'search term'
Real-world example
A company evaluates their specific needs and decides to load both RedisJSON and RedisSearch, gaining the ability to store flexible document data and search across it efficiently within their existing Redis infrastructure.
Likely follow-ups
- Can multiple different modules be loaded and used together at the same time?
- How do you decide which specific modules your application actually needs?
RedisJSON RedisTimeSeries
You use the MODULE LIST command to see all currently loaded modules along with their versions, and load a new module either by specifying it as a startup parameter when launching the Redis server, or dynamically at runtime using the MODULE LOAD command followed by the path to the module's compiled file.
Example
MODULE LIST
MODULE LOAD /usr/lib/redis/modules/rejson.so
Real-world example
A database administrator checks MODULE LIST to confirm the RedisJSON module is properly loaded before deploying an application that depends on its specific JSON commands.
Likely follow-ups
- What happens if your application tries to use a module command before that module is actually loaded?
- Can modules be unloaded without restarting the Redis server?
Redis CLI & Basic Commands RedisJSON
Redis Stack is a distribution that bundles Redis together with several of the most popular official modules, including RedisJSON, RedisSearch, RedisTimeSeries, and RedisBloom, already pre installed and configured together, making it easier to get started with these extended capabilities without needing to manually download, compile, and load each module separately.
-- Redis Stack includes multiple modules pre-installed
docker run -p 6379:6379 redis/redis-stack:latest
Real-world example
A development team quickly spins up a Redis Stack container for local development, immediately gaining access to JSON, search, and time series capabilities without needing to individually configure each module.
Likely follow-ups
- What is the licensing difference between Redis Stack and standalone Redis?
- Does Redis Stack include every available Redis module, or just a specific selected set?
RedisJSON RedisSearch (Full Text Search)
You would weigh the development time saved by using a purpose built module against the added operational complexity of managing that module, consider whether your use case genuinely needs the module's specialized capabilities like complex text search ranking or precise time series aggregation, and evaluate whether the module is available and properly supported wherever you plan to deploy Redis, including any managed cloud services you might use.
Example
-- Core data types can approximate some functionality
-- but modules provide purpose built, optimized commands
ZADD timeseries_approx <timestamp> <value>
-- versus using the dedicated RedisTimeSeries module
TS.ADD actual_timeseries <timestamp> <value>
Real-world example
A team building a simple time based feature initially considers using sorted sets to approximate time series functionality, but ultimately adopts RedisTimeSeries after realizing the module's built-in aggregation and downsampling features would save significant development effort.
Likely follow-ups
- What are the operational tradeoffs of adding a module dependency to your Redis deployment?
- How do you verify a module is properly supported by your specific hosting or cloud provider?
RedisTimeSeries RedisSearch (Full Text Search)
Modules must be specifically designed to be cluster aware to function correctly across a sharded Redis Cluster, and while many popular official modules do support cluster mode, some module features may behave differently or have limitations when data is distributed across multiple nodes rather than existing on a single instance, so it is important to verify a specific module's cluster support before relying on it in a sharded deployment.
Example
-- Confirm cluster support before deploying a module
-- across a sharded Redis Cluster environment
MODULE LIST
Real-world example
A team planning to use RedisSearch across a sharded Redis Cluster carefully reviews the module's documentation for cluster specific behavior and limitations before finalizing their architecture, avoiding an unpleasant surprise after deployment.
Likely follow-ups
- Which official Redis modules currently have full support for Redis Cluster?
- What specific features might behave differently in a clustered environment compared to a single instance?
Clustering Cluster Sharding & Hash Slots
Redis modules have historically used various licenses, with some official modules using licenses that place certain restrictions on offering the module as part of a competing commercial database service, so it is important to review the specific license of any module you plan to use, especially if you are building a product that itself will be offered as a hosted or managed service to others.
Example
-- Always review the specific license
-- of each module before commercial use
-- Licenses can differ significantly between modules
Real-world example
A company building their own managed database offering carefully reviews the licensing terms of each Redis module they consider using, ensuring their planned commercial use case is actually permitted under those specific license terms.
Likely follow-ups
- How do module licenses typically differ from the core Redis license itself?
- Where can you find the specific, current licensing terms for a particular module?
Redis Security & ACL Redis Architecture & Installation