Niu Liu
Author

Niu Liu

A slightly rustic name 🤠 A tech veteran navigating the internet wave Hardcore tech: fixing all bugs and tough challenges

30
Articles
0
Likes
171
Views
0
Comments
Recent Articles

Latest from Niu Liu

30 recent articles
Niu Liu
Niu Liu
Oct 14, 2026 · Backend Development

One Click, A Full Stack Journey: Tracing an HTTP Request from Browser to Database

This comic-style guide follows an HTTP request's complete journey through DNS resolution, TCP/TLS handshakes, Socket connections, Nginx reverse proxy, gRPC service calls, Redis caching, MySQL queries, and connection pools, revealing how each layer contributes to latency and why observability matters.

Distributed TracingHTTPMySQL
0 likes · 17 min read
One Click, A Full Stack Journey: Tracing an HTTP Request from Browser to Database
Niu Liu
Niu Liu
Oct 4, 2026 · Industry Insights

AI Accelerates Product Creation, But User Retention Is the Real Challenge

The author reflects on how AI lowers the barrier to building apps and mini-programs for one-person companies, but argues that the real challenge shifts from development to retaining users through reliable service delivery and deep problem understanding.

AIMini ProgramsOne-Person Company
0 likes · 3 min read
AI Accelerates Product Creation, But User Retention Is the Real Challenge
Niu Liu
Niu Liu
Sep 25, 2026 · Backend Development

Exactly Once: What It Guarantees, Why Payments Double-Charge, and How to Fix It

This article explains that Exactly Once semantics in message queues like Kafka only guarantee exactly-once processing within the messaging system's transaction boundary, not for external side effects like payment APIs, and provides practical patterns using database unique constraints, idempotency keys, and timeout handling to achieve true end-to-end exactly-once behavior.

KafkaMessage QueuePayment Processing
0 likes · 9 min read
Exactly Once: What It Guarantees, Why Payments Double-Charge, and How to Fix It
Niu Liu
Niu Liu
Sep 23, 2026 · Backend Development

Ordered Messages Aren't Enough: Preventing State Regressions with Versioning and State Machines

The article explains why message ordering alone fails to prevent business state regressions, detailing how version gaps and unordered consumption cause issues, and presents solutions using event versioning, state machines, and proper Kafka/RocketMQ configuration to ensure correct order processing per order ID while allowing parallelism across orders.

Event VersioningKafkaMessage Queue
0 likes · 10 min read
Ordered Messages Aren't Enough: Preventing State Regressions with Versioning and State Machines
Niu Liu
Niu Liu
Sep 21, 2026 · Backend Development

Priority Messaging: How Urgent Tasks Cut Ahead Without Starving Regular Tasks

The article analyzes priority messaging in message middleware, comparing implementations across RocketMQ, RabbitMQ, Kafka, and Pulsar, and details techniques like weighted round-robin scheduling, resource reservation, and wait aging to ensure urgent tasks get priority without starving ordinary tasks, including practical code patterns for fair task scheduling.

KafkaPulsarRabbitMQ
0 likes · 10 min read
Priority Messaging: How Urgent Tasks Cut Ahead Without Starving Regular Tasks
Niu Liu
Niu Liu
Sep 6, 2026 · Big Data

Real-Time Data Quality: Handling Late Data, Reconciliation, and Alerting

This article explores data quality challenges in real-time data warehouses, covering timing agreements for late-arriving data, reconciliation techniques using Flink and Paimon, SQL-based checking strategies, alerting with actionable details, and iterative quality validation processes.

AlertingCDCDoris
0 likes · 15 min read
Real-Time Data Quality: Handling Late Data, Reconciliation, and Alerting
Niu Liu
Niu Liu
Aug 31, 2026 · R&D Management

Enterprise Codex Governance: Trustworthy Collection, Secure Access, Auditable Lifecycle

This article details the architecture of an enterprise governance platform for Codex AI coding assistants, covering local encrypted collection with 90ms hooks, server-side parsing with tenant isolation, tiered content access (L0–L3) requiring multi-party approval, and operational use cases from deployment health monitoring to employee offboarding with zero-residue verification.

AI coding assistantAudit TrailCodex
0 likes · 17 min read
Enterprise Codex Governance: Trustworthy Collection, Secure Access, Auditable Lifecycle
Niu Liu
Niu Liu
Aug 23, 2026 · Big Data

Paimon: Unifying Storage for Real-Time Data Warehouses

Apache Paimon combines a lakehouse table format with an LSM-tree update engine to handle continuous updates, historical snapshots, and multi-engine access in real-time data warehouses, reducing the need for separate Kafka, Hive, and OLAP systems.

Apache PaimonCDCFlink
0 likes · 23 min read
Paimon: Unifying Storage for Real-Time Data Warehouses
Niu Liu
Niu Liu
Aug 21, 2026 · Big Data

Real-Time Data Warehouse Evolution: Flink Writes, Paimon Stores, Doris Queries, One Platform Manages

This article details a lightweight real-time data warehouse architecture using Apache Flink 2.0+ for streaming writes, Apache Paimon for lakehouse storage, Apache Doris for interactive queries, and a custom RT-DWH management platform to unify metadata, quality, permissions, and observability — reducing component count and operational complexity for small-to-medium teams.

Apache DorisApache FlinkApache Paimon
0 likes · 21 min read
Real-Time Data Warehouse Evolution: Flink Writes, Paimon Stores, Doris Queries, One Platform Manages