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

16 min read

NATS $G to Custom Account Migration: Stream Paths, Consumer Models & Checkpoint Resumption

This article details how to migrate NATS JetStream streams from the default $G account to custom accounts, covering cross-account import/export rules, three migration strategies (backup/restore, Leaf Node mirroring, dual-write), consumer models for competing vs independent consumption, and how durable consumer checkpoints enable seamless resumption after migration.

14 min read

Spring Boot Placeholder vs SpEL: How ${} and #{} Work Under the Hood

This article explains the differences between Spring Boot's ${} placeholder resolution and #{} SpEL evaluation, detailing their syntax, source code implementations, parsing order in @Value, common pitfalls, and why @ConfigurationProperties doesn't support SpEL.

16 min read

Why 50K Records Took 40 Seconds: The Hidden Cost of List.contains() in Loops

A permission sync task processing 50,000 records ran in 40 seconds despite sub-second SQL queries; profiling revealed the bottleneck was an O(n²) List.contains() inside a stream filter, and replacing the List with a HashSet cut the diff calculation from 38 seconds to milliseconds, demonstrating how data structure choice dominates batch performance.

12 min read

Only 8% Promoted by Instant Replies: 2026 Intelligent Message Routing Architecture

Fortune data shows only 8% of workers get promoted by instant after-hours replies, while 69% see no career benefit. The article proposes a 2026 intelligent message routing architecture using on-device LLMs (Qwen3-14B, Llama 4 Scout), rule engines, and priority-based automation (P0-P3) to replace human always-on availability, reducing off-hours interruptions by 58% and cutting P0 response time from 23 to 9 minutes in a case study.

29 min read

Go 1.27 Goroutine Leak Profiler: Detecting Permanently Blocked Goroutines in Production

Go 1.27 introduces a goroutine leak profiler that uses a modified garbage collector to identify permanently blocked goroutines on channels and sync primitives in running programs, including production, with minimal overhead and near-zero false positives, demonstrated through real-world examples from CockroachDB, etcd, Kubernetes, and Moby.

21 min read

Designing Universal Permission Systems: RBAC Models & Spring Security Implementation with JWT

This article explains RBAC permission models (RBAC0 through RBAC3) and demonstrates practical Spring Security integration covering basic setup, JWT token authentication, JSON login customization, BCrypt password encryption, and database-backed authentication with code examples.

45 min read

Kafka Exactly-Once: Idempotent Producers, Transactions & Two-Phase Commit Explained

This article explains Kafka's exactly-once semantics through idempotent producers, transactions, and read-committed isolation, detailing real incidents, configuration patterns, source-code mechanisms, and the critical boundary that Kafka transactions cannot cover external side effects, requiring application-level idempotence for true end-to-end exactly-once.

42 min read

Kafka Performance Tuning: Systematic Methodology for Bottleneck Detection & Parameter Tuning

This article presents a systematic Kafka performance tuning methodology through real incident analysis, covering write/read paths, zero-copy, batching, compression, broker thread model, partition sizing, consumer tuning, production configurations, benchmarking practices, monitoring metrics, capacity formulas, and source-code insights — emphasizing bottleneck detection before parameter changes.

14 min read

Scaling AI Agents Beyond Solo Use: Persistence, Handoff, and Execution Control

The article explains why deploying AI agents individually doesn't scale to teams, detailing required engineering capabilities: persistent task records and artifacts separate from ephemeral execution environments, execution identity tokens to prevent duplicate writes, granular permission checks for data access and sharing, and revocation handling, illustrated through an invoice reconciliation example and validated via incremental testing.

50 min read

Kafka Controller & KRaft: Why Metadata Migration Slashes Failover from 5 Minutes to 4 Seconds

This article analyzes Kafka's Controller architecture evolution from ZooKeeper to KRaft, detailing how metadata migration to an internal Raft-replicated log transforms failover from minutes-long rebuilds to seconds-long handoffs, covering deployment models, migration pitfalls, source-code mechanisms, and production monitoring strategies.

53 min read

Kafka Replication: ISR, High Watermark, and the Hidden Dangers of acks=all

This article explains Kafka's replication mechanism through ISR and high watermark, revealing why acks=all waits only for in-sync replicas, how the 30-second shrink window works, why min.insync.replicas is essential, and the trade-offs of unclean leader election, with production configurations, source code insights, and incident case studies.

39 min read

OntologyL_Cypher 2.0: Unified Chain Language for Ontology Orchestration

OntologyL_Cypher 2.0 is a domain-specific chain language that unifies ontology object manipulation, business data retrieval, spatiotemporal reasoning, OWL constraint validation, inference chaining, and write-back actions into a single readable, executable, and auditable expression, integrating with relational and graph databases while providing deterministic execution and LLM-friendly syntax.

50 min read

Kafka Storage Deep Dive: Append-Only Logs, Sparse Indexes & Compact Traps

This article dissects Kafka's on-disk storage architecture, explaining partition segments, sparse indexes, page cache reliance, flush policies, delete vs. compact cleanup, and real-world incidents like index rebuild storms and misconfigured retention, with production configs and capacity formulas.