Solutions · Sessions & cache
Sessions that stay fast under load.
Per-tenant Redis on Luceris is the right storage for session state and HTTP caching — sub-millisecond reads, durable enough for sessions, and isolated from your noisy-neighbor concerns.
Two patterns, one cluster
Session storage and HTTP caching look similar from outside but behave differently in production. Sessions are durable (you do not want users logged out on a restart), low-volume, and read-heavy. HTTP caches are ephemeral (eviction is by design), high-volume, and read-heavy. On a single Luceris Redis cluster you can run both — pick the right persistence and eviction settings per database, or run two clusters if you want hard isolation.
AOF persistence for sessions
LRU / LFU eviction for caches
TLS-only ingress
No noisy neighbors
Code sample
import express from 'express';
import session from 'express-session';
import { RedisStore } from 'connect-redis';
import { createClient } from 'redis';
const redis = createClient({ url: process.env.REDIS_URL });
await redis.connect();
const app = express();
app.use(session({
store: new RedisStore({ client: redis, prefix: 'sess:' }),
secret: process.env.SESSION_SECRET,
resave: false,
saveUninitialized: false,
cookie: { secure: true, httpOnly: true, sameSite: 'lax', maxAge: 60 * 60 * 24 * 30 * 1000 },
}));
app.get('/', (req, res) => {
req.session.views = (req.session.views || 0) + 1;
res.send(`Views: ${req.session.views}`);
});Sizing
A typical web session is 1–5 KB. The Free tier (256 MB) holds ~50,000 active sessions. For HTTP caching, the working-set size matters more than memory — measure your hit rate at different cluster sizes and pick the one that gives you the latency you need.
Examples
- Express / Fastify / Koa session middleware
- NextAuth session adapter for Redis
- CDN-style HTTP cache in front of a slower API
- Per-user permission cache (cached for 60s; invalidated on role change)
- Idempotency-key store for retried POST requests
Frequently asked questions
Will I lose sessions on restart?
How do I handle session-fixation rotation?
Should I run sessions and HTTP cache on the same cluster?
Hot path, cold storage, and the difference clearly drawn.
256 MB free Redis with AOF persistence — enough for tens of thousands of sessions.