Redis: Guides and Practical Know-how | Page 5 | mironsoft Blog
Redis
-
Sep 27, 2025
Redis runs as a single-threaded event loop, where every slow command blocks all other clients at once. The slowlog logs exactly these commands with timestamp, duration, and arguments, making it the most direct tool for tracing a latency problem back to a specific command instead of a vague guess.
-
Sep 23, 2025
After every Magento deployment the Redis cache is empty, and the first requests hit the database unchecked. This article explains why that traffic spike happens, how warmup crawlers and cache preload scripts prevent it, and how warmup can be cleanly integrated into a deployment pipeline.
-
Sep 22, 2025
An undersized Redis server leads to frequent eviction, dropping hit rates, and in the worst case out of memory errors right in the middle of checkout. Proper memory sizing means realistically estimating the memory needs of cache, session and full page cache based on catalog size and traffic, instead of relying on roughly guessed defaults that account for neither growth nor traffic peaks.
-
Sep 7, 2025
Every form of persistence in Redis costs latency, whether through fsync calls on every write or through the fork process behind a snapshot. Anyone who does not understand this tradeoff ends up choosing either a configuration that causes latency spikes in production, or one that loses more data than planned when something actually breaks.
-
Aug 25, 2025
A network partition can cause two Redis nodes to simultaneously believe they are the only valid master and accept conflicting writes. Quorum-based decisions in Sentinel, safeguarding through min-replicas-to-write, and a clear understanding of failover mechanics prevent such a split-brain situation from ever occurring, or from silently costing you data.
-
Aug 17, 2025
When the master of a Redis setup fails without automation, a human's reaction time determines how long an application stays down. Redis Sentinel continuously monitors master and replicas, coordinates with other Sentinel instances about the real state of the system, and automatically promotes a replica to the new master on a genuine outage, without anyone stepping in manually.
-
Aug 17, 2025
Redis Lua scripting runs a complete script as a single atomic command, without any other client being able to interleave. Anyone who implements increment-with-limit, conditional delete or other read-then-write patterns without real server-side logic risks race conditions that Lua scripts structurally rule out.
-
Aug 10, 2025
A ranking with thousands of players sounds like a sorting and scaling problem, but with Redis Sorted Sets it is a data structure built for exactly that. ZADD, ZRANK and ZREVRANGE deliver ranking, neighborhood queries and top-N lists in logarithmic time, without the application ever having to sort or cache anything itself.
-
Aug 5, 2025
Redis is far more than a simple key value store for strings. Anyone who understands the four core data types, strings, hashes, lists and sets, and their internal memory encoding can build data models that use noticeably less memory and respond significantly faster than a naive implementation that leans on a single data type.
-
Jul 26, 2025
Message queues decouple PHP applications from slow or unreliable neighboring systems and shift work into asynchronous worker processes. Once you understand how acknowledgments, prefetch and dead letter queues interact, you can drive message queues from PHP so that messages are neither lost nor processed twice.