Article 1

MyBatis Deep Dive - Level 1 Cache, Code Testing, and Sour...

Detailed introduction to MyBatis level 1 cache working principles, code testing, invalidation scenarios, and source code analysis. Level 1 cache is enabled by default in MyBatis with SqlSession-lev...

Article 2

MyBatis Level 2 Cache - Testing and Source Code Analysis

Detailed introduction to MyBatis level 2 cache working principles, enable configuration, code testing, and source code analysis. Level 2 cache is based on Mapper namespace, and multiple SqlSessions...

Article 3

MyBatis Level 2 Cache Integration with Redis, Testing and...

Detailed introduction to MyBatis level 2 cache integration with Redis for distributed caching across services, including pom configuration, mapper configuration, test code and source code analysis....

Article 4

MyBatis Deep Dive - ORM Concepts, Mapping Relations, and ...

This article introduces the MyBatis framework in depth, starting from ORM concepts, explaining MyBatis development history, technical advantages, and comparisons with common ORM frameworks like Hib...

Article 5

MySQL Master-Slave Replication: Read-Write Separation and...

This article provides an in-depth explanation of MySQL master-slave replication: master-slave mode, read-write separation, semi-sync replication principles and configuration.

Article 6

MySQL Design Guide: Availability, Scalability, Consistency

This article provides an in-depth explanation of MySQL database design: availability (redundancy, failover), scalability (sharding, read-write separation), consistency (strong consistency vs eventu...

Article 7

MySQL Deadlock: Principles, Scenarios and Prevention

This article provides an in-depth explanation of MySQL deadlocks: deadlock definition, necessary conditions, table lock deadlocks, row-level deadlocks, shared to exclusive lock conversion, deadlock...

Article 8

MySQL Lock Mechanism: From Table Locks to Row Locks

This article provides an in-depth explanation of MySQL lock mechanisms: pessimistic locking, optimistic locking, table-level locks, row-level locks (shared locks, exclusive locks), intention locks,...

Article 9

MySQL Parallel Replication: From 5.6 to 8.0 Evolution

This article provides an in-depth explanation of MySQL parallel replication technology: from 5.6 database-based parallel to 5.7 group commit-based to 8.0 writeset-based evolution.

Article 10

MySQL Dual-Master Architecture and MMM High Availability

Deep dive into MySQL dual-master architecture and MMM high availability solution: dual-master mode, MMM fault handling, monitoring mechanism. This article analyzes principles and practical applicat...

Article 11

MySQL MHA Master-Slave Failover: Architecture and Impleme...

Deep dive into MySQL MHA high availability solution: MHA architecture, fault handling, primary-standby switch, lag issues and solutions. This article analyzes principles and practical applications.

Article 12

MySQL Sharding Technologies Compared: Range, Hash, Consis...

Sharding is the core technology for horizontal scaling in distributed databases. This article provides a comprehensive analysis of range-based, hash-based, and consistent hash sharding strategies w...

Article 13

MySQL Distributed Primary Key Strategies: UUID, SnowFlake...

Explore MySQL distributed primary key strategies including UUID, SnowFlake, COMB, Redis, and database ID table approaches with their principles, pros and cons, and applicable scenarios comparison.

Article 14

MySQL Scaling Guide: Triggers, Migration, and Performance...

Explore MySQL database horizontal scaling solutions for capacity, performance, and concurrency bottlenecks. Covers scaling triggers, migration plans, and best practices with detailed technical anal...

Article 15

MySQL Sharding-JDBC: Lightweight Sharding & Read-Write Se...

A comprehensive guide to Sharding-JDBC, a lightweight Java database middleware solving database sharding, read-write separation and distributed transactions. Learn core principles and practical app...

Article 16

MySQL Sharding-JDBC: Physical Tables, Logical Tables & Bi...

In distributed databases, sharding is implemented through physical tables, logical tables, data nodes and binding tables. Binding tables ensure master and child tables use the same sharding rules, ...

Article 17

MySQL ShardingSphere: SQL Parse, Route, Rewrite & Execute...

Deep dive into ShardingSphere's sharding flow including SQL parsing, query optimization, SQL routing, SQL rewriting, SQL execution and result merging six major stages with detailed technical analysis.

Article 18

MySQL Read-Write Separation: Master-Slave Architecture De...

Read-write separation is a common database architecture optimization technique that separates write operations to master and read operations to slaves through master-slave replication. Learn the fu...

Article 19

MySQL ShardingSphere: SQL Support, Limitations & Optimiza...

Deep dive into ShardingSphere's SQL support scope, limitations, and optimization practices in sharding scenarios. Learn about supported SQL types, pagination subquery restrictions, and best practices.

Article 20

MySQL Sharding-JDBC: Physical, Logical & Binding Tables E...

In distributed databases, sharding uses physical tables, logical tables, data nodes and binding tables for efficient data storage and queries. Binding tables ensure master and child tables use same...

Article 21

MySQL ShardingSphere Saga: Flexible Transaction Implement...

ShardingSphere implements flexible transactions through servicecomb-saga integration, using SPI dynamic injection and reverse SQL technology to automatically generate compensation operations for di...

Article 22

MySQL Distributed Transactions: TCC, Message Queue & Saga...

Distributed transaction patterns mainly include TCC, message queue, and Saga. TCC divides traditional 2PC into three business-controllable steps, message queue achieves eventual consistency, Saga s...

Article 23

Seata Framework: Four Transaction Modes & Core Architecture

Seata is Alibaba's open-source distributed transaction solution providing one-stop transaction management with high performance, low intrusion and multi-language support.

Article 24

MySQL XA Distributed Transactions: ShardingSphere Integra...

Traditional approaches rely on database vendor XA drivers and application server transaction managers. Modern systems use embedded transaction managers. ShardingSphere provides cross-database XA tr...

Article 25

CAP Theory & Distributed Transactions: From 2PC/3PC to XA

CAP theory reveals that distributed systems cannot simultaneously satisfy consistency, availability and partition tolerance. 2PC ensures strong consistency through coordinator-controlled two-phase ...

Article 26

ShardingSphere Data Masking: Transparent Encryption & Com...

Data masking is a key data security technology that balances data utility and privacy protection by replacing, encrypting or perturbing sensitive information. ShardingSphere provides complete maski...

Article 27

ShardingSphere Saga Flexible Transaction Implementation

ShardingSphere implements flexible transactions through integration with third-party servicecomb-saga component, using SPI dynamic injection and reverse SQL technology to automatically generate com...

Article 28

MySQL MyCat Distributed Database Middleware: Architecture...

MyCat is an open-source distributed database middleware fully compatible with MySQL protocol. Core features include database sharding, read-write separation, and result set merging with multiple sh...

Article 29

Sharding-Proxy: Zero-Code-Invasive Database Sharding Solu...

Sharding-Proxy in the ShardingSphere ecosystem uses transparent database proxy architecture to implement database sharding, read-write separation, distributed transactions and data encryption witho...

Article 30

MyCat Sharding Strategies: E-R, Global Tables & Sharding ...

MyCat distributed database sharding strategies include E-R table sharding, global table mechanism, shard nodes, node hosts and sharding rules.

Article 31

MyCat server.xml: Core Configuration File Guide

server.xml is MyCat's core configuration file that centrally stores key parameters needed for system operation, including system parameters, user permissions, firewall configuration and performance...

Article 32

MyCat Installation & Configuration: Setup, Service Manage...

MyCAT is an open-source database middleware supporting MySQL protocol, commonly used for database sharding and data sharding management. Installation includes unpacking, configuring environment var...

Article 33

MySQL Transaction Isolation Levels: From READ UNCOMMITTED...

MySQL transaction isolation levels include READ UNCOMMITTED, READ COMMITTED, REPEATABLE READ and SERIALIZABLE. Each level solves different concurrency problems.

Article 34

MySQL Transactions: ACID Properties, Isolation Levels & U...

MySQL database transaction is a set of SQL operations executed as a single logical unit of work, following ACID principles: Atomicity, Consistency, Isolation and Durability.

Article 35

MyCat schema.xml: Logical Database, Tables, Data Nodes Guide

schema.xml is MyCat's core configuration file managing logical databases, logical tables, data nodes and data hosts.

Article 36

MySQL Transaction Issues: Dirty Read, Non-Repeatable Read...

Common issues in database transactions include dirty read, non-repeatable read, and phantom read. These issues are closely related to database isolation levels.

Article 37

Spring Boot Transaction Propagation: From REQUIRED to NESTED

Transaction propagation is an important mechanism in Spring for handling transaction boundaries, defining how methods interact with transaction context in the call chain.

Article 38

Spring Boot Declarative vs Programmatic Transactions

Introduces declarative transaction and programmatic transaction concepts, usage methods and comparative analysis. Declarative transaction is implemented through @Transactional annotation, programma...

Article 39

Spring Transaction Pitfalls Part 2: Common Issues & Solut...

Common Spring transaction pitfalls include non-public access modifiers, unsupported storage engines, incorrect readOnly configuration, transaction timeout too short, and incorrect propagation mecha...

Article 40

Spring Boot @Transactional: Propagation, Isolation & Roll...

Detailed introduction to @Transactional annotation parameters in Spring Boot, including transaction propagation, isolation levels, and exception rollback strategies.

Article 41

MyBatis Plugin Mechanism - Principles, Custom Plugins, So...

Detailed introduction to MyBatis plugin mechanism including plugin principles, custom plugin development, intercepting four core components, @Intercepts annotation usage, and source code analysis. ...

Article 42

Spring Transaction Pitfalls Part 1: Common Issues & Solut...

Spring transaction pitfalls commonly occur in scenarios like classes not managed by Spring, transaction manager not started, improper method modifiers (final, static, private), and same-class inter...

Article 43

Spring Transaction Pitfalls Part 3: Common Issues & Solut...

Spring transaction pitfalls include rollbackFor configuration errors, transaction annotation overrides, nested transaction issues and more.

Article 44

MongoDB Basic Operations: Database, Collection & CRUD Guide

MongoDB common commands include show dbs to list databases, use to switch databases, db.createCollection() to create collections, show collections to list collections, db.collection.drop() to delet...

Article 45

NoSQL Databases: MongoDB, Redis, HBase, Neo4j Comparison

NoSQL is a general term for non-relational databases, including document-based MongoDB, key-value Redis, column-store HBase, and graph database Neo4j, each with its own characteristics and use cases.

Article 46

MongoDB BSON Format: Core Storage Format vs JSON

BSON is MongoDB's core storage format, a binary-encoded JSON-like format. Compared to JSON, BSON supports more data types like Date, Binary, ObjectId, with better performance.

Article 47

Spring Transaction Pitfalls Part 4: Multi-threading & Exc...

Spring transaction pitfalls include multi-threaded calls, exception catching without rollback, manual exception throwing errors. In multi-threading scenarios, child threads cannot inherit parent th...

Article 48

MongoDB Indexing: Types, Principles & Best Practices

MongoDB indexes are core mechanisms for improving query performance, including single field indexes, compound indexes, multi-key indexes, geospatial indexes, text indexes and hashed indexes.

Article 49

MongoDB Index Management & explain Execution Plan Analysis

MongoDB index management includes createIndex, getIndexes, dropIndex operations. explain analysis supports queryPlanner, executionStats, allPlansExecution modes, analyzing query performance through...

Article 50

MongoDB Aggregation: $match, $group, $project, $sort Pipe...

MongoDB aggregation framework processes documents through multi-stage pipelines, implementing complex operations similar to SQL GROUP BY, JOIN, SUM, AVG. Common stages include $match, $group, $proj...

Article 51

MongoDB Pagination: skip() + limit() + sort() & Performance

MongoDB implements pagination through combination of skip(), limit() and sort() methods. Performance optimization suggestions include avoiding large skip values and using range queries as alternati...

Article 52

MongoDB Data Insert, Batch Write & Logical Queries AND OR...

MongoDB data operations include single insertOne() and batch insertMany(). Query operators include $eq, $ne, $gt, $lt, etc. Logical operators include $and, $or, $not.

Article 53

MongoDB vs MySQL: B-Tree vs B+Tree Index Mechanisms

MongoDB uses B-tree indexes where nodes store both data and keys. MySQL uses B+tree indexes with all data concentrated in leaf nodes. B+tree is better for range queries, B-tree is better for random...

Article 54

MongoDB Use Cases & Selection Guide

MongoDB is suitable for website data storage, caching systems, big data analysis, IoT, social media, live streaming platforms and more. Not suitable for scenarios requiring complex transactions and...

Article 55

Spring Boot MongoDB: Template vs Repository with Index Tips

Two ways to connect Spring Boot to MongoDB: MongoTemplate and MongoRepository, with complete Java code examples and common problem troubleshooting.

Article 56

Java MongoDB CRUD: Complete Guide from Setup to Operations

Complete guide to accessing MongoDB with Java, including environment setup, Maven dependencies, connection, CRUD operations, POJO mapping, index management, aggregation queries and transaction hand...

Article 57

MongoDB Slow Query Analysis & Index Tuning

MongoDB slow query analysis through built-in Profiler, set db.setProfilingLevel(1, m) to record slow queries. EXPLAIN analysis helps identify performance bottlenecks and optimize queries.

Article 58

MongoDB Storage Engines: WiredTiger vs InMemory Comparison

Comparison of MongoDB's two main storage engines WiredTiger and InMemory, including configuration methods and verification steps. WiredTiger recommended for production environments.

Article 59

MongoDB Replica Set Containerization: Keyfile + Auth Quic...

MongoDB 7 replica set containerization best practices: generate keyfile, explicitly enable --auth, use one-time container for rs.initiate and admin user creation.

Article 60

MongoDB Replica Set Deployment: Single Machine Three Inst...

MongoDB replica set single machine three instance deployment guide including configuration, initialization, adding/removing nodes, elections, read-write separation and rollback operations.

Article 61

MongoDB Data Modeling: Embedded vs Reference Selection Guide

MongoDB data modeling choice between embedded and reference, following three principles: embed for 1:few, use reference for unbounded growth, use $lookup+index for cross-collection association. Wir...

Article 62

MongoDB Replica Set: oplog, Heartbeat & Elections Explained

MongoDB replica set concepts: oplog location and idempotency, heartbeat frequency and election timeout, member/voting limits (50/7). Note that master-slave replication was removed since 4.0.

Article 63

MongoDB Production Security Hardening: Auth, RBAC & TLS

MongoDB production environment security hardening guide including authentication, RBAC minimum privileges, internal network bindIp/firewall ACL, TLS/SSL encryption.

Article 64

MongoDB Sharding: Shard, Config Server, Mongos Complete G...

MongoDB sharded cluster detailed explanation: sharding consists of Shard, Config Server, Mongos. Shard key selection includes range sharding, hashed sharding, zone sharding. Includes minimal runnab...

Article 65

MongoDB Auth & Permissions: Single Instance to Sharded Cl...

MongoDB authentication and permission configuration from single instance to sharded cluster. Implementation order: create admin/root first → enable authorization → assign permissions by database.

Article 66

MongoDB Sharded Cluster Deployment: Complete Guide with S...

Step-by-step MongoDB sharded cluster setup (configsvr×3 + two shard replica sets×3 nodes + multiple mongos), including configuration, initialization, adding shards, balancing and rollback.

Article 67

Neo4j Graph Theory: Euler Path & Circuit with Python Netw...

Euler path/circuit determination: undirected graphs check connectivity and odd-degree vertices, directed graphs check weak connectivity and in/out-degree balance. Includes Python NetworkX minimal r...

Article 68

MySQL Transaction Isolation Levels: Read Uncommitted to S...

This article provides an in-depth explanation of MySQL transaction isolation levels: Read Uncommitted, Read Committed, Repeatable Read, and Serializable, analyzing dirty read, non-repeatable read, ...

Article 69

MyBatis Quick Start - POM, Mapper, Core Files, CRUD Opera...

MyBatis quick start tutorial covering MyBatis development steps including POM dependency configuration, Mapper mapping files, SqlMapConfig core configuration file, and CRUD operations. Practical an...

Article 70

MyBatis Plugin Mechanism - PageHelper and Generic Mapper

Detailed introduction to MyBatis pagination plugin PageHelper and Generic Mapper usage, including configuration, code examples, PageInfo class usage, and Generic Mapper CRUD operations. Practical a...

Article 71

MyBatis Quick Start - CRUD Operations and XML Mapping Con...

MyBatis quick start continuation covering CRUD operations, XML mapping configuration, annotation-based development, and datasource/transaction management. This article provides in-depth analysis of...

Article 72

Neo4j Installation and Quick Start | 10 Min Setup + Remot...

Neo4j graph database Docker installation and remote access configuration, 10-minute quick start guide. This article deeply analyzes principles and practical applications.

Article 73

MyBatis SqlSession, Executor, StatementHandler - Source C...

Detailed introduction to MyBatis core architecture design including three-tier architecture, SqlSession, Executor, StatementHandler working principles and source code analysis, and MyBatis initiali...

Article 74

MyBatis Deep Dive - SqlSessionFactory, SqlSession, DAO an...

In-depth explanation of MyBatis core components: SqlSessionFactory and SqlSession working principles, traditional DAO layer implementation, and MyBatis proxy development mode. Practical analysis of...

Article 75

MyBatis Deep Dive - Dynamic SQL, Parameters, Foreach, and...

In-depth explanation of MyBatis dynamic SQL configuration including if conditions, where tags, foreach loops, and sql fragment extraction. This article provides practical analysis of principles and...

Article 76

Neo4j CQL Practice: CREATE/MATCH and Relationship Modeling

Neo4j CQL query language guide: CREATE creates nodes and relationships, MATCH queries graph data, with complete code examples for graph database operations and traversal patterns.

Article 77

MyBatis Mapper Proxy Invoke - Source Code Analysis

Detailed introduction to MyBatis Mapper Proxy dynamic proxy implementation principles, including getMapper source code analysis and MapperMethod execution process. Practical analysis of principles ...

Article 78

MyBatis Deep Dive - One-to-One Mapping, SqlMapConfig and ...

Detailed explanation of one-to-one model mapping in MyBatis, including database table design, Java entity class definitions, Mapper interface and XML configuration, and resultMap advanced mapping u...

Article 79

MyBatis Deep Dive - One-to-Many Model with Collection Tags

Detailed explanation of one-to-many model mapping in MyBatis, including database table design, collection tag usage, Java entity class definitions, and implementation and testing of one-to-many que...

Article 80

Neo4j CQL Practice: WHERE, DELETE/DETACH, SET, Sorting an...

Neo4j CQL advanced queries: WHERE clause filtering, DELETE removal, SET updates, ORDER BY sorting and pagination. This article deeply analyzes principles and practical applications.

Article 81

MyBatis Deep Dive - Many-to-Many Model with Collection Tags

Detailed explanation of many-to-many model mapping in MyBatis, including intermediate table design, user-role relationship implementation, collection tag usage, and complete code examples for many-...

Article 82

MyBatis Annotation Development - Basic Introduction and O...

Detailed introduction to MyBatis annotation development approach, including usage of common annotations (@Select, @Insert, @Update, @Delete, @Results, etc.) and implementing one-to-one model mappin...

Article 83

Neo4j CQL Quick Reference: String/Aggregate/Relationship ...

Neo4j CQL functions quick reference: string functions, aggregate functions, relationship functions and shortest path queries. This article deeply analyzes principles and practical applications.

Article 84

MyBatis Annotation Development - One-to-Many and Many-to-...

Detailed introduction to one-to-many and many-to-many mapping in MyBatis annotation development, including @Many annotation usage, user-order and user-role relationship implementation, and analysis...

Article 85

Neo4j Transaction, Index and Constraint Practice: Syntax,...

Neo4j transaction handling, index creation, constraint settings and concurrency issue troubleshooting. This article deeply analyzes principles and practical applications.

Article 86

Neo4j Backup/Recovery + Warm-up and Execution Plan Practice

Neo4j database backup and recovery, data warm-up and execution plan analysis. This article deeply analyzes principles and practical applications.

Article 87

Neo4j Access Modes: Embedded vs Server with Java Examples

Neo4j embedded database vs server mode comparison, Java API access examples. This article deeply analyzes principles and practical applications.

Article 88

Neo4j + Spring Boot Practice: Integration from Driver to ...

Complete guide to integrating Spring Boot with Neo4j: Java Driver, Neo4jTemplate, Repository pattern with practical examples for graph database CRUD operations and relationship queries.

Article 89

MyBatis Design Patterns - Builder Pattern, Factory Patter...

Detailed introduction to design patterns used in MyBatis source code including builder pattern, factory method pattern, singleton pattern, proxy pattern, composite pattern, and their manifestation ...

Article 90

MyBatis Design Patterns - Proxy Pattern and Source Code A...

Detailed introduction to proxy design pattern concepts, classifications, and their manifestation in MyBatis, including static and dynamic proxy code implementation and MapperProxy source code analy...

Article 91

FastDFS: From Standalone to Distributed File Storage

FastDFS distributed file system architecture, evolution from standalone to distributed. This article analyzes principles and practices to help readers master key technical points and practical skills.

Article 92

Handwritten ORM Framework 1 - JDBC Problems and Solutions

First article in the handwritten ORM framework series, introducing problems and disadvantages of traditional JDBC development and ORM framework design ideas and solutions. Practical analysis of pri...

Article 93

Handwritten ORM Framework 2: Resources, MappedStatement, ...

This article teaches you to handwrite an ORM framework, detailing the implementation of core components like Resources, MappedStatement, XMLBuilder, including configuration file parsing and mapping...

Article 94

FastDFS 6.15.0+Nginx Dynamic Module: Source Compile to Ac...

Complete guide for FastDFS 6.15.0 source compilation and Nginx fastdfs-nginx-module configuration. This article analyzes principles and practices to help readers master key technical points.

Article 95

Handwritten ORM Framework 3: SqlSession, Executor Working...

In-depth analysis of SqlSession and Executor working principles in handwritten ORM framework, detailing implementation mechanisms of SqlSessionFactoryBuilder, DefaultSqlSession, SimpleExecutor.

Article 96

Handwritten ORM Framework 4: Framework Optimization and D...

Optimize handwritten ORM framework, focusing on getMapper method implementation in DefaultSqlSession, using JDK dynamic proxy to create Mapper interface proxy objects. Practical analysis of princip...

Article 97

FastDFS Architecture: Storage/Tracker/Group Design

FastDFS core architecture deep dive: Tracker Server, Storage Server, Group mechanism. This article analyzes principles and practices to help readers master key technical points.

Article 98

Spring Overview: History and Core Concepts IoC, AOP

Comprehensive introduction to Spring framework basics, evolution from EJB to Spring, detailed explanation of Spring's core concepts including IoC and AOP with practical implementation analysis.

Article 99

Implementing Simple IoC-01: Servlet Introduction and Basi...

Step-by-step guide to implementing a simple Spring IoC container, Part 1 covering Servlet basics, characteristics, working principles, and writing your first Servlet program.

Article 100

Implementing Simple IoC-02: Implementing Business Without...

Manually implement business logic layering without using Spring, including DAO layer, Service layer, and Controller layer, demonstrating dependency management issues in traditional development.

Article 101

FastDFS Architecture: Lightweight Tracker and Upload Prin...

FastDFS architecture design: lightweight Tracker, peer storage structure, file upload and sync principles. This article analyzes principles and practices to help readers master key technical points.

Article 102

Implementing Simple IoC-03: Manually Implementing an IoC ...

Step-by-step guide to manually implement an IoC container using BeanFactory and XML configuration to manage Bean dependencies and complete core dependency injection implementation.

Article 103

Implementing Simple IoC-04: Manual AOP and Transaction Co...

Manually implement AOP aspect-oriented programming on top of business logic, using JDK dynamic proxies and CGLIB to implement transaction manager for automatic commit and rollback.

Article 104

IoC Basics: Summary of Ways to Start an IoC Container

Detailed introduction to Spring IoC container startup methods including ClassPathXmlApplicationContext, FileSystemXmlApplicationContext in Java environment, and XML and configuration class methods ...

Article 105

IoC Basics: Pure XML Startup and Bean, DI Injection Details

Detailed explanation of Spring IoC configuration in pure XML mode including three ways to create Beans, lifecycle, scope, and XML configuration for constructor injection and setter injection.

Article 106

IoC Basics: XML and Annotation Combined Configuration

Explaining Spring's XML and annotation combined configuration mode, including the correspondence between annotations and XML tags, and usage of dependency injection annotations like @Autowired, @Qu...

Article 107

IoC Basics: Pure Annotation Mode and SpringConfig Configu...

Detailed introduction to Spring pure annotation configuration including usage of @Configuration, @ComponentScan, @Bean, @PropertySource annotations and Web environment configuration.

Article 108

FactoryBean and BeanFactory Details and BeanPostProcessor

In-depth explanation of the differences between FactoryBean and BeanFactory in Spring, lazy loading mechanism of beans, and usage of BeanPostProcessor and BeanFactoryPostProcessor post-processors.

Article 109

IoC Container System: Bean Lifecycle and PostProcessor De...

Detailed explanation of Spring IoC container architecture, complete Bean lifecycle, and execution timing of BeanPostProcessor and BeanFactoryPostProcessor.

Article 110

IoC Container Source Code Analysis: Bean Instantiation an...

In-depth analysis of Spring IoC container initialization flow through breakpoint debugging, detailed explanation of Bean creation timing and AbstractApplicationContext.refresh core logic.

Article 111

Spring In-Depth: IoC Container System BeanFactory Analysi...

In-depth analysis of Spring IoC container system covering BeanFactory process analysis and Bean lazy loading mechanism with practical examples.

Article 112

Spring In-Depth: IoC Container Circular Dependency Protot...

In-depth analysis of Spring IoC container system covering circular dependency, prototype beans, prototype scope, and lazy ObjectFactory with solutions.

Article 113

Spring In-Depth: AOP Aspect Enhancement Core Concepts Pro...

In-depth introduction to Spring AOP aspect enhancement covering core concepts, related terminology, and proxy configuration with practical examples.

Article 114

Spring In-Depth: AOP Aspect Enhancement Core Concepts Adv...

In-depth introduction to Spring AOP aspect enhancement covering core concepts, advice types, XML+annotation approaches with code examples for comprehensive understanding.

Article 115

Spring In-Depth: Declarative Transaction Support Transact...

In-depth introduction to Spring declarative transaction support covering transaction control, concepts, four characteristics, and isolation levels with practical examples.

Article 116

Spring In-Depth: Declarative Transaction Support Transact...

In-depth guide to Spring declarative transaction support covering transaction configuration with XML mode and XML+annotation mode with practical examples.

Article 117

Spring In-Depth: Nginx Introduction History Scenarios Qui...

In-depth introduction to Nginx covering its origins, development history, common scenarios, and quick configuration guide with practical examples.

Article 118

Spring In-Depth: Nginx Basic Config Events HTTP Reverse P...

In-depth guide to Nginx configuration covering nginx.conf structure, Events block, HTTP block, reverse proxy, and load balancing with practical examples.

Article 119

Spring In-Depth: Nginx Process Mechanism Master Worker Co...

In-depth analysis of Nginx underlying process mechanism covering Master Worker mechanism principles and commonly used commands with practical examples.

Article 120

Spring In-Depth: Tomcat Core Architecture Coyote IO Model...

In-depth analysis of Tomcat core architecture and processing flow covering Coyote IO model and protocol with comprehensive explanations.

Article 121

Tomcat Core Architecture Catalina Container Startup Flow ...

In-depth analysis of Tomcat core architecture covering Catalina container full analysis, startup flow, and threading mechanism with comprehensive explanations.

Article 122

Tomcat Core Architecture Configuration Server Service Exe...

In-depth analysis of Tomcat core architecture covering detailed configuration of main tags including Server, Service, Executor, Engine with practical examples.

Article 123

Handwritten Tomcat Implementation Part 1 MiniCat Bootstrap

Step-by-step guide to implementing a Mini Tomcat called MiniCat covering Bootstrap, Socket server, Request/Response handling with practical code examples.

Article 124

Handwritten Tomcat Implementation Part 2 HttpServlet Requ...

Step-by-step guide to implementing MiniCat part 2 covering HttpServlet, Request, RequestProcessor components with detailed implementation code.

Article 125

Handwritten Tomcat Implementation Part 3 StaticResourceUt...

Step-by-step guide to implementing MiniCat part 3 covering startup testing, StaticResourceUtil, and Servlet implementation with complete code examples.

Article 126

Tomcat Class Loading Mechanism Parent Delegation Lifecycl...

In-depth analysis of Tomcat class loading mechanism covering parent delegation model, lifecycle, and plugin architecture with detailed explanations.

Article 127

Tomcat SSL Working Principle Performance Optimization JVM

In-depth guide to Tomcat covering SSL working principle, performance optimization, parameter configuration, and JVM optimization with practical examples.

Article 128

Tomcat Performance Optimization JVM Memory Model GC

In-depth guide to Tomcat performance optimization covering JVM memory model, garbage collection GC, and Tomcat configuration optimization with practical examples.

Article 129

Distributed Services Basic Concepts Clusters Communicatio...

In-depth guide to distributed services covering basic concepts, cluster comparison, common patterns, communication methods, and detailed explanation of three states.

Article 130

Distributed Services Consistency Strong Weak Monotonic Ev...

In-depth analysis of distributed services covering distributed consistency including strong consistency, weak consistency, monotonic read consistency, and eventual consistency models.

Article 131

Distributed Services ACID: Three-Phase Commit 3PC vs 2PC

This article provides an in-depth analysis of the Three-Phase Commit protocol (3PC) and its differences from Two-Phase Commit (2PC) in distributed transaction processing.

Article 132

Distributed Services ACID: Two-Phase Commit 2PC Protocol

This article provides an in-depth analysis of the Two-Phase Commit protocol (2PC) for distributed transactions, covering ACID properties and practical implementation.

Article 133

Distributed Services: Paxos Algorithm Optimization and Li...

This article provides an in-depth analysis of the Paxos distributed consensus algorithm, covering algorithm optimization and how to guarantee liveness properties.

Article 134

Distributed Services: CAP Theorem AP vs CP Trade-offs

This article provides an in-depth analysis of the CAP theorem in distributed systems, explaining Consistency, Availability, and Partition Tolerance trade-offs.

Article 135

Distributed Services: Paxos Algorithm - The Gold Standard

This article provides an in-depth analysis of the Paxos distributed consensus algorithm, explaining Proposal and Acceptor roles with detailed derivation process.

Article 136

Distributed Services: RPC and RMI Java Implementation

This article provides an in-depth analysis of RPC and RMI network communication in distributed systems, with practical Java code implementations.

Article 137

Distributed Services: BIO NIO AIO with Code Examples

This article provides a detailed analysis of BIO, NIO, and AIO network I/O models in distributed systems, with practical Java code examples.

Article 138

Distributed Services: Heartbeat Detection and High Availa...

This article provides an in-depth analysis of heartbeat detection mechanisms and high availability design principles in distributed systems.

Article 139

Distributed Services: Raft Consensus Algorithm Illustrated

This article provides a comprehensive explanation of the Raft distributed consensus algorithm, covering leader election, log replication, and safety mechanisms.

Article 140

Distributed Services: Network Communication RPC and RMI

This article provides an in-depth analysis of RPC and RMI communication technologies in distributed systems, covering principles, architecture, and implementations.

Article 141

Distributed Services: Custom RPC Implementation with Netty

This article provides a detailed guide to implementing a custom RPC framework using Netty, with complete code examples for provider and consumer.

Article 142

RPC Dubbo: A Comprehensive Introduction and Getting Started

This article provides a comprehensive introduction to Apache Dubbo RPC framework, covering core features, service governance, and getting started guide.

Article 143

Distributed Services: Netty Server and Client Implementation

This article provides a practical guide to implementing Netty-based server and client applications with detailed Java code examples.

Article 144

Distributed Services: Netty EventLoop Deep Dive

This article provides an in-depth analysis of Netty's EventLoop mechanism, thread model, and core components for building high-performance network applications.

Article 145

RPC Architecture Evolution: Monolith to Microservices

This article provides an in-depth analysis of software architecture evolution from monolithic to distributed to microservices architectures, covering RPC fundamentals.

Article 146

RPC Dubbo Admin: Installation and Source Code Compilation

This article provides a comprehensive guide to Dubbo Admin visual management platform, covering installation methods, source code compilation, and Docker deployment.

Article 147

RPC Dubbo: Consumer Module and Main Program

This article provides a detailed guide to the Dubbo consumer module, covering configuration to proxy generation, with practical code examples.

Article 148

RPC Dubbo: Producer Module Deep Dive

This article provides a detailed explanation of the Dubbo producer module, covering key components, startup flow, and production environment best practices.

Article 149

RPC Dubbo: Java SPI Mechanism from JDK to Dubbo

This article provides an in-depth analysis of Java SPI mechanism, explaining the evolution from JDK SPI to Dubbo's plugin-based extension system.

Article 150

RPC Dubbo: Parent Project Configuration Guide

This article provides a guide to setting up Dubbo parent project configuration with detailed POM and code examples for multi-module Maven projects.

Article 151

RPC Dubbo: Adaptive and Filter Interceptor Mechanism

This article provides a comprehensive analysis of Dubbo's Adaptive and Filter interceptor mechanisms for dynamic extension and service chain enhancement.

Article 152

RPC Dubbo: Load Balancing Complete Analysis

Comprehensive analysis of Dubbo load balancing strategies, configuration methods, and custom implementation guide covering Random, RoundRobin, LeastActive, and ConsistentHash algorithms.

Article 153

RPC Dubbo: Dynamic Service Degradation and Fault Tolerance

This article provides an in-depth analysis of Dubbo dynamic service degradation, from avalanche prevention to second-level configuration center activation.

Article 154

RPC Dubbo: Load Balancing and Async Implementation

This article provides a comprehensive analysis of Dubbo load balancing strategies and asynchronous call implementation with practical examples.

Article 155

RPC Dubbo: Dynamic Routing Architecture Deep Dive

This article provides an in-depth analysis of Dubbo's dynamic routing architecture, from rule design to production system integration.

Article 156

MySQL Evolution: From Standalone to Cloud Database

MySQL development history, main branches, architecture evolution (standalone -> master-slave -> sharding -> cloud database). This article provides in-depth analysis of principles and practical appl...

Article 157

MySQL Internal Architecture: Service Layer and Storage En...

MySQL four-layer architecture: network connection layer, service layer, storage engine layer, system file layer. This article provides in-depth analysis of principles and practical applications.

Article 158

MySQL Connection, Thread, Query Cache and Optimizer Deep ...

MySQL connection mechanism, half-duplex communication, query cache, query optimizer explained. This article provides in-depth analysis of principles and practical applications.

Article 159

MySQL Storage Engines: InnoDB vs MyISAM Deep Comparison

MySQL storage engine comparison: InnoDB, MyISAM, Memory, Archive - transactions, locking mechanisms, index structures. This article provides in-depth analysis of principles and practical applications.

Article 160

MySQL InnoDB Storage Structure: Buffer Pool and Log Mecha...

InnoDB memory structure: Buffer Pool, Change Buffer, Adaptive Hash Index, Log Buffer - this article provides an in-depth analysis of principles and practical applications.

Article 161

MySQL InnoDB Disk Structure: Tablespace, Log System, Data...

InnoDB disk structure: system tablespace, file-per-table tablespace, general tablespace, temporary tablespace, Doublewrite Buffer, Redo Log, Undo Log - complete storage architecture guide.

Article 162

MySQL Architecture to Threads: Storage Engine and Thread ...

MySQL 5.7/8.0 storage engine optimization, InnoDB thread model: IO Thread, Purge Thread, Page Cleaner Thread, Master Thread

Article 163

MySQL InnoDB Storage Structure: Tablespace, Segment, Exte...

InnoDB storage structure: Tablespace, Segment, Extent, Page, Row. Row formats: REDUNDANT, COMPACT, DYNAMIC, COMPRESSED

Article 164

MySQL Undo/Redo Log: Transaction Rollback and Persistence

Undo Log for rollback, Redo Log for redo, transaction atomicity, durability, MVCC. This article provides in-depth analysis of principles and practical applications.

Article 165

MySQL Binlog: Recording Modes, Replication, Data Recovery

Binlog three recording modes: STATEMENT, ROW, MIXED, file format, write mechanism, master-slave replication. This article provides in-depth analysis of principles and practical applications.

Article 166

MySQL Index Types: BTree, Hash, FULLTEXT, RTree Explained

Index types: BTree, Hash, FULLTEXT, RTree, regular index, unique index, primary key index, composite index, clustered index. This article provides in-depth analysis of principles and practical appl...

Article 167

MySQL Index Principles: B+Tree, Hash, Binary Search

Index principles: B+Tree, Hash index, binary search, InnoDB adaptive hash index. This article provides in-depth analysis of principles and practical applications.

Article 168

MySQL Clustered vs Secondary Index: Structure and Perform...

Clustered index (secondary index, primary key index), secondary index, table lookup query, covering index. This article provides in-depth analysis of principles and practical applications.

Article 169

MySQL EXPLAIN: Index Analysis and Query Optimization

EXPLAIN command: select_type, type, possible_keys, key, rows, key_len, Extra. This article provides in-depth analysis of principles and practical applications.

Article 170

MySQL Index Optimization: Table Lookup, Covering Index, L...

Table lookup queries, covering index, leftmost prefix principle, LIKE queries, NULL value handling. This article provides in-depth analysis of principles and practical applications.

Article 171

MySQL Index and Sorting: Filesort and Index Sort

filesort sorting, index sorting, two-pass sorting, single-pass sorting, clustered index and secondary index sorting. This article provides in-depth analysis of principles and practical applications.

Article 172

MySQL Slow Query Analysis and Optimization Guide

Slow query log, mysqldumpslow, EXPLAIN analysis, common optimization solutions. This article provides in-depth analysis of principles and practical applications.

Article 173

MySQL Transaction and Lock Mechanism: ACID Properties

ACID properties: atomicity, consistency, isolation, durability, WAL mechanism. This article provides in-depth analysis of principles and practical applications.

Article 174

MySQL Transaction Control: Lost Update, Locking and MVCC

Concurrent transaction problems: lost update, dirty read, non-repeatable read, phantom read, lock mechanism: shared lock, exclusive lock, MVCC. This article provides in-depth analysis of principles...

Article 175

MySQL Read-Write Separation: Principles and Implementation

Read-write separation principles, implementation methods, master-slave lag solutions, database middleware. This article analyzes principles and practical applications to help readers master key tec...

Article 176

MySQL MHA Master-Slave Failover: High Availability Solution

MHA high availability solution: Manager, Node, fault handling, failover. This article analyzes principles and practical applications to help readers master key technical details.

Article 177

MySQL Database Sharding: Vertical vs Horizontal Partitioning

Database sharding explained: vertical partitioning, horizontal partitioning, vertical sharding, vertical table splitting, horizontal table splitting. This article analyzes principles and practical ...

Article 178

FastDFS Cluster Practice: 3-Node Tracker/Storage + Nginx

Deploy tracker, storage, and Nginx on three hosts with round-robin upload. Key points: Nginx+mod_fastdfs routing and monitoring verification. Output: reusable cluster config checklist + version mat...

Article 179

FastDFS High Concurrency Optimization: max_connections, T...

Optimization for high concurrency/massive small files with single disk or RAID: upgrade to v5.04+, configure threads based on CPU cores, reduce directory levels, adjust sync parameters based on lat...

Article 180

Java Integration with FastDFS: Client and Maven/Spring Boot

Two ways for Java applications to integrate with FastDFS: official source compilation (happyfish100/fastdfs-client-java 1.37-SNAPSHOT) and Maven dependency (cn.bestwu / com.github.tobato).

Article 181

OSS Practice Guide: Bucket/External Links/Hotlink Protection

Enterprises and individuals migrating images/audio/video/static resources to Aliyun OSS need stable operations and cost control. Configure precisely by region and permissions, combine hotlink prote...

Article 182

OSS Access Control: ACL/RAM/Bucket Policy and Troubleshoo...

For multi-team and cross-account collaboration, OSS needs public access, least privilege, and auditability. Use RAM Policy for identity, Bucket Policy for source and resource constraints, and ACL o...

Article 183

Cache Practice: Local vs Distributed (Guava/Redis 7.2)

High concurrency read-heavy business, database can't handle it, need to improve throughput and stability. Local cache for ultimate read performance, distributed cache for sharing and scaling, multi...

Article 184

Guava Cache: Deletion Strategy, Expiration and Common Pit...

Guava Cache uses 'lazy cleanup + LRU+FIFO' strategy. Passive deletion and active deletion need to be used together. Deep dive into expireAfterAccess, expireAfterWrite and cleanUp.

Article 185

Guava Cache: From ConcurrentHashMap to LocalCache Structure

Deep dive into LocalCache, Guava Cache's core implementation class, covering segmented lock design, five queue mechanism, eviction strategy and lazy cleanup principles.

Article 186

Guava Cache: concurrencyLevel and refreshAfterWrite in Pr...

Deep dive into concurrencyLevel, refreshAfterWrite and LoadingCache dynamic loading behavior, with horizontal comparison with custom LinkedHashMap LRU implementation.

Article 187

Guava Cache Troubleshooting: OOM, Expiration, Hit Rate Is...

Using Guava Cache for local caching in Java projects, troubleshooting and fixing production issues like OOM, abnormal hit rate, thread blocking and performance regression.

Article 188

Guava Cache Source Analysis: LocalCache, Segment, Loading...

Guava Cache is widely used in production, but many lack source-level understanding of LocalCache/Segment/LoadingCache behavior. Guava achieves thread-safe local cache through LocalCache+Segment str...

Article 189

EVCache Introduction: Netflix-level Architecture and Mult...

Want to learn Netflix's EVCache system for self-development, but only know it's 'Memcached-based distributed cache'. Break down EVCache/Rend/Memcached/Mnemonic four layers to understand cache layer...

Article 190

EVCache Client Integration: Memcached Setup and Configura...

Java applications wanting to experience Netflix EVCache locally or in small teams, but server not open source, can only self-build based on Memcached. Compile Memcached 1.6.39 from source, start ac...

Article 191

EVCache Internal Principles: Memcached Architecture, Slab...

Using EVCache in large-scale distributed cache needs understanding of underlying Memcached memory management and eviction behavior. EVCache essentially relies on Memcached + Slab Allocation + Lazy ...

Article 192

Distributed Communication: SOA/Dubbo, OpenFeign, Retry vs MQ

After distributed service splitting, inter-service communication evolved from synchronous calls to async decoupling, with retry, idempotency, and reliability patterns for message-driven architectures.

Article 193

Spymemcached Deep Dive: Thread Model, Sharding, Serializa...

Java service integrating with Memcached needs to understand Spymemcached's thread model, sharding routing and serialization details. Spymemcached implements async IO via NIO+callback, uses ketama c...

Article 194

Build MQ Prototype with BlockingQueue: Producer-Consumer Gap

Implement a minimal runnable message model with queue buffering and async decoupling using Java concurrency. BlockingQueue can explain MQ core interactions, but lacks persistence, ACK, retry, clust...

Article 195

MQ Selection: RabbitMQ vs RocketMQ vs Kafka

Coexisting with traditional IBM MQ, need open source, operatable, scalable, consistency/reliability. RabbitMQ suits 'reliability-first business decoupling', RocketMQ suits 'transaction/order/delay ...

Article 196

MQ Application: Cache Warm-up, Rate Limiting, Redis Lua, ...

E-commerce seckill/ticket-grabbing scenarios with instantaneous traffic peaks, high read/write concurrency. Use pre-static + rate limiting queuing; write path uses Redis Lua atomic pre-deduction + ...

Article 197

RabbitMQ JMS Mode: Queue/Topic, 6 Message Types, Object M...

Java systems doing async decoupling and event-driven need unified understanding of JMS message model, object model and message types. JMS is a standard API (like JDBC), key is Queue/Topic semantics...

Article 198

JMS Queue/Topic Cluster: Avoiding Duplicate Consumption

JMS Topic broadcasts in application cluster, causing same business to be repeatedly consumed by multiple nodes. Use ActiveMQ Virtual Topic (or JMS 2.0 Shared Subscription) to implement inter-group ...

Article 199

RabbitMQ Message Persistence and Queue Index: .idx/.rdq, ...

Deep dive into RabbitMQ message persistence mechanism: queue index (.idx) + msg_store (.rdq) + ETS mapping + garbage collection/merge strategy, including four queue states alpha/beta/gamma/delta de...