Redis: Guides and Practical Know-how | mironsoft Blog
Redis
-
May 5, 2026
Redis transmits connection data unencrypted by default, a state many internal networks tolerated for years because the instances mostly ran behind a firewall. But once cloud environments, container orchestration, or compliance requirements enter the picture, relying purely on network segmentation is no longer enough. Since Redis 6, TLS can be configured natively, including mutual authentication between client and server. This article covers how to set up end-to-end encryption cleanly on both the server and client side, what performance overhead TLS termination actually causes, how connection reuse and session resumption noticeably cut that overhead, and how certificate rotation succeeds in production without interrupting the connection.
-
May 3, 2026
In heavily trafficked Magento shops, every PHP-FPM worker on a server accesses the same handful of frequently read configuration values, such as store configuration, feature flags, or layout handle mappings, which rarely change per request but get read fresh from Redis on every single request anyway. Such extremely frequently read keys are called hot keys, and even with a fundamentally performant Redis, they can become a measurable bottleneck under high load, because every single network round trip to Redis costs time that adds up noticeably across tens of thousands of requests per minute. Redis client-side caching over the RESP3 protocol promises relief here by holding hot-key values directly in the calling process's own memory, with clear but practically relevant limits for integrating it into Magento's cache backend architecture.
-
Apr 28, 2026
Ten million boolean flags, one flag per user, need just 1.25 megabytes of memory as a Redis bitmap, because every flag occupies exactly one bit instead of an entire set entry. SETBIT, GETBIT, BITCOUNT and BITOP make bitmaps the most compact tool for daily active user tracking and similar counting problems at huge user scale.
-
Apr 25, 2026
A single DEL command looks harmless, but on a collection with millions of elements it can freeze the entire Redis server for several hundred milliseconds. Lazy freeing moves the actual memory reclamation into a background thread and makes deleting large keys noticeably fast, regardless of their internal size.
-
Apr 18, 2026
When a single Redis instance in Magento reaches its limits, two paths open up: a real Redis Cluster with sharding, or a clean separation of cache, session and full page cache onto dedicated Redis instances. This article shows when each path makes sense and how the transition actually works.
-
Apr 17, 2026
Redis keyspace notifications turn every write operation and every key expiry into a Pub/Sub event that any number of consumers can react to. Instead of running expensive polling against the dataset, an application subscribes to exactly the changes it cares about and builds reactive architectures without an additional message queue.
-
Apr 15, 2026
Diskless replication promises faster replica synchronization by streaming the RDB snapshot directly over the network socket instead of routing it through an intermediate file on disk. But this advantage comes with real limits that need to be understood before production use, so a network hiccup does not force a complete restart of the synchronization.
-
Apr 14, 2026
A classic Redis ACL rule defines a list of allowed commands and a single key pattern for a user. That covers simple roles, but breaks down as soon as a user needs different access rights to different key ranges depending on the command group. ACL selectors solve exactly this problem by allowing several independent permission rules within the same user. How selectors work technically, and how they can express a realistic multi-team setup, is what this article covers.
-
Apr 4, 2026
Redis handles three distinct roles in Magento at once: session storage, object cache backend, and optionally Full Page Cache. Storing all three roles in the same database risks tag collisions, unnecessary cache flushes, and in the worst case logged-out customers from lost sessions. This article shows how to configure, monitor, and protect Redis in Magento from running out of memory.
-
Mar 18, 2026
Semantic product recommendations based on similarity rather than exact attribute filters need a way to efficiently search embedding vectors by closeness. Redis Vector Search, built on top of RediSearch, brings exactly this capability through HNSW and FLAT indexes directly into the Redis infrastructure that is likely already in place.