Database connector

Redis

Read Redis Streams entries, expired keys and pub/sub messages as typed events in Tessel. Use it to start workflows, update counters and hand results back to your services.

Connect Redis
Connect Redis
See setup steps
See setup steps

Database

Category

Streaming

Sync mode

p95 220 ms

Latency

4 min

Setup time

What it can do

Triggers · 3
  • Stream entry addedStream
  • Key expiredEvent
  • Message on a channelEvent
Actions · 5
  • Get a keyRead
  • Set a keyWrite
  • Increment a counterWrite
  • Add to a streamWrite
  • Publish to a channelSend

Overview

The Redis connector joins a consumer group on the streams you choose, so each entry starts exactly one run and nothing is read twice. It can also listen for expired keys and pub/sub messages, and every event shows up in the trace of the run it started.

Teams use it to send a Twilio text when a delivery job lands on a stream, to clean up records in Postgres when a session key expires and to feed rate limit counters back to their API.

Supported versions

  • Redis 6.2 to 8.x and Valkey 7.2 and later, standalone or cluster

  • Redis Cloud, Amazon ElastiCache and MemoryDB, Azure Cache for Redis and Upstash

  • Connections over TLS with ACL users

How streams work

Tessel creates a consumer group on each stream and reads new entries with XREADGROUP. An entry is acknowledged with XACK only after its run has started, so a dropped connection leaves it pending and Tessel claims it again on reconnect.

XGROUP CREATE orders:events tessel $ MKSTREAM

XREADGROUP GROUP tessel worker-1
  COUNT 100 BLOCK 5000
  STREAMS orders:events

XGROUP CREATE orders:events tessel $ MKSTREAM

XREADGROUP GROUP tessel worker-1
  COUNT 100 BLOCK 5000
  STREAMS orders:events

XGROUP CREATE orders:events tessel $ MKSTREAM

XREADGROUP GROUP tessel worker-1
  COUNT 100 BLOCK 5000
  STREAMS orders:events

Expired keys and pub/sub

Key expiry triggers need notify-keyspace-events set to include Ex. Keyspace notifications and pub/sub are fire and forget, so messages sent while Tessel is disconnected are lost. Use streams for anything a workflow must not miss.

Permissions needed

Create an ACL user for Tessel scoped to the keys and channels it reads. Grant write commands only on the key patterns workflows write to.

  • +xreadgroup, +xack and +xgroup on the stream keys you read

  • +subscribe and +publish on the channel patterns you use

  • +get, +set and +incr only on patterns like ~tessel:*

Setup

Four steps. About four minutes.

Setup is short because there is no schema to map. Tessel creates the consumer group for you on first connect.

  1. Create an ACL user scoped to your keysRedis1 min
  2. Allow Tessel's static IPs for your regionNetwork1 min
  3. Paste the endpoint and pick streams or channelsTessel2 min
  4. Add a test entry and watch the event arriveVerify220 ms

Your streams, in a workflow today.

Connect Redis on the free plan. Up to three builders and 10,000 runs a month, no card required.

Connect Redis
Connect Redis
All integrations
All integrations

One email a month. Only what shipped.

A1

Product

C1

Layouts

D1

Company

E1

Template

F1

All systems operational
fra41 ms
iad38 ms
sin52 ms

C2

Elsewhere

XLinkedInGitHubYouTube

E2

Move across the wordmark168 blocks · iso 30°

One email a month. Only what shipped.

A1

Product

C1

Layouts

D1

Company

E1

Template

F1

All systems operational
fra41 ms
iad38 ms
sin52 ms

C2

Elsewhere

XLinkedInGitHubYouTube

E2

Move across the wordmark168 blocks · iso 30°

One email a month. Only what shipped.

A1

Product

C1

Layouts

D1

Company

E1

Template

F1

All systems operational
fra41 ms
iad38 ms
sin52 ms

C2

Elsewhere

XLinkedInGitHubYouTube

E2

Move across the wordmark168 blocks · iso 30°

Create a free website with Framer, the website builder loved by startups, designers and agencies.