Practical Guide to In-Memory Caching with Redis
Why caching matters
Every request that reaches the database consumes CPU, memory, and disk I/O. When traffic spikes, the database becomes the first bottleneck. A cache layer—placed between the application and the datastore—absorbs the majority of read requests, reduces latency, and acts as a circuit-breaker when the primary store is unavailable ...
Posted on Tue, 26 May 2026 18:49:24 +0000 by helpwanted
Redis Distributed Lock Failures During Master-Slave Failover and Mitigation Strategies
Redis Lock Vulnearbility Analysis
Asynchronous replication creates critical vulnerabilities during failover scenarios:
Timeline:
1. Client A acquires lock on master (SET resource_id unique_val NX EX 30)
2. Lock replication to replica delayed (ms to hundreds of ms)
3. Master fails, sentinel triggers failover (3-10 seconds)
4. Replica becomes new ...
Posted on Mon, 25 May 2026 19:45:58 +0000 by 182x
Understanding Redis Pub/Sub Messaging and Transaction Management
Concept Overview
Redis Publish/Subscribe (Pub/Sub) implements a messaging paradigm where senders (publishers) transmit messages to channels, and receivers (subscribers) listen for messages on those channels. A single Redis client can subscribe to multiple channels simultaneously. When a message is published to a channel, all active subscribers ...
Posted on Sun, 24 May 2026 19:27:18 +0000 by theda
Troubleshooting Jedis Authentication Error on Unprotected Redis Instances
Understanding the Exception
When integrating Java applications with Redis via the Jedis client, developers may encounter the following runtime exception:
redis.clients.jedis.exceptions.JedisDataException: ERR Client sent AUTH, but no password is set
This error indicates a mismatch in security expectations between the client and the server. Spe ...
Posted on Sun, 24 May 2026 17:52:07 +0000 by scottjcampbell
Redis Data Types: In-Depth Analysis of Strings and Internal Implementation
Redis (REmote Dicsionary Service) is an open-source, in-memory data structure store used as a database, cache, and message broker. Unlike traditional databases, Redis stores data primarily in memory, enabling extremely high throughput (often exceeding 100,000 operations per second) and low latency access.
While it is commonly recognized for its ...
Posted on Sat, 23 May 2026 22:14:59 +0000 by Toy
11 Approaches to Implementing Delayed Tasks in Java
Delayed tasks are common in real-world applications, such as canceling orders after payment timeout or automatically confirming deliveries. This article analyzes 11 different ways to implement delayed tasks, from implementation to underlying principles. Each approach has its own strengths and suits different scenarios.
DelayQueue
DelayQueue is ...
Posted on Thu, 21 May 2026 19:27:12 +0000 by Bhaal
Practical Redis: Session Management, Caching, Flash Sales, and Advanced Data Structures
Stateless Authentication with RedisIn a distributed architecture, relying on Tomcat's local sessions for user state leads to inconsistencies across instances. Redis serves as a centralized session store to solve this. When a user logs in via SMS, a unique token is generated and stored in Redis as the key, with the serialized user DTO as the val ...
Posted on Thu, 21 May 2026 18:30:50 +0000 by JohnN4
Implementing Backend CAPTCHA Validation with ASP.NET Core and Vue.js
Implemanting Backend CAPTCHA Validation with ASP.NET Core and Vue.js
While client-side CAPTCHA logic can be implemented, it often presents security concerns. A more robust approach involves generating and validating CAPTCHA codes on the server side. This method is essential for applications deployed in intranet environments where third-party se ...
Posted on Wed, 20 May 2026 20:46:03 +0000 by kuri7548
Using Redis Caching in MyBatis Operations with Spring Boot
In the previous article, we explored Spring Boot integration with Redis. This article focuses on implementing Redis caching in MyBatis operations. We'll examine four key annotations: @CachePut, @Cacheable, @CacheEvict, and @CacheConfig.
Fundamentals
@Cacheable
The @Cacheable annotation configures method-level caching, storing results based on m ...
Posted on Wed, 20 May 2026 07:19:39 +0000 by santhosh_89
Automating Zabbix Agent and Redis Deployments with SaltStack
Deploying the Zabbix Monitoring Agent
Establish the required directory hierarchy within the Salt base environment to separate system initialization tasks from application-specific configurations.
mkdir -p /srv/salt/base/{init/zabbix_epel,zabbix_agent/templates}
Configure the EPEL repository to ensure dependency resolution works correctly. Dow ...
Posted on Wed, 20 May 2026 06:30:43 +0000 by gatoruss