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
Starting MongoDB Daemon with Configuration File
MongoDB can be launched using a configuration file instead of passing command-line arguments. This approach provides better maintainability and makes it easier to modify startup parameters.
Linux Configuration
First, create the necessary directories and files:
sudo mkdir -p /var/lib/mongodb
sudo mkdir -p /var/lib/mongodb/log
sudo touch /var/lib ...
Posted on Mon, 05 Oct 2026 16:03:07 +0000 by jgp4
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
Comprehensive Introduction to MongoDB: Architecture and Local Deployment
Overview of MongoDB Architecture
MongoDB is a high-performance, distributed document database engineered in C++. It is designed to provide horizontal scalability and high availability for modern web applications. Unlike traditional relational databases that use fixed tables, MongoDB stores data in flexible, JSON-like documents (BSON). This sche ...
Posted on Sat, 03 Oct 2026 16:38:30 +0000 by delorian
Managing Relational Data with SQL and Python
To establish a database connection and create a table, use the following Python script with sqlite3.
import sqlite3
db_conn = sqlite3.connect('playlist.db')
cursor = db_conn.cursor()
cursor.execute('DROP TABLE IF EXISTS Songs')
cursor.execute('CREATE TABLE Songs (song_name TEXT, play_count INTEGER)')
db_conn.close()
The connect() method ope ...
Posted on Fri, 02 Oct 2026 16:53:27 +0000 by papapax
Deploying MySQL with Docker
1. Prepare Host Directories
First, create the necessary directories on your host machine to store MySQL data, logs, and configuration files. This ensures data persistence evenif the container is removed.
mkdir -p /opt/mysql/data
mkdir -p /opt/mysql/logs
mkdir -p /opt/mysql/conf
2. Create a Custom Configuration File
Create a configuration file ...
Posted on Fri, 02 Oct 2026 16:12:56 +0000 by n8w
Essential MyBatis-Plus Usage Guide and Code Generation
Maven Dependencies
For Spring Boot 2
<dependency>
<groupId>com.baomidou</groupId>
<artifactId>mybatis-plus-boot-starter</artifactId>
<version>LATEST_VERSION</version>
</dependency>
For Spring Boot 3
<dependency>
<groupId>com.baomidou</groupId>
<artifactId& ...
Posted on Fri, 02 Oct 2026 16:08:25 +0000 by superhaggis
Backend Development for an MBTI Personality Test Application (Basics)
Requirement Analysis
Database Schema Design
Backend Project Initialization
Basic Backend Development – CRUD Operations
Interface Development
Service Layer Implementation
Core Business Logic
Requirement Analysis
The goal here is to clearly define what needs to be built and prioritize these requirements to shape the development roadmap.
a. Func ...
Posted on Thu, 01 Oct 2026 16:51:52 +0000 by biffjo
Getting Started with JDBC: Basic CRUD Operations
JDBC (Java Database Connectivity) is a Java-based API that provides a standardized interface for executing SQL statements. It enables Java applications to interact with relational databases in a uniform manner, regardless of the specific database vendor. The API consists of a collection of Java classes and interfaces that abstract database oper ...
Posted on Tue, 29 Sep 2026 16:43:23 +0000 by scuff
SQLAlchemy CRUD Operations and Relationship Handling
This guide demonstrates how to perform basic Create, Read, Update, and Delete (CRUD) operations using SQLAlchemy's Object-Relational Mapper (ORM), along with managing one-to-many and many-to-many relationships.
Defining Database Models
SQLAlchemy's ORM allows you to map Python objects to database tables. This involves defining classes that i ...
Posted on Tue, 29 Sep 2026 16:13:39 +0000 by eneficus