Skip to content

Stay curious. Build better.

Appearance

Choose how BestHub looks on this device.

Changes apply immediately.

Search articles

Open Discover with these filters

Suggested searches

Databases

12 min read

ZestKV Achieves 2.3× SET Write Throughput, Surpassing pika3.5 at 700k QPS

By parallelizing both the write side and the response side—using multi‑queue write concurrency, overlapping network and CPU work, batch wake‑ups, and connection‑based sharding—ZestKV raises SET request throughput from 310 k to 700 k QPS, more than double pika 3.5, while preserving full consistency and durability guarantees.

48 min read

Redis Sentinel Deep Dive: Leader Election, Failover Mechanics, and Production Best Practices

This article dissects Redis Sentinel’s high‑availability workflow—from failure detection, SDOWN/ODOWN states, and quorum logic to leader election, replica promotion, and configuration propagation—while illustrating each step with a real‑world e‑commerce cache case, detailed configuration snippets, Kubernetes deployment patterns, Spring Boot integration, and operational playbooks for observability and fault‑injection testing.

33 min read

How to Diagnose MySQL Slow Queries: From Log Capture to Index Optimization

This guide walks MySQL operators through a complete slow‑query troubleshooting workflow—starting with enabling and analyzing the slow‑query log, using pt‑query‑digest and EXPLAIN to pinpoint index, SQL, schema, configuration or hardware bottlenecks, and then applying concrete optimizations such as proper indexing, cursor pagination, JOIN tuning, and server‑level parameter tweaks.

12 min read

MySQL Large Table Optimization: 5 Strategies for 100M+ Row Queries

This article presents a five-step practical guide for optimizing MySQL queries on tables exceeding 100 million rows, covering index optimization, SQL rewriting, cursor-based pagination, table structure improvements including partitioning, and architectural upgrades like read-write separation and sharding, with concrete code examples and performance comparisons.

38 min read

Master‑Slave Replication in Redis: Core Mechanics Explained and Production Deployment

This article provides a comprehensive, production‑focused analysis of Redis master‑slave replication, covering its internal state machine, full and partial sync processes, configuration pitfalls, performance bottlenecks, consistency trade‑offs, and practical deployment patterns with Docker, Kubernetes, and Spring Boot.

28 min read

Master DuckDB: From Your First SQL Query to Analyzing Ten Million E‑Commerce Rows

This comprehensive DuckDB tutorial explains why loading large CSV files into Pandas is inefficient, demonstrates how DuckDB can query CSV, Parquet, and JSON directly, walks through SQL basics, advanced features like window functions and CTEs, compares performance against Pandas on ten‑million‑row datasets, and provides practical tips for tuning, common pitfalls, and when to choose DuckDB for data analysis.

15 min read

Build a High‑Availability PostgreSQL Cluster with Streaming Replication and Read‑Write Splitting from Scratch

This guide walks through the complete process of designing, configuring, and operating a PostgreSQL primary‑standby setup with streaming replication, choosing between asynchronous and synchronous modes, implementing read‑write splitting via application routing or PgBouncer, and handling monitoring, failover, and common pitfalls for production‑grade high availability.

33 min read

Redis Persistence Deep Dive: From a Major P0 Outage to RDB+AOF Hybrid Implementation

The article analyses a real‑world P0 outage caused by treating Redis as a simple cache, explains why persistence is the decisive factor when Redis stores session, inventory or lock data, and provides a step‑by‑step guide to RDB, AOF and hybrid persistence, configuration, monitoring, recovery and best‑practice recommendations.

18 min read

MySQL 8.0.25 DDL Algorithms: COPY, INPLACE, INSTANT Business Impact Analysis

This article details MySQL 8.0.25's three DDL algorithms—COPY, INPLACE, and INSTANT—explaining their implementation mechanisms, lock behaviors, business impact, default algorithm selection for common operations, VARCHAR length boundary rules, execution time estimates, and key risks like the 64-change INSTANT limit and MDL lock contention.

29 min read

Day 51: Database Architecture – Master‑Slave Replication, Read‑Write Separation, Sharding & Consistency

The article walks through diagnosing database bottlenecks, explains MySQL replication flow, read‑write separation benefits and limits, shows when to apply vertical versus horizontal partitioning, details sharding‑key selection, cross‑shard challenges, high‑availability steps, and presents a complete e‑commerce case study.

18 min read

Ontology as the Semantic Control Plane for Agent Fact Systems

The article explains how an ontology—defining objects, relationships, constraints, and inferable boundaries within a domain—serves as a semantic control plane between the fact and action layers of an agent‑driven system, ensuring consistent interpretation, validation, and lifecycle management of business facts.