YiSu Grain
Author

YiSu Grain

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

83
Articles
0
Likes
227
Views
0
Comments
Recent Articles

Latest from YiSu Grain

83 recent articles
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.

CacheCaching StrategiesRedis
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 BreakerRate Limiting
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
YiSu Grain
YiSu Grain
Nov 13, 2024 · Frontend Development

FineReport Tip: Show Fixed‑URL Image on Hover in a Standard Report (Part 1)

This tutorial walks through creating a FineReport template, adding a parameter panel, designing the table, importing Bootstrap CSS/JS, configuring a tooltip, writing JavaScript to display a fixed‑URL image when hovering over cells in column E, and previewing the result.

BootstrapFineReportJavaScript
0 likes · 4 min read
FineReport Tip: Show Fixed‑URL Image on Hover in a Standard Report (Part 1)
YiSu Grain
YiSu Grain
Nov 7, 2024 · Operations

Building a Safety Equipment Warning System with FineReport – Step‑by‑Step Guide

This article walks through creating a safety‑protective‑equipment warning management system using FineReport, covering MySQL table setup, data import templates, batch handling, validation formulas, SQL‑driven datasets, pagination controls, batch deletion, warning calculations, detailed view reports, and dashboard visualisation with pie, bar and gauge charts.

BIDataValidationFineReport
0 likes · 23 min read
Building a Safety Equipment Warning System with FineReport – Step‑by‑Step Guide
YiSu Grain
YiSu Grain
Oct 29, 2024 · Fundamentals

Why This Design Works and How a Fenwick Tree Simplifies Inversion Counting

The article explains what inversion pairs are, demonstrates a naïve O(n²) counting method, then introduces a smarter right‑to‑left approach using a Fenwick (Binary Indexed) tree with discretization to achieve efficient O(n log n) inversion counting, providing full Python implementations and step‑by‑step examples.

Binary Indexed TreeFenwick treePython
0 likes · 7 min read
Why This Design Works and How a Fenwick Tree Simplifies Inversion Counting