Tag

Redis

1 views collected around this technical thread.

Code Ape Tech Column
Code Ape Tech Column
Jun 12, 2025 · Information Security

How to Build Single Sign‑On (SSO) with CAS and Session Sharing in Java

This article explains why multiple independent login systems hurt user experience and security, reviews traditional session mechanisms and their limitations in clustered environments, and then presents two session‑sharing strategies and a complete CAS‑based SSO solution with Java code examples.

CASJavaRedis
0 likes · 15 min read
How to Build Single Sign‑On (SSO) with CAS and Session Sharing in Java
IT Services Circle
IT Services Circle
Jun 11, 2025 · Databases

How to Count 100 Million Redis Keys Efficiently Without Crashing the Cluster

This article explains why the KEYS * command is dangerous for large Redis deployments and presents several practical alternatives—including SCAN, multithreaded SCAN, cluster‑wide parallel scans, built‑in counters, and real‑time incremental counting—along with code samples, performance comparisons, and guidance on choosing the right solution.

ClusterKey CountingRedis
0 likes · 10 min read
How to Count 100 Million Redis Keys Efficiently Without Crashing the Cluster
Code Mala Tang
Code Mala Tang
Jun 10, 2025 · Backend Development

Boost Your FastAPI API Performance with Redis Caching: A Step‑by‑Step Guide

This tutorial explains how to integrate Redis caching into a FastAPI application, covering installation, connection handling, cache expiration, testing, cache clearing, and best‑practice considerations to dramatically improve API response times and scalability.

BackendCachingFastAPI
0 likes · 9 min read
Boost Your FastAPI API Performance with Redis Caching: A Step‑by‑Step Guide
IT Services Circle
IT Services Circle
Jun 10, 2025 · Backend Development

Master TP-Link Backend Interview: JVM, GC, Synchronization, and Redis Cache Strategies

The article shares a personal experience of TP-Link's early campus recruitment and salary expectations, then provides a comprehensive Java backend interview guide covering class‑loader delegation, JVM memory layout, garbage‑collector types, synchronized lock mechanics, and common Redis cache pitfalls with practical solutions.

Backend InterviewCache ConsistencyGarbage Collection
0 likes · 18 min read
Master TP-Link Backend Interview: JVM, GC, Synchronization, and Redis Cache Strategies
Full-Stack Internet Architecture
Full-Stack Internet Architecture
Jun 10, 2025 · Databases

Top Redis Cluster Interview Questions and Expert Answers

Explore essential Redis Cluster interview questions covering slot count, hashing mechanisms, use cases, configuration options, hash slots, hash tags, node ports, and consistency model, providing concise answers that help candidates master the core concepts and excel in technical interviews.

ClusterConfigurationHash Slot
0 likes · 4 min read
Top Redis Cluster Interview Questions and Expert Answers
macrozheng
macrozheng
Jun 9, 2025 · Backend Development

Mastering Redis Hotspot Keys: Detection, Risks, and Solutions

This article explains what Redis hotspot keys are, the performance and stability issues they cause, common causes, how to monitor and identify them, and practical mitigation strategies such as cluster scaling, key sharding, and multi‑level caching.

BackendCachingMonitoring
0 likes · 10 min read
Mastering Redis Hotspot Keys: Detection, Risks, and Solutions
FunTester
FunTester
Jun 7, 2025 · Backend Development

How to Test Redis Protocol Performance: A Practical Guide for Engineers

Redis, an in‑memory high‑performance data store, serves as a popular secondary cache; this article explains its key features, data structures, persistence options, and presents a step‑by‑step Java workflow—including client creation, request sending, result handling, and connection cleanup—to help test engineers design effective performance tests.

BackendCachingJava
0 likes · 4 min read
How to Test Redis Protocol Performance: A Practical Guide for Engineers
Zhuanzhuan Tech
Zhuanzhuan Tech
Jun 4, 2025 · Backend Development

A Comprehensive Guide to Redisson Distributed Locks in Java

This article explains Redisson's various distributed lock mechanisms—including watchdog, reentrant lock, multi‑lock, read‑write lock, semaphore, RedLock, and CountDownLatch—detailing their principles, usage patterns, code examples, and best‑practice recommendations for robust backend concurrency control.

Distributed LocksJavaRedis
0 likes · 16 min read
A Comprehensive Guide to Redisson Distributed Locks in Java
Top Architect
Top Architect
Jun 4, 2025 · Backend Development

Implementing Request Debounce in Java Backend Using Redis and Redisson

This article explains how to implement request debouncing in Java backend services using Redis and Redisson, covering the concept, interface types needing debouncing, duplicate request detection, shared cache and distributed lock solutions, with complete code examples and testing results.

BackendDebounceJava
0 likes · 17 min read
Implementing Request Debounce in Java Backend Using Redis and Redisson
Selected Java Interview Questions
Selected Java Interview Questions
Jun 2, 2025 · Backend Development

Implementing Precise Per‑Minute API Call Statistics in Java: Multiple Solutions and Best Practices

This article explains why per‑minute API call counting is essential for performance bottleneck detection, capacity planning, security alerts and billing, and presents five concrete Java‑based implementations—including a fixed‑window counter, a sliding‑window counter, AOP‑based transparent monitoring, a Redis time‑series solution, and Micrometer‑Prometheus integration—along with a hybrid architecture, performance benchmarks, and practical capacity‑planning advice.

API monitoringJavaPrometheus
0 likes · 25 min read
Implementing Precise Per‑Minute API Call Statistics in Java: Multiple Solutions and Best Practices
Test Development Learning Exchange
Test Development Learning Exchange
May 30, 2025 · Operations

Using Locust to Load Test WebSocket and Redis with Heartbeat Simulation

This guide explains how to set up and run Locust load tests for WebSocket connections and Redis interactions in Python, including client implementations, heartbeat simulation, and practical tips for resource management and concurrency control.

LocustPerformance TestingPython
0 likes · 5 min read
Using Locust to Load Test WebSocket and Redis with Heartbeat Simulation
macrozheng
macrozheng
May 27, 2025 · Backend Development

Scaling Username Uniqueness: DB, Redis Cache & Bloom Filter

This article examines three strategies for checking username uniqueness at massive scale—direct database queries, Redis caching, and Bloom filter techniques—detailing their implementations, performance trade‑offs, memory consumption, and suitability for billions of users.

Bloom FilterCachingRedis
0 likes · 11 min read
Scaling Username Uniqueness: DB, Redis Cache & Bloom Filter
Lobster Programming
Lobster Programming
May 27, 2025 · Backend Development

Ensuring API Idempotency with Redis and Unique Serial Numbers

This article explains how to achieve API idempotency by having clients send a short‑lived unique serial number, storing it as a Redis key with SETNX and an expiration, and handling the Redis response to process or reject duplicate requests.

API idempotencyBackendRedis
0 likes · 3 min read
Ensuring API Idempotency with Redis and Unique Serial Numbers
Top Architect
Top Architect
May 24, 2025 · Databases

Implementing Pagination and Multi‑Condition Fuzzy Search in Redis

This article explains how to use Redis Sorted Sets and Hashes to achieve efficient pagination, fuzzy multi‑condition queries, and their combination, while also discussing performance‑optimisation strategies such as temporary ZSet expiration and data‑freshness handling, before concluding with a brief promotional segment.

BackendRedisdatabase
0 likes · 12 min read
Implementing Pagination and Multi‑Condition Fuzzy Search in Redis
Architect's Tech Stack
Architect's Tech Stack
May 23, 2025 · Databases

RedisInsight Guide: Installation, Configuration, and Basic Usage

This article provides a comprehensive tutorial on RedisInsight, covering its features, step‑by‑step physical and Kubernetes installation, environment variable setup, service startup, and basic usage together with Redis server configuration, illustrated with code snippets and screenshots.

Database GUIInstallationKubernetes
0 likes · 6 min read
RedisInsight Guide: Installation, Configuration, and Basic Usage
Full-Stack Internet Architecture
Full-Stack Internet Architecture
May 19, 2025 · Databases

Understanding MOVED and ASK Redirection in Redis Cluster

Redis clusters use two redirection commands—MOVED for permanently migrated hash slots and ASK for temporary redirects during slot migration—explaining their trigger conditions, typical scenarios, and step-by-step client interaction examples, including sample CLI output.

ASKClusterMOVED
0 likes · 4 min read
Understanding MOVED and ASK Redirection in Redis Cluster
Selected Java Interview Questions
Selected Java Interview Questions
May 19, 2025 · Backend Development

Designing Automatic Order Closure: Comparing DB Polling, Redis Expiration, Redis Zset Delay Queue, and Message Queue Delayed Messages

This article examines four techniques for automatically closing overdue orders—database polling, Redis key‑expiration listeners, Redis sorted‑set delay queues, and message‑queue delayed messages—detailing their implementations, advantages, drawbacks, and practical recommendations for reliable backend systems.

BackendMessage QueueRedis
0 likes · 11 min read
Designing Automatic Order Closure: Comparing DB Polling, Redis Expiration, Redis Zset Delay Queue, and Message Queue Delayed Messages
Full-Stack Internet Architecture
Full-Stack Internet Architecture
May 15, 2025 · Databases

Understanding PFAIL and FAIL States in Redis Cluster Node Failure Detection

This article explains the PFAIL (possible fail) and FAIL (failed) states in Redis clusters, describes the state transition process, demonstrates node failure and automatic failover with command‑line examples, and provides practical insights into cluster health monitoring and recovery.

ClusterFAILNode Failure
0 likes · 5 min read
Understanding PFAIL and FAIL States in Redis Cluster Node Failure Detection
Architecture & Thinking
Architecture & Thinking
May 15, 2025 · Databases

Redis 8.0 Unveiled: New AGPLv3 License, Vector Search, JSON & More

Redis 8.0, released on May 1 2025, introduces a major license shift to AGPL‑v3, adds eight native data structures—including vector sets, JSON, and time‑series—enhances the query engine with up to 16× performance gains, improves scalability, security, and cloud‑native support, and provides extensive code examples for AI and real‑time analytics.

JSONRedisSecurity
0 likes · 15 min read
Redis 8.0 Unveiled: New AGPLv3 License, Vector Search, JSON & More