- Boot Sequin
- Connect to a sample playground database
- Configure Redis to receive database changes
- See your changes flow in real-time
SET and DEL to maintain a cache. If you want to use Redis Streams, see our Redis Streams quickstart.Boot Redis
Run Sequin
Create directory and start services
- Download sequin-docker-compose.zip.
- Unzip the file.
- Navigate to the unzipped directory and start the services:
Alternative: Download with curl
Alternative: Download with curl
Alternative: Clone the repository
Alternative: Clone the repository
Verify services are running
docker ps:Up).Login
Open the web console

Login with default credentials
- Email:
- Password:
View the playground database
sequin_playground with a sample dataset in the public.products table.Let’s take a look:Navigate to Databases
Select playground database
sequin-playground database:
View contents of the products table
products table. Run the following command:psql command.products table:Create a Redis String Sink
products table:Navigate to Sinks
Select sink type
Note "Source" configuration
sequin-playground database is selected and all schemas and tables are included. Leave these defaults:
Add a transform function
record-only and click Create function.Select the transform
Setup a backfill
Inital backfill card, select the public.products table to initate a backfill when the sink is created.
Configure "Redis Configuration"
- Host: If running locally with Docker, use
host.docker.internal - Port: The port Redis is listening on (default: 6379)

Test the connection
Create the sink
- Backfill all current rows into Redis as key/value pairs
- Set up real-time replication so any changes to the
productstable will be reflected in Redis immediately - Use primary keys from Postgres to form Redis keys (e.g.,
sequin:products:1,sequin:products:2)
See changes flow to your Redis cache
Messages tab

products table to your Redis cache.View in Redis CLI
Make some changes
products table and see them reflected in your Redis cache.In your terminal, run the following command to insert a new row into the products table:[new-id] with the ID of the newly inserted product.Feel free to try other changes:Update a product's price
Update a product's price
Change a product's name
Change a product's name
Delete a product
Delete a product
- Set up a complete Postgres to Redis cache synchronization pipeline
- Loaded existing data through a backfill
- Made changes to the
productstable - Verified Redis cache updates automatically with your database changes
Applications of Redis Strings Sink
Redis Strings are incredibly versatile and can be used for various caching scenarios:- Fast lookups: Redis can serve product details much faster than a database query
- Multi-region caching: Use Sequin to sync records from your primary database to Redis in multiple regions
- Cache invalidation: Configure your Redis cache with infinite retention and rely on Sequin to SET and DEL keys as records are updated or deleted

