Documentation Index
Fetch the complete documentation index at: https://arivu.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
Overview
For production environments where horizontal scaling is required, use Redis as your Arivu memory backend.Pros ✅
Pros ✅
- Distributed architecture - Share state across multiple workers
- High performance - In-memory data store with microsecond latency
- Scalable - Handles high concurrency efficiently
- Cluster support - Redis cluster for fault tolerance
- Session sharing - Multiple instances can access the same sessions
Cons ⚠️
Cons ⚠️
- Requires external service - Must run a Redis server
- Data persistence overhead - Requires configuration for durability
- Memory constraints - Limited by available RAM
Configuration
- Docker (Recommended)
- Local Installation
Easiest way to get Redis running locally:
Connection String Format
Performance Optimization
Connection Pooling
Connection Pooling
RedisBackend automatically handles connection pooling, so you don’t need to configure it manually.
Data Persistence
Data Persistence
Configure RDB or AOF to ensure your data survives Redis restarts:
Memory Management
Memory Management
- Set a max memory policy:
maxmemory-policy allkeys-lru - Monitor with
redis-cli INFO memory - Clean up old sessions regularly
Clustering
Clustering
For high availability, use Redis Cluster:
Production Deployment
- Standard Setup
- Clustered Setup
- Kubernetes
When to Use Redis
Use Redis when you:- Need to scale horizontally (multiple workers)
- Require high performance and low latency
- Want to share sessions across services
- Are deploying to production
- Need fault tolerance and failover
Monitoring & Troubleshooting
Health Checks
Health Checks
Test your Redis connection:
Troubleshooting
Troubleshooting
Connection Refused
Connection Refused
Problem: Cannot connect to RedisSolutions:
- Ensure Redis server is running:
redis-cli ping - Check connection string is correct
- Verify firewall rules allow the port
- Check credentials if using authentication
High Memory Usage
High Memory Usage
Problem: Redis consuming too much memorySolutions:
- Review session retention policies
- Clear old sessions:
redis-cli FLUSHALL(use with caution) - Set max memory limit:
maxmemory 2gbin config - Monitor with
redis-cli INFO memory
Performance Issues
Performance Issues
Problem: Slow session operationsSolutions:
- Check Redis response times:
redis-cli --latency - Verify network connectivity
- Consider Redis clustering for high load
- Monitor with
redis-cli --stat

