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.

168
Articles
0
Likes
397
Views
0
Comments
Recent Articles

Latest from Architecture & Thinking

100 recent articles max
Architecture & Thinking
Architecture & Thinking
May 21, 2024 · Fundamentals

Mastering Distributed Consistency: Paxos, Raft, and ZAB Explained

This article examines high‑concurrency distributed consistency algorithms—explaining the CAP challenges, detailing Paxos, Raft, and ZAB’s core concepts, roles, and workflow, and discussing their practical applications and selection criteria for ensuring strong data consistency in critical systems.

CAP theoremPaxosRaft
0 likes · 13 min read
Mastering Distributed Consistency: Paxos, Raft, and ZAB Explained
Architecture & Thinking
Architecture & Thinking
Apr 21, 2024 · Backend Development

How to Ensure Reliability, Ordering, and Security in Billion‑User IM Systems

This article explores the key challenges of building a large‑scale instant‑messaging service—including message reliability, ordering, read‑sync, data security, avalanche effects, and weak‑network handling—and presents practical architectural and algorithmic solutions for each problem.

Instant MessagingMessage OrderingMessage Reliability
0 likes · 21 min read
How to Ensure Reliability, Ordering, and Security in Billion‑User IM Systems
Architecture & Thinking
Architecture & Thinking
Apr 16, 2024 · Databases

Master MySQL InnoDB Locks: How SELECT…FOR UPDATE Behaves

This article explains the default repeatable‑read isolation level in InnoDB, details the three main lock types—record, gap, and next‑key—and shows how SELECT … FOR UPDATE applies different locking rules depending on primary key, unique, ordinary, range, or table‑scan queries, with practical SQL examples.

Database ConcurrencyInnoDBMySQL
0 likes · 10 min read
Master MySQL InnoDB Locks: How SELECT…FOR UPDATE Behaves
Architecture & Thinking
Architecture & Thinking
Apr 10, 2024 · Operations

How Redis Sentinel Ensures Automatic Failover and High Availability

Redis Sentinel provides automatic monitoring, fault detection, and failover for Redis master‑slave clusters, enabling high availability by electing a new master when the original fails, using sdown/odown states, quorum voting, and pub/sub communication to keep services running with minimal downtime.

FailoverMonitoringSentinel
0 likes · 11 min read
How Redis Sentinel Ensures Automatic Failover and High Availability
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 ConsistencyDistributed Lock
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 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.

MySQLPerformanceSQL
0 likes · 21 min read
Why MySQL Indexes Fail: 9 Common Pitfalls and How to Fix Them