IT Xianyu
Author

IT Xianyu

We share common IT technologies (Java, Web, SQL, etc.) and practical applications of emerging software development techniques. New articles are posted daily. Follow IT Xianyu to stay ahead in tech. The IT Xianyu series is being regularly updated.

166
Articles
0
Likes
1.1k
Views
0
Comments
Recent Articles

Latest from IT Xianyu

100 recent articles max
IT Xianyu
IT Xianyu
Dec 16, 2023 · Backend Development

Understanding CQRS and Event Sourcing with Spring Microservices

This article explains the CQRS pattern, its origins, benefits, and pitfalls, then details how to implement CQRS and event sourcing in Spring‑based microservices using Axon and Kafka, while discussing architectural considerations, scalability, consistency, and tooling.

AxonCQRSKafka
0 likes · 12 min read
Understanding CQRS and Event Sourcing with Spring Microservices
IT Xianyu
IT Xianyu
Dec 12, 2023 · Backend Development

Implementing Dynamic Data Source Switching in Spring Boot Using ThreadLocal and AbstractRoutingDataSource

This article explains how to build a custom dynamic data‑source solution for Spring Boot by leveraging ThreadLocal and AbstractRoutingDataSource, provides complete Java code for context holders, routing datasource, configuration, annotation‑driven switching, and runtime addition of new data sources.

AbstractRoutingDataSourceMyBatis-PlusThreadLocal
0 likes · 15 min read
Implementing Dynamic Data Source Switching in Spring Boot Using ThreadLocal and AbstractRoutingDataSource
IT Xianyu
IT Xianyu
Dec 10, 2023 · Backend Development

Caffeine Cache: Introduction, Core Concepts, and Spring Boot Integration

This article provides a comprehensive overview of the Caffeine local cache library, covering its fundamentals, configuration options, loading strategies, eviction policies, statistics, and detailed steps for integrating Caffeine with Spring Boot using annotations and custom cache managers.

CacheCaffeineJava
0 likes · 17 min read
Caffeine Cache: Introduction, Core Concepts, and Spring Boot Integration
IT Xianyu
IT Xianyu
Apr 27, 2023 · Backend Development

Automatic Unit Conversion in Java Using Reflection and Custom Annotations

This article demonstrates how to automatically convert monetary, percentage, permillage and other numeric fields in Java DTOs by marking target properties with a map or a custom annotation, then applying reflection‑based logic to perform scaling, rounding and unit changes in a reusable utility class.

AnnotationsJavaReflection
0 likes · 10 min read
Automatic Unit Conversion in Java Using Reflection and Custom Annotations
IT Xianyu
IT Xianyu
Apr 24, 2023 · Backend Development

Improving Spring Controller Layer: Unified Response Structure, Validation, and Exception Handling

This article explains how to refactor a Spring MVC Controller by introducing a unified response wrapper, leveraging ResponseBodyAdvice for automatic packaging, applying JSR‑303 validation for @RequestBody, @PathVariable and @RequestParam parameters, creating custom validation annotations, and handling business and system exceptions consistently.

ControllerException HandlingJava
0 likes · 15 min read
Improving Spring Controller Layer: Unified Response Structure, Validation, and Exception Handling
IT Xianyu
IT Xianyu
Apr 19, 2023 · Databases

Robustdb: A Lightweight Read‑Write Splitting Solution for Java Applications

This article introduces Robustdb, a compact open‑source read‑write separation framework built with about ten classes and two thousand lines of code, explains its architecture, routing logic, method‑level transaction handling, dynamic data‑source management, and performance advantages over existing solutions like Atlas.

JavaSpringdatabase routing
0 likes · 15 min read
Robustdb: A Lightweight Read‑Write Splitting Solution for Java Applications
IT Xianyu
IT Xianyu
Apr 6, 2023 · Backend Development

Guide to Installing and Using Nginx Proxy Manager with Docker

This tutorial introduces Nginx Proxy Manager, a visual reverse‑proxy management interface, and provides step‑by‑step instructions for installing it via Docker‑Compose, configuring domains, setting up SSL with Let’s Encrypt, and managing proxy hosts through its web UI.

DockerNginxProxy
0 likes · 6 min read
Guide to Installing and Using Nginx Proxy Manager with Docker
IT Xianyu
IT Xianyu
Apr 3, 2023 · Backend Development

From Postman to IntelliJ IDEA REST Client

This article explains why the built‑in REST Client in IntelliJ IDEA can replace Postman by offering equivalent request features, environment handling, shared scripts, response assertions, and token management, all within a single development environment.

API DebuggingIDEA REST ClientIntelliJ
0 likes · 7 min read
From Postman to IntelliJ IDEA REST Client
IT Xianyu
IT Xianyu
Mar 27, 2023 · Fundamentals

17 Useful Python Tricks for Efficient Coding

This article presents seventeen practical Python techniques—including list manipulation, string handling, dictionary operations, and chaining—that are simple to implement yet widely applicable, helping developers write cleaner, more concise, and more efficient code across various domains.

beginnerscode optimizationdictionary
0 likes · 3 min read
17 Useful Python Tricks for Efficient Coding
IT Xianyu
IT Xianyu
Dec 2, 2022 · Databases

How MySQL InnoDB Implements ACID: Locks, MVCC, and Logging

This article explains how MySQL's InnoDB engine guarantees ACID properties by describing the four components of ACID, the four isolation levels, lock granularity and types, the MVCC mechanism with version chains and read views, and the roles of undo, redo, and bin logs in ensuring atomicity, consistency, isolation, and durability.

ACIDInnoDBLock
0 likes · 14 min read
How MySQL InnoDB Implements ACID: Locks, MVCC, and Logging