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

30 min read

Day 50: Relational Database Normalization – From Functional Dependencies to Normal Form Decomposition

This lesson walks through relational database normalization using a messy enrollment table, showing how to derive functional dependencies, identify candidate keys, detect partial, transitive and BCNF violations, and systematically decompose the schema into student, major, course, teacher and enrollment tables while ensuring lossless joins and dependency preservation.

32 min read

OLAP Engine Selection for Billion‑Row Analytics: Doris, ClickHouse, StarRocks

This guide compares Doris, ClickHouse, and StarRocks for billion‑row real‑time analytics, outlining their strengths and weaknesses across write throughput, update handling, join performance, concurrency, cost, and operational complexity, and provides concrete modeling, ingestion, query governance, and fault‑tolerance recommendations to help teams choose the most suitable OLAP platform.

9 min read

The Evolution and Practice of Multi-Write Multi-Read Shared Storage Clusters – UXDB SRAC Whitepaper

The whitepaper released by Youxuan Database outlines the market size of the DBMS industry, traces the technical evolution of multi‑write multi‑read shared‑storage clusters from early research to modern implementations, details the UXDB SRAC architecture and its innovations, and validates its feasibility through certifications, benchmark results, and real‑world case studies.

11 min read

Embedding Sharding Genes in Business IDs for Direct Routing in Sharded Databases

By embedding a shard identifier (“gene”) into the low bits of a business ID generated via Redis INCR or similar sequencers, the article shows how to achieve direct table routing without broadcast queries or extra mapping tables, detailing the algorithm, implementation, integration with Snowflake and Leaf, and common pitfalls.

9 min read

Ontology vs Graph Inference Engine: How the Wrong Choice Can Render Your Knowledge Graph Useless

Choosing between OWL‑based ontologies and graph‑database inference engines fundamentally affects knowledge‑graph design: ontologies provide formal logical consistency and open‑world reasoning, while graph inference offers fast, flexible queries, with each suited to different constraints, scalability, and maintenance scenarios.

41 min read

Taming Message Storms: Redis 7.x Engineering Practices for Enterprise Live‑Streaming Platforms

This article dissects why a simple Redis upgrade is insufficient for large‑scale live streaming, then walks through how Redis 7’s Sharded Pub/Sub, Function, and ACL v2 features together eliminate broadcast storms, streamline script governance, and enforce fine‑grained multi‑tenant control, backed by concrete architecture diagrams, production‑grade Java code, capacity planning, monitoring, rollout procedures, and real‑world benchmark results.

27 min read

How to Determine the Right Database Connection Pool Size: Practical Guidelines and Benchmarks

This article walks through a systematic approach to sizing PostgreSQL connection pools for Java applications using HikariCP and Spring Boot, covering capacity budgeting, workload‑driven calculations, monitoring metrics, slow‑SQL analysis, leak detection, Kubernetes deployment considerations, and safe rollout practices.

7 min read

Mastering Redis High Availability: Replication, Sentinel, and Cluster Explained

The article explains why Redis must be highly available and walks through three progressive architectures—master‑slave replication, Sentinel automatic failover, and Redis Cluster—detailing their mechanisms, advantages, drawbacks, and when to choose each for small, medium, or large‑scale production systems.

16 min read

8 Essential Data Modeling Techniques Every Data Engineer Should Know

The article explains why data modeling is the bridge between business processes and analytical applications, breaks down eight common modeling methods—including ER, 3NF, dimensional, star, snowflake, wide‑table, Data Vault, and subject‑oriented models—detailing their purposes, strengths, trade‑offs, and how they fit into a layered data‑warehouse architecture.

12 min read

Why 70% of System Outages Stem from SQL Performance: A MySQL Index Optimization Guide

The article walks through a systematic MySQL 8.0 index‑optimization workflow—starting with diagnosing slow queries and lock waits, validating execution plans with EXPLAIN ANALYZE, safely adding or dropping indexes using online DDL, handling pagination patterns, and verifying improvements via comprehensive metrics before and after.

22 min read

R2DBC vs JDBC: Choosing the Right Persistence for Reactive Spring Boot Projects

This article compares Spring Data JDBC and Spring Data R2DBC for Spring Boot 3.x/4.x projects, detailing setup, Maven dependencies, configuration, entity definitions, repository and service implementations, transaction handling, performance trade‑offs, and provides a hybrid approach that wraps JDBC calls in reactive Monos for WebFlux, helping developers decide which persistence layer best fits their reactive architecture.

29 min read

Redis High Availability: Master-Slave, Sentinel & Cluster Deep Dive with Production Code

This article comprehensively covers Redis high availability architectures — master-slave replication, Sentinel automatic failover, and Redis Cluster sharding — with detailed working principles, pros/cons, comparison tables, production-grade Java code for Jedis and Lettuce clients, hash-tag routing for cross-slot operations, Spring Retry integration, and solutions for split-brain, async replication data loss, failover downtime, data skew, and cluster scaling latency.