NHibernate Second-Level Cache with Redis: Architecture Note
Use NHibernate 5.x second-level cache with Redis for shared reference data across app instances, with consistency boundaries, monitoring, and failure-mode guidance.
ReadMeFeed / Community knowledge
Real questions. Useful conversations. Find the people who know your stack.
Use NHibernate 5.x second-level cache with Redis for shared reference data across app instances, with consistency boundaries, monitoring, and failure-mode guidance.
Store object data in Redis Hashes instead of multiple string keys to reduce memory overhead and simplify cache management. Use HSET and HGETALL for atomic operations, then add TTL for automatic expiration.
Redis Streams sit between Pub/Sub and a full message broker. Learn how XADD, consumer groups, and MAXLEN trimming give you a durable log without operational overhead.
Use Phalcon's inline ORM cache option to skip repeated database hydration for rarely changing data, with TTL and invalidation guidance.
Race conditions in Redis priority queues cause lost work when multiple workers pop simultaneously. Learn how atomic Lua scripts with ZSETs solve this safely.
Map Moodle caches to Redis to cut database load, then verify with the Caches admin page and redis-cli monitor.
Deploy a minimal, high‑throughput Spicedb service backed by a single Redis cluster. The guide covers requirements, a stateless per‑namespace design, trust boundaries, operational checks, common failure modes, and clear triggers for redesign.
Learn how to add a Redis cache to a Cloud Run service, reduce DB load, and measure hit ratios. Includes example, trade-offs, and a verification checklist.
Select a Redis persistence strategy by weighing data‑loss tolerance, write latency, and restart time; compare RDB, AOF and hybrid modes, then validate AOF everysec durability with a controlled crash and restart check.