macrozheng
Author

macrozheng

Dedicated to Java tech sharing and dissecting top open-source projects. Topics include Spring Boot, Spring Cloud, Docker, Kubernetes and more. Author’s GitHub project “mall” has 50K+ stars.

1.3k
Articles
0
Likes
3.2k
Views
0
Comments
Recent Articles

Latest from macrozheng

100 recent articles max
macrozheng
macrozheng
Dec 26, 2025 · Databases

NewSQL vs Middleware Sharding: Which Architecture Really Wins?

This article objectively compares middleware‑based sharding solutions with native NewSQL distributed databases, examining their architectural differences, transaction handling, high‑availability, scaling, SQL support, storage engines, and maturity to help engineers decide which approach best fits their workload.

CAP theoremNewSQLPaxos
0 likes · 20 min read
NewSQL vs Middleware Sharding: Which Architecture Really Wins?
macrozheng
macrozheng
Dec 22, 2025 · Backend Development

Why Your Java ThreadPool Threads Aren’t Releasing and How Shutdown Fixes It

The article investigates a Java application that accumulated nearly a thousand waiting threads without high CPU or memory usage, identifies a custom FixedThreadPool as the cause, explains how thread pools become GC roots, and demonstrates that calling shutdown or shutdownNow properly releases both threads and the pool.

ExecutorServiceGarbageCollectionJVM
0 likes · 13 min read
Why Your Java ThreadPool Threads Aren’t Releasing and How Shutdown Fixes It
macrozheng
macrozheng
Dec 17, 2025 · Backend Development

How to Deploy RustFS with Docker and Integrate It into a SpringBoot Application

This guide walks you through installing the RustFS distributed object storage via Docker, using its visual console, and configuring a SpringBoot project to upload and delete files through the RustFS S3‑compatible API, complete with code snippets and practical screenshots.

AWS S3 CompatibilityObject StorageRustFS
0 likes · 9 min read
How to Deploy RustFS with Docker and Integrate It into a SpringBoot Application
macrozheng
macrozheng
Dec 16, 2025 · Backend Development

Master Spring Task: Build, Schedule, and Optimize Timed Jobs in Spring Boot

This guide explains what Spring Task is, walks through three steps to set up scheduled jobs in Spring Boot, demystifies Cron expressions, showcases common use cases, offers advanced configuration tips, warns about pitfalls, and outlines performance‑tuning and future directions for reliable backend scheduling.

JavaSpring BootSpring Task
0 likes · 9 min read
Master Spring Task: Build, Schedule, and Optimize Timed Jobs in Spring Boot
macrozheng
macrozheng
Dec 8, 2025 · Databases

Why LIMIT Pagination Slows Down on Large Tables and How to Optimize It

This tutorial demonstrates how MySQL LIMIT pagination performs on tables with millions of rows, measures query times for various offsets and batch sizes, and presents practical optimization techniques such as sub‑queries, ID‑range filtering, and column selection to improve speed.

LIMITMySQLOptimization
0 likes · 9 min read
Why LIMIT Pagination Slows Down on Large Tables and How to Optimize It
macrozheng
macrozheng
Dec 5, 2025 · Databases

Why UUID Primary Keys Slow Down MySQL and How to Optimize Them

This article explains how using UUIDs as primary keys in MySQL can degrade index efficiency, insert and query performance, and cause costly index refreshes on updates, then presents practical techniques such as ordered UUIDs, binary storage, hybrid keys, and partitioning to mitigate these issues.

IndexMySQLOptimization
0 likes · 8 min read
Why UUID Primary Keys Slow Down MySQL and How to Optimize Them
macrozheng
macrozheng
Dec 5, 2025 · Backend Development

Mastering @ConfigurationProperties and @PropertySources in Spring Boot

This article provides a comprehensive guide to using Spring Boot's @ConfigurationProperties and @PropertySources annotations, covering their purpose, usage steps, code examples, and the differences between them for effective configuration management in Java backend applications.

Configuration ManagementConfigurationPropertiesJava
0 likes · 11 min read
Mastering @ConfigurationProperties and @PropertySources in Spring Boot