Distributed Cache Design and Implementation: Principles and Practices

Background Distributed systems form the backbone of many modern internet and enterprise applications. However, as system scale grows and performance demands increase, distributed systems face significant challenges. A core issue is how to manage data access and processing effectively. Distributed caching is a common solution that can effectivel ...

Posted on Thu, 22 Oct 2026 16:37:36 +0000 by appels

Redis Persistence: RDB and AOF Mechanisms Explained

Persistence refers to the process of creating backups of data stored in memory. This is a crucial strategy for ensuring high availability in single-node deployments. When Redis experiences a failure, these backups enable data recovery. Redis supports two primary persistence mechanisms: RDB and AOF. 1. RDB (Redis DataBase) RDB creates point-in-t ...

Posted on Sat, 17 Oct 2026 16:44:20 +0000 by dellwoodbu

Dynamic Function and Method Invocation in Python

# module.py class A: def foo(self): print('this is foo.') @staticmethod def static_method(): print('this is static.') def bar(): print('bar……') def baz(): print('==baz==') This approach is an extension of the import() method. The Python documentation recommends using import_module() for programmatic ...

Posted on Thu, 15 Oct 2026 16:33:07 +0000 by whistler

Deploying and Managing Infrastructure at Scale with SaltStack

Overview Salt is a Python-based, event-driven automation platform that combines remote execution, configuraton management, and cloud orchestration. Compared to Puppet (Ruby) and Ansible (Python, agent-less over SSH), Salt scales to tens of thousands of nodes with sub-second command latency thanks to its ZeroMQ transport. Lab Environment ...

Posted on Mon, 12 Oct 2026 16:28:52 +0000 by tibiz

Setting Up a Redis Cluster

1. Configuring Redis Instances Each Redis node in the cluster requires a specific configuration. Edit the redis.conf file for each instance to include the following key settings: # Run as a background process daemonize yes # Assign a unique port to each instance (e.g., 7001-7006) port 7001 # Enable cluster mode cluster-enabled yes # Specify ...

Posted on Sat, 10 Oct 2026 16:51:41 +0000 by bogdani

Comprehensive Guide to Redis Architecture, Deployment, and High Availability

NoSQL Landscape and Redis Fundamentals Non-relational databases emerged to address scalability bottlenecks inherent in traditional RDBMS, particularly around high-concurrency I/O, massive data distribution, and flexible schema requirements. The NoSQL ecosystem typically categorizes storage engines into four primary models: Key-Value Stores: Id ...

Posted on Tue, 06 Oct 2026 16:20:02 +0000 by kamsmartx

Strategies to Mitigate Redis Cache Penetration

Understanding Redis Cache Penetration Cache penetration occurs when a high volume of requests target data that is not present in the cache. When a cache lookup fails (a cache miss), the request typically proceeds to query the underlying database. The risk emerges when numerous concurrent requests simultaneously seek non-existent data. Since the ...

Posted on Mon, 05 Oct 2026 16:12:44 +0000 by gezeala

Accessing Different Redis Databases via Docker Commands

To interact with specific Redis databases within a Docker environment, follow these steps to connect directly using containerized tools. Begin by launching a Redis instance in a detached container: docker run -d --name redis-instance redis Once the container is runing, access its shell using the exec comand: docker exec -it redis-instance sh ...

Posted on Sun, 04 Oct 2026 16:10:21 +0000 by PABobo

Redis GEO, BitMap, and HyperLogLog for Location-Based Services

Nearby Shops Redis GEO data structures enable efficient nearby shop queries. The key pattern uses a prefix combined with shop type ID, with each GEO entry storing a shop identifier and its geographic coordinates. Data Import A unit test populates Redis with shop location data from MySQL: @Test void loadShopData() { // Fetch all shops from d ...

Posted on Sat, 03 Oct 2026 16:53:13 +0000 by shoz

Running Redis Commands via Shell Scripts in Linux

Overview Redis is an open-source in-memory data store frequently utilized for caching, session management, and pub/sub messaging patterns. This guide explains how to automate Redis operations by embedding commands within bash shell scripts on a Linux system. Basic Implementation Connection Setup Create a new shell script file named redis_exec.s ...

Posted on Fri, 02 Oct 2026 16:48:37 +0000 by kpetsche20