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

Backend Development

20 min read

Why PHP Developers Should Choose Zig Over Rust as Their Second Language in the AI Era

This article argues that PHP developers should adopt Zig as a second language instead of Rust, because Zig's explicit memory management, seamless C interoperability, and lack of borrow checker make it more suitable for AI-assisted development of native extensions, CLI tools, and low-level systems while complementing PHP's business logic strengths.

18 min read

SQL 300ms, API 12s: The Hidden Cost of Returning 100k Records to Frontend

A backend query interface took 12 seconds despite a 300ms SQL query because it returned 100,000 records directly to the frontend, causing massive object creation, JSON serialization, memory spikes, and GC pressure; the fix involved pagination, DTO projections, separate export endpoints, and monitoring response size.

10 min read

No Standalone Vector DB Needed: Embed Zvec in Java with a Single JAR

This tutorial demonstrates how to embed Alibaba's Zvec vector database directly into a Java application using a single JAR dependency, eliminating the need for a separate vector database service. It walks through vector search, Chinese full-text search with jieba, and hybrid retrieval using RRF fusion, while covering critical production considerations like data persistence, native memory management, and platform compatibility.

15 min read

Ontology-Driven ERP Generation: OntoL Turns Business Rules into Executable Systems

This article details how the OntoL ontology platform enables ERP system generation by capturing business entities, relationships, rules, actions, and metric calibers in a formal ontology, allowing LLM-assisted category discovery and automatic translation of business definitions into executable ERP modules without code changes.

9 min read

Automating Legacy Ontology Extraction with AI Agents: A Practical Workflow

The article explains ontology concepts using food delivery examples, contrasts ontology with knowledge graphs, database schemas, DDD, and OOP, then presents an AI-agent workflow using Palantir ontology skills and Qoder RepoWiki to automatically generate TTL ontology files and HTML visualizations from legacy code, followed by human review for accuracy.

24 min read

AgentScope AgentOS Workspace: Unified Directory Contract, 8 Pluggable Backends & Concurrent Deduplication

This article dissects AgentScope's AgentOS workspace architecture, detailing its unified directory contract (.mcp/skills/data/sessions), eight pluggable execution backends, two-level lazy loading with mtime+SHA-256 incremental caching, and fine-grained locking (bind/MCP/skill locks plus Future placeholders) to prevent duplicate workspace creation under concurrent first-session requests.

9 min read

How ByteDance Delivers 10 Tbps+ Bandwidth to 800M Daily Users

This article breaks down ByteDance's massive data-center infrastructure — 420,000+ servers in China, 100,000+ in the US, and an estimated 10–15 Tbps total egress bandwidth — explaining how dual-link designs, CDN edge caching, and dynamic video compression enable hundreds of millions of concurrent short-video streams.

44 min read

How Nginx Handles 100K Concurrent Connections: Inside Its Event-Driven Architecture

This article dissects Nginx's high-concurrency architecture, explaining its event-driven model with epoll, master-worker process design, thundering herd solutions, zero-copy sendfile, request processing phases, and capacity planning formulas, revealing why configuration must align with OS resource limits.

46 min read

Redis Distributed Locks: SET NX EX Pitfalls, Watchdog Renewal, and the Redlock Debate

This article analyzes three production incidents to explain Redis distributed lock pitfalls, detailing correct implementation with atomic SET NX EX, unique values, Lua unlocking, watchdog renewal for TTL dilemmas, fencing tokens for correctness guarantees, Redlock's five-step majority quorum, the Martin Kleppmann vs antirez safety debate, and a decision tree for choosing between single-instance Redis, Redlock, ZooKeeper, or etcd.

50 min read

Redis Cache Consistency: Cache-Aside, Delayed Double Delete, Binlog Fallback & Versioning

This article analyzes Redis cache consistency through three real incidents, compares four read-write patterns, explains why update-DB-then-delete-cache (Cache-Aside) is optimal, details delayed double delete, binlog subscription fallback, versioning, monitoring, and a decision tree for choosing consistency levels.

48 min read

Redis Cache Penetration, Breakdown & Avalanche: Three Lines of Defense

This article dissects Redis cache penetration, breakdown, and avalanche as three forms of cache-miss storms, detailing layered defenses — Bloom filters for penetration, mutex locks and logical expiration for breakdown, TTL jittering plus multi-level caching and rate limiting for avalanche — with implementation code, capacity formulas, and production checklists.

7 min read

Ontology-Driven ERP: Business Defines, System Generates

Ontology-driven ERP replaces traditional IT-centric development by letting business teams define entities, relationships, rules, actions, and metrics as a unified ontology, which automatically generates executable ERP systems — eliminating code cycles, aligning data semantics, and putting business in control of system evolution.

10 min read

IntelliJ IDEA 2026.3: A Watershed Release Turning the IDE into an Agent Platform

The article reviews IntelliJ IDEA 2026.3, highlighting its shift toward AI Agent integration with the new Home view, Git Worktree support, and Air agent environment, while also covering debugging improvements like non-blocking logpoints, a libghostty-based terminal, remote SSH enhancements, and stability fixes, concluding with a comparison to the author's preferred Orca workflow and instructions to disable Air.

12 min read

Ontology-Driven ERP Generation: Business Rules Auto-Create Documents & Metrics

This article outlines a business-centric ontology approach to automatically generate ERP systems by standardizing entities, relationships, rules, actions, and metric definitions, enabling business users to maintain logic without coding, and detailing key metrics across sales, procurement, inventory, production, cost, finance, quality, and supply chain domains with strict caliber rules.

11 min read

6 Spring Event Best Practices from Production Failures

The author shares six critical Spring Event best practices derived from production incidents, covering graceful shutdown requirements, startup event loss prevention, suitability for eventual consistency over strong consistency, reliability through retry mechanisms, and mandatory idempotency for subscribers.

15 min read

Spring Boot AOT Processing and Runtime Reflection Registration for GraalVM Native Images

This article explains how Spring Boot 3's Ahead-of-Time (AOT) processing resolves reflection registration issues when compiling Spring applications to GraalVM native images, covering build-time artifact generation, RuntimeHints API, and the @RegisterReflectionForBinding annotation.

9 min read

Node.js 27 Alpha: V8 15.6 Doubles Default Heap Limit, Breaks Serialization Compatibility

Node.js 27 Alpha upgrades V8 to 15.6, doubling the default old-generation heap limit on 8 GB machines from 2 GB to 4 GB unless --max-old-space-size is set, while adding Buffer to the V8 allocation quota, introducing a new serialization format that breaks cross-version compatibility, doubling heap snapshot size, and adding Math.sumPrecise and iterator helpers.

35 min read

Building a User Profiling Platform with Spring Boot: Tags, Rules & Real-time Updates

This article details the architecture and implementation of a user profiling platform built with Spring Boot microservices, covering tag modeling, real-time and offline computation pipelines, multi-layer storage with ClickHouse and RoaringBitmap, audience selection via bitmap operations, version governance, and security practices.