Insights / Topic
SaaS Architecture
Multi-tenancy, billing, data and the shape of durable SaaS products.
SaaS Architecture · Illustrative scenario
Redis KEEPTTL: reject persistent cache entries
An illustrative display cache changes its presentation without extending freshness. An unexpected persistent entry must be rejected rather than preserved forever.
SaaS Architecture · Illustrative scenario
Redis SCAN cleanup: check the key generation
A discovered key name is a candidate; the current value decides whether removal is allowed.
SaaS Architecture · Illustrative scenario
Redis cache refresh: reject an expired lock’s write
Prevent an expired Redis refresh worker from overwriting a newer cache value. Check ownership and publish atomically, then test late writers and design limits.
SaaS Architecture
Postgres row-level security for multi-tenant SaaS
RLS works when the role, the tenant setting and the connection pool all cooperate. Here is how to check each one.