Icon for RedisIcon for Node-RED

Redis and Node-RED Integration

Integrates withCurated

Overview

Node-RED and Redis form a powerful combination for building industrial IoT data pipelines. The node-red-contrib-redis package provides nodes for publishing, subscribing, and working with Redis data structures including Streams.

Integration Architecture

[Sensor/MQTT] → [Node-RED] → [Redis Stream] → [Consumer Application]
                    ↓
              [Dashboard/Alert]

Key Use Cases

Real-time Stream Processing

Node-RED can publish incoming MQTT messages directly to Redis Streams, creating a durable event log that survives Node-RED restarts.

State Management

Use Redis as a shared state store between different Node-RED flows or instances. Store machine states, configuration, and session data.

Rate Limiting and Throttling

Redis's atomic operations enable sophisticated rate limiting in Node-RED flows to prevent overwhelming downstream systems.

Configuration

  1. Install node-red-contrib-redis from the Node-RED palette
  2. Configure Redis server connection (host, port, password)
  3. Use Redis In/Out/Command nodes in flows

Tradeoffs

  • Pros: Simple setup, extensive node library, visual debugging
  • Cons: Single-threaded Node-RED may become bottleneck at high throughput; consider Redis Streams consumer groups for scaling