Java Architect Handbook
Author

Java Architect Handbook

Focused on Java interview questions and practical article sharing, covering algorithms, databases, Spring Boot, microservices, high concurrency, JVM, Docker containers, and ELK-related knowledge. Looking forward to progressing together with you.

111
Articles
0
Likes
217
Views
0
Comments
Recent Articles

Latest from Java Architect Handbook

100 recent articles max
Java Architect Handbook
Java Architect Handbook
May 29, 2026 · Interview Experience

CDN Cache vs Redis Cache: Key Differences and Ideal Use Cases (Interview Insight)

The article explains how CDN works as a distributed reverse‑proxy cache, details its DNS‑based load balancing, cache‑hit/miss flow, expiration policies and refresh strategies, compares CDN caching with browser and Nginx caches, outlines scenarios where CDN or Redis is appropriate, and provides typical interview follow‑up questions and practical tips.

CDNCache InvalidationCaching
0 likes · 13 min read
CDN Cache vs Redis Cache: Key Differences and Ideal Use Cases (Interview Insight)
Java Architect Handbook
Java Architect Handbook
May 28, 2026 · Fundamentals

What Really Happens When You Hit Enter After Typing a URL?

The article breaks down the complete browser workflow from URL entry to page rendering, covering URL parsing, DNS lookup (recursive and iterative), TCP three‑way handshake, TLS negotiation, HTTP request/response exchange, and the final rendering steps, while also providing interview‑focused Q&A and a memorization mnemonic.

BrowserDNSHTTP
0 likes · 15 min read
What Really Happens When You Hit Enter After Typing a URL?
Java Architect Handbook
Java Architect Handbook
May 27, 2026 · Fundamentals

What Triggers Young GC vs. Full GC in Java? Interview Guide

The article explains that Young GC fires when the Eden space is full, while Full GC can be triggered by old‑generation shortage, metaspace exhaustion, allocation‑guarantee failure, or an explicit System.gc() call, and provides interview‑ready answers, diagnostic steps, and a comparison table.

Javagarbage collectioninterview
0 likes · 14 min read
What Triggers Young GC vs. Full GC in Java? Interview Guide
Java Architect Handbook
Java Architect Handbook
May 26, 2026 · Backend Development

How to Prevent Duplicate Consumption in RabbitMQ? 5 Practical Solutions for Interviews

The article explains why RabbitMQ may deliver the same message multiple times, emphasizes that business‑level idempotency is required, and compares five concrete deduplication approaches—unique message ID with a dedup table, database unique constraints, Redis SETNX, optimistic locking, and state‑machine design—detailing their implementation, suitable scenarios, and trade‑offs.

DeduplicationOptimistic LockRabbitMQ
0 likes · 13 min read
How to Prevent Duplicate Consumption in RabbitMQ? 5 Practical Solutions for Interviews
Java Architect Handbook
Java Architect Handbook
May 25, 2026 · Fundamentals

Interview Torture: What Are TCP Sticky/Unsticky Packet Issues and Why They Matter

The article explains that TCP's byte‑stream nature causes sticky and unpacked packet problems, analyzes why they occur, compares UDP, and presents four application‑layer solutions—especially the Header‑Body length‑field approach used by Netty—providing code examples and interview‑ready answers.

LengthFieldBasedFrameDecoderNetwork Programminginterview
0 likes · 14 min read
Interview Torture: What Are TCP Sticky/Unsticky Packet Issues and Why They Matter
Java Architect Handbook
Java Architect Handbook
May 23, 2026 · Backend Development

How to Preheat Cache During Spring Startup – Interview Guide

The article explains four ways to preheat caches in Spring during startup, recommends CommandLineRunner/ApplicationRunner as the safest option, and discusses timing, async handling, error protection, and distributed‑lock strategies to avoid common pitfalls in production environments.

ApplicationListenerSpringcache preheat
0 likes · 13 min read
How to Preheat Cache During Spring Startup – Interview Guide
Java Architect Handbook
Java Architect Handbook
May 22, 2026 · Backend Development

How Does RabbitMQ Ensure No Message Loss? Producer Confirms, Persistence, and Manual ACK Explained

The article breaks down RabbitMQ's three‑stage message flow—producer to broker, broker persistence, and broker to consumer—detailing how Publisher Confirm, durable exchanges/queues/messages, and manual consumer acknowledgments together guarantee reliability while discussing performance trade‑offs, high‑availability clustering, and common interview follow‑up questions.

Dead Letter QueueManual ACKmessage persistence
0 likes · 14 min read
How Does RabbitMQ Ensure No Message Loss? Producer Confirms, Persistence, and Manual ACK Explained
Java Architect Handbook
Java Architect Handbook
Apr 30, 2026 · Fundamentals

What Is a Daemon Thread and How Does It Differ From a Normal Thread?

The article explains that a daemon (background) thread in Java supports user threads but does not prevent JVM shutdown; when all non‑daemon threads finish, the JVM exits regardless of daemon threads, covering definitions, usage scenarios, creation methods, pitfalls, detailed comparisons, and typical interview questions.

ConcurrencyDaemonThreadJava
0 likes · 10 min read
What Is a Daemon Thread and How Does It Differ From a Normal Thread?
Java Architect Handbook
Java Architect Handbook
Apr 29, 2026 · Backend Development

How Many Ways Can You Create a ThreadPool in Java? Interview Essentials

The article explains the four ways to create a thread pool in Java, why the Executors factory methods are unsafe for production, how to manually configure ThreadPoolExecutor with its seven parameters, and compares scheduled and ForkJoin pools while providing interview‑focused Q&A and practical configuration formulas.

ConcurrencyExecutorsForkJoinPool
0 likes · 14 min read
How Many Ways Can You Create a ThreadPool in Java? Interview Essentials