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

40 min read

Step-by-Step Redis Setup from Scratch: Docker, Docker Compose, Master‑Slave, Sentinel, and Cluster

This tutorial walks a complete beginner through launching a Redis server with Docker, managing it with Docker Compose, adding master‑slave replication, configuring Sentinel for automatic failover, building a 3‑master‑3‑replica Redis Cluster, and provides production‑grade configuration templates and an online‑deployment checklist.

19 min read

Why Dropping SQLite May Be Wrong – Do You Actually Need PostgreSQL for Write Load?

The article re‑examines SQLite’s historic reputation as a test‑only database, showing how SSD‑backed WAL mode, tools like LibSQL/Turso, Litestream, and Cloudflare D1, plus modern JVM support, give SQLite production‑grade performance for read‑intensive, multi‑tenant and edge scenarios, while outlining when PostgreSQL remains necessary.

54 min read

Production‑grade Elasticsearch: From Lucene Internals to Billion‑scale Search Architecture

This article explains why running Elasticsearch in production is far more complex than a simple API tutorial, covering Lucene fundamentals, mapping design, shard planning, write‑path architecture, query optimization, hot‑warm‑cold tiering, ILM policies, capacity planning, monitoring, incident handling, and a step‑by‑step evolution roadmap for building a reliable, scalable search system.

35 min read

Why MySQL Connections Spike: When Traffic Isn’t the Real Culprit

This article walks through a systematic, step‑by‑step troubleshooting guide for MySQL "Too many connections" errors, showing how to verify the symptom, inspect server variables, analyze connection status, identify common root causes such as connection‑pool misconfiguration, leaked connections, and long‑running queries, and apply safe fixes and preventive measures.

12 min read

DSP’s Shift from Single‑Node to Distributed: A Deep Look at Its gRPC Cluster Architecture

The article dissects DSP’s transition from a single‑node database to a distributed system, detailing the gRPC‑based cluster communication skeleton built in dsp‑raft and dsp‑register, the three node roles, GrpcServer/GrpcClient abstractions, proto services, the registration workflow, and the missing heartbeat, node‑discovery and Raft consensus components that must be added for a full‑featured distributed storage engine.

10 min read

How to Build a MySQL Protocol Server from Scratch for the DSP Database

This article walks through the complete implementation of a MySQL‑compatible front‑end protocol in the DSP (Sloth) database, covering why MySQL compatibility matters, Netty pipeline design, packet framing, three‑step handshake, two‑level command routing, result‑set encoding, length‑encoded integers, variable substitution, and current limitations.

20 min read

Four States a Milvus Delete Passes Through – Uncovering the Most Complex Operation

A Milvus delete command looks simple, but the primary key is first stored in an L0 delta segment, then triggers compaction that merges the delete mark into L1/L2 segments, passes through four distinct segment states, and involves multiple seal strategies, rollback fields, and version‑specific behaviours, illustrating why deletion is the system's most intricate operation.

7 min read

Are Domestic Databases Really a Joke? Lessons from Oracle’s Early Years

The article argues that domestic databases are far from a joke, highlighting how building a database touches virtually every computer‑science discipline, and recounts Oracle’s early versions—lacking transactions, constraints, and reliable locking—to illustrate the long path from primitive systems to mature, world‑class databases.

7 min read

Agent Native: Ultra‑Fast Analytical Database Paradigm for Agents

The presentation at the Agentic AI Summit details the four core challenges of agent‑driven data analysis and introduces SelectDB’s Agent Native architecture—combining sub‑second query speed, unified multimodal search, semantic understanding, and cloud‑elastic observability, with reported storage savings of up to 88% and 5‑10× text‑search acceleration.

35 min read

MySQL Containerization vs Host Installation: Production‑Grade Selection Framework

The article explains that the real challenge is not merely running MySQL but placing it in the right resource model, and it provides a four‑dimensional decision framework—performance ceiling, stability floor, automation level, and organizational maturity—to guide when to use host‑installed MySQL, single‑node containers, or full Kubernetes deployment, illustrated with concrete resource analyses, architecture diagrams, configuration examples, pitfalls, checklists, and an evolution roadmap.

9 min read

Why OceanBase Built Lakebase: The Need for an AI‑Ready Lake‑Database

Lakebase, the core engine of OceanBase AI Database, unifies storage, management, computation and search for structured, unstructured and vector data, offering multimodal data capabilities, flexible deployment modes, and AI‑oriented use cases such as autonomous driving and financial document analytics.

17 min read

How DeWu Cut Redis RT by 90% with a Full‑Scale Self‑Built Redesign

The article details DeWu's three‑year evolution of its self‑built Redis platform—covering architecture, access method changes, version upgrades, proxy rate limiting, and automated operations—that together reduced request latency by over 90% while supporting more than 1,000 clusters, 160 TB of memory and near‑10‑million QPS.