Tagged articles

Backend

5000 articles · Page 19 of 50
php Courses
php Courses
Jul 2, 2024 · Backend Development

Using PHP trim() to Remove Whitespace and Specific Characters from Strings

This article explains PHP's trim() function, its syntax, parameters, default behavior, and demonstrates how to remove whitespace or specific characters from strings using practical code examples; it also covers optional character mask usage and highlights important considerations when trimming strings in PHP development.

BackendCodingPHP
0 likes · 3 min read
Using PHP trim() to Remove Whitespace and Specific Characters from Strings
php Courses
php Courses
Jul 2, 2024 · Backend Development

Using PHP is_object Function to Check if a Variable Is an Object

This article explains how to use PHP's built-in is_object function to determine whether a variable is an object, illustrates its syntax, provides sample code comparing an object and an array, and highlights important considerations when distinguishing between these data types.

Backendis_objectobject-check
0 likes · 3 min read
Using PHP is_object Function to Check if a Variable Is an Object
php Courses
php Courses
Jul 2, 2024 · Backend Development

Reading Large Files in PHP Using fread Line by Line

This article explains how to efficiently read large files in PHP by using the fread function to process the file line by line, includes code examples, and discusses additional techniques such as buffering, fseek positioning, and increasing memory limits to avoid memory overflow.

BackendLarge Filesfile-handling
0 likes · 4 min read
Reading Large Files in PHP Using fread Line by Line
Tencent Cloud Developer
Tencent Cloud Developer
Jul 2, 2024 · Backend Development

Mastering Backend Caching: Strategies, Types, Eviction & Common Pitfalls

An in‑depth guide to backend caching covers read‑through and cache‑aside strategies, local versus distributed caches (including Redis and Memcached), eviction algorithms such as FIFO, LRU and LFU, and tackles consistency, avalanche, penetration and breakdown issues with practical mitigation techniques.

BackendCache strategiesMemcached
0 likes · 12 min read
Mastering Backend Caching: Strategies, Types, Eviction & Common Pitfalls
Alibaba Cloud Developer
Alibaba Cloud Developer
Jul 2, 2024 · Backend Development

When Should You Send Messages in a Transaction? Real‑World Order Processing Insights

This article examines the trade‑offs of sending messages before, during, or after database persistence in order‑creation workflows, explores transaction‑message patterns, half‑message checks, and message‑table strategies, and offers practical guidance for building reliable backend messaging systems.

Backendmessage queuemessaging
0 likes · 10 min read
When Should You Send Messages in a Transaction? Real‑World Order Processing Insights
Open Source Tech Hub
Open Source Tech Hub
Jul 2, 2024 · Backend Development

How to Build RPC Services with ThinkPHP Swoole: Step-by-Step Guide

This guide explains how to set up remote procedure calls in a ThinkPHP application using the Swoole extension, covering extension installation, Composer dependencies, server and client configuration, interface definition, hot‑reload handling, and common pitfalls such as Xdebug conflicts.

BackendPHPRPC
0 likes · 6 min read
How to Build RPC Services with ThinkPHP Swoole: Step-by-Step Guide
Java Architect Essentials
Java Architect Essentials
Jul 1, 2024 · Backend Development

Pitfalls of Java Bean Property Copy Tools and Recommended Alternatives

This article explains why generic Java bean property copy utilities like Spring BeanUtils, Apache Commons BeanUtils, and CGLIB can cause runtime type conversion errors and performance issues, demonstrates the problems with code examples, and recommends using custom converters or IDE‑generated mapping code such as MapStruct for safe and efficient object transformation.

BackendBeanUtilsCGLIB
0 likes · 8 min read
Pitfalls of Java Bean Property Copy Tools and Recommended Alternatives
php Courses
php Courses
Jul 1, 2024 · Backend Development

Using array_push() to Append Elements to PHP Arrays

This article explains how the PHP array_push() function works, covering its syntax, parameters, return value, and providing clear code examples that demonstrate adding single or multiple elements to an array and retrieving the new array length.

Backendarrayarray_push
0 likes · 4 min read
Using array_push() to Append Elements to PHP Arrays
php Courses
php Courses
Jul 1, 2024 · Backend Development

Using curl_errno() in PHP to Retrieve cURL Error Codes

This article explains the PHP curl_errno() function, shows how to use it to obtain cURL error codes with example code, lists common error numbers, and demonstrates proper error handling to improve application stability.

BackendNetworkingcurl
0 likes · 4 min read
Using curl_errno() in PHP to Retrieve cURL Error Codes
php Courses
php Courses
Jun 28, 2024 · Backend Development

Using PHP usort() to Sort Arrays with Custom Comparison Functions

This article explains how PHP's usort() function sorts arrays using a user‑defined comparison function, covering its syntax, example implementations for numeric and associative arrays, and important usage considerations, including code samples, handling of return values, and common pitfalls such as stability and side effects.

Backendarray-sortingcomparison-function
0 likes · 4 min read
Using PHP usort() to Sort Arrays with Custom Comparison Functions
php Courses
php Courses
Jun 28, 2024 · Backend Development

Implementing Product Purchase Quantity Limits in a PHP E‑Commerce Store

This article explains how to implement product purchase quantity limits in a PHP‑based online store, covering database schema changes, modifications to product detail, cart, and checkout pages, Ajax‑driven updates, inventory checks, and order management to prevent overselling and improve user experience.

AJAXBackendInventory
0 likes · 4 min read
Implementing Product Purchase Quantity Limits in a PHP E‑Commerce Store
php Courses
php Courses
Jun 28, 2024 · Backend Development

Using PHP's array_replace_recursive() Function to Merge Arrays Recursively

This article explains the PHP array_replace_recursive() function, its syntax, recursive merging behavior, example usage with code snippets, output interpretation, important considerations, and a comparison with array_merge_recursive() for effective backend array handling.

BackendPHParray merging
0 likes · 4 min read
Using PHP's array_replace_recursive() Function to Merge Arrays Recursively
Spring Full-Stack Practical Cases
Spring Full-Stack Practical Cases
Jun 28, 2024 · Backend Development

Master Spring Boot 3.2.5: Custom Failure Analyzer, Environment & Web Server Settings

This guide walks through creating custom FailureAnalyzers, registering EnvironmentPostProcessors, configuring non‑web applications, switching profiles for YAML settings, altering the embedded web server, and customizing server factories in Spring Boot 3.2.5, complete with code examples and screenshots.

BackendJavafailure-analyzer
0 likes · 9 min read
Master Spring Boot 3.2.5: Custom Failure Analyzer, Environment & Web Server Settings
JavaEdge
JavaEdge
Jun 27, 2024 · Backend Development

Build a FastAPI Chatbot with LangChain and WebSocket – Step‑by‑Step Guide

This tutorial walks through installing FastAPI and related packages, creating a basic FastAPI app, adding chat, PDF, and text endpoints, integrating LangChain tools for AI responses, implementing a WebSocket echo service, and running the server with uvicorn, all illustrated with code snippets and screenshots.

APIBackendFastAPI
0 likes · 8 min read
Build a FastAPI Chatbot with LangChain and WebSocket – Step‑by‑Step Guide
Selected Java Interview Questions
Selected Java Interview Questions
Jun 27, 2024 · Backend Development

Caffeine Cache Introduction, Basics, and Spring Boot Integration

This article introduces the Java Caffeine caching library, explains its manual, loading, and async cache APIs, details eviction and refresh strategies, shows how to collect statistics, and demonstrates full integration with Spring Boot using Maven dependencies, cache annotations, constant definitions, configuration classes, and usage examples.

BackendCaffeineJava
0 likes · 16 min read
Caffeine Cache Introduction, Basics, and Spring Boot Integration
php Courses
php Courses
Jun 27, 2024 · Backend Development

Using PHP fgetc() to Read Characters from Files and User Input

This article explains the PHP fgetc() function for reading a single character from an opened file or user input, demonstrates how to open files with fopen(), shows syntax and practical examples using loops and switch statements, and provides guidance for proper usage.

BackendFile HandlingPHP
0 likes · 4 min read
Using PHP fgetc() to Read Characters from Files and User Input
php Courses
php Courses
Jun 27, 2024 · Backend Development

Using PHP’s is_numeric() Function to Determine Numeric Values

This article explains PHP’s is_numeric() function, detailing its purpose, usage, return values, and edge cases, and provides multiple code examples—including variable checks and form input validation—to help developers reliably determine whether a variable or user input is numeric.

BackendCode ExamplesPHP
0 likes · 3 min read
Using PHP’s is_numeric() Function to Determine Numeric Values
dbaplus Community
dbaplus Community
Jun 26, 2024 · Backend Development

How Bilibili Scaled Its Membership Store: Async Order Processing and Sharding Strategies

This article details how Bilibili's Membership Store tackled massive traffic spikes by optimizing call chains, introducing asynchronous order processing, and implementing a sharding strategy that split databases and tables, ultimately achieving over 4000 TPS and stable performance during large‑scale promotions.

Backendasyncorder processing
0 likes · 14 min read
How Bilibili Scaled Its Membership Store: Async Order Processing and Sharding Strategies
Zhuanzhuan Tech
Zhuanzhuan Tech
Jun 26, 2024 · Backend Development

Refactoring the Game Business Product Update MQ Consumer: Architecture, Design, and Implementation

This article details the background, problem analysis, and comprehensive refactoring plan for a game business's product update MQ consumer, outlining architectural redesign using Flyweight and Strategy patterns, phased implementation, testing strategies, idempotent handling, monitoring, and the resulting 50‑80% reduction in downstream interface calls.

BackendDesign PatternsMQ
0 likes · 13 min read
Refactoring the Game Business Product Update MQ Consumer: Architecture, Design, and Implementation
php Courses
php Courses
Jun 26, 2024 · Backend Development

How to Use PHP's usort() Function for Custom Array Sorting

This article explains the PHP usort() function, its syntax, how to write comparison callbacks, and demonstrates sorting numeric arrays, strings, and objects such as student records by age, while highlighting important usage considerations and pitfalls.

Backendarray-sortingcomparison-function
0 likes · 5 min read
How to Use PHP's usort() Function for Custom Array Sorting
php Courses
php Courses
Jun 26, 2024 · Backend Development

Implementing Purchase Quantity Limits in a PHP E‑Commerce Store

This article explains how to design the database, modify product detail, cart, and order pages, and use Ajax in PHP to enforce purchase quantity limits based on stock levels, ensuring accurate inventory management and improved user experience in online stores.

BackendInventorydatabase
0 likes · 4 min read
Implementing Purchase Quantity Limits in a PHP E‑Commerce Store
php Courses
php Courses
Jun 26, 2024 · Backend Development

Using PHP's array_replace_recursive() to Recursively Merge Arrays

This article explains the PHP function array_replace_recursive(), showing its syntax, behavior, and examples of how it recursively merges multiple arrays while handling key conflicts and offering guidance on when to use it versus array_merge_recursive().

BackendPHParray_replace_recursive
0 likes · 4 min read
Using PHP's array_replace_recursive() to Recursively Merge Arrays
Spring Full-Stack Practical Cases
Spring Full-Stack Practical Cases
Jun 26, 2024 · Backend Development

Master SpringBoot PropertySourcesPlaceholderConfigurer & PropertyOverrideConfigurer

This guide explains how to use SpringBoot's PropertySourcesPlaceholderConfigurer and PropertyOverrideConfigurer to handle missing placeholders, set default values, customize prefixes, load custom property files, and override bean properties—including nested properties—while avoiding common pitfalls like startup errors and NPEs.

BackendJavapropertyoverrideconfigurer
0 likes · 6 min read
Master SpringBoot PropertySourcesPlaceholderConfigurer & PropertyOverrideConfigurer
21CTO
21CTO
Jun 25, 2024 · Backend Development

Why PHP Climbed to #15 in TIOBE’s June Index – What’s Driving Its Resurgence?

PHP’s rise to the 15th spot in the TIOBE June ranking highlights its enduring strength in web development, driven by mature frameworks, performance gains, a vibrant community, and integration with modern tools like Docker and front‑end frameworks, while also facing future challenges in scalability and cloud‑native adoption.

BackendPerformance
0 likes · 8 min read
Why PHP Climbed to #15 in TIOBE’s June Index – What’s Driving Its Resurgence?
Architect
Architect
Jun 25, 2024 · Backend Development

Mastering Spring Transaction Hooks: Send Kafka Messages Only After Commit

This article explains how to use Spring's TransactionSynchronizationManager to detect active transactions and register callbacks that asynchronously send Kafka messages after a transaction successfully commits, ensuring data consistency in payment‑system archiving scenarios.

BackendJavaKafka
0 likes · 10 min read
Mastering Spring Transaction Hooks: Send Kafka Messages Only After Commit
Top Architect
Top Architect
Jun 25, 2024 · Backend Development

Design and Evolution of an Enterprise Unified Push Service

This article outlines the architecture, evolution stages, functional requirements, non‑functional requirements, and component design of a scalable enterprise‑level unified push service that supports multi‑channel notifications such as email, SMS, chat, and mobile push, while addressing high performance, availability, and extensibility.

BackendPush Servicenotification architecture
0 likes · 16 min read
Design and Evolution of an Enterprise Unified Push Service
Go Development Architecture Practice
Go Development Architecture Practice
Jun 25, 2024 · Backend Development

Common Go Pitfalls Every PHP Developer Should Avoid

A former PHP developer shares six typical Go programming mistakes—incorrect function syntax, map initialization, JSON struct export, slice mutation in loops, array versus slice semantics, and variable shadowing—along with corrected examples and explanations to help newcomers write idiomatic Go code.

BackendPHPbeginners
0 likes · 6 min read
Common Go Pitfalls Every PHP Developer Should Avoid
php Courses
php Courses
Jun 25, 2024 · Backend Development

Using PHP's file() Function to Read Files into an Array

This tutorial explains how PHP's file() function reads a text file, returns each line as an array element, and how optional flags like FILE_IGNORE_NEW_LINES and FILE_SKIP_EMPTY_LINES can control newline retention and empty‑line handling.

Backendarrayfile function
0 likes · 4 min read
Using PHP's file() Function to Read Files into an Array
php Courses
php Courses
Jun 25, 2024 · Backend Development

Using PHP fread() to Read Files: Syntax, Parameters, and Example

This article explains PHP’s fread() function, covering its syntax, parameters, return values, and provides a complete example demonstrating how to open a file, read its contents, handle errors, and close the file, along with notes on optional offset usage.

BackendFile HandlingPHP
0 likes · 4 min read
Using PHP fread() to Read Files: Syntax, Parameters, and Example
Sanyou's Java Diary
Sanyou's Java Diary
Jun 24, 2024 · Operations

How Visualized Full‑Chain Log Tracing Transforms Complex Business Systems

This article explains a new visualized full‑chain log tracing solution that organizes business logs by logical flow, dynamically links them during execution, and provides a visual, searchable view of the entire business process, dramatically improving issue localization in large‑scale distributed systems.

BackendOperationslog tracing
0 likes · 26 min read
How Visualized Full‑Chain Log Tracing Transforms Complex Business Systems
Selected Java Interview Questions
Selected Java Interview Questions
Jun 24, 2024 · Backend Development

Using Alibaba Druid Connection Pool in Spring Boot: Configuration, Monitoring, and Customization

This article provides a comprehensive guide on integrating Alibaba's Druid connection pool into Spring Boot applications, covering its advantages, dependency setup, detailed configuration properties, built‑in filters, monitoring pages, ad removal techniques, and programmatic access to runtime statistics.

BackendDruidJava
0 likes · 13 min read
Using Alibaba Druid Connection Pool in Spring Boot: Configuration, Monitoring, and Customization
php Courses
php Courses
Jun 24, 2024 · Backend Development

PHP Form Data Validation and Filtering Techniques

This article explains how to use PHP functions to validate required fields, email and phone formats, and to filter HTML tags, special characters, and SQL injection risks, providing code examples that help ensure secure and reliable form data handling.

Backenddata-filteringform-validation
0 likes · 4 min read
PHP Form Data Validation and Filtering Techniques
Top Architect
Top Architect
Jun 23, 2024 · Game Development

When to Use Microservices in Game Server Development: Benefits, Drawbacks, and Real‑Time Constraints

The article discusses a top architect's interview with a game company about microservice adoption, explains why real‑time performance and stateful requirements often make microservices unsuitable for game servers, and presents multiple expert opinions highlighting latency, network overhead, and team size considerations.

ArchitectureBackendPerformance
0 likes · 11 min read
When to Use Microservices in Game Server Development: Benefits, Drawbacks, and Real‑Time Constraints
Cognitive Technology Team
Cognitive Technology Team
Jun 21, 2024 · Backend Development

Setting a Global Timeout for Multi‑threaded API Calls in Java

The article explains how to enforce a global timeout for multiple concurrent API calls in Java, demonstrates the pitfalls of applying per‑task timeouts with Future#get, and presents correct solutions using ThreadPoolExecutor.invokeAll and CompletableFuture.allOf with code examples.

Backendtimeout
0 likes · 13 min read
Setting a Global Timeout for Multi‑threaded API Calls in Java
php Courses
php Courses
Jun 21, 2024 · Backend Development

Using PHP mb_strlen to Handle Multibyte Strings

This article explains how to enable the mbstring extension in PHP and use the mb_strlen function to accurately measure multibyte string lengths, including examples with UTF-8 encoding, handling empty strings, and combining with trim for robust string validation.

Backendmbstringmultibyte
0 likes · 5 min read
Using PHP mb_strlen to Handle Multibyte Strings
Code Ape Tech Column
Code Ape Tech Column
Jun 21, 2024 · Backend Development

Debugging a 100 ms Latency Bug in a Spring Boot Channel System Using Arthas

This article documents the step‑by‑step investigation of an unexpected ~100 ms response delay in a Spring Boot channel service, showing how network checks, curl tests, Arthas trace/stack commands, and source analysis revealed a Tomcat‑embed bug caused by Swagger‑ui resources and how upgrading Tomcat resolved the issue.

ArthasBackendJava
0 likes · 14 min read
Debugging a 100 ms Latency Bug in a Spring Boot Channel System Using Arthas
Java Backend Technology
Java Backend Technology
Jun 20, 2024 · Backend Development

Top 20 Essential Java Libraries Every Developer Should Know

This article presents a curated list of the most useful third‑party Java libraries—covering logging, JSON, testing, utilities, HTTP, XML, Excel, bytecode, connection pools, messaging, PDF, HTML parsing, cryptography, embedded databases, JDBC debugging, serialization, networking, and more—to help developers write efficient, maintainable code without reinventing the wheel.

BackendLibrariesdevelopment
0 likes · 13 min read
Top 20 Essential Java Libraries Every Developer Should Know
Java Tech Enthusiast
Java Tech Enthusiast
Jun 20, 2024 · Industry Insights

Why Backend Engineers Often Rise to Leadership: Three Core Reasons

The article explains that backend engineers frequently become leaders because they handle business‑critical data and architecture, possess a broader understanding of company operations, and often have more interaction‑intensive experience, making them better suited for overseeing whole projects.

BackendCareerindustry insight
0 likes · 4 min read
Why Backend Engineers Often Rise to Leadership: Three Core Reasons
php Courses
php Courses
Jun 20, 2024 · Backend Development

Using PHP ltrim() to Remove Leading Whitespace and Characters

This article explains PHP's ltrim function, its syntax, optional character mask, and provides code examples showing how to strip leading whitespace or specific characters from strings, along with notes on behavior and related functions.

BackendPHPString Manipulation
0 likes · 4 min read
Using PHP ltrim() to Remove Leading Whitespace and Characters
php Courses
php Courses
Jun 20, 2024 · Backend Development

Using PHP filetype() Function to Determine File Types

This article explains the PHP filetype() function, its prototype, parameters, return values, and provides two practical code examples—one for retrieving a single file's type and another for listing the types of all files in a directory—helping developers handle files efficiently.

BackendCode ExampleFile Handling
0 likes · 3 min read
Using PHP filetype() Function to Determine File Types
Alipay Experience Technology
Alipay Experience Technology
Jun 19, 2024 · Backend Development

How Alipay’s “Mantiantianxing” Platform Boosts Development and Operations Efficiency

This article details how Alipay’s Mantiantianxing platform was designed and built to unify page construction, fine‑grained operation, and data feedback, thereby solving low R&D and operation efficiency, reducing duplication, and enabling rapid, scalable innovation across multiple product front‑ends and back‑ends.

ArchitectureBackendOperations
0 likes · 22 min read
How Alipay’s “Mantiantianxing” Platform Boosts Development and Operations Efficiency
php Courses
php Courses
Jun 19, 2024 · Backend Development

Using PHP file_exists() to Check File and Directory Existence

This article explains the PHP 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 for reliable file system operations.

Backendfile checkfile_exists
0 likes · 4 min read
Using PHP file_exists() to Check File and Directory Existence
Code Mala Tang
Code Mala Tang
Jun 18, 2024 · Backend Development

Master Node.js Caching with lru-cache: From Basics to Advanced Techniques

Learn how to boost Node.js application performance using the popular lru-cache package, covering the LRU algorithm fundamentals, basic installation and usage, advanced features like peek, fetchMethod, and custom disposal, plus an in‑depth look at its internal Map and doubly‑linked list implementation.

BackendLRU CacheNode.js
0 likes · 9 min read
Master Node.js Caching with lru-cache: From Basics to Advanced Techniques
Top Architect
Top Architect
Jun 18, 2024 · Backend Development

Application Layering and Domain Model Conversion: Best Practices and Alibaba Specification

This article explains the importance of clear application layering, compares Alibaba's multi‑layer architecture with optimized practices, details the conversion between various domain models (DO, DTO, BO, AO, VO, Query), and provides guidelines for maintaining clean responsibilities across Controller, Service, Manager, and DAO layers.

ArchitectureBackendDAO
0 likes · 12 min read
Application Layering and Domain Model Conversion: Best Practices and Alibaba Specification
php Courses
php Courses
Jun 18, 2024 · Backend Development

Using PHP strlen() to Get String Length

This article explains PHP's strlen() function, detailing its syntax, return value, and providing multiple code examples that demonstrate how to obtain a string's length, check for emptiness, enforce length limits, and handle multibyte characters, while noting the use of mb_strlen() for Unicode strings.

BackendTutorialstring length
0 likes · 4 min read
Using PHP strlen() to Get String Length
php Courses
php Courses
Jun 18, 2024 · Backend Development

Using PHP getcwd() to Retrieve the Current Working Directory

This article explains how the PHP getcwd() function retrieves the absolute path of the current working directory, demonstrates usage with example code, discusses changing directories with chdir(), and highlights important considerations such as false returns and server‑side path differences.

BackendPHPfilesystem
0 likes · 4 min read
Using PHP getcwd() to Retrieve the Current Working Directory
MaGe Linux Operations
MaGe Linux Operations
Jun 17, 2024 · Backend Development

10 Common Go Pitfalls Every PHP Developer Should Avoid

This article shares ten frequent mistakes PHP developers encounter when switching to Go, covering function syntax, map initialization, JSON marshaling, loop variable handling, array vs slice semantics, and variable declaration nuances, each with problem description and corrected code examples.

BackendPHPTutorial
0 likes · 7 min read
10 Common Go Pitfalls Every PHP Developer Should Avoid
DaTaobao Tech
DaTaobao Tech
Jun 17, 2024 · Backend Development

Cache Consistency Issues and Solutions in a High‑Concurrency Push System

The article examines a cache‑consistency failure in Tmall International’s high‑concurrency push system, explains classic cache problems and mitigation techniques, analyzes the delete‑then‑update bug that caused null‑plan errors, and evaluates four corrective strategies ranging from double‑write to delayed double‑delete.

Backendcacheconsistency
0 likes · 13 min read
Cache Consistency Issues and Solutions in a High‑Concurrency Push System
Spring Full-Stack Practical Cases
Spring Full-Stack Practical Cases
Jun 17, 2024 · Backend Development

20 Essential Spring Boot Best Practices to Boost Your Java Backend

This article presents a comprehensive collection of Spring Boot best practices—including package structuring, design patterns, starter usage, dependency management, constructor injection, SLF4J logging, pagination, caching, exception handling, naming conventions, and code quality tools—to help developers build more efficient, maintainable, and robust Java backend applications.

BackendDesign PatternsJava
0 likes · 10 min read
20 Essential Spring Boot Best Practices to Boost Your Java Backend
php Courses
php Courses
Jun 17, 2024 · Backend Development

Using PHP's array_reverse() Function to Reverse Arrays

This article explains the PHP array_reverse() function, its syntax, optional preserve_keys parameter, and provides multiple code examples demonstrating how to reverse indexed and associative arrays and combine the function with sort() for more complex array manipulations.

BackendCode ExamplesPHP
0 likes · 3 min read
Using PHP's array_reverse() Function to Reverse Arrays
Lobster Programming
Lobster Programming
Jun 15, 2024 · Backend Development

Choosing the Right Distributed ID Generation Strategy for Scalable Systems

This guide examines ten popular distributed ID generation techniques—from simple UUIDs and database auto‑increment keys to advanced Snowflake, Redis, Zookeeper, and open‑source solutions like Baidu uid‑generator, Meituan Leaf, and Didi Tinyid—highlighting their pros, cons, and suitable scenarios for high‑traffic systems.

BackendSnowflakedistributed-id
0 likes · 8 min read
Choosing the Right Distributed ID Generation Strategy for Scalable Systems
php Courses
php Courses
Jun 14, 2024 · Backend Development

Using PHP basename() Function to Extract File Names from Paths

This article explains the PHP basename() function, its syntax, parameters, and demonstrates its usage through multiple examples showing how to extract file names from absolute and relative paths and optionally remove suffixes.

BackendPHPbasename
0 likes · 4 min read
Using PHP basename() Function to Extract File Names from Paths
Go Programming World
Go Programming World
Jun 13, 2024 · Backend Development

Using Wire for Dependency Injection in Go Web Applications: A Practical Guide

This article demonstrates how to apply Google’s Wire tool in a production‑grade Go web service, covering project layout, a four‑layer architecture, code generation for constructors, comparisons with dig and inject, and practical CLI usage to streamline dependency injection and improve development efficiency.

ArchitectureBackendDependency Injection
0 likes · 23 min read
Using Wire for Dependency Injection in Go Web Applications: A Practical Guide
Top Architect
Top Architect
Jun 13, 2024 · Backend Development

FastJSON Serialization Mechanics: Why isChinaName() Executes and How to Control Serialized Output

This article analyzes a FastJSON serialization issue where a newly added log line triggered unexpected method calls, explains the underlying ASM‑generated serializer and JavaBeanSerializer logic, demonstrates code examples, outlines common pitfalls such as @JSONField annotations and getter patterns, and proposes best‑practice conventions for reliable backend serialization.

ASMBackendJSONField
0 likes · 9 min read
FastJSON Serialization Mechanics: Why isChinaName() Executes and How to Control Serialized Output
php Courses
php Courses
Jun 13, 2024 · Backend Development

Using PHP rewind() Function to Reset the File Pointer

This article explains PHP's rewind() function, detailing its syntax, parameters, return values, and providing two practical code examples that demonstrate resetting a file pointer for both reading and writing operations within a.

BackendFile HandlingPHP
0 likes · 4 min read
Using PHP rewind() Function to Reset the File Pointer
Rare Earth Juejin Tech Community
Rare Earth Juejin Tech Community
Jun 13, 2024 · Backend Development

Comprehensive Guide to Parameter Validation in Spring Boot Backend Development

This article explains why parameter validation is essential in Java web development, compares traditional manual checks with validator libraries, demonstrates practical usage of Bean Validation, Hibernate‑Validator, and Spring Boot starter‑validation, and covers advanced topics such as nested validation, group validation, custom constraints, and the underlying validation mechanism.

BackendCustom AnnotationHibernate Validator
0 likes · 32 min read
Comprehensive Guide to Parameter Validation in Spring Boot Backend Development
Spring Full-Stack Practical Cases
Spring Full-Stack Practical Cases
Jun 13, 2024 · Backend Development

Master SpringBoot 3.2.5: 9 Essential Techniques to Access Request Data

This tutorial demonstrates nine practical ways to handle SpringBoot 3.2.5 request data, including Optional‑wrapped parameters, direct Servlet API access, retrieving the authenticated Principal, extracting method and locale, reading InputStream, using HttpEntity for headers and body, building request URIs, handling multipart parts, and passing flash attributes on redirects.

BackendJavamultipart
0 likes · 7 min read
Master SpringBoot 3.2.5: 9 Essential Techniques to Access Request Data
DevOps
DevOps
Jun 12, 2024 · Backend Development

Analysis and Implementation of Various WeChat Red Packet Distribution Algorithms in PHP

This article examines four common WeChat red packet distribution algorithms—simple random, double‑mean, line‑segment division, and array_rand optimization—explaining their principles, PHP implementations, performance characteristics, and how to verify randomness, providing code samples and comparative analysis for developers.

BackendPHPPerformance
0 likes · 13 min read
Analysis and Implementation of Various WeChat Red Packet Distribution Algorithms in PHP
Top Architect
Top Architect
Jun 12, 2024 · Backend Development

Payment Business Architecture: Process Decomposition, Sequence Design, and Structural Design

The article explains how to analyze, decompose, and design a complex payment workflow by breaking it into modules, defining pre‑payment, payment‑gateway, and post‑payment sequences, and outlining the essential data structures such as account management, transaction records, and order handling, while also highlighting practical implementation considerations.

ArchitectureBackendpayment
0 likes · 10 min read
Payment Business Architecture: Process Decomposition, Sequence Design, and Structural Design
php Courses
php Courses
Jun 12, 2024 · Backend Development

Using PHP ftell() to Retrieve the Current File Pointer Position

This article explains the PHP ftell() function, detailing its purpose, parameters, return values, and providing a complete code example that reads the first ten bytes of a file, displays the content, and shows how to obtain and output the file pointer's byte offset.

BackendCode ExampleFile Handling
0 likes · 4 min read
Using PHP ftell() to Retrieve the Current File Pointer Position
php Courses
php Courses
Jun 12, 2024 · Backend Development

Using PHP json_decode to Convert JSON Strings to PHP Variables

This article explains how PHP's json_decode function can transform JSON-formatted strings into PHP objects or associative arrays, demonstrates usage with code examples, and shows the resulting output for both object and array conversions.

BackendJSONdata conversion
0 likes · 4 min read
Using PHP json_decode to Convert JSON Strings to PHP Variables
Java Architect Essentials
Java Architect Essentials
Jun 11, 2024 · Backend Development

Why Consistent API Responses Matter: A Java Controller & AOP Guide

The article explains common pitfalls in Java API design—such as inconsistent return formats, missing error handling, irrelevant parameters, and improper use of maps or JSON strings—and demonstrates how adopting a unified ResultBean structure together with AOP can improve readability, error management, and testability of backend services.

AOPAPI DesignBackend
0 likes · 10 min read
Why Consistent API Responses Matter: A Java Controller & AOP Guide
Top Architect
Top Architect
Jun 11, 2024 · Backend Development

Designing an API Layer and BFF Architecture for a Large-Scale Supply Chain System

The article examines a large-scale supply‑chain system’s architecture, highlighting issues with service placement and dependencies, proposing an intermediate API layer for aggregation, distributed calls, and decoration, and ultimately recommending a Backend‑for‑Frontend approach to tailor APIs per client while reducing coupling.

ArchitectureBFFBackend
0 likes · 13 min read
Designing an API Layer and BFF Architecture for a Large-Scale Supply Chain System
Architecture Digest
Architecture Digest
Jun 11, 2024 · Databases

Multi‑Branch Product Sales Statistics Query Using Row Comparison in MySQL

This article explains how to design a MySQL table for product sales statistics, initialize massive test data, and compare several query strategies—including loop queries, OR‑concatenated dynamic SQL, mixed filtering, and the SQL‑92 row‑comparison technique—to efficiently retrieve sales figures for multiple business units and their products without violating development constraints.

BackendDynamic SQLMySQL
0 likes · 7 min read
Multi‑Branch Product Sales Statistics Query Using Row Comparison in MySQL
Java Tech Enthusiast
Java Tech Enthusiast
Jun 11, 2024 · Backend Development

Hot‑Pluggable AOP: Dynamic Advice Management in Spring

The article shows how to implement a hot‑plug AOP system in Spring that lets users enable or disable logging at runtime by scanning, registering, and deregistering Advice/Advisor/Pointcut beans through the bean factory, demonstrated with a REST endpoint that adds or removes a logging interceptor.

BackendDynamic PluginJava
0 likes · 9 min read
Hot‑Pluggable AOP: Dynamic Advice Management in Spring
php Courses
php Courses
Jun 11, 2024 · Backend Development

Using curl_exec() in PHP to Retrieve Web Content

This article explains how the PHP cURL library, especially the curl_exec() function, can be used to initialize a session, set options, execute HTTP requests, handle errors, and retrieve remote page content efficiently.

BackendHTTP requestWeb Scraping
0 likes · 4 min read
Using curl_exec() in PHP to Retrieve Web Content
Java Backend Technology
Java Backend Technology
Jun 10, 2024 · Fundamentals

Unlock Java 17: 10 Must‑Know Language Features That Boost Your Code

This article walks Java developers through the most useful JDK 17 enhancements—including text blocks, improved NullPointerException messages, records, the new switch expression, private interface methods, pattern matching, collection factory methods, enriched String APIs, Stream API upgrades, the modern HttpClient, JShell, direct file execution, and ZGC—showing code examples and practical benefits.

Backendjdk17new-features
0 likes · 14 min read
Unlock Java 17: 10 Must‑Know Language Features That Boost Your Code
Top Architect
Top Architect
Jun 10, 2024 · Operations

Comprehensive Guide to the Workflow System: Frameworks, Features, and Process Design

This guide details the workflow system’s underlying frameworks, functional modules, process design operations, form customization, deployment procedures, and task management features, providing a comprehensive overview for developers and administrators to effectively implement and maintain business processes.

Backendfrontendprocess design
0 likes · 10 min read
Comprehensive Guide to the Workflow System: Frameworks, Features, and Process Design
Cognitive Technology Team
Cognitive Technology Team
Jun 10, 2024 · Backend Development

Recursive Update Bug in ConcurrentHashMap.computeIfAbsent Causing Infinite Loop and CPU Spike

The article explains a bug in Java's ConcurrentHashMap.computeIfAbsent that can cause recursive updates and infinite loops, leading to CPU spikes, and shows that newer Java versions throw an IllegalStateException while recommending avoiding nested computeIfAbsent/putIfAbsent calls, with a code example.

BackendConcurrentHashMapJava
0 likes · 3 min read
Recursive Update Bug in ConcurrentHashMap.computeIfAbsent Causing Infinite Loop and CPU Spike
Test Development Learning Exchange
Test Development Learning Exchange
Jun 6, 2024 · Backend Development

Applying Python Metaclasses for Dynamic API Enhancements

This article demonstrates how Python metaclasses can be leveraged to automatically add authentication headers, manage configuration, log requests, handle exceptions, generate test cases, switch environments, validate parameters, control API versioning, register response validators, and inject dependencies, streamlining backend development.

APIBackendDesign Patterns
0 likes · 10 min read
Applying Python Metaclasses for Dynamic API Enhancements
Architect
Architect
Jun 6, 2024 · Backend Development

Why Fast‑Retry Beats Spring‑Retry for Million‑Task Scenarios

The article explains how Fast‑Retry, an asynchronous multi‑task retry framework, dramatically outperforms synchronous retry libraries like Spring‑Retry and Guava‑Retry when handling massive workloads, and provides step‑by‑step code examples, performance benchmarks, and integration tips for Java developers.

BackendJavaPerformance
0 likes · 8 min read
Why Fast‑Retry Beats Spring‑Retry for Million‑Task Scenarios
php Courses
php Courses
Jun 6, 2024 · Backend Development

Using PHP urlencode to Encode URLs with Special and Non-ASCII Characters

This article explains the importance of URL encoding for transmitting special and non-ASCII characters, demonstrates how to use PHP’s urlencode (and rawurlencode) function with example code for English and Chinese strings, and discusses practical considerations such as handling spaces in GET requests.

Backendurl-encodingweb-development
0 likes · 3 min read
Using PHP urlencode to Encode URLs with Special and Non-ASCII Characters