Skip to content

NestJS RedisX Guide

Welcome to the NestJS RedisX Guide. This section explains why and when to use each feature, helping you make informed architectural decisions.

Philosophy

NestJS RedisX is built on three principles:

  1. Declarative over Imperative — Use decorators instead of boilerplate
  2. Sensible Defaults — Works out of the box, customizable when needed
  3. Observable by Design — Built-in metrics and tracing

What RedisX Provides

PluginPurposeUse When
CacheTwo-tier caching (L1 + L2)Reducing database load
LocksDistributed mutual exclusionPreventing race conditions
Rate LimitRequest throttlingProtecting APIs from abuse
IdempotencyDuplicate request handlingPayment/order processing
StreamsEvent streaming with consumer groupsBackground job processing
MetricsPrometheus metricsProduction monitoring
TracingOpenTelemetry integrationDistributed tracing

Guide Structure

For Quick Decisions

For Understanding (Concepts)

For Designing (Architecture)

For Building (Recipes)

For Integrating

For Operating

For Troubleshooting

Next Steps

New to RedisX? Start here:

  1. Installation — Add packages to your project
  2. Quick Start — Basic usage in 5 minutes
  3. Decision Guide — Choose the right plugins

Released under the MIT License.