Redis Session Store - Sidecar Pattern
by Think About Bit Technologies http://www.thinkaboutbit.com$ย 239.95
Redis Session Store - Sidecar Pattern
Unleash 10x faster session reads for enterprise-grade, high-traffic Odoo clusters.
The Problem with Traditional Redis Setups
Standard Odoo Redis configurations route all traffic to a single central Redis instance. Every individual page asset or endpoint execution demands a network hop to retrieve session data (~1ms). Under high traffic or massive concurrency, this network overhead limits performance and spikes CPU latency.
Infrastructure Architecture
Outstanding Features
๐ Dual Connection Architecture
Routes write commands safely to the primary Redis Master node, while session reads execute against the synchronized sidecar node local to the container pod.
โก Localhost Speedup
Pulls session contexts directly out of the local network interface loopback engine. Cuts communication latency down from 1.2ms to an impressive 0.1ms framework scale.
โ Sidecar Deployment Optimization
Designed from scratch for modern cloud native Kubernetes topographies. Co-allocates the session storage layers inside the app pod directly next to Odoo ecosystem engines.
โป Smart Failover Routines
Built with fallback logic. If a local node encounters an un-replicated record state, the code seamlessly pulls verification directly from the master layer automatically.
How It Compares
| Feature Capabilities | session_redis (OCA) | session_redis_gt | This Module |
|---|---|---|---|
| Single Instance Redis | โ | โ | โ |
| Redis Cluster Deployments | โ | โ | โ |
| Master-Replica Routing Split | โ | โ | โ |
| Local Sidecar Interface Reads | โ | โ | โ |
| Read Operations Latency | ~1.0ms | ~1.0ms | ~0.1ms |
System Configuration Quickstart
1. System Prerequisites
pip install redis
2. Server Parameter Setup (odoo.conf)
[options] server_wide_modules = base,web,session_redis_sidecar
3. Production Target Context Switches
# Kubernetes Multi-Pod Target Routing Configuration export REDIS_MASTER_HOST=redis-master.redis.svc.cluster.local export REDIS_LOCAL_HOST=localhost # Standard Development Standalone Setup Mode export REDIS_MASTER_HOST=redis export REDIS_LOCAL_HOST=redis
Enterprise Scalability, Straight Out of the Box
Actively evaluated across cluster infrastructures running Odoo core runtimes 16.0, 17.0, and 18.0. Distributed safely under the modular LGPL-3.0 copyleft terms.
| Availability |
Odoo Online
Odoo.sh
On Premise
|
| Lines of code | 209 |
| Technical Name |
session_redis_sidecar |
| License | LGPL-3 |
| Website | http://www.thinkaboutbit.com |
Please log in to comment on this module