Tagged articles

backend

5000 articles · Page 9 of 50
Architecture Digest
Architecture Digest
May 28, 2025 · Backend Development

Spring 6.0 Core Features and Spring Boot 3.0 Breakthroughs: Virtual Threads, Declarative HTTP Clients, ProblemDetail, GraalVM Native Images, and Monitoring

This article explains the major enhancements in Spring 6.0 and Spring Boot 3.0—including a JDK 17 baseline, Project Loom virtual threads, @HttpExchange declarative HTTP clients, RFC 7807 ProblemDetail error handling, GraalVM native image support, AOT compilation, OAuth2 server setup, and Micrometer‑Prometheus monitoring—while providing a practical upgrade roadmap and code samples.

GraalVMJavaSpring
0 likes · 6 min read
Spring 6.0 Core Features and Spring Boot 3.0 Breakthroughs: Virtual Threads, Declarative HTTP Clients, ProblemDetail, GraalVM Native Images, and Monitoring
Tencent Cloud Middleware
Tencent Cloud Middleware
May 28, 2025 · Backend Development

Inside RocketMQ ConsumeQueue: Design, File-Based Indexing, and RocksDB Optimization

This article provides an in‑depth technical exploration of RocketMQ 5.0's ConsumeQueue component, explaining why it is needed, its design principles, the traditional file‑based implementation, and a performance‑focused RocksDB‑based redesign, complete with code excerpts and implementation details.

ConsumeQueueDistributedSystemsIndexing
0 likes · 25 min read
Inside RocketMQ ConsumeQueue: Design, File-Based Indexing, and RocksDB Optimization
php Courses
php Courses
May 28, 2025 · Backend Development

Using PHP str_replace for String Replacement and Deletion

This article explains PHP's str_replace function, detailing its syntax, how it searches and replaces substrings, and provides multiple examples—including simple replacement, replacing multiple characters with arrays, and deleting characters—demonstrating practical usage for efficient string manipulation.

String Manipulationbackendphp-tutorial
0 likes · 3 min read
Using PHP str_replace for String Replacement and Deletion
DeWu Technology
DeWu Technology
May 26, 2025 · Backend Development

Integrating FastAPI with MCP for AI‑Driven Test Data Generation

This article explains how to transform a FastAPI service into an MCP‑compatible tool, enabling AI agents to automatically orchestrate multi‑step test data creation, covering installation, project structure, code annotations, tool configuration, and practical integration with the Cursor platform.

AIFastAPIMCP
0 likes · 19 min read
Integrating FastAPI with MCP for AI‑Driven Test Data Generation
Top Architect
Top Architect
May 26, 2025 · Databases

Design and Implementation of MySQL Table Sharding with ShardingSphere and Spring Boot

This article walks through the full process of designing, configuring, and implementing a sharding solution for large loan and repayment tables using ShardingSphere, Spring Boot 3, MySQL, and MyBatis‑Plus, covering schema planning, data migration, DBA coordination, code examples, common pitfalls, and operational considerations.

SpringBootbackendcode
0 likes · 19 min read
Design and Implementation of MySQL Table Sharding with ShardingSphere and Spring Boot
Code Ape Tech Column
Code Ape Tech Column
May 26, 2025 · Backend Development

Automated Management of Common Fields in Order Modules Using MyBatis-Plus, AOP, and JWT

This article presents a production‑validated solution that combines MyBatis‑Plus auto‑fill, AOP, JWT, multi‑data‑source handling, distributed ID generation, performance tuning, and audit logging to eliminate repetitive maintenance of common fields such as createTime, updateTime, createUser, and updateUser in Java backend order services.

AOPJavaSpring
0 likes · 9 min read
Automated Management of Common Fields in Order Modules Using MyBatis-Plus, AOP, and JWT
php Courses
php Courses
May 26, 2025 · Backend Development

Using PHP array_filter() to Filter Arrays

This article explains the PHP array_filter() function, its signature and parameters, and demonstrates how to filter numeric arrays and associative arrays with custom callbacks through clear code examples and output results.

array filteringarray_filterbackend
0 likes · 4 min read
Using PHP array_filter() to Filter Arrays
Java Web Project
Java Web Project
May 26, 2025 · Backend Development

How to Integrate WebSocket with Spring Boot for Real‑Time Messaging

This guide walks through the problem of server‑initiated push in a Spring Boot project, explains why WebSocket is needed over HTTP, and provides step‑by‑step Maven setup, configuration classes, controller code, a test HTML page, and troubleshooting tips for proper initialization.

JavaSpringBootbackend
0 likes · 12 min read
How to Integrate WebSocket with Spring Boot for Real‑Time Messaging
FunTester
FunTester
May 26, 2025 · Backend Development

Thread‑Safe Round Robin Load Balancer Using Java AtomicInteger

This article explains how to implement a thread‑safe round‑robin load balancer in Java using AtomicInteger, discusses its advantages and limitations, provides sample code for single‑thread and multithreaded scenarios, and suggests further optimizations such as health checks, weighted routing, and dynamic server updates.

AtomicIntegerJavaRound Robin
0 likes · 11 min read
Thread‑Safe Round Robin Load Balancer Using Java AtomicInteger
BirdNest Tech Talk
BirdNest Tech Talk
May 25, 2025 · Backend Development

Simplify Go HTTP Error Handling with a Unified Wrapper Pattern

Learn how to eliminate repetitive error checks in Go HTTP servers by returning errors from handlers, defining a custom HTTPError type, wrapping handlers with an error‑handling middleware, and using concise helper functions, resulting in cleaner, more maintainable code.

MiddlewareWeb Developmentbackend
0 likes · 5 min read
Simplify Go HTTP Error Handling with a Unified Wrapper Pattern
Java Architect Essentials
Java Architect Essentials
May 23, 2025 · Backend Development

Master SpringBoot Caching: How @Cacheable Simplifies Cache Management

This article explains how SpringBoot’s @Cacheable annotation automates cache handling, reducing boilerplate code, improving performance, and simplifying maintenance, while also covering related annotations like @CacheEvict and @CachePut, with practical code examples for user and product data caching in real-world applications.

CacheableJavaPerformance
0 likes · 6 min read
Master SpringBoot Caching: How @Cacheable Simplifies Cache Management
Java Captain
Java Captain
May 23, 2025 · Backend Development

Resolving Spring Boot Resource Loading Errors When Running from a JAR

This article explains why a Spring Boot application fails to locate a template file when packaged as a JAR, details the step‑by‑step debugging process, and provides code solutions using ClassPathResource or PathMatchingResourcePatternResolver to correctly read resources inside the JAR.

DebuggingJavaSpring Boot
0 likes · 5 min read
Resolving Spring Boot Resource Loading Errors When Running from a JAR
Java Tech Enthusiast
Java Tech Enthusiast
May 23, 2025 · Databases

MySQL Indexes, ACID, Raft, and gRPC: Technical Interview Insights

This article combines a Meituan salary update with detailed explanations of MySQL indexing strategies, B‑tree variations, ACID transaction properties, isolation levels, caching, handling high‑traffic queries, the Raft consensus algorithm, and an overview of gRPC, providing comprehensive backend development knowledge for interview preparation.

ACIDDatabaseMySQL
0 likes · 17 min read
MySQL Indexes, ACID, Raft, and gRPC: Technical Interview Insights
macrozheng
macrozheng
May 23, 2025 · Backend Development

Boost Java Productivity: 17 Essential Utility Classes Every Backend Developer Should Know

This article introduces 17 practical Java utility classes—including Collections, CollectionUtils, Lists, Objects, BooleanUtils, StringUtils, Assert, IOUtils, MDC, ClassUtils, BeanUtils, ReflectionUtils, Base64Utils, StandardCharsets, DigestUtils, SerializationUtils, and HttpStatus—showing how to use them with clear code examples to streamline everyday development tasks.

JavaSpringbackend
0 likes · 30 min read
Boost Java Productivity: 17 Essential Utility Classes Every Backend Developer Should Know
php Courses
php Courses
May 23, 2025 · Backend Development

Understanding and Using PHP's array_unique() Function

This article explains the PHP array_unique() function, covering its definition, parameters, implementation, usage examples, and performance optimization techniques to efficiently remove duplicate values from arrays.

PHParray_uniquebackend
0 likes · 4 min read
Understanding and Using PHP's array_unique() Function
php Courses
php Courses
May 23, 2025 · Backend Development

Deprecated PHP Functions in PHP 8 and Their Modern Replacements

This article lists the PHP functions that have been deprecated or removed in PHP 8, explains the security and performance risks of continuing to use them, and provides modern alternatives such as closures, foreach loops, PDO/MySQLi, preg_* functions, and OpenSSL.

Code RefactoringPHPbackend
0 likes · 7 min read
Deprecated PHP Functions in PHP 8 and Their Modern Replacements
KooFE Frontend Team
KooFE Frontend Team
May 22, 2025 · Artificial Intelligence

How AG-UI Protocol Bridges AI Agents and User Interfaces for Real‑Time Collaboration

The AG-UI (Agent User Interaction) protocol standardizes communication between backend AI agents and front‑end interfaces using a single JSON event stream, addressing real‑time streaming, tool orchestration, shared state, concurrency, security, and framework fragmentation to enable seamless human‑agent collaboration.

AG-UIAI agentsbackend
0 likes · 8 min read
How AG-UI Protocol Bridges AI Agents and User Interfaces for Real‑Time Collaboration
Didi Tech
Didi Tech
May 22, 2025 · Backend Development

Why Go Services Must Be Optimized and How to Make Them Faster

Optimizing Go services is essential for saving resources, improving stability, and delivering a responsive user experience, and this guide explains the underlying mechanisms, common pitfalls, and practical techniques—from GC tuning and concurrency control to I/O tricks and profiling tools—to help developers build high‑performance, production‑ready Go applications.

GoMemoryOptimization
0 likes · 33 min read
Why Go Services Must Be Optimized and How to Make Them Faster
FunTester
FunTester
May 22, 2025 · Operations

How to Stress‑Test a WebSocket Product Query API with Java

This guide walks you through designing, implementing, and analyzing a Java‑based performance test for a WebSocket product‑query interface, covering request/response formats, thread‑driven load generation, TPS control, console metrics, and response validation techniques.

Javabackendload testing
0 likes · 9 min read
How to Stress‑Test a WebSocket Product Query API with Java
Java Architect Essentials
Java Architect Essentials
May 21, 2025 · Backend Development

How @Slf4j Instantly Simplifies Logging in Spring Boot

This article explains why repetitive logger boilerplate in Spring Boot is a problem, introduces Lombok's @Slf4j annotation that auto‑generates a logger, shows basic and advanced usage with code examples, and outlines the benefits for real‑world backend projects.

AnnotationJavaLogging
0 likes · 7 min read
How @Slf4j Instantly Simplifies Logging in Spring Boot
php Courses
php Courses
May 21, 2025 · Backend Development

Using PHP strtr() Function for Flexible String Replacement

This article explains the PHP strtr() function, its syntax, parameter options, and demonstrates several practical examples—including simple character swaps, multiple replacements, sequence replacements, and partial removals—showcasing how to efficiently perform string substitution in backend development.

backendstring-replacementstrtr
0 likes · 4 min read
Using PHP strtr() Function for Flexible String Replacement
Rare Earth Juejin Tech Community
Rare Earth Juejin Tech Community
May 21, 2025 · Backend Development

Master Node.js v24: Real‑Time Watch, Multi‑File Test, Native Env Files & Colorful Console

With Node.js v24 released, this guide demonstrates how to use the new --watch flag for live file monitoring, the --test command for multi‑file testing, native --env-file support for environment variables, colorful console output via util.styleText, and built‑in WebSocket client/server examples.

CLIConsole StylingNode.js
0 likes · 9 min read
Master Node.js v24: Real‑Time Watch, Multi‑File Test, Native Env Files & Colorful Console
Go Development Architecture Practice
Go Development Architecture Practice
May 20, 2025 · Backend Development

Mastering Dependency Injection in Go with Uber’s Dig

This article explains why and when to use dependency injection in Go, introduces the most popular DI libraries, and provides step‑by‑step examples of Dig’s core features such as container creation, providing and invoking dependencies, parameter and result objects, optional and named dependencies, groups, and a complete multi‑service HTTP demo.

Librarybackenddependency-injection
0 likes · 11 min read
Mastering Dependency Injection in Go with Uber’s Dig
Su San Talks Tech
Su San Talks Tech
May 20, 2025 · Backend Development

10 Cache Governance Rules Every Backend Engineer Should Follow

This article shares ten practical cache governance rules—from avoiding large keys and setting proper TTLs to using distributed locks and final consistency strategies—illustrated with real‑world Java examples, code snippets, and diagrams to help backend developers design reliable, high‑performance caching solutions.

RedisTTLbackend
0 likes · 12 min read
10 Cache Governance Rules Every Backend Engineer Should Follow
Top Architecture Tech Stack
Top Architecture Tech Stack
May 20, 2025 · Backend Development

Global Exception Handling in Spring Boot: Techniques and Code Examples

This article explains how to efficiently handle exceptions in Spring Boot applications by using @ControllerAdvice and @ExceptionHandler annotations, providing step-by-step code examples for custom global exception classes, error response structures, and handling specific exceptions such as business, null pointer, and type conversion errors.

ExceptionHandlingJavaREST
0 likes · 9 min read
Global Exception Handling in Spring Boot: Techniques and Code Examples
php Courses
php Courses
May 19, 2025 · Backend Development

Using PHP shuffle() to Randomly Rearrange Array Elements

This article explains the PHP shuffle() function, detailing its syntax, behavior of modifying the original indexed array, return value, usage with both indexed and associative arrays, and provides multiple code examples demonstrating random reordering and the effect on array keys.

ArrayPHPShuffle
0 likes · 5 min read
Using PHP shuffle() to Randomly Rearrange Array Elements
php Courses
php Courses
May 19, 2025 · Backend Development

PHPStan Overview: What It Is, Why Use It, Installation, Configuration, and Advanced Tips

This article introduces PHPStan, a popular PHP static analysis tool, explains its benefits, provides step‑by‑step installation and configuration instructions, demonstrates how to run analyses, interpret error reports, troubleshoot common issues, and explore advanced techniques for improving backend code quality.

PHPStanStatic Analysisbackend
0 likes · 4 min read
PHPStan Overview: What It Is, Why Use It, Installation, Configuration, and Advanced Tips
php Courses
php Courses
May 19, 2025 · Backend Development

Potential Impacts of Microsoft Not Supporting PHP 8

The article explains PHP 8’s new features and performance benefits, then outlines six ways Microsoft’s lack of Windows support could reduce compatibility, limit ecosystem growth, affect developer choices, lower confidence, curb adoption on Windows and cloud platforms.

MicrosoftWindowsbackend
0 likes · 5 min read
Potential Impacts of Microsoft Not Supporting PHP 8
Open Source Tech Hub
Open Source Tech Hub
May 18, 2025 · Backend Development

Build Real-Time TCP and WebSocket Services with GatewayWorker on Windows

This guide introduces GatewayWorker, a PHP‑based distributed TCP long-connection framework, explains its Gateway-Worker process model, and provides step-by-step Windows demo instructions for both TCP and WebSocket protocols, highlighting deployment, code changes, testing procedures, and suitable real-time communication scenarios.

GatewayWorkerPHPTCP
0 likes · 6 min read
Build Real-Time TCP and WebSocket Services with GatewayWorker on Windows
Architect's Guide
Architect's Guide
May 18, 2025 · Backend Development

Integrating DeepSeek AI with a WeChat Public Account: A Step‑by‑Step Backend Tutorial

This tutorial walks beginners through obtaining a DeepSeek API key, setting up an Alibaba Cloud ECS instance, configuring the server and WeChat public platform, installing required Python dependencies, editing configuration files, and finally running the chatbot so the public account can interact with the DeepSeek large‑language model.

APIDeepSeekPython
0 likes · 12 min read
Integrating DeepSeek AI with a WeChat Public Account: A Step‑by‑Step Backend Tutorial
FunTester
FunTester
May 18, 2025 · Backend Development

Building a High‑Performance Netty WebSocket Client for Large‑Scale Performance Testing

This article explains how to build a high‑performance Netty‑based WebSocket client for large‑scale performance testing, covering Netty fundamentals, custom handler implementation, client bootstrap configuration, message sending, connection closing, batch operations, and client encapsulation to reduce resource consumption and improve scalability.

JavaNettybackend
0 likes · 14 min read
Building a High‑Performance Netty WebSocket Client for Large‑Scale Performance Testing
Java Architect Essentials
Java Architect Essentials
May 16, 2025 · Backend Development

Simplifying Session Management in Spring Boot with @SessionAttributes

Spring Boot's @SessionAttributes annotation enables automatic session data handling, eliminating repetitive HttpSession code, simplifying development, improving maintainability, and supporting multi-attribute management and cleanup, as demonstrated through detailed examples and best practices for user login and shopping cart scenarios.

@SessionAttributesJavaSessionManagement
0 likes · 7 min read
Simplifying Session Management in Spring Boot with @SessionAttributes
php Courses
php Courses
May 16, 2025 · Backend Development

Using PHP rawurldecode() to Decode URL‑Encoded Strings

This article explains how the PHP rawurldecode() function decodes URL‑encoded strings, shows its syntax, provides a complete code example with expected output, and highlights the difference between rawurldecode() and urldecode() for handling special characters in web development.

PHPURL decodingbackend
0 likes · 4 min read
Using PHP rawurldecode() to Decode URL‑Encoded Strings
Programmer DD
Programmer DD
May 16, 2025 · Backend Development

Choosing the Right Real‑Time Web Technique: SSE, WebSocket or Long Polling?

This article compares three classic real‑time web technologies—Server‑Sent Events, WebSocket, and Long Polling—explaining their principles, Spring Boot implementations, advantages, disadvantages, and suitable scenarios to help developers select the optimal solution for live data updates.

SSESpring Bootbackend
0 likes · 6 min read
Choosing the Right Real‑Time Web Technique: SSE, WebSocket or Long Polling?
Java Architect Essentials
Java Architect Essentials
May 15, 2025 · Backend Development

How @PageableDefault Simplifies SpringBoot Pagination

The article explains how the SpringBoot @PageableDefault annotation automatically provides default pagination parameters, reducing boilerplate code, improving readability, and offering flexible control for various query endpoints in Java backend development.

AnnotationJavaPagination
0 likes · 6 min read
How @PageableDefault Simplifies SpringBoot Pagination
php Courses
php Courses
May 15, 2025 · Backend Development

Using PHP implode() to Join Array Elements into a String

This article explains how the PHP implode() function joins array elements into a string, demonstrates its basic syntax, shows how it handles sub‑arrays, and illustrates a special usage where no separator is provided, all with clear code examples.

ArrayPHPbackend
0 likes · 5 min read
Using PHP implode() to Join Array Elements into a String
Lin is Dream
Lin is Dream
May 15, 2025 · Backend Development

How to Build a Pluggable Operation Log System with AOP and Annotations in Java

This article explains a complete, reusable solution for recording operation logs in Java backend applications using Spring AOP, custom annotations, callback interfaces, and a user‑adapter to bridge third‑party logging libraries with the main program, enabling flexible storage and auditing.

AnnotationJavaOperation Log
0 likes · 8 min read
How to Build a Pluggable Operation Log System with AOP and Annotations in Java
Java Architect Essentials
Java Architect Essentials
May 14, 2025 · Backend Development

Master SpringBoot @RequestHeader: Simplify HTTP Header Binding

This article explains how SpringBoot's @RequestHeader annotation automatically binds HTTP request headers to controller method parameters, reducing boilerplate code, supporting default values and optional headers, and improving readability and development efficiency with clear code examples.

@RequestHeaderJavaSpringBoot
0 likes · 6 min read
Master SpringBoot @RequestHeader: Simplify HTTP Header Binding
Top Architecture Tech Stack
Top Architecture Tech Stack
May 14, 2025 · Backend Development

Injecting List, Array, Set, and Map from Spring Configuration Files Using @Value and EL Expressions

This article explains how to store and inject collection types such as List, array, Set, and Map in Spring configuration files, demonstrates the pitfalls of using @Value directly, and provides practical solutions using @ConfigurationProperties, EL split functions, and custom decoders for flexible and safe property binding.

EL expressionJavaSet
0 likes · 7 min read
Injecting List, Array, Set, and Map from Spring Configuration Files Using @Value and EL Expressions
Open Source Tech Hub
Open Source Tech Hub
May 14, 2025 · Backend Development

Why the PHP Foundation Is Backing FrankenPHP: Implications for Backend Development

On May 14, 2025, the PHP Foundation announced official support for the FrankenPHP project, moving it to the PHP GitHub organization, outlining new governance, collaboration processes, and future prospects that could boost visibility, community contributions, and performance‑focused deployment options for PHP back‑end applications.

CaddyFrankenPHPGitHub
0 likes · 4 min read
Why the PHP Foundation Is Backing FrankenPHP: Implications for Backend Development
Lobster Programming
Lobster Programming
May 14, 2025 · Backend Development

How to Prevent Duplicate Orders with Anti‑Replay Tokens and Redis

This article explains how to prevent duplicate order submissions during high‑traffic e‑commerce events by using a server‑generated anti‑duplicate token stored in Redis, detailing the token acquisition, validation flow, and handling of repeated requests to ensure inventory integrity and accurate financial reconciliation.

E‑commerceRedisanti-replay-token
0 likes · 4 min read
How to Prevent Duplicate Orders with Anti‑Replay Tokens and Redis
php Courses
php Courses
May 14, 2025 · Backend Development

Using PHP rawurldecode() to Decode URL‑Encoded Strings

This article explains the PHP rawurldecode() function, its syntax, how it decodes URL‑encoded strings produced by urlencode(), provides a code example, shows the output, and notes the difference from urldecode() for handling other characters.

backendphp-functionsrawurldecode
0 likes · 4 min read
Using PHP rawurldecode() to Decode URL‑Encoded Strings
php Courses
php Courses
May 14, 2025 · Backend Development

Using PHP's urlencode Function for URL Encoding

This article explains how PHP's urlencode function converts special and non‑ASCII characters into URL‑safe representations, provides example code for both English and Chinese strings, and discusses practical usage considerations such as space handling and the alternative rawurlencode function.

backendurlencodeurlencoding
0 likes · 4 min read
Using PHP's urlencode Function for URL Encoding
dbaplus Community
dbaplus Community
May 13, 2025 · Databases

Master Elasticsearch Index Design: From Mapping to Sharding Best Practices

This article provides a comprehensive guide to Elasticsearch index architecture, covering fundamental concepts, index mapping, field types, alias usage, shard and replica strategies, shard planning, resource impact, and practical recommendations for optimizing performance and stability in production environments.

Elasticsearchbackendindex design
0 likes · 21 min read
Master Elasticsearch Index Design: From Mapping to Sharding Best Practices
Code Mala Tang
Code Mala Tang
May 13, 2025 · Backend Development

Master FastAPI Testing: Unit & Integration Tests with Pytest & HTTPX

This guide walks you through setting up a FastAPI testing environment, creating a project structure, writing both unit and integration tests using pytest, httpx, and FastAPI's TestClient, and running the tests to ensure reliable, maintainable applications.

FastAPIbackendhttpx
0 likes · 6 min read
Master FastAPI Testing: Unit & Integration Tests with Pytest & HTTPX
Code Ape Tech Column
Code Ape Tech Column
May 13, 2025 · Backend Development

Elegant Multi‑Tenant Data Isolation with MyBatis‑Plus in SaaS Applications

This article explains the concept of SaaS multi‑tenant architecture, compares three data‑isolation designs, and demonstrates how to implement elegant tenant‑level data isolation in Java using MyBatis‑Plus’s tenant plugin, complete with configuration, handler code, SQL examples, and troubleshooting tips.

Data IsolationJavaSQL
0 likes · 15 min read
Elegant Multi‑Tenant Data Isolation with MyBatis‑Plus in SaaS Applications
php Courses
php Courses
May 13, 2025 · Backend Development

Understanding PHP 8.0 Named Parameters: Benefits, Drawbacks, and Best Practices

This article examines PHP 8.0's named parameters feature, outlining how passing arguments by name improves readability and flexibility, while also discussing potential drawbacks such as learning curve, verbosity, and IDE dependence, and offers practical recommendations for when to adopt this syntax.

API EvolutionPHPbackend
0 likes · 6 min read
Understanding PHP 8.0 Named Parameters: Benefits, Drawbacks, and Best Practices
Spring Full-Stack Practical Cases
Spring Full-Stack Practical Cases
May 13, 2025 · Backend Development

Master Spring Boot 3: 5 Real-World Cases & Code Samples

This article presents a curated collection of practical Spring Boot 3 examples—including JSON parsing, automatic database script execution, custom DataSource configuration, properties/YAML loading, and data binding with validation—complete with code snippets and configuration details for Java backend developers.

Databasebackendspring-boot
0 likes · 8 min read
Master Spring Boot 3: 5 Real-World Cases & Code Samples
Architect
Architect
May 12, 2025 · Backend Development

Why 500 RPS Dropped to 50 RPS: Tracing Spring Bean Creation and Thread‑Pool Bottlenecks

A ToB Java service that initially expected 500 requests per second fell to only 50 RPS under load, prompting a step‑by‑step investigation of CPU usage, lock contention, slow SQL, excessive logging, prototype‑scoped beans, and thread‑pool configuration, ultimately revealing how bean creation and async execution affect throughput.

JavaOptimizationPerformance
0 likes · 16 min read
Why 500 RPS Dropped to 50 RPS: Tracing Spring Bean Creation and Thread‑Pool Bottlenecks
DeWu Technology
DeWu Technology
May 12, 2025 · Backend Development

How DSearch Evolved: From RCU‑Based 1.0 Indexes to Async Graph‑Powered 3.0

This article provides a detailed technical walkthrough of the DSearch search engine evolution, covering the RCU‑based 1.0 index architecture, the segment‑merge enhancements in 2.0, and the async non‑blocking graph framework introduced in 3.0, together with performance benchmarks and implementation details.

Indexingasync graphbackend
0 likes · 18 min read
How DSearch Evolved: From RCU‑Based 1.0 Indexes to Async Graph‑Powered 3.0
php Courses
php Courses
May 12, 2025 · Backend Development

Using PHP is_executable() to Check File Executability

This article explains the PHP is_executable() function, its definition, parameters, return values, provides code examples, discusses important considerations, and outlines common scenarios where checking a file's executability enhances security and proper file handling.

File PermissionsPHPbackend
0 likes · 4 min read
Using PHP is_executable() to Check File Executability
Top Architecture Tech Stack
Top Architecture Tech Stack
May 11, 2025 · Backend Development

Using Java 8 Functional Interfaces to Replace Repetitive if‑else Logic

This article explains how Java 8 functional interfaces such as Function, Supplier, Consumer, and Runnable can replace repetitive if‑else statements, provides code examples for throwing exceptions, branch handling, and present‑or‑else logic, and demonstrates practical usage to improve backend code readability.

ConsumerFunctional InterfaceJava
0 likes · 6 min read
Using Java 8 Functional Interfaces to Replace Repetitive if‑else Logic
Top Architect
Top Architect
May 10, 2025 · Backend Development

Optimizing a High‑Concurrency Backend Interface: Reducing Response Time from 30 seconds to 0.8 seconds

This article presents a real‑world case study of a high‑traffic backend API that originally took 30 seconds to process over two million records, detailing problem diagnosis, SQL and Java code analysis, and a series of optimizations—including SQL rewrites, database‑side aggregation, and Caffeine caching—that ultimately cut the response time to under one second.

Caffeine cacheMyBatisPerformance
0 likes · 13 min read
Optimizing a High‑Concurrency Backend Interface: Reducing Response Time from 30 seconds to 0.8 seconds
php Courses
php Courses
May 9, 2025 · Backend Development

How to Use PHP's strlen() Function to Get String Length

This article explains PHP's built‑in strlen() function, demonstrates its usage with a complete code example, discusses the output, and highlights important considerations about byte‑based length versus character count for multibyte strings.

PHPbackendstring length
0 likes · 3 min read
How to Use PHP's strlen() Function to Get String Length
php Courses
php Courses
May 9, 2025 · Backend Development

Using PHP rename() to Rename Files and Directories

This article explains PHP's rename() function, detailing its syntax, parameters, return values, and provides example code for renaming both files and directories, along with important usage considerations, including error handling and permission requirements.

backendfile managementfilesystem
0 likes · 3 min read
Using PHP rename() to Rename Files and Directories
php Courses
php Courses
May 8, 2025 · Backend Development

Using PHP file_exists() to Check File and Directory Existence

This article explains PHP's file_exists() function, its syntax, parameters, return values, and provides example code for checking both files and directories, along with important usage notes and best practices in web development.

backendfile checkfile_exists
0 likes · 4 min read
Using PHP file_exists() to Check File and Directory Existence
php Courses
php Courses
May 8, 2025 · Backend Development

Using PHP filemtime to Retrieve File Modification Time

This article explains how to use PHP's filemtime function to obtain a file's last modification timestamp, demonstrates single‑file and multiple‑file examples with code, and shows how to format the timestamp using the date function.

backenddatefile-modification
0 likes · 4 min read
Using PHP filemtime to Retrieve File Modification Time
Shepherd Advanced Notes
Shepherd Advanced Notes
May 8, 2025 · Backend Development

Missing Parameter Validation Can Crash a Spring Boot Service – A Complete Guide

A real‑world incident where an unchecked null request parameter caused a full‑table query, massive memory usage and OOM is examined, then Spring Boot’s validation framework—including manual checks, annotation‑driven constraints, nested and group validation, and global exception handling—is demonstrated step‑by‑step with code samples.

JavaSpring BootValidation
0 likes · 18 min read
Missing Parameter Validation Can Crash a Spring Boot Service – A Complete Guide
FunTester
FunTester
May 8, 2025 · Backend Development

Mastering HTTP Timeouts: Types, Causes, and Chaos Mesh Simulations

Understanding the three HTTP timeout types—connect, write, and read—helps engineers pinpoint failures, while detailed examples of causes and observable symptoms guide troubleshooting, and step-by-step Chaos Mesh simulations demonstrate how to inject and monitor these faults to validate system resilience.

Chaos Engineeringbackendfault injection
0 likes · 17 min read
Mastering HTTP Timeouts: Types, Causes, and Chaos Mesh Simulations
IT Services Circle
IT Services Circle
May 7, 2025 · Backend Development

Understanding RocketMQ Long‑Polling Mechanism and Its Implementation

This article explains how RocketMQ implements long‑polling for message consumption, detailing the pull‑based model, the broker and consumer timeout settings, the internal suspension of pull requests, and the processing loop that resumes suspended requests to improve efficiency.

BrokerConsumerJava
0 likes · 7 min read
Understanding RocketMQ Long‑Polling Mechanism and Its Implementation
JD Tech Talk
JD Tech Talk
May 7, 2025 · Backend Development

Implementing Contract Query and Delay Operations with an MCP Server

This article describes the background, functional requirements, and a complete Node.js implementation for querying contract information and handling contract extensions using natural‑language prompts through an MCP client and server architecture.

Contract ManagementMCPbackend
0 likes · 6 min read
Implementing Contract Query and Delay Operations with an MCP Server
JD Cloud Developers
JD Cloud Developers
May 7, 2025 · Backend Development

How to Build an MCP-Powered Contract Query and Delay Service with Node.js

This article explains how to leverage the Model Context Protocol (MCP) to enable natural-language contract queries and automated contract extensions, detailing the required client‑server interactions, workflow steps, and providing a complete Node.js implementation with code snippets for both query and delay operations.

MCPNode.jsbackend
0 likes · 6 min read
How to Build an MCP-Powered Contract Query and Delay Service with Node.js
Code Ape Tech Column
Code Ape Tech Column
May 7, 2025 · Backend Development

Detailed Overview of Spring 6.0 Core Features and Spring Boot 3.0 Enhancements

This article provides a comprehensive guide to Spring 6.0’s new baseline JDK 17 requirement, virtual threads, declarative HTTP clients, RFC‑7807 ProblemDetail handling, GraalVM native image support, and Spring Boot 3.0 improvements such as Jakarta EE migration, OAuth2 authorization server, Prometheus monitoring, and practical migration steps for enterprise applications.

GraalVMJavaPrometheus
0 likes · 8 min read
Detailed Overview of Spring 6.0 Core Features and Spring Boot 3.0 Enhancements
php Courses
php Courses
May 7, 2025 · Backend Development

Using PHP's array_sum() Function to Sum Array Elements

This article explains the built‑in PHP array_sum() function, demonstrates how to use it with both indexed and associative arrays, shows how to combine it with other functions like array_map() for more complex calculations, and highlights its performance and coding advantages.

PHParray sumbackend
0 likes · 5 min read
Using PHP's array_sum() Function to Sum Array Elements
Java Architect Essentials
Java Architect Essentials
May 6, 2025 · Backend Development

How @Authenticated Simplifies SpringBoot API Security

The article explains how the @Authenticated annotation in SpringBoot can replace repetitive manual authentication code, offering automatic request validation, role‑based checks, and streamlined error handling, with practical examples and a clear list of benefits for developers.

API securityAnnotationJava
0 likes · 7 min read
How @Authenticated Simplifies SpringBoot API Security
Architect's Guide
Architect's Guide
May 6, 2025 · Backend Development

Using Lua Scripts with Spring Boot and Redis for Performance and Atomic Operations

This article explains how to integrate Lua scripts into Spring Boot applications to leverage Redis for atomic operations, performance optimization, and complex data processing, providing detailed Lua fundamentals, practical use‑cases, implementation steps, error handling, security considerations, and best‑practice recommendations.

Lua ScriptingPerformanceRedis
0 likes · 21 min read
Using Lua Scripts with Spring Boot and Redis for Performance and Atomic Operations
Liangxu Linux
Liangxu Linux
May 5, 2025 · Backend Development

How to Dynamically Block IPs with Nginx, Lua, and Redis

This guide explains how to use Nginx, Lua (via OpenResty), and Redis to automatically block any IP that exceeds 60 requests per minute, storing the blacklist in Redis with a default one‑day ban and providing performance optimizations and testing steps.

IP blockingLuaOpenResty
0 likes · 7 min read
How to Dynamically Block IPs with Nginx, Lua, and Redis
Java Architect Essentials
Java Architect Essentials
May 4, 2025 · Backend Development

Mastering Request Timeouts in SpringBoot with @Timeout Annotation

Learn how the @Timeout annotation in SpringBoot simplifies request timeout management by eliminating repetitive configuration code, offering automatic timeout control, customizable fallback methods, and improved maintainability, with practical examples and step-by-step guidance for integrating it into your APIs.

AnnotationJavaSpringBoot
0 likes · 7 min read
Mastering Request Timeouts in SpringBoot with @Timeout Annotation
Liangxu Linux
Liangxu Linux
May 4, 2025 · Backend Development

Master Nginx IP Whitelisting & Blacklisting: Simple Allow/Deny Configurations

This tutorial explains how to use Nginx’s allow and deny directives, include external whitelist files, configure the ngx_http_geo_module for IP‑based access control, and set up country‑level restrictions with the geoip module, providing concrete configuration examples and command‑line steps for both black‑ and white‑listing.

BlacklistGeoIPWhitelist
0 likes · 7 min read
Master Nginx IP Whitelisting & Blacklisting: Simple Allow/Deny Configurations
php Courses
php Courses
Apr 30, 2025 · Backend Development

How to Use PHP strlen() to Measure String Length – Syntax, Examples, and Tips

This article explains the PHP strlen() function, its syntax, and provides multiple code examples for obtaining string length, checking for empty strings, validating length limits, and handling multibyte characters, while noting the need for mb_strlen() for Unicode strings.

backendphp-tutorialstring-length
0 likes · 3 min read
How to Use PHP strlen() to Measure String Length – Syntax, Examples, and Tips
php Courses
php Courses
Apr 30, 2025 · Backend Development

Using PHP getcwd() to Retrieve the Current Working Directory

This article explains the PHP getcwd() function, demonstrates how to retrieve the current working directory with example code, discusses changing directories with chdir(), highlights potential false returns, and provides best practices for using getcwd() in server-side scripts.

PHPbackendchdir
0 likes · 4 min read
Using PHP getcwd() to Retrieve the Current Working Directory
Alibaba Cloud Developer
Alibaba Cloud Developer
Apr 29, 2025 · Backend Development

Why Streamable HTTP Beats HTTP+SSE for AI Model Communication

The article examines the new Streamable HTTP transport layer introduced in the Model Context Protocol (MCP), comparing it with the traditional HTTP+SSE approach and demonstrating its superior stability, performance, and client simplicity through architectural analysis, session management details, and extensive benchmark results.

AIMCPSSE
0 likes · 13 min read
Why Streamable HTTP Beats HTTP+SSE for AI Model Communication
Selected Java Interview Questions
Selected Java Interview Questions
Apr 29, 2025 · Backend Development

Implementing a Chain of Responsibility for an OpenAPI Interface Using Spring and Custom Components

This article explains how to split a multi‑function OpenAPI interface into independent components using the chain‑of‑responsibility pattern in Spring, detailing the abstract base class, concrete handlers, a shared context, execution order configuration, and a test controller with full code examples.

Chain of ResponsibilityDesign PatternOpenAPI
0 likes · 7 min read
Implementing a Chain of Responsibility for an OpenAPI Interface Using Spring and Custom Components
php Courses
php Courses
Apr 29, 2025 · Backend Development

Overview of PHP Caching Mechanisms

This article explains the various PHP caching layers—including OPcode, data, page, and HTTP caching—provides configuration examples, code snippets for file, Memcached, and Redis caches, and outlines best practices and invalidation strategies to improve web application performance.

MemcachedOPcachePHP
0 likes · 7 min read
Overview of PHP Caching Mechanisms
php Courses
php Courses
Apr 29, 2025 · Information Security

How to Build an OAuth2 Authorization Code Server in PHP

This article explains the OAuth2 authorization code flow and provides a step‑by‑step guide to creating a PHP‑based authorization server, including installing the bshaffer/oauth2‑server‑php library, writing the server code, setting up the MySQL client table, and testing token requests.

OAuth2PHPauthorization-server
0 likes · 6 min read
How to Build an OAuth2 Authorization Code Server in PHP
JD Cloud Developers
JD Cloud Developers
Apr 29, 2025 · Backend Development

How to Safely Use Java Shutdown Hooks to Clean Up Resources on JVM Exit

This article explains the purpose and inner workings of Java's Runtime.addShutdownHook, walks through the Runtime and ApplicationShutdownHooks source code, demonstrates practical usage with examples, discusses common scenarios, potential risks, and best‑practice solutions for reliable resource cleanup during JVM shutdown.

JVMShutdownHookbackend
0 likes · 9 min read
How to Safely Use Java Shutdown Hooks to Clean Up Resources on JVM Exit
Code Mala Tang
Code Mala Tang
Apr 29, 2025 · Backend Development

Master FastAPI Middleware: From Built‑in to Custom Auth and Logging

This guide explains how FastAPI middleware works, outlines its request‑response lifecycle, shows built‑in examples like CORS and HTTPS redirect, and demonstrates how to create custom middleware for logging, authentication, and other cross‑cutting concerns.

Loggingauthenticationbackend
0 likes · 6 min read
Master FastAPI Middleware: From Built‑in to Custom Auth and Logging