YiSu Grain
Author

YiSu Grain

A fleeting mayfly in the world, a single grain in the boundless sea.

68
Articles
0
Likes
32
Views
0
Comments
Recent Articles

Latest from YiSu Grain

68 recent articles
YiSu Grain
YiSu Grain
Jul 8, 2026 · Databases

Why a Transfer Can’t Just Deduct Money – A Simple Guide to ACID Transactions

The article uses a simple money‑transfer scenario to introduce database transactions, explains the four ACID properties, illustrates common concurrency anomalies such as dirty reads, non‑repeatable reads and phantom reads, and outlines the four isolation levels with their trade‑offs and default settings in MySQL and Oracle.

ACIDConcurrency ControlDatabase Transactions
0 likes · 8 min read
Why a Transfer Can’t Just Deduct Money – A Simple Guide to ACID Transactions
YiSu Grain
YiSu Grain
Jul 7, 2026 · Databases

Why Databases Skip the First Page: How Indexes Speed Up Queries

The article explains how database indexes act like a book's table of contents, reducing full‑table scans and disk I/O by using B+Tree structures, and compares clustered, non‑clustered, and covering indexes while highlighting their benefits and trade‑offs.

B+TreeClustered IndexCovering Index
0 likes · 11 min read
Why Databases Skip the First Page: How Indexes Speed Up Queries
YiSu Grain
YiSu Grain
Jul 7, 2026 · Fundamentals

Why You Don't Need to Send an SMS Immediately After an Order – Understanding Kafka and Message Queues

The article explains how using a message queue such as Kafka lets an order service return quickly by handling non‑critical tasks like SMS, points, and logging asynchronously, thereby improving latency, decoupling services, and smoothing traffic spikes while also covering Kafka's core concepts and trade‑offs.

KafkaMessage QueuePeak Shaving
0 likes · 11 min read
Why You Don't Need to Send an SMS Immediately After an Order – Understanding Kafka and Message Queues
YiSu Grain
YiSu Grain
Jul 7, 2026 · Fundamentals

Why Cache Isn't a Magic Bullet: How Redis Can Still Overload Your Database

The article explains how caching, especially with Redis, reduces database load in high‑traffic scenarios, but also details three cache failure modes—avalanche, penetration, and breakdown—and provides concrete mitigation techniques to keep systems stable.

CacheCache AvalancheCache Breakdown
0 likes · 13 min read
Why Cache Isn't a Magic Bullet: How Redis Can Still Overload Your Database
YiSu Grain
YiSu Grain
Jul 6, 2026 · Backend Development

Who Controls Traffic After Splitting Services? A Guide to Service Governance

The article explains how microservice decomposition introduces challenges such as locating services, routing external requests, balancing load, isolating failures, limiting traffic, and degrading non‑essential features, and it details the six core mechanisms—service discovery, API gateway, load balancing, circuit breaking, rate limiting, and degradation—that together form a complete service‑governance solution.

API Gatewaycircuit breakerdegradation
0 likes · 12 min read
Who Controls Traffic After Splitting Services? A Guide to Service Governance
YiSu Grain
YiSu Grain
Jul 6, 2026 · Backend Development

Why a Single Order Triggers a Distributed Transaction (2PC, TCC, Saga Explained)

The article explains why a single order operation can involve multiple services and databases, introduces the challenges of distributed transactions, and compares three common solutions—Two‑Phase Commit, TCC, and Saga—detailing their mechanisms, strengths, weaknesses, and suitable scenarios.

2PCSagaTCC
0 likes · 12 min read
Why a Single Order Triggers a Distributed Transaction (2PC, TCC, Saga Explained)
YiSu Grain
YiSu Grain
Jul 6, 2026 · Fundamentals

Understanding CAP and BASE Through a Simple Network Partition Example

The article explains the CAP theorem and BASE model by walking through a concrete scenario of two data centers losing network connectivity, showing how architects must choose between consistency and availability and illustrating typical CP and AP use cases.

BASECAP theoremavailability
0 likes · 9 min read
Understanding CAP and BASE Through a Simple Network Partition Example
YiSu Grain
YiSu Grain
Jun 12, 2026 · Product Management

How I Built a Personal AI‑Powered Asset Tracker: Prompts, Features, and Workflow

The author describes creating a lightweight local dashboard that monitors Binance Alpha, crypto and US stocks, records purchase quantities and amounts, auto‑calculates averages and profits, and evolves through concrete AI prompts and iterative UI tweaks, all stored in a local JSON file.

AI promptingUI designasset tracker
0 likes · 9 min read
How I Built a Personal AI‑Powered Asset Tracker: Prompts, Features, and Workflow