Docker Commands for Common Infrastructure Services
1. MySQL
4. Elasticsearch
docker run -d
--name=es
-p 9200:9200 -p 9300:9300
-e discovery.type=single-node
-e ES_JAVA_OPTS="-Xms256m -Xmx512m"
-v /es/config/elasticsearch.yml:/usr/share/elasticsearch/config/elasticsearch.yml
-v /es/data:/usr/share/elasticsearch/data
-v /es/plugins:/usr/share/elasticsearch/plugins
ela ...
Posted on Wed, 20 May 2026 00:15:10 +0000 by Mr Camouflage
Redis Cluster Architecture and Data Distribution
Redis cluster addresses storage limitations by distributing data across multiple master-slave node groups. Unlike sentinel mode, where all nodes store complete datasets, cluster mode partitions data to reduce individual node pressure.
Data Partitioning Strategies
Hash Modulo Approach
This method applies a hash function to keys and uses modulo o ...
Posted on Tue, 19 May 2026 23:24:58 +0000 by phpion
Enterprise Java Backend Technical Interview Reference
Microservices Architecture Stack
Modern distributed systems leverage Spring Cloud Alibaba ecosystem combined with containerized deployement. Core infrastructure components include Nginx for edge traffic management, Spring Cloud Gateway for centralized authentication and routing, Nacos for service discovery and dynamic configuration, Sentinel fo ...
Posted on Tue, 19 May 2026 01:38:50 +0000 by cody44
Understanding and Mitigating Common Cache Issues: Penetration, Breakdown, and Avalanche
Cache Penetration
Cache penetration occurs when a large number of requests target data that exists neither in the cache nor in the database. For example, if users repeatedly request non-existent order numbers like -1, these requests bypass the cache entirely and hit the database directly. This scenario can be exploited maliciously to overwhelm ...
Posted on Mon, 18 May 2026 23:33:18 +0000 by yes3no2
Ensuring Redis Cache and Database Consistency with Delayed Double Deletion
Redis Cache and Database Consistency
Caching improves performance and reduces database load, but introduces potential inconsistencies between cached data and the database. Inconsistent data leads to stale reads from the cache.
Non-Concurrency Scenarios
Update Cache First, Then Database
If cache udpate succeeds but database update fails, the cac ...
Posted on Mon, 18 May 2026 21:24:00 +0000 by DwarV
Implementing Redis Sentinel for High Availability with C#
Redis Sentinel is a system designed to help manage Redis instances, providing high availability through monitoring, notification, and automatic failover. It oversees master and replica instances, promoting a replica to master if the current master fails. This article explains the core concepts of Redis Sentinel and demonstrates how to integrate ...
Posted on Mon, 18 May 2026 10:05:25 +0000 by Cloud
Building and Configuring Redis from Source with systemd Integration
Prerequisites for Building Redis from Source
Before running make test, ensure TCL 8.5 or later is installed:
wget http://downloads.sourceforge.net/tcl/tcl8.6.1-src.tar.gz
tar xzvf tcl8.6.1-src.tar.gz -C /usr/local/
cd /usr/local/tcl8.6.1/unix/
./configure
make
make install
Install the GCC compiler:
yum install gcc -y
Building Redis with syste ...
Posted on Sun, 17 May 2026 21:39:10 +0000 by mechamecha
Configuring Redis for Servlet-Based Services and WebFlux Gateways in Microservices
In modern microservice architectures, Redis is widely used for caching, distributed locking, session storage, and rate limiting. However, the way you interact with Redis differs significantly between a traditional Servlet‑based service (blocking) and a WebFlux‑based gateway (non‑blocking). This guide explains both approaches and provides ready‑ ...
Posted on Sun, 17 May 2026 11:14:36 +0000 by feckless
Redis Eviction Mechanisms and Policies Explained
Redis uses eviction policies to manage memory when the maxmemory limit is reached. These policies determine which keys to remove to free up space for new data.
Eviction Policies
1. noeviction (default): When memory usage reaches maxmemory, Redis does not evict any existing data. Instead, it returns an error for write requests. This means the ca ...
Posted on Sun, 17 May 2026 11:08:43 +0000 by ercantan
Building Distributed Scrapy Spiders with Redis
RedisSpider Overview
RedisSpider extends Scrapy's base Spider class to enable distributed crawling. Instead of using a static start_urls list, this spider reads URLs from a Redis queue.
Key Differences from Standard Spider
The main modifications involve imports, inheritance, and replacing the static URL list with a Redis key:
from scrapy_redis. ...
Posted on Sun, 17 May 2026 03:26:31 +0000 by glassroof