Architect's Guide
Author

Architect's Guide

Dedicated to sharing programmer-architect skills—Java backend, system, microservice, and distributed architectures—to help you become a senior architect.

741
Articles
0
Likes
5.2k
Views
0
Comments
Recent Articles

Latest from Architect's Guide

100 recent articles max
Architect's Guide
Architect's Guide
Oct 25, 2026 · Backend Development

8 Java Asynchronous Implementation Patterns for High Performance

This article explores eight ways to implement asynchronous programming in Java, including Thread, Future, CompletableFuture, Spring @Async, ApplicationEvent, message queues, Hutool ThreadUtil, and Guava ListenableFuture, with code examples and trade-offs for each approach.

Asynchronous ProgrammingCompletableFutureFuture
0 likes · 14 min read
8 Java Asynchronous Implementation Patterns for High Performance
Architect's Guide
Architect's Guide
Oct 24, 2026 · Backend Development

Silent Token Refresh: Access vs Refresh Tokens with JWT Implementation

This article explains why silent token refresh is needed to prevent sudden logouts, demonstrates backend automatic token renewal using Java JWT (jjwt 0.9.1) with Maven dependencies, details the dual-token (AT/RT) frontend pattern for security and convenience, and discusses handling edge cases like long-idle form submissions that cause 401 errors.

JWTJavaaccess token
0 likes · 10 min read
Silent Token Refresh: Access vs Refresh Tokens with JWT Implementation
Architect's Guide
Architect's Guide
Oct 23, 2026 · Backend Development

What Is Scaffolding? Why Developers Need It & Top Tools Compared

This article explains software scaffolding as a meta-programming approach that generates boilerplate code, details why principles like reuse, DRY, and open-closed make scaffolding essential, and compares tools like Vue CLI, Maven, Netty, and Spring Boot with a real-world case study of replacing a custom persistence layer with Spring Data.

DropwizardMavenNetty
0 likes · 14 min read
What Is Scaffolding? Why Developers Need It & Top Tools Compared
Architect's Guide
Architect's Guide
Oct 22, 2026 · Databases

Why Database Indexes Speed Up Queries: Binary Search & Disk I/O Explained

This article explains why database indexes accelerate queries by detailing disk storage mechanics, demonstrating binary search on 100,000 records reducing block scans from 20,000 to 14, covering clustered vs non-clustered indexes, index trade-offs, common failure cases like OR conditions, and practical SQL optimization techniques.

B-treeSQL optimizationbinary search
0 likes · 14 min read
Why Database Indexes Speed Up Queries: Binary Search & Disk I/O Explained
Architect's Guide
Architect's Guide
Oct 21, 2026 · Backend Development

High-Performance Local Cache Solutions Compared: Guava, Caffeine, Ehcache & ConcurrentHashMap

This article compares four Java local caching solutions — ConcurrentHashMap, Guava Cache, Caffeine, and Ehcache — detailing their features, performance characteristics, and code examples, while addressing cache consistency challenges in two-level cache architectures using MQ or Canal for synchronization.

CaffeineEhcacheGuava Cache
0 likes · 11 min read
High-Performance Local Cache Solutions Compared: Guava, Caffeine, Ehcache & ConcurrentHashMap
Architect's Guide
Architect's Guide
Oct 21, 2026 · Backend Development

Redis Pagination & Multi-Condition Fuzzy Search: A Combined Approach

This article explains how to implement pagination using Redis Sorted Sets (ZSet) and multi-condition fuzzy queries using Hash with HSCAN, then combines both by caching filtered results in pattern-keyed ZSets for efficient paginated retrieval, including TTL-based expiration and data freshness strategies.

HSCANHashRedis
0 likes · 11 min read
Redis Pagination & Multi-Condition Fuzzy Search: A Combined Approach
Architect's Guide
Architect's Guide
Oct 18, 2026 · Backend Development

Insert 300K Records in 13 Seconds: The Right Way to Batch Insert

The article benchmarks multiple approaches for inserting 300,000 records into MySQL, showing that naive single inserts take over 4 hours, while optimized batched inserts using MyBatis or JDBC with proper batch sizes (1000–5000) and transaction management achieve 13–24 seconds, and summarizes key optimization strategies.

JDBCJavaMyBatis
0 likes · 14 min read
Insert 300K Records in 13 Seconds: The Right Way to Batch Insert
Architect's Guide
Architect's Guide
Oct 17, 2026 · Backend Development

5 Java Thread Communication Techniques: From volatile to LockSupport

This article explains five Java thread communication methods—volatile flag, Object wait/notify, CountDownLatch, ReentrantLock with Condition, and LockSupport—with runnable code examples showing how each coordinates a producer thread adding items and a consumer thread triggered at the fifth addition.

CountDownLatchJavaLockSupport
0 likes · 10 min read
5 Java Thread Communication Techniques: From volatile to LockSupport