Backend Development

Showing 100 articles max
Yumin Fish Harvest
Yumin Fish Harvest
Aug 23, 2026 · Backend Development

How to Deploy TSID for Distributed ID Generation: From Local Setup to Multi‑Cluster Kubernetes

This article walks through using the TSID library to generate 64‑bit numeric and 13‑character string IDs, shows a quick‑start Maven example, integrates the creator into Spring Boot as a singleton bean, explains node and nodeCount configuration, and details deployment strategies for fixed servers, a single Kubernetes cluster, and multiple clusters.

JavaKubernetesSpring Boot
0 likes · 16 min read
How to Deploy TSID for Distributed ID Generation: From Local Setup to Multi‑Cluster Kubernetes
LuTiao Programming
LuTiao Programming
Aug 22, 2026 · Backend Development

Why Spring Boot 4.1.1 Makes Controllers and JSON Unnecessary for Internal Microservice Calls

Spring Boot 4.1.1 now offers native gRPC support, letting Java microservices replace the usual REST controllers, DTOs, Feign clients and JSON payloads with a single .proto definition, generated code, and built‑in security, health, observability and testing features, while highlighting best practices and pitfalls.

JavaProtocol BuffersSpring Boot
0 likes · 12 min read
Why Spring Boot 4.1.1 Makes Controllers and JSON Unnecessary for Internal Microservice Calls
Ray's Galactic Tech
Ray's Galactic Tech
Aug 22, 2026 · Backend Development

High-Concurrency Wallet Design: Hot Accounts, Idempotent Deductions, and Sharding Practices

The article analyses why wallet balance deduction is more error‑prone than inventory, outlines the root causes of a real‑world 60 k TPS outage, and presents a production‑grade architecture that separates strong‑consistent user deductions from asynchronous hot‑account crediting using idempotent requests, unique DB constraints, sharding, outbox messaging, and comprehensive monitoring to guarantee financial correctness under extreme load.

High ConcurrencyOutboxTransaction
0 likes · 32 min read
High-Concurrency Wallet Design: Hot Accounts, Idempotent Deductions, and Sharding Practices
Open Source Tech Hub
Open Source Tech Hub
Aug 22, 2026 · Backend Development

Avoid Floating‑Point Errors in PHP Money Calculations with TypePHP’s Decimal Types

This article explains how PHP's floating‑point precision pitfalls can be eliminated by using TypePHP's built‑in high‑precision types—Decimal, BigInt, and BigFloat—through a complete order‑total example, detailed type‑system overview, inference rules, conversion methods, and performance‑critical tips.

BigIntDecimalHigh-Precision Arithmetic
0 likes · 11 min read
Avoid Floating‑Point Errors in PHP Money Calculations with TypePHP’s Decimal Types
LuTiao Programming
LuTiao Programming
Aug 21, 2026 · Backend Development

Spring’s New Multitenancy: Serving 1,000 Tenants with One Spring Boot App Without Hand‑Writing tenant_id

The article explains how Spring’s latest multitenancy support, combined with Spring Security, JWT and Hibernate’s @TenantId, lets a single Spring Boot application safely serve thousands of SaaS tenants by automatically isolating data, avoiding manual tenant_id filters, and handling indexes, native SQL, and async tasks.

HibernateJWTSpring
0 likes · 11 min read
Spring’s New Multitenancy: Serving 1,000 Tenants with One Spring Boot App Without Hand‑Writing tenant_id
Dabaoshi
Dabaoshi
Aug 21, 2026 · Backend Development

Concurrency Series Finale: Virtual Threads and Structured Concurrency

The article explains why platform threads are costly, how JDK 21 virtual threads eliminate that cost, and provides practical guidance on creating, using, and debugging virtual threads, including pinning pitfalls, rules against pooling, structured concurrency, ScopedValue, and a detailed model‑selection comparison.

JDK 21JavaStructured Concurrency
0 likes · 34 min read
Concurrency Series Finale: Virtual Threads and Structured Concurrency
Architect's Guide
Architect's Guide
Aug 21, 2026 · Backend Development

Designing and Implementing Robust Payment Process Logic

An in‑depth guide walks through the business background, modular decomposition, sequence diagram, and data‑structure design of payment systems, illustrating how to manage account balances, transaction logs, third‑party integration, and order models while addressing transaction consistency, locking, retries, and settlement accuracy.

Backend Developmentdata structurepayment
0 likes · 10 min read
Designing and Implementing Robust Payment Process Logic
Java Tech Workshop
Java Tech Workshop
Aug 21, 2026 · Backend Development

SpringBoot Core Annotations: @ControllerAdvice, @RestControllerAdvice, @Validated

SpringBoot developers often misuse @ControllerAdvice, @RestControllerAdvice, and @Validated, leading to uncaught exceptions, ambiguous responses, and validation errors; this article explains each annotation’s underlying mechanism, proper usage for global exception handling, data binding, request preprocessing, and group‑based validation, and provides production‑ready code examples.

ControllerAdviceGroup ValidationRestControllerAdvice
0 likes · 20 min read
SpringBoot Core Annotations: @ControllerAdvice, @RestControllerAdvice, @Validated
LuTiao Programming
LuTiao Programming
Aug 20, 2026 · Backend Development

Recreating Taobao’s 30‑Minute Unpaid Order Auto‑Close in Spring Boot Without Redis or Minute‑by‑Minute Scans

The article explains how to replace the common @Scheduled per‑minute scan or Redis TTL approach for auto‑closing unpaid orders with JobRunr’s durable delayed‑job feature in Spring Boot, detailing the implementation steps, scalability benefits, idempotent handling, and distributed execution considerations.

JobRunrSpring Bootbackground jobs
0 likes · 11 min read
Recreating Taobao’s 30‑Minute Unpaid Order Auto‑Close in Spring Boot Without Redis or Minute‑by‑Minute Scans
dbaplus Community
dbaplus Community
Aug 20, 2026 · Backend Development

Why Did the 4‑Year Rust Rewrite of curl, 95% Complete, Suddenly Get Abandoned?

The article examines curl's long‑standing C implementation, its memory‑safety vulnerabilities, a four‑year effort to replace the libcurl backend with Rust's Hyper that reached 95% completion, and the decision to drop it because maintenance costs, a fragile C‑Rust glue layer, scarce expertise, and mismatched user demand outweighed the benefits.

HyperRustcurl
0 likes · 9 min read
Why Did the 4‑Year Rust Rewrite of curl, 95% Complete, Suddenly Get Abandoned?
Coder Trainee
Coder Trainee
Aug 20, 2026 · Backend Development

How I Resolved a 1‑Million‑Message Kafka Consumer Backlog

When a Kafka topic’s consumer lag suddenly spiked to over one million messages, the author traced the issue to improper acknowledgment handling, implemented emergency scaling, corrected exception processing, added a dead‑letter queue, and created a reusable checklist to prevent future backlogs.

AcknowledgmentConsumer LagDead Letter Queue
0 likes · 7 min read
How I Resolved a 1‑Million‑Message Kafka Consumer Backlog
Cloud Architecture
Cloud Architecture
Aug 20, 2026 · Backend Development

How a JSON Schema Can Power Billions‑Daily Dynamic Forms: Enterprise‑Level Data Model Architecture

This article explains why dynamic forms are fundamentally a dynamic data‑model problem, outlines a complete enterprise‑grade architecture that compiles JSON Schema into a cached, versioned runtime, and details the end‑to‑end submission flow, multi‑tenant governance, indexing, projection, and observability needed to sustain billions of daily submissions.

Data ModelingDynamic FormsJSON Schema
0 likes · 36 min read
How a JSON Schema Can Power Billions‑Daily Dynamic Forms: Enterprise‑Level Data Model Architecture
Ray's Galactic Tech
Ray's Galactic Tech
Aug 20, 2026 · Backend Development

Payment Reconciliation: Detecting Lost Orders, Over‑payments and Auto‑Repairing Them

The article explains why successful payment does not guarantee correct accounting, defines discrepancy types such as lost orders, over‑payments and shortfalls, and presents a production‑grade reconciliation architecture with T+1 bill ingestion, shard‑based diff detection, state‑machine driven error handling, automatic repair workflows, and comprehensive monitoring.

auto-repairlost ordersmonitoring
0 likes · 45 min read
Payment Reconciliation: Detecting Lost Orders, Over‑payments and Auto‑Repairing Them
Ray's Galactic Tech
Ray's Galactic Tech
Aug 20, 2026 · Backend Development

Why Wallet Balance Shouldn't Be Calculated On‑The‑Fly: Double‑Entry Accounting, Snapshots, and Immutable Ledger Practices

The article explains that a production‑grade wallet must store balance snapshots instead of summing transaction flows, using double‑entry bookkeeping, ACID guarantees, idempotent request handling, outbox messaging, sharding, and comprehensive reconciliation to ensure correctness and high‑throughput under heavy concurrency.

High Concurrencybalance snapshotdouble-entry accounting
0 likes · 43 min read
Why Wallet Balance Shouldn't Be Calculated On‑The‑Fly: Double‑Entry Accounting, Snapshots, and Immutable Ledger Practices