Configuring Twemproxy as a Redis Cluster Proxy

Service Name IP Addres Description proxy-server-01 10.32.161.130 Twemproxy (nutcracker) instance redis-node-01 10.32.161.131 Redis cluster node redis-node-02 10.32.161.132 Redis cluster node redis-node-03 10.32.161.133 Redis cluster node redis-node-04 10.32.161.134 Redis cluster node redis-node-05 10.32.161.135 Redis cluster no ...

Posted on Thu, 18 Jun 2026 18:06:20 +0000 by jabbaonthedais

Implementing Spring Security Password Flow in a Project

The overall framework is spring-cloud-alibaba-nacos + spring-security + jwt + redis. Authorization Server a. pom.xml for the Authorization Server <!-- Spring Security, OAuth2, and JWT --> <dependency> <groupId>org.springframework.cloud</groupId> <artifactId>spring-cloud-starter-oauth2</artifactId> ...

Posted on Thu, 18 Jun 2026 17:49:25 +0000 by tachekent

Redis Cache Technology: Installation, Configuration, and Advanced Usage

Redis Installation and Setup Redis 5.0+ requires GCC 9.0 or higher for compilation. # Download and extract wget http://download.redis.io/releases/redis-3.2.12.tar.gz tar xzf redis-3.2.12.tar.gz mv redis-3.2.12 /data/redis # Build from source cd /data/redis make # Configure environment vim /etc/profile export PATH=/data/redis/src:$PATH source ...

Posted on Wed, 17 Jun 2026 18:02:12 +0000 by blackwinged

Redis Expired Data Management Strategies

Redis provides multiple approaches for handling expired data: Immediate Expiration Handling A timer-based mechanism deletes keys precisely when their expiration time is reached. Benefits: Optimal memory usage Drawbacks: Increased CPU overhead that impacts server response times and throughput Periodic Cleanup Process The activeExpireCycle() func ...

Posted on Wed, 17 Jun 2026 17:49:09 +0000 by Jnerocorp

Understanding Redis Memory Eviction Strategies

Configuring maxmemory in Redis Estimating the Right Memory Limit Since Redis is an in-memory data store, it's wise to allocate only enough memory for frequently accessed data. The 80/20 rule (Pareto principle) often applies: about 20% of the data handles 80% of the requests. If your backing database is 10 GB, you might set Redis to 2 GB. Howeve ...

Posted on Tue, 16 Jun 2026 17:54:07 +0000 by zyrolasting

Deep Dive into Redis Persistence Mechanisms: RDB and AOF

Redis operates as an in-memory data store, leveraging RAM to achieve high-speed data access. While the primary design goal is performance, relying solely on memory introduces a risk of data loss during power outages or process failures. To mitigate this, Redis provides robust persistence mechanisms to save the in-memory state to disk, allowing ...

Posted on Tue, 16 Jun 2026 16:21:29 +0000 by TheSeeker

Chunked File Upload Implementation with Vue.js and Spring Boot

File Hashing Strategy To establish file uniqueness, implement an MD5 hash calculation using a sampling approach. This method processes the entire first and last chunks while sampling portions of intermediate chunks: async generateFileHash(chunks) { return new Promise(resolve => { const hasher = new SparkMD5.ArrayBuffer(); const sam ...

Posted on Mon, 15 Jun 2026 17:19:58 +0000 by brandond

Configuring RabbitMQ Dead Letter Exchanges, Redis Seckill with Redisson, Elasticsearch Logging, and Redis-Driven Features

RabbitMQ Setup with Dead Letter Handling To handle timed‑order expiry, a RabbitMQ infrastructure consisting of a direct exchange, a durable queue, and a dedicated dead‑letter exchange (DLX) is defined. The queue is declared with arguments that route expired (unconsumed) messages to the DLX after a configured TTL. Below is the Spring configurati ...

Posted on Mon, 15 Jun 2026 16:42:04 +0000 by emfung

Working with Redis in Java: Jedis and Spring Data Redis

Using Jedis for Direct Redis Interaction Jedis is a lightweight Redis client for Java. To begin: Add Maven dependencies: <dependencies> <dependency> <groupId>redis.clients</groupId> <artifactId>jedis</artifactId> <version>5.0.0</version> </dependency> &l ...

Posted on Sun, 14 Jun 2026 17:47:22 +0000 by Brad420

A Lightweight and Efficient Asynchronous Task Tool: Python RQ

Python RQ (Redis Queue) is a lightweight asynchronous task queue library built on Redis and written in Python. Its primary function is to assist developers in placing long-running tasks (such as sending emails, processing large datasets, etc.) into a queue, which are then handled asynchronously by background processes to enhance application pe ...

Posted on Sun, 14 Jun 2026 17:08:14 +0000 by djwinder