Programmer XiaoFu
Author

Programmer XiaoFu

xiaofucode.com – a programmer learning guide driven by the pursuit of profit

104
Articles
0
Likes
73
Views
0
Comments
Recent Articles

Latest from Programmer XiaoFu

100 recent articles max
Programmer XiaoFu
Programmer XiaoFu
Jul 29, 2025 · Backend Development

How to Gracefully Implement Consistent Compensation Across Multiple Systems

The article examines the challenges of achieving distributed consistency when a business operation writes to MySQL and external systems, analyzes failure scenarios, and presents a step‑by‑step solution that splits the large transaction into small, retryable tasks with Spring afterCommit optimization.

BPMJavaMySQL
0 likes · 9 min read
How to Gracefully Implement Consistent Compensation Across Multiple Systems
Programmer XiaoFu
Programmer XiaoFu
Jul 22, 2025 · Backend Development

Mastering Cache Penetration, Avalanche, and Breakdown: Interview-Ready Answers

The article explains the concepts of cache penetration, avalanche, and breakdown, outlines their typical causes such as invalid requests, synchronized expirations, and hotspot spikes, and presents practical mitigation techniques including request validation, caching null values, Bloom filters, staggered expirations, high‑availability Redis setups, mutex locks, and random TTLs.

Bloom FilterCacheHigh Availability
0 likes · 8 min read
Mastering Cache Penetration, Avalanche, and Breakdown: Interview-Ready Answers
Programmer XiaoFu
Programmer XiaoFu
Jul 14, 2025 · Backend Development

Free Your Hands: 6 SpringBoot Techniques for Automatic Common Field Filling

The article analyzes the repetitive maintenance of common fields like createTime and updateUser in SpringBoot CRUD services, presents six production‑tested strategies—including MyBatis‑Plus meta‑object handling, AOP with custom annotations, multi‑data‑source adaptation, distributed ID generation, caching, batch optimization, and audit logging—detailing implementations, pitfalls, and best‑practice recommendations that can cut code by 90% and boost development efficiency.

AOPAutomatic Field FillingMyBatis-Plus
0 likes · 9 min read
Free Your Hands: 6 SpringBoot Techniques for Automatic Common Field Filling
Programmer XiaoFu
Programmer XiaoFu
Jul 1, 2025 · Backend Development

Plug‑and‑Play Spring Boot: Building a Plugin Architecture

This article explains how to implement a plug‑and‑play development model in Spring Boot using Java SPI, custom configuration, and Spring Factories, providing step‑by‑step code examples, a multi‑module microservice case study, and practical guidance for creating extensible, decoupled applications.

Java SPIPlugin ArchitectureSpring Boot
0 likes · 22 min read
Plug‑and‑Play Spring Boot: Building a Plugin Architecture
Programmer XiaoFu
Programmer XiaoFu
Jun 18, 2025 · Big Data

How DataX Boosts Data‑Sync Speed by 200% Across Heterogeneous Sources

This article walks through the challenges of synchronizing 50 million rows between disparate MySQL databases, explains why traditional mysqldump or file‑based methods fail, and then details how the open‑source DataX tool—its 3.0 framework, installation steps, job architecture, and JSON‑based configurations—enables fast full and incremental data transfers with concrete performance metrics.

DataXMySQLbig data integration
0 likes · 14 min read
How DataX Boosts Data‑Sync Speed by 200% Across Heterogeneous Sources
Programmer XiaoFu
Programmer XiaoFu
Jun 10, 2025 · Backend Development

Integrating Tess4j with SpringBoot: Low‑Cost OCR Image Recognition

This tutorial shows how to add OCR capabilities to a SpringBoot application using the Tess4j library, covering dependency setup, Tesseract engine initialization, RESTful endpoint implementation, training data choices, and practical tips for handling resources and deployment.

JavaOCRSpringBoot
0 likes · 7 min read
Integrating Tess4j with SpringBoot: Low‑Cost OCR Image Recognition
Programmer XiaoFu
Programmer XiaoFu
Jun 4, 2025 · Backend Development

Five Practical API Call Rate Monitoring Solutions: Full Comparison of Performance, Cost, and Complexity

This article walks through five concrete implementations for per‑minute API call counting—fixed window, lazy sliding window, Spring AOP, Redis time‑series, and Micrometer + Prometheus—detailing their design, code, trade‑offs, benchmark results, memory usage, and real‑world deployment tips.

Prometheusapi monitoringmicrometer
0 likes · 25 min read
Five Practical API Call Rate Monitoring Solutions: Full Comparison of Performance, Cost, and Complexity