Programmer XiaoFu
Author

Programmer XiaoFu

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

108
Articles
0
Likes
140
Views
0
Comments
Recent Articles

Latest from Programmer XiaoFu

100 recent articles max
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.

RedisSliding WindowSpring AOP
0 likes · 25 min read
Five Practical API Call Rate Monitoring Solutions: Full Comparison of Performance, Cost, and Complexity
Programmer XiaoFu
Programmer XiaoFu
Apr 22, 2025 · Backend Development

Common Java OOM Types and How to Answer Interview Questions

The article lists the most frequent Java OutOfMemoryError variants, explains their root causes and typical scenarios, provides concrete code examples that trigger each error, and offers practical troubleshooting steps and JVM tuning recommendations for interview preparation.

HeapJVMJava
0 likes · 8 min read
Common Java OOM Types and How to Answer Interview Questions
Programmer XiaoFu
Programmer XiaoFu
Apr 15, 2025 · Backend Development

Sync vs Async: Achieving 10× Throughput in SpringBoot APIs

The article explains how SpringBoot’s asynchronous request handling—using Callable, WebAsyncTask, and DeferredResult with a custom thread pool—can boost API throughput up to ten times compared to synchronous processing, while detailing the internal flow, configuration steps, and scenarios where async is beneficial.

AsyncSpringBootThreadPool
0 likes · 9 min read
Sync vs Async: Achieving 10× Throughput in SpringBoot APIs
Programmer XiaoFu
Programmer XiaoFu
Apr 1, 2025 · Fundamentals

How a 100k‑Bonus Colleague Writes Elegantly Clean Code

The article explains why clean, well‑structured code matters for team productivity, covering naming, class design, function design, SOLID principles, testing practices such as TDD and the FIRST rule, and shows how tools like SonarLint can help maintain code quality.

SOLIDTDDTesting
0 likes · 17 min read
How a 100k‑Bonus Colleague Writes Elegantly Clean Code
Programmer XiaoFu
Programmer XiaoFu
Mar 5, 2025 · Databases

From 12 s to 200 ms: 6 MySQL Deep‑Pagination Tricks for 20 M Orders

When a MySQL order table with 20 million rows is paginated using a large OFFSET, query latency can explode from seconds to minutes, but applying six concrete techniques—cursor pagination, deferred join, covering index, table partitioning, precomputed pages, and Elasticsearch integration—can shrink response time to a few hundred milliseconds.

Covering IndexCursor PaginationElasticsearch
0 likes · 9 min read
From 12 s to 200 ms: 6 MySQL Deep‑Pagination Tricks for 20 M Orders
Programmer XiaoFu
Programmer XiaoFu
Feb 12, 2025 · Industry Insights

DeepSeek’s Hype Triggers Programmer Layoffs

The rapid rise of DeepSeek’s code‑generation AI has led to significant layoffs among programmers, prompting a shift in career strategy toward embracing AI tools, focusing on non‑automatable skills, and continuous learning to stay relevant in the evolving software industry.

AI automationDeepSeekcareer advice
0 likes · 4 min read
DeepSeek’s Hype Triggers Programmer Layoffs