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.

174
Articles
0
Likes
476
Views
0
Comments
Recent Articles

Latest from Architecture & Thinking

100 recent articles max
Architecture & Thinking
Architecture & Thinking
Apr 7, 2024 · Cloud Native

Why Microservices Matter: Evolution, Benefits, and When to Adopt

Microservices have evolved from early SOA to container‑driven, cloud‑native architectures, offering fine‑grained, loosely coupled services with benefits like scalability, independent deployment, and fault isolation, while also presenting challenges such as distributed complexity, testing, and operational overhead, and are best adopted when traffic, team size, or rapid iteration demand it.

architecturecloud-native
0 likes · 12 min read
Why Microservices Matter: Evolution, Benefits, and When to Adopt
Architecture & Thinking
Architecture & Thinking
Apr 2, 2024 · Operations

How to Ensure Data Consistency in High‑Concurrency Distributed Systems

This article explores the challenges of maintaining data consistency under high concurrency in distributed systems, reviewing common consistency issues, distributed lock implementations, optimistic and pessimistic strategies, CAS and ABA problems, and practical solutions such as Redis locks, Zookeeper, and transaction protocols.

CASData ConsistencyOptimistic Concurrency
0 likes · 15 min read
How to Ensure Data Consistency in High‑Concurrency Distributed Systems
Architecture & Thinking
Architecture & Thinking
Mar 28, 2024 · Databases

Master‑Slave Replication in Redis: How to Ensure High Availability and Data Consistency

This article explains Redis master‑slave replication, covering read‑write separation, configuration steps for master and slave nodes, the PSYNC synchronization protocol, and how these mechanisms together provide high availability and consistent data across distributed Redis deployments.

PSYNCRead‑Write Separationhigh availability
0 likes · 12 min read
Master‑Slave Replication in Redis: How to Ensure High Availability and Data Consistency
Architecture & Thinking
Architecture & Thinking
Mar 26, 2024 · Fundamentals

Why Distributed Transactions Matter: From CAP Theorem to XA, 2PC, 3PC and TCC

This article explains the evolution of distributed systems, outlines their benefits and challenges, and details key consistency mechanisms such as the CAP theorem, XA two‑phase and three‑phase commit, MQ‑based transactions, and the TCC pattern, with real‑world application scenarios.

CAP theoremXA protocoldistributed transactions
0 likes · 12 min read
Why Distributed Transactions Matter: From CAP Theorem to XA, 2PC, 3PC and TCC
Architecture & Thinking
Architecture & Thinking
Mar 21, 2024 · Backend Development

How to Safeguard Hot Data in High‑Concurrency Scenarios with Redis

This article examines the challenges of handling millions of simultaneous requests to hot data, explains why cache misses can cause database overload, and presents a comprehensive set of Redis‑based techniques—including pre‑warming, staggered expiration, request filtering, queueing, distributed locking, rate limiting, and fallback strategies—to ensure stability and prevent cache avalanche, penetration, and breakdown.

CachePerformancebackend
0 likes · 11 min read
How to Safeguard Hot Data in High‑Concurrency Scenarios with Redis
Architecture & Thinking
Architecture & Thinking
Mar 19, 2024 · Databases

Why MySQL Indexes Fail: 9 Common Pitfalls and How to Fix Them

This article enumerates the most frequent situations that cause MySQL indexes to become ineffective—such as violating the left‑most rule, using functions or expressions on indexed columns, type conversions, improper LIKE patterns, OR/IN/NOT IN usage, and inequality operators—and demonstrates how to reproduce and verify each case with sample data and SQL scripts.

Database OptimizationPerformanceSQL
0 likes · 21 min read
Why MySQL Indexes Fail: 9 Common Pitfalls and How to Fix Them
Architecture & Thinking
Architecture & Thinking
Mar 15, 2024 · Backend Development

Why RPC Is Essential for Building Scalable IM Clusters: A Beginner’s Guide

This article explains the fundamentals of Remote Procedure Call (RPC), why it is crucial for developing production‑grade instant‑messaging clusters, how it differs from plain HTTP, the typical RPC call flow, common frameworks such as gRPC, Thrift and Dubbo, and practical considerations for high‑throughput distributed systems.

Backend DevelopmentDistributed SystemsIM
0 likes · 12 min read
Why RPC Is Essential for Building Scalable IM Clusters: A Beginner’s Guide
Architecture & Thinking
Architecture & Thinking
Mar 14, 2024 · Backend Development

Mastering Load Balancing: Which Strategy Suits Your System?

This article explains the role of load balancing in distributed systems and details five common strategies—Round Robin, Weighted Round Robin, IP Hash, Least Connections, and Least Response Time—highlighting their mechanisms, advantages, drawbacks, and suitable scenarios for optimal system performance.

IP HashLeast ConnectionsRound Robin
0 likes · 9 min read
Mastering Load Balancing: Which Strategy Suits Your System?
Architecture & Thinking
Architecture & Thinking
Mar 7, 2024 · Databases

Mastering Redis RDB Snapshots: SAVE vs BGSAVE Explained

This article explains how Redis RDB snapshots work, compares the blocking SAVE command with the asynchronous BGSAVE command, outlines their impact on performance, and provides best‑practice guidance on snapshot frequency and trade‑offs.

BGSAVEPersistenceRDB
0 likes · 10 min read
Mastering Redis RDB Snapshots: SAVE vs BGSAVE Explained