Tag: backend
54 articles
Hive Slowly Changing Dimension Type 2: Order History Stat...
Offline data warehouse needs to save order history state at low cost while supporting daily rollback and change analysis. This article introduces using ODS...
LLM Application Engineering: Key Practices from Demo to P...
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, and log collection.
Spring Cloud Gateway Rate Limiting and Circuit Breaker Pr...
Recording the complete process of configuring Spring Cloud Gateway rate limiting (Redis token bucket) and circuit breaker (Resilience4j) in production, including pitfalls and tuning experience.
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...
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.
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 Li...
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: 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.
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.
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 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.
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, and ConsistentHash algorithms.
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.
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.
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 Communicatio...
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 Lifecycl...
In-depth analysis of Tomcat class loading mechanism covering parent delegation model, lifecycle, and plugin architecture with detailed explanations.
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.
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.
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 Exe...
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 ...
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...
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 Co...
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 P...
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 Qui...
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 Transact...
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 Adv...
In-depth introduction to Spring AOP aspect enhancement covering core concepts, advice types, XML+annotation approaches with code examples for comprehensive understanding.
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.
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.
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.
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.
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.
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.
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.
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.