Architecture & Thinking
Author

Architecture & Thinking

🍭 Frontline tech director and chief architect at top-tier companies 🥝 Years of deep experience in internet, e‑commerce, social, and finance sectors 🌾 Committed to publishing high‑quality articles covering core technologies of leading internet firms, application architecture, and AI breakthroughs.

179
Articles
0
Likes
1.1k
Views
0
Comments
Recent Articles

Latest from Architecture & Thinking

100 recent articles max
Architecture & Thinking
Architecture & Thinking
Aug 10, 2026 · Backend Development

From a Config Update API to Locking Strategies: Optimistic vs Pessimistic Locks Explained

After encountering potential data overwrite when updating configuration via an API, the author implements an optimistic lock using version numbers and revisits the fundamentals, comparing pessimistic and optimistic locking mechanisms, their implementations in SQL and Java, performance traits, pitfalls, and guidelines for choosing the appropriate strategy.

JavaOptimistic LockPessimistic Lock
0 likes · 8 min read
From a Config Update API to Locking Strategies: Optimistic vs Pessimistic Locks Explained
Architecture & Thinking
Architecture & Thinking
Aug 8, 2026 · Fundamentals

Java Memory Model and Instruction Reordering: From Happens‑Before to Memory Barriers Explained

Most hidden thread‑safety bugs in Java stem from instruction reordering and memory‑visibility issues rather than simple atomicity conflicts; this article dissects the hardware‑level reordering, JMM’s happens‑before rules, and memory‑fence mechanisms, illustrating each concept with concrete code examples and classic concurrency pitfalls.

Happens-BeforeJavaMemory Barriers
0 likes · 15 min read
Java Memory Model and Instruction Reordering: From Happens‑Before to Memory Barriers Explained
Architecture & Thinking
Architecture & Thinking
Jul 15, 2026 · Artificial Intelligence

Say Goodbye to Manual Diagramming: The Open‑Source AI Tool That’s Turning Heads

The article introduces fireworks‑tech‑graph, an open‑source AI‑driven diagram skill that turns natural‑language descriptions into fully styled SVG diagrams, offering seven built‑in visual themes, support for 14 UML types, an extensive icon library, and concise command‑line usage, dramatically cutting the time engineers spend on manual drawing.

AI diagramArchitectureAutomation
0 likes · 15 min read
Say Goodbye to Manual Diagramming: The Open‑Source AI Tool That’s Turning Heads
Architecture & Thinking
Architecture & Thinking
Jul 9, 2026 · Backend Development

Prevent Cache Avalanche with Multi‑Level Caffeine + Redis: High‑Availability Design

The article explains how combining a local Caffeine cache with a Redis cluster in a three‑tier architecture can protect high‑traffic distributed systems from cache avalanche, detailing expiration strategies, hot‑cold data separation, fault‑tolerant fallback, consistency handling, performance benchmarks, and practical pitfalls.

Cache AvalancheCaffeineHigh Availability
0 likes · 18 min read
Prevent Cache Avalanche with Multi‑Level Caffeine + Redis: High‑Availability Design
Architecture & Thinking
Architecture & Thinking
Jun 18, 2026 · Backend Development

How to Scale a Flash‑Sale System from Zero to 1 Million QPS: A Step‑by‑Step Architecture Guide

This article dissects the evolution of a flash‑sale system from a simple monolithic controller to a cloud‑native, micro‑service architecture that can handle over one million requests per second, detailing traffic‑shaping, multi‑level caching, async processing, and inventory‑consistency techniques.

CachingDistributed ArchitectureKubernetes
0 likes · 18 min read
How to Scale a Flash‑Sale System from Zero to 1 Million QPS: A Step‑by‑Step Architecture Guide
Architecture & Thinking
Architecture & Thinking
May 22, 2026 · Databases

Redis Persistence Options Explained: RDB, AOF, and Hybrid Mode – Principles and Production Configurations

Redis, a high‑performance in‑memory database, offers three persistence mechanisms—RDB snapshots, AOF logs, and the hybrid RDB+AOF mode—each with distinct principles, performance trade‑offs, and configuration nuances, and the article provides detailed analysis, production case studies, and Go code examples to guide optimal selection.

AOFGoHybrid Mode
0 likes · 21 min read
Redis Persistence Options Explained: RDB, AOF, and Hybrid Mode – Principles and Production Configurations
Architecture & Thinking
Architecture & Thinking
May 20, 2026 · Operations

Six‑Step Emergency Plan to Detect, Recover, and Eliminate Message Backlog

In distributed systems, message‑queue backlogs can cripple core services; this article breaks down a six‑step emergency workflow—from alert detection and throttling to temporary scaling, root‑cause analysis, targeted fixes, and final validation—plus long‑term architectural and monitoring strategies, illustrated with real‑world cases and Java code samples.

BacklogJavaRabbitMQ
0 likes · 21 min read
Six‑Step Emergency Plan to Detect, Recover, and Eliminate Message Backlog
Architecture & Thinking
Architecture & Thinking
May 18, 2026 · Backend Development

Practical Traffic Governance: Canary Release, Circuit Breaking, and Auto Fault Recovery

This article explains how canary releases, circuit‑breaker degradation, and automatic fault‑recovery mechanisms work together to ensure high availability and stability in distributed microservice systems, providing detailed principles, configuration steps, code samples, and real‑world case studies.

Auto Fault RecoveryCircuit BreakerKubernetes
0 likes · 18 min read
Practical Traffic Governance: Canary Release, Circuit Breaking, and Auto Fault Recovery
Architecture & Thinking
Architecture & Thinking
May 12, 2026 · Databases

Detecting and Solving Redis Hot Keys in Ten‑Million‑QPS Systems – A Complete Guide

The article analyzes how hot keys in Redis cause node overload, cache breakdown, and system avalanches in ten‑million‑QPS distributed systems, outlines four detection techniques, compares their trade‑offs, and presents five practical mitigation strategies with Go code examples and real‑world performance results.

CachingDistributed SystemsGo
0 likes · 33 min read
Detecting and Solving Redis Hot Keys in Ten‑Million‑QPS Systems – A Complete Guide
Architecture & Thinking
Architecture & Thinking
Apr 30, 2026 · Cloud Native

How RocketMQ 5.0’s New Proxy Layer Enables Compute‑Storage Separation and Cloud‑Native Scaling

RocketMQ 5.0 replaces the monolithic Broker with a stateless Proxy layer that decouples compute from storage, solves scalability, multi‑protocol and cloud‑native adaptation challenges, and is demonstrated through detailed architecture comparisons, Java code samples, and two real‑world IoT and finance case studies showing significant performance and cost benefits.

Cloud NativeCompute‑Storage SeparationMulti-Protocol
0 likes · 20 min read
How RocketMQ 5.0’s New Proxy Layer Enables Compute‑Storage Separation and Cloud‑Native Scaling