Backend Development

Showing 100 articles max
liandk
liandk
Oct 5, 2026 · Backend Development

Root-Cause Analysis & Fixes for Production Dirty Data & Inconsistency

This article systematically analyzes six root causes of production data inconsistency, details fixes for five core scenarios (inventory, orders, funds, points, cache), reveals four hidden bugs, and provides a three-layer verification system, an 8-step repair SOP, and nine ironclad rules for data high availability.

Distributed TransactionsSOPcache consistency
0 likes · 16 min read
Root-Cause Analysis & Fixes for Production Dirty Data & Inconsistency
Architect's Guide
Architect's Guide
Oct 5, 2026 · Backend Development

Open-Source Tool Generates Full-Stack Spring Boot CRUD Code from DB Schema

This article introduces an open-source code generator that automatically creates complete Spring Boot CRUD layers—entities, DAOs, MyBatis mappers, services, converters, and controllers—from database schemas or SQL, featuring customizable templates with dynamic parameters and reusable code blocks for team-specific conventions.

JavaMyBatisSpring Boot
0 likes · 19 min read
Open-Source Tool Generates Full-Stack Spring Boot CRUD Code from DB Schema
TonyBai
TonyBai
Oct 5, 2026 · Backend Development

Go's 10-Year Select Proposal Revived: bradfitz's Mutex.LockChan() Demo

The article traces the 10-year history of Go issue #16620, which sought to make sync.Cond selectable, explains the level-vs-edge-triggered conflict, reviews community workarounds, and details bradfitz's new Mutex.LockChan() demo that enables cancellable locking via select.

ConcurrencyGoGo proposal
0 likes · 14 min read
Go's 10-Year Select Proposal Revived: bradfitz's Mutex.LockChan() Demo
Architect
Architect
Oct 4, 2026 · Backend Development

Building a Claude Code Mod: Hooks, State, and the Runtime Event Chain

This guide walks through building a Claude Code Mod from scratch using the Token Weather example, explaining the plugin structure, event hooks, state management, UI rendering, and the three hook patterns (observe, rewrite, answer), while comparing Claude Code's host-centric runtime control plane with DeepSeek Harness's plugin-first architecture.

Agent ToolingClaude CodeDeepSeek Harness
0 likes · 26 min read
Building a Claude Code Mod: Hooks, State, and the Runtime Event Chain
Random Bulletin
Random Bulletin
Oct 4, 2026 · Backend Development

From Hours to Minutes: Pre-Positioning Decisions to Slash Recovery Time at 10M QPS

This article decomposes recovery time into detection, decision, execution, and verification phases, showing how 10M QPS systems reduce recovery from hours to minutes by pre-positioning decisions at design time, bounding data loss via semi-sync replication, automating failover loops with fencing and quorum, and validating RTO through disciplined drills.

Capacity PlanningIncident ResponseRTO
0 likes · 34 min read
From Hours to Minutes: Pre-Positioning Decisions to Slash Recovery Time at 10M QPS
liandk
liandk
Oct 4, 2026 · Backend Development

High-Concurrency Flash Sale Architecture: Layered Rate Limiting, Overselling Prevention & Cache Protection

This article details a production-grade five-layer architecture for high-concurrency flash sale systems, covering traffic shaping via message queues, multi-level rate limiting, three-tier overselling prevention using Redis atomic operations and database optimistic locking, and solutions for cache penetration, breakdown, and avalanche, plus nine common failure scenarios and a troubleshooting SOP.

Distributed LockMessage QueueRedis
0 likes · 17 min read
High-Concurrency Flash Sale Architecture: Layered Rate Limiting, Overselling Prevention & Cache Protection
CodeSmart Hoops
CodeSmart Hoops
Oct 3, 2026 · Backend Development

Building a Custom Redis Distributed Session: Token Design, Dual-Index Storage & Atomic Login

This article walks through designing a production-grade Redis-backed distributed session system, covering why single-node sessions fail under load balancing, secure token generation with SecureRandom, dual-index Redis storage using Hash and Set with Lua atomic writes, sliding vs absolute expiration, multi-device login limits, and complete login/logout/kick-out implementation with Redisson.

Redisbackend-architecturedistributed-session
0 likes · 31 min read
Building a Custom Redis Distributed Session: Token Design, Dual-Index Storage & Atomic Login
Random Bulletin
Random Bulletin
Oct 3, 2026 · Backend Development

From Static DNS to Dynamic Traffic Scheduling: Mastering 10M QPS Failover

This article dissects why static DNS-based traffic scheduling fails at ten-million-QPS scale and how layered dynamic scheduling — across access, gateway, service, and data layers — combined with unitized routing, automated decision loops, and rigorous drill practices enables precise, reversible, and safe failover.

AnycastCanary DeploymentGSLB
0 likes · 33 min read
From Static DNS to Dynamic Traffic Scheduling: Mastering 10M QPS Failover
Architect's Guide
Architect's Guide
Oct 3, 2026 · Backend Development

NetEase Interview: Debugging 900% CPU Spikes in MySQL and Java Processes

This article details systematic troubleshooting for 900% CPU spikes in MySQL and Java processes, covering top/jstack diagnostics, show processlist analysis, index optimization, cache integration, and fixing busy-wait loops with BlockingQueue.take(), illustrated through real production case studies.

CPU troubleshootingDatabase IndexingJava thread analysis
0 likes · 12 min read
NetEase Interview: Debugging 900% CPU Spikes in MySQL and Java Processes
Java Tech Workshop
Java Tech Workshop
Oct 3, 2026 · Backend Development

LRU Cache in 3 Lines: How LinkedHashMap Does the Heavy Lifting

This article demonstrates how to build a bounded LRU cache in three lines by extending LinkedHashMap with access-order enabled and overriding removeEldestEntry, detailing the internal doubly-linked list mechanics, thread-safety limitations, memory overhead, and when to migrate to Caffeine for advanced features like TTL and high concurrency.

CachingCaffeineConcurrency
0 likes · 22 min read
LRU Cache in 3 Lines: How LinkedHashMap Does the Heavy Lifting
Yumin Fish Harvest
Yumin Fish Harvest
Oct 2, 2026 · Backend Development

Concurrent Write Correctness: Choosing Between Conditional Updates, Pessimistic/Optimistic Locks, and Distributed Locks

This article analyzes four concurrency control patterns — conditional updates, pessimistic locking, optimistic locking with version numbers, and distributed locks — using inventory deduction, order editing, and third-party push examples. It explains when each pattern applies, how to combine them with idempotency, and provides concrete SQL and Redis implementations.

Concurrency ControlRedisconditional update
0 likes · 32 min read
Concurrent Write Correctness: Choosing Between Conditional Updates, Pessimistic/Optimistic Locks, and Distributed Locks
Java Tech Enthusiast
Java Tech Enthusiast
Oct 2, 2026 · Backend Development

Spring Boot 4.1 InetAddressFilter: Built-in SSRF Protection for HTTP Clients

Spring Boot 4.1 introduces InetAddressFilter to block internal network access at the HTTP client level, replacing scattered string checks with a centralized allowlist approach. The article demonstrates configuring RestClient.Builder for external-only access, adding URI validation, disabling auto-redirects, setting timeouts, limiting response size, and enforcing secure patterns via tests and code reviews.

Backend SecurityHTTP Client SecurityInetAddressFilter
0 likes · 15 min read
Spring Boot 4.1 InetAddressFilter: Built-in SSRF Protection for HTTP Clients
Xiaolin Talks Programming
Xiaolin Talks Programming
Oct 2, 2026 · Backend Development

Spring Boot 3 + Apache Dubbo 3: Triple Protocol, Service Governance & High-Performance RPC in Practice

This article details migrating from Spring Cloud/OpenFeign to Apache Dubbo 3 with Spring Boot 3, covering Triple protocol over HTTP/2, binary serialization, service governance (timeouts, retries, load balancing), streaming, observability, and production pitfalls with benchmark comparisons showing 3-5x throughput gains.

Apache Dubbo 3HTTP/2Performance Benchmark
0 likes · 47 min read
Spring Boot 3 + Apache Dubbo 3: Triple Protocol, Service Governance & High-Performance RPC in Practice