Redis Internal Data Structure Implementation
How Does a Key-Value Database Work?
Redis employs a hash table to store all key-value pairs. The primary advantage of a hash table is O(1) time complexity for quickly locating entries. Redis's hash buckets hold pointers (dictEntry *) to key-value data. The key-value data structure does not store values directly but uses void *key and void *valu ...
Posted on Sat, 06 Jun 2026 18:30:24 +0000 by cbolson
Redis Master-Slave Replication Fundamentals
Redis master-slave replication enables data from one Redis server (the master) to be copied to one or more other Redis servers (slaves). Data flows unidirectionallly—from master to slave. By default, every Redis instance starts as a master. A master can have multiple slaves, but each slave can only replicate from a single master.
Key Benefits o ...
Posted on Sat, 06 Jun 2026 17:57:51 +0000 by beeman000
Distributed Caching Systems: Architecture and Implementation
Evolution of Caching Technology
Hardware Origins
The term "cache" entered computing terminology from a 1967 electronics engineering paper, where the French word was adapted to mean "safekeeping storage." Early computer systems lacked caching mechanisms, with CPUs directly accessing main memory.
Key developments in CPU cache ...
Posted on Sat, 06 Jun 2026 17:42:21 +0000 by iShaun
Complete Ubuntu 16.04 Server Configuration Guide
Initial Setup and Network Configuration
Before begining the Ubuntu server setup, ensure your virtual machine network adapter is set to bridge mode. For wireless connections, select your appropriate wireless network adapter in the virtualization settings.
Basic Network Commands
# Test network connectivity
ping -c 4 192.168.1.181
# Display routi ...
Posted on Fri, 05 Jun 2026 16:13:28 +0000 by pythian
Redisson: A Comprehensive Guide to Redis-Based In-Memory Data Grid
Overview
Redisson is an in-memory data grid built on top of Redis that provides distributed Java objects and services. Beyond standard Redis operations, it offers a rich set of distributed structures including Queue, Lock, AtomicLong, CountDownLatch, Publish/Subscribe, and ExecutorService. Redisson abstracts away the complexities of Redis, allo ...
Posted on Wed, 03 Jun 2026 17:48:26 +0000 by we4freelance
Approaching Redis Source Code: A Practical Guide
Overview of Redis
Redis (Remote Dictionary Server) is an open-source, high-performance key-value store written in C by Salvatore Sanfilippo. Licensed under the BSD license, it stands out from other caching systems like Memcached due to several core features:
Persistence: Supports saving in-memory data to disk for recovery after restarts.
Ri ...
Posted on Tue, 02 Jun 2026 17:25:32 +0000 by phpgeek17
JWT Authentication Implementation for Login Verification
Understanding JWT Structure
JWT (JSON Web Token) is an open standard (RFC 7519) that defines a compact method for securely transmitting information betwean parties as a JSON object. This information can be verified and trusted because it is digitally signed. JWTs are commonly used for authentication and authorization purposes in web application ...
Posted on Thu, 28 May 2026 18:34:37 +0000 by rishiraj
Building a Message Queue with Redis Streams in Go
This article demonstrates how to implement a message queue using Redis Streams in Go. We will examine the core architecture, focusing on the Redis client configuraton and connection management logic.
The project is strcutured into several key components:
redis: A package for configuring and connecting to Redis, including connection pooling.
pr ...
Posted on Wed, 27 May 2026 17:24:19 +0000 by UVL
Redis Pub/Sub Messaging, Primary-Replica Replication, and Python Client Integration
Pub/Sub Messaging
In Redis, channels decouple producers from consumers. A publisher broadcasts to a channel without knowledge of its audience, while subscribers receive only the channels they follow. This topology eliminates polling: the server pushes messages to all connected clients as soon as they arrive.
Every push notification is an array ...
Posted on Tue, 26 May 2026 21:54:18 +0000 by kman
Cache Consistency Patterns: Implementing Delayed Double Deletion with Spring Boot AOP and Redis
Understanding the Consistency Challenge
In high-concurrency environments, siumltaneous database mutations create temporal windows where Redis caches diverge from persistent storage. Consider two concurrent update threads:
Thread Alpha: Updates database record → Updates cache entry
Thread Beta: Updates database record → Updates cache entry
Exe ...
Posted on Tue, 26 May 2026 19:52:39 +0000 by zulubanshee