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

Explore BestHub

#Performance

RSS feed
Follow or choose interest 7-day signal and related keywords

Latest articles

500 articles in the current browsing window, ordered by publication date.

Beyond CRUD: Full‑Scale Production Guide for MySQL 8.4 LTS

This article walks through a complete production‑grade view of MySQL 8.4 LTS, explaining how a chain of traffic spikes, connection‑pool exhaustion, long transactions and replication lag can cause an avalanche, and then detailing the five core modules, seven production mechanisms, architectural evolution steps, incident post‑mortems, and concrete configuration and code examples to build a resilient MySQL service.

Why Zig’s Maverick Creator Challenges C, Rust, and Go After 11 Years

The article examines how Andrew Kelley built the Zig language out of frustration with existing tools, outlines Zig’s uncompromising philosophy, independent toolchain, community funding model, anti‑AI stance, and compares its safety and performance advantages against C, Rust, and Go while highlighting real‑world adopters.

How Rust Is Displacing JavaScript in Front‑End Toolchains: Insights from Rspack, Turbopack, and Bun

The article examines Lee Robinson's five‑year prediction that Rust would dominate JavaScript toolchains, showing how Rspack, Turbopack, and Bun have replaced CPU‑intensive build steps with native Rust cores while preserving JavaScript APIs, and discusses the trade‑offs and practical implications for front‑end developers.

Boosting Cosmos‑3 Training Throughput by 35% on the Same Budget with Heterogeneous GPU Clusters

By decoupling VAE encoding from the main training GPU, redesigning the data flow into a fully asynchronous pipeline, and applying dynamic scheduling, multi‑level caching, and custom operators, the Cosmos3‑Nano‑Policy‑DROID system achieves a 2.1× overall throughput with only 1.5× the hardware cost, delivering roughly 35% more training throughput for the same budget.

Why Spring Boot’s Built‑in StopWatch Is a Cleaner Way to Measure Execution Time

The article explains the drawbacks of manually using System.currentTimeMillis for multi‑stage timing, introduces Spring’s StopWatch utility from spring‑core, demonstrates its API and code examples, shows three common usage scenarios, warns about pitfalls, compares it with raw timers, and argues why Spring itself adopts StopWatch for concise, structured performance monitoring.

PostgreSQL Ops Checklist: 13 Pitfalls to Avoid (2026 Edition)

The article provides a comprehensive PostgreSQL operational self‑checklist covering CPU, memory, generic plans, idle connections, autovacuum, checkpoint and bgwriter tuning, AI workload handling, index building, replication, migration, partition management, and observability, with concrete examples, benchmarks, and practical commands.

MySQL Disk Space Explodes: How Binary Logs Become the Hidden Culprit

MySQL servers can trigger alarming disk‑space warnings even when the data directory is small, because unchecked binary logs rapidly consume storage; this article explains the log’s purpose, why it grows, how to diagnose the issue, and provides step‑by‑step cleanup, configuration, replication, monitoring, and recovery best practices.

Why Are Big Tech Companies Dropping MCP for CLI?

The article analyzes the shift from Model Context Protocol (MCP) to command‑line interfaces (CLI) for AI agents, detailing MCP’s architectural complexity, token bloat, security risks, and passive tool design, while highlighting CLI’s on‑demand loading, composability, debugging ease, and growing enterprise adoption.

How Partitioning Cut a 43‑Second PostgreSQL Query to 0.3 seconds

In a SaaS analytics platform with a 45‑billion‑row, 1.2 TB events table, the author shows how moving to native PostgreSQL range partitioning by event_time, combined with zero‑downtime migration steps, reduced the typical P99 query latency from 43 seconds to about 0.3 seconds while enabling easier data lifecycle management.

Why More Developers Are Choosing Spring WebFlux for High‑Performance Applications

Spring WebFlux replaces the thread‑per‑request model of Spring MVC with an event‑loop, non‑blocking architecture that dramatically reduces memory and CPU usage, supports back‑pressure, streaming, and GraalVM native images, making it ideal for high‑concurrency microservices while acknowledging its learning curve and debugging challenges.

Manticore Search: A High‑Performance Alternative That Could Overtake Elasticsearch

Manticore Search, a C++‑based open‑source search engine forked from Sphinx, claims to outperform Elasticsearch by up to 15× in various scenarios, offers modern multithreaded architecture, SQL compatibility, extensive client libraries, and easy Docker deployment, positioning itself as a fast, lightweight, full‑text search solution.

Why Bigger Java Thread Pools Aren’t Faster: Misconfigured Parameters Can Trigger OOM

A Java thread pool that looks larger can actually cause out‑of‑memory errors when core parameters such as core size, max size, queue type, keep‑alive time, thread factory, and rejection policy are mis‑configured, leading to uncontrolled task accumulation and resource exhaustion in production.

How Higress Serverless Enterprise Cuts Costs 90% and Boosts Auth Performance 30×

A SaaS platform’s consumer count surged from 200 to nearly 20,000, causing open‑source Higress authentication latency to jump 34‑fold and configuration size to balloon 8,457‑fold, while a local comparative test shows the Higress Enterprise Serverless edition maintains sub‑2 ms latency, 100 % success, tiny config footprints, and up to 90 % lower annual costs.

SpringBoot + Virtual Threads: Turning a Small Gun into a Cannon for IO‑Intensive Services

The article explains how most SpringBoot bottlenecks stem from IO blocking rather than CPU limits, and shows that enabling JDK 21 virtual threads with SpringBoot 3.2+ can boost IO‑bound throughput by 3‑5× while cutting memory usage over 60%, backed by detailed benchmark data and practical guidance.

When Linux CPU spikes to 99%, these 6 commands saved me three times

If a Linux server shows 99% CPU usage, don’t restart immediately; instead use a systematic chain of six diagnostic commands—uptime, top, ps, pidstat, mpstat, and sar—combined with cgroup, thread, and log analysis to pinpoint the true cause, whether user‑space computation, I/O wait, soft‑interrupts, virtualization steal, or container limits, and then apply targeted remediation.

Lesson 0005 – QA Audit Loop: Adding an Independent Quality Gate Beyond CI

This lesson extends the CI pipeline with a separate QA audit loop that checks accessibility, internationalisation, and performance, explains why QA must be independent of CI, describes the three‑dimensional audit model, provides concrete Playwright‑axe‑core and i18n‑checker scripts, and shows how to integrate Lighthouse CI and ledger updates for a complete quality sign‑off.

Spring Boot Field-Level Data Masking with ShardingSphere-Encrypt: Production Guide

This article details integrating ShardingSphere-Encrypt into Spring Boot for transparent, field-level data masking, covering architecture selection, internal SQL rewrite mechanics, YAML configuration, custom algorithm SPI, common pitfalls like fuzzy queries and sharding interactions, performance benchmarks, caching strategies, and a three-phase historical data migration approach.

Why Does Pagination Slow Down at 10 Million Records? Rethinking MySQL LIMIT in Java Backends

The article explains why deep pagination with large offsets becomes increasingly slow, why adding indexes often does not help, examines common “optimizations” like delayed joins, introduces cursor (keyset) pagination as a high‑performance alternative, and provides practical guidelines for designing pagination APIs in Java back‑ends at scale.

What TPS Threshold Defines High Concurrency in Payment Systems?

The article defines TPS (transactions per second), lists typical payment‑related operations that constitute a transaction, shows a concrete 1000‑TPS example, and presents an industry‑wide TPS classification table that helps determine when a payment system can be considered high‑concurrency, with practical thresholds for business, core, and large‑scale platforms.

Lock Optimization at Ten‑Million QPS: From Coarse Locks to Lock‑Free Designs

When a service’s QPS jumps from two to eight million, a single global lock can turn a multi‑core machine into a bottleneck, so the article walks through coarse‑lock problems, fine‑grained locking, read‑write separation, optimistic reads, CAS‑based lock‑free techniques, LongAdder and advanced data structures, showing when each step is appropriate for high‑throughput systems.

5 Spring Boot Transaction Optimizations That Drastically Boost Performance

This article examines five practical ways to improve Spring Boot 3.5.0 transaction performance—read‑only transactions, explicit propagation settings, correctly sized HikariCP pools, JDBC prepared‑statement caching, and Hibernate batch writes—showing the underlying overhead and providing concrete code and configuration examples.

14 Painful Spring Boot Cache Pitfalls and How to Build a High‑Availability Architecture

This article walks through 14 real‑world failure scenarios of Spring Boot distributed caching, explains why high cache hit rates are misleading, and provides concrete analysis, code samples, and step‑by‑step recommendations for designing a resilient cache layer that isolates faults, handles hot keys, and ensures data consistency across Redis, local caches, and databases.

Migrating a High‑Traffic Java 8 Service to JDK 21/25: Pitfalls, Compatibility Checks, and Best‑Practice SOP

The author details a production migration of a core transaction service from Java 8 to JDK 21/25—handling millions of users and 30 k QPS—by exposing runtime silent‑failure pitfalls, outlining six compatibility‑risk categories, prescribing version‑selection rules, a step‑by‑step gray‑scale upgrade and rollback plan, and quantifying performance gains such as ZGC latency reduction and AppCDS startup speedup.

What’s New in Jackson 3? A Complete Migration Guide

This article explains the major breaking changes introduced in Jackson 3—including the JDK 17 baseline, package and groupId renames, immutable JsonMapper, unchecked exceptions, default configuration shifts, performance tweaks, and module consolidation—while providing step‑by‑step migration advice and a quick‑reference table for developers upgrading from Jackson 2.

How to Quickly Spot Anomalous Requests and Attack Sources Using Nginx Logs

This article presents a step‑by‑step Nginx log‑analysis workflow that helps operators identify slow requests, 5xx spikes, CC attacks, scanners and SQL‑injection attempts by parsing access_log and error_log fields, aggregating by IP, URL, UA and time windows, and then applying rate‑limiting, map‑based blocking, geo‑blocking and firewall rules to mitigate the threats while ensuring proper log rotation and verification.

Why Spring Is Dropping Feign: A Deep Dive into @HttpExchange vs Feign

This article analyzes why Spring Framework introduced the native @HttpExchange HTTP client to replace OpenFeign, comparing their architectures, dependencies, proxy mechanisms, performance benchmarks, and offering migration guidance for developers deciding between the two declarative HTTP solutions.

Spring Boot 4’s Underrated Feature: Spring Data AOT Explained

Spring Data AOT in Spring Boot 4 moves all repository parsing, reflection and query generation to compile time, dramatically cutting startup time, reducing memory and Metaspace usage, enabling compile‑time SQL validation, simplifying GraalVM native‑image configuration, and providing measurable performance gains backed by real‑world benchmarks.

FastAPI for Java Developers: A Complete Guide to High‑Performance API Development

This article introduces FastAPI, compares it with Spring Boot and Flask, explains why its ASGI architecture delivers superior performance, provides step‑by‑step setup and code examples—including routing, validation, dependency injection, async support, database integration, unified responses, middleware, and automatic documentation—then evaluates its pros, cons, ideal use cases, and a real‑world benchmark against Spring Boot.

8 Java File‑Writing Techniques for Large Files, High Concurrency, and Cross‑Platform Scenarios

This article walks through eight Java file‑writing approaches—from the modern Files.writeString() API to low‑level FileChannel and asynchronous channels—detailing their parameters, performance characteristics, and ideal use cases such as large files, high‑throughput logging, and cross‑platform line handling.

MySQL Master‑Slave Replication: Core Architecture, GTID Setup, and Common Troubleshooting

This article provides a comprehensive, hands‑on guide to MySQL master‑slave replication, covering the underlying architecture, binlog formats, GTID and semi‑synchronous modes, detailed configuration steps, thread workflows, common failure scenarios with step‑by‑step diagnostics, and practical monitoring and failover scripts.

From 11‑Day AI‑Powered Zig‑to‑Rust Rewrite to a 487‑Day Manual Rust‑to‑Zig Rewrite

The article contrasts Bun's 11‑day AI‑driven rewrite of 500 k lines of Zig to Rust with Roc's 487‑day manual rewrite of a 300 k‑line Rust compiler to Zig, analyzing the engineering motivations, performance benchmarks, memory‑safety bug counts, and ecosystem trade‑offs that led each team to choose its language.

How Java 21 Virtual Threads Enable 100 k Threads Without Thread‑Pool Tuning

After weeks of futile thread‑pool tuning for an IO‑bound gateway, the author switched to Java 21 virtual threads, achieving stable 5,000 concurrent requests with dramatically lower P99 latency, reduced memory usage, and higher CPU efficiency, and then explains virtual‑thread internals, Scoped Values, migration steps, and limitations.

Day 24: Beyond Speed, Stability, and Security – Defining Quality Requirements with Six Elements

The article explains why vague quality goals like "fast, stable, secure" are insufficient for architecture design and shows how to turn them into measurable quality‑attribute scenarios using six fixed elements—stimulus source, stimulus, environment, artifact, response, and response metric—illustrated with concrete healthcare system examples.

8 Common SQL Mistakes That Are Destroying Your Database

The article identifies eight easy-to-overlook SQL habits—such as using SELECT *, applying functions on indexed columns, careless LIKE patterns, improper IN/OR logic, deep offset pagination, unconditional UPDATE/DELETE, excessive indexing, and ignoring execution plans—that can cause slow queries, lock tables, index failures, and even data loss, and provides concrete examples and safer alternatives.

Double or BigDecimal for Monetary Fields? Precision and Performance Trade‑offs

The article dissects the long‑standing Java debate over using double versus BigDecimal for money, explaining that the choice hinges on required precision, rounding rules, and performance limits, and walks through floating‑point fundamentals, common pitfalls, and high‑accuracy summation techniques.

Macrokernel vs Microkernel Explained: How OS Kernels Manage Hardware Resources

The article explains that an operating system kernel orchestrates all hardware resources, compares macrokernel designs like Linux that place scheduling, memory, file system, networking, and drivers in a single privileged space for speed, with microkernel designs that isolate most services in user‑mode processes, highlighting trade‑offs in performance, reliability, and modern hybrid approaches.

Building a Canvas‑Based Resume Editor: A Frontend Engineer’s Journey

The author details how a month‑long personal project uses HTML Canvas to implement a fully functional resume editor, covering custom data structures, undo/redo history, layered rendering, event handling, focus management, infinite canvas support, performance tricks, and future enhancements.

Why FastAPI Is Gaining Popularity Among Developers

FastAPI, a modern Python web framework, offers high performance, rapid development, and strong type safety, making it an attractive choice for Java developers looking to build AI services, data‑processing APIs, or micro‑services, as demonstrated by benchmark results, real‑world case studies, and a step‑by‑step implementation guide.

Deep Dive into Solon AI v4.0.3: The Seven‑Layer Java Full‑Stack Agent Framework and How to Get Started

Solon AI v4.0.3 introduces a seven‑layer Java full‑stack agent framework, unifies model access, adds robust RAG and multi‑agent capabilities, delivers benchmarked performance gains, and provides a step‑by‑step path for Java developers to build enterprise‑grade AI applications.

Choosing the Right Java LTS for Production: Lessons from 12 Years of Java 8‑25 Evolution

The article reviews the twelve‑year evolution of Java LTS releases from 8 to 25, explains the new six‑month release cadence, details common upgrade pitfalls, quantifies performance gains such as virtual threads and ZGC, and provides concrete version‑selection guidance for legacy, mid‑life, and new projects.

What Hidden Costs Does C++ new Add to Heap Allocation?

The article reveals that using C++ new or malloc is far from cost‑free, detailing how Linux virtual address space, system‑call overhead, memory‑header metadata, fragmentation, and page‑fault latency all contribute to hidden performance penalties, and it offers concrete techniques such as stack allocation, memory pools, restrained PImpl usage, and startup pre‑allocation to mitigate these costs.

Run Linux Containers Natively on Windows Without Docker: A Hands‑On Guide to WSL Containers

Microsoft’s WSL Containers, now in public preview, embed a Docker‑compatible container runtime directly into WSL 2, letting Windows developers launch OCI images with familiar commands without installing Docker Desktop, while the article walks through installation, core components, command mapping, performance benchmarks, feature gaps and current limitations.

Which Chinese LLM Provider Has the Most Stable Cache for Running Agents?

Based on real‑world request logs collected via octafuse‑gateway, the article compares cache hit rates and availability of major Chinese LLM vendors, showing that official model providers (e.g., DeepSeek, Xiaomi MiMo, Zhipu) achieve over 90 % hit rates, while cloud MaaS and Volcano Ark lag behind, especially in high‑frequency Agent scenarios.

Milvus 3.0 Streaming Architecture: 16 PChannels, Five Interceptor Layers, and a Self‑Built WAL 5.8× Faster Than Kafka

Milvus 3.0 replaces the dual‑track write path of 2.x with a unified WAL‑first design, introduces a three‑layer channel model (PChannel, VChannel, CChannel) and a five‑layer interceptor chain, adds the Woodpecker WAL that outperforms Kafka/Pulsar by up to 5.8×, and provides pluggable back‑ends, atomic broadcasting, and provable recovery mechanisms.

Why Java Developers Are Turning to FastAPI for High‑Performance APIs

This article explains why FastAPI has become popular among Java developers, comparing its high‑performance, type‑safe, async‑first design to Spring Boot and Flask, showing benchmark results, core concepts, step‑by‑step setup, pros and cons, real‑world use cases, and a practical performance comparison.

How "Cupping Game" Beats "Sheep Game": A Deep Dive into the IT Architecture and Stress‑Relief Design of a Viral Mini‑Game

The article explains how the new WeChat mini‑game “Cupping Game” builds on the success of “Sheep Game” by using a lightweight 99 MB package, a three‑layer architecture, cross‑device rendering, resource‑splitting and cloud storage to deliver smooth, stress‑relieving gameplay that’s easy for both players and IT beginners to understand.

Step‑by‑Step Guide to Diagnose 100 % CPU on a Linux Server

When a Linux server’s CPU spikes to 100 %, this article walks through a systematic investigation—from defining what “CPU 100 %” really means, gathering timestamps and metrics, using tools like top, mpstat, vmstat, pidstat, sar, perf, and strace, to tracing processes, threads, containers, and Kubernetes, building an evidence chain, applying low‑risk fixes, and verifying the resolution.

Top 10 Architecture Design Mistakes and How to Avoid Them

This guide enumerates the ten most common architecture design mistakes—over‑design, ignoring business needs, single points of failure, premature optimization, chaotic tech stacks, tight coupling, missing monitoring, security oversights, and team capability gaps—explaining their symptoms, costly consequences, and concrete best‑practice remedies, plus checklists to keep your system robust and maintainable.

Dissecting the IT Architecture Behind the Viral Mini‑Game ‘Ba Le Ge Guan’

The article explains how the new WeChat mini‑game ‘Ba Le Ge Guan’ combines a simple, stress‑relieving “cupping” puzzle with a lightweight three‑layer architecture—native engine, JavaScript game logic, and resource rendering—leveraging cross‑device rendering, vector assets, and cloud storage to deliver instant, smooth play on any device, while comparing its design to the earlier hit ‘Yang Le Ge Yang’.

API Design for Ten‑Million QPS: From Generic to Specialized, BFF vs GraphQL

When a single generic endpoint that returns over thirty fields is stressed at ten‑million queries per second, it becomes the weakest link, exposing costs of over‑fetching, downstream amplification, cache inefficiency and coupling; the article dissects these issues and shows how specialized APIs, BFF layers, and GraphQL can address them, while weighing their trade‑offs.

How AI Rewrote Bun in Rust: 1 M+ Lines, 11 Days, 64 Parallel Claude Instances

The article details a full‑scale, AI‑driven rewrite of the Bun runtime from Zig to Rust, performed by a single engineer with 64 parallel Claude agents over 11 days, producing over a million lines of Rust code, cutting memory usage, binary size, and improving performance while documenting costs, bugs, and safety reviews.

Maven 4 Arrives After 15 Years: A Complete Rewrite of the Java Build Tool

Maven 4 introduces a split Build/Consumer POM model, a rewritten parallel engine that speeds up large builds by 50‑60%, incremental build with smart caching, automatic multi‑module discovery, native BOM and JPMS support, dynamic versioning, new packaging types, enhanced security, and a migration tool, all while remaining 100% compatible with Maven 3 plugins.

Running GLM‑5.2 on AMD: 2,626 Tokens/s at Half Nvidia’s Cost

Wafer demonstrates that the open‑source GLM‑5.2 model can run on AMD’s MI355X GPU at 2,626 tokens per second with single‑stream throughput of 213 tokens per second, achieving comparable performance to Nvidia’s B200 at less than half the cost, by applying MXFP4 quantization, selecting the sglang engine, and fixing naming and kernel issues.

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.

Why Faster Java Frameworks Lose to Spring: The Economics of User Experience

The article explains that despite superior startup speed and lower memory usage, alternatives to Spring such as Vert.x, Quarkus, and Micronaut fail to displace it because developers prioritize familiar APIs, easy debugging, and a rich ecosystem, while the new Feat project demonstrates a way to keep Spring's developer experience and still achieve dramatic performance gains.

Why ‘Easy’ Isn’t ‘Simple’: The Architecture Philosophy Behind Gin’s 88k‑Star Success

Manu Martínez‑Almeida explains how Gin’s commitment to ‘Simple over Easy’—rejecting reflection‑based injection, using a minimal routing language with a radix tree, zero‑allocation context pooling, and strict backward‑compatible API design—produced a high‑performance, maintainable Go web framework that now powers hundreds of thousands of projects.

Practical Guide to Diagnosing and Fixing NFS Mount Failures

This guide explains the NFS protocol, common mount failures, five root‑cause categories, step‑by‑step installation, configuration, verification, detailed error analysis, real‑world case studies, performance tuning, automation scripts, best‑practice recommendations and monitoring techniques for reliable NFS deployments on Ubuntu 24.04 and Rocky Linux 9.5.

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.

Why Facebook Dropped Git for Mercurial: Performance and Community Factors

Facebook originally used Git but switched to Mercurial around 2012 because its massive monolithic repository caused severe performance bottlenecks, especially during file stat operations, and Git’s maintainers were unwilling to improve scalability, leading the team to evaluate alternatives like Perforce before adopting Mercurial’s clearer architecture and collaborative community.

Why Spring Boot Prefers Slice Over Page for Massive Data Sets

The article analyzes Spring Data JPA's Page and Slice pagination options, explains the hidden COUNT(*) overhead of Page, demonstrates both approaches with code examples, compares performance and UX impacts, and provides guidance on when to choose Slice for large‑scale or infinite‑scroll scenarios.

12 MyBatis‑Plus Tricks That Instantly Boost Development Efficiency

This article presents twelve practical MyBatis‑Plus techniques—including avoiding isNull checks, selecting specific fields, batch operations, EXISTS subqueries, safe ordering, LambdaQuery type safety, between clauses, index‑aware sorting, pagination limits, null‑handling, performance tracking, enum mapping, logical deletion, optimistic locking, and increment/decrement methods—to help developers write cleaner, faster, and more maintainable Java code.

How to Design Pagination for Billion‑Row Sharded Databases in an Interview

The article systematically breaks down pagination challenges in billion‑row sharded databases, compares common sharding strategies and middleware architectures, analyzes the performance drawbacks of a naïve global‑query approach, and presents several practical alternatives—including keyset pagination, two‑stage queries, index‑table tricks, and external search or NewSQL solutions—while highlighting their trade‑offs for interview discussions.

Up to 500 articles, 100 per page. The archive offers another way to explore older articles.