Tag: Backend

50 articles

Hive Slowly Changing Dimension Type 2: Order History State Management

Offline data warehouse needs to save order history state at low cost while supporting daily rollback and change analysis.

LLM Application Engineering: Key Practices from Demo to Production

Core experience moving LLM applications from prototype to production: context management, error handling, cost control, observability. No basics, just real pitfalls.

Deploying Spring Boot on K8s: 5 Pitfalls I Encountered

Documenting real issues encountered when migrating Spring Boot microservices to Kubernetes: health checks, ConfigMap hot-reload, JVM memory, graceful shutdown...

Spring Cloud Gateway Rate Limiting and Circuit Breaker Practice

Recording the complete process of configuring Spring Cloud Gateway rate limiting (Redis token bucket) and circuit breaker (Resilience4j) in production, including pitfalls...

Java-201 RabbitMQ Message Persistence and Queue Index Details

Deep dive into RabbitMQ message persistence mechanism: queue index (.idx) + msg_store (.

Distributed Services: Consistency Models, Strong/Weak/Monotonic/Eventual Consistency

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

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.

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.

Distributed Services: Paxos Algorithm Optimization and Liveness

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

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.

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.

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.

Distributed Services: Heartbeat Detection and High Availability

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

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.

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.

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.

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.

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.

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.

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.

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.

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.

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.

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.

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.

RPC Dubbo: Load Balancing Complete Analysis

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

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.

Distributed Services: Basic Concepts, Clusters, Communication and Three States

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

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.

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.

Tomcat Class Loading Mechanism: Parent Delegation, Lifecycle and Plugin Architecture

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

Handwritten Tomcat Implementation Part 3: StaticResourceUtil, Servlet and Startup Testing

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

Handwritten Tomcat Implementation Part 2: HttpServlet, Request and RequestProcessor

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

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.

Tomcat Core Architecture Configuration: Server, Service, Executor and Engine

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

Tomcat Core Architecture: Catalina Container, Startup Flow and Threading Mechanism

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

Spring In-Depth: Tomcat Core Architecture, Coyote IO Model and Protocol

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

Spring In-Depth: Nginx Process Mechanism, Master-Worker Coordination and Common Commands

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

Spring In-Depth: Nginx Basic Config, Events/HTTP, Reverse Proxy and Load Balancing

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

Spring In-Depth: Nginx Introduction, History, Scenarios and Quick Start

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

Spring In-Depth: Declarative Transaction Support, XML and XML+Annotation Modes

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

Spring In-Depth: AOP Aspect Enhancement Core Concepts, Advice Types and XML + Annotation

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

Spring In-Depth: Declarative Transaction Support, Transaction Control and Isolation Levels

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

Spring In-Depth: AOP Aspect Enhancement Core Concepts, Terminology and Proxy Configuration

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

Spring In-Depth: IoC Container Circular Dependency, Prototype Scope and Lazy ObjectFactory

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

Spring In-Depth: IoC Container System BeanFactory Analysis and Lazy-Init

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

IoC Container Source Code Analysis: Bean Instantiation and Initialization Flow

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

IoC Container System: Bean Lifecycle and PostProcessor Details

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

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 BeanFactoryPost...

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 i...