java1234
Author

java1234

Former senior programmer at a Fortune Global 500 company, dedicated to sharing Java expertise. Visit Feng's site: Java Knowledge Sharing, www.java1234.com

106
Articles
0
Likes
347
Views
0
Comments
Recent Articles

Latest from java1234

100 recent articles max
java1234
java1234
Feb 24, 2026 · Backend Development

Why Most Backend Architecture Patterns Are Over‑Engineered

A code‑review anecdote shows that developers often apply heavyweight patterns like Abstract Factory, Event Sourcing, CQRS, and DDD to simple payment processing, leading to unnecessary complexity; the article explains why this happens, which patterns truly belong in micro‑service backends, and offers practical, lightweight alternatives together with concrete code examples and review guidelines.

ArchitectureMicroservicesbackend
0 likes · 13 min read
Why Most Backend Architecture Patterns Are Over‑Engineered
java1234
java1234
Feb 24, 2026 · Backend Development

How to Handle Transactions in RabbitMQ with Java

This article explains RabbitMQ's transaction mechanism, walks through the four-step process of opening, executing, committing, or rolling back a transaction, provides a complete Java example with Maven setup, and discusses performance impacts and when to prefer acknowledgments over transactions.

AcknowledgmentJavamessaging
0 likes · 6 min read
How to Handle Transactions in RabbitMQ with Java
java1234
java1234
Feb 18, 2026 · Fundamentals

A Complete Illustrated Guide to Java Generics: Benefits, Usage, and Common Pitfalls

This article explains why raw collections are unsafe, how Java generics enforce compile‑time type safety, reduce casting, improve code readability, and boost performance, and it walks through generic interfaces, collections, custom generic classes, inheritance rules, diamond syntax, and common restrictions with concrete code examples and diagrams.

CollectionsJavacompile-time checking
0 likes · 10 min read
A Complete Illustrated Guide to Java Generics: Benefits, Usage, and Common Pitfalls
java1234
java1234
Feb 10, 2026 · Fundamentals

Understanding Java Reflection: Core Concepts, Use Cases, and Trade‑offs

This article explains Java's reflection mechanism, covering its main uses such as dynamic class loading, handling unknown types, accessing private members, and framework development, then walks through basic steps, a complete code example, and discusses its advantages and drawbacks.

Dynamic LoadingJavaReflection
0 likes · 6 min read
Understanding Java Reflection: Core Concepts, Use Cases, and Trade‑offs
java1234
java1234
Feb 7, 2026 · Backend Development

Why Service Layer Should Not Return a Result Object in Java

The article explains why returning a generic Result wrapper from a Java service layer breaks responsibility separation, harms reusability, complicates exception handling and testing, and obscures transaction boundaries, advocating for returning pure domain objects instead.

Design principlesDomain-Driven DesignException Handling
0 likes · 13 min read
Why Service Layer Should Not Return a Result Object in Java
java1234
java1234
Feb 5, 2026 · Backend Development

Convert DOCX to PDF in Spring Boot with docx4j: A Lightweight Open‑Source Solution

This article walks through building a pure‑Java DOCX‑to‑PDF converter in Spring Boot using docx4j, compares it with alternatives, shows Maven dependencies, provides a utility class and controller example, and explains how to resolve Chinese font garbling on both Windows and Linux.

JavaPDF conversionSpring Boot
0 likes · 11 min read
Convert DOCX to PDF in Spring Boot with docx4j: A Lightweight Open‑Source Solution
java1234
java1234
Feb 3, 2026 · Backend Development

Boost API Latency 10× with Spring Boot 3 and a Local Cache Pyramid

The article demonstrates how to achieve a ten‑fold reduction in API response time by building a three‑level cache pyramid (Caffeine L1, Redis L2, DB L3) in Spring Boot 3, covering dependencies, configuration, core template code, warm‑up, monitoring, load‑test results and common high‑concurrency pitfalls.

CacheCaffeineJava
0 likes · 8 min read
Boost API Latency 10× with Spring Boot 3 and a Local Cache Pyramid