Tagged articles

backend

5000 articles · Page 18 of 50
php Courses
php Courses
Jul 29, 2024 · Backend Development

Using PHP’s array_unique() Function to Extract Unique Values

This article explains PHP’s built-in array_unique() function, detailing its syntax, behavior, and flags, and demonstrates how to remove duplicate values from arrays with practical code examples and real-world use cases such as data cleaning, input validation, and aggregation.

Arraysarray_uniquebackend
0 likes · 6 min read
Using PHP’s array_unique() Function to Extract Unique Values
php Courses
php Courses
Jul 29, 2024 · Mobile Development

Full-Stack APP Development with uniapp and ThinkPHP

This course teaches learners with basic front‑end skills how to combine the uniapp framework and ThinkPHP backend to build high‑performance, cross‑platform mobile applications, covering data modeling, token authentication, API design, middleware, pagination, and deployment.

Full-StackMobile AppThinkPHP
0 likes · 3 min read
Full-Stack APP Development with uniapp and ThinkPHP
Test Development Learning Exchange
Test Development Learning Exchange
Jul 28, 2024 · Backend Development

Boost API Automation Testing with Parameterized Python Decorators

This guide demonstrates how parameterized Python decorators can streamline repetitive tasks in API automation testing—handling login tokens, retries, environment selection, data‑driven tests, logging, performance monitoring, permission checks, mock responses, cleanup, and test tagging—reducing code duplication and improving maintainability.

API testingautomationbackend
0 likes · 8 min read
Boost API Automation Testing with Parameterized Python Decorators
IT Services Circle
IT Services Circle
Jul 28, 2024 · Backend Development

Root Cause Analysis of Repeated Backend Service Outages: Connection Pool Exhaustion and Slow SQL

During a Monday incident where the backend service became unavailable three times, the author details step-by-step investigations—checking frontend responses, container status, JVM and thread pool metrics, and database connection pool usage—ultimately identifying a slow, unindexed SQL query that exhausted connections, and describes the remediation and lessons learned.

Debuggingbackendconnection-pool
0 likes · 10 min read
Root Cause Analysis of Repeated Backend Service Outages: Connection Pool Exhaustion and Slow SQL
Selected Java Interview Questions
Selected Java Interview Questions
Jul 28, 2024 · Backend Development

Performance Comparison of Spring Boot Native Image vs Go and Rust

This article demonstrates how to quickly build and benchmark a Spring Boot 2.x application as a native binary, compares its startup time, memory usage, and request throughput with equivalent implementations in Go and Rust, and concludes that AOT‑processed Java offers impressive performance despite longer compilation times.

GoNative ImageRust
0 likes · 7 min read
Performance Comparison of Spring Boot Native Image vs Go and Rust
Rare Earth Juejin Tech Community
Rare Earth Juejin Tech Community
Jul 27, 2024 · Backend Development

Refactoring a Billing Service with a Responsibility‑Chain Architecture for Better Extensibility

The article explains why a complex billing module in a settlement system needs optimization, describes the problems of monolithic code and tangled responsibilities, and demonstrates a refactor using the responsibility‑chain pattern with clear, pluggable nodes, accompanied by Java code examples and best‑practice recommendations.

Design PatternsJavabackend
0 likes · 12 min read
Refactoring a Billing Service with a Responsibility‑Chain Architecture for Better Extensibility
Selected Java Interview Questions
Selected Java Interview Questions
Jul 26, 2024 · Backend Development

Zero‑Downtime SpringBoot Port Sharing: Running Two Instances on the Same Port

This article explains how to achieve seamless code updates for SpringBoot applications by allowing two instances to share the same port, detailing the underlying Tomcat embedding mechanism, DispatcherServlet handling, and providing a complete Java implementation with step‑by‑step instructions and test results.

JavaPort SharingSpringBoot
0 likes · 7 min read
Zero‑Downtime SpringBoot Port Sharing: Running Two Instances on the Same Port
JD Tech Talk
JD Tech Talk
Jul 25, 2024 · Backend Development

Design and Architecture of JD.com’s Buffalo Distributed DAG Scheduling System

The article details the design, core technical solutions, high‑availability architecture, performance optimizations, and open capabilities of Buffalo, JD.com’s distributed DAG‑based job scheduling platform that supports massive task volumes, complex dependencies, and flexible resource management.

DAGbackenddistributed scheduling
0 likes · 13 min read
Design and Architecture of JD.com’s Buffalo Distributed DAG Scheduling System
Eric Tech Circle
Eric Tech Circle
Jul 24, 2024 · Backend Development

Designing Secure Microservice Authentication with Spring Boot 3 and OAuth2

This article explains the key changes in Spring Boot 3, outlines the new OAuth2 components, and provides a detailed design for secure microservice authentication and authorization using Spring Authorization Server, JWT, API Gateway, and client applications, complete with architecture diagrams and implementation steps.

JavaOAuth2Spring Boot
0 likes · 9 min read
Designing Secure Microservice Authentication with Spring Boot 3 and OAuth2
Code Ape Tech Column
Code Ape Tech Column
Jul 24, 2024 · Backend Development

Understanding and Implementing Java SPI and Spring SPI

This article explains Java's built‑in Service Provider Interface (SPI) mechanism, demonstrates how to create interfaces, implementations, and configuration files, shows testing with ServiceLoader, and compares it to Spring's SPI implementation using spring.factories, including code examples and analysis of their advantages and limitations.

JavaSPIServiceLoader
0 likes · 7 min read
Understanding and Implementing Java SPI and Spring SPI
Test Development Learning Exchange
Test Development Learning Exchange
Jul 23, 2024 · Backend Development

Common Python Utility Interfaces: Validation, HTTP, File I/O, JSON, DateTime, Encryption, SQLite, Image Processing, Error Handling, and Config Loading

This article presents a collection of reusable Python utility interfaces—including data validation, HTTP request handling, file read/write, JSON parsing, date‑time formatting, symmetric encryption, SQLite persistence, image resizing, exception handling, and configuration loading—each illustrated with concise code examples to improve code readability and testability.

Encryptionbackenddata-validation
0 likes · 4 min read
Common Python Utility Interfaces: Validation, HTTP, File I/O, JSON, DateTime, Encryption, SQLite, Image Processing, Error Handling, and Config Loading
Selected Java Interview Questions
Selected Java Interview Questions
Jul 23, 2024 · Backend Development

Integrating URule Rule Engine into Java Projects: Installation, Configuration, and Sample Code

This article explains the background, features, installation steps, core concepts, library definitions, rule set creation (wizard and script), decision tables, practical usage scenarios, and provides complete Java and configuration code examples for integrating the URule rule engine in a Spring Boot backend application.

ConfigurationJavaRule Engine
0 likes · 15 min read
Integrating URule Rule Engine into Java Projects: Installation, Configuration, and Sample Code
php Courses
php Courses
Jul 23, 2024 · Backend Development

Using PHP in_array() Function: Syntax, Parameters, and Practical Examples

This article explains the PHP in_array() function, detailing its syntax, parameters, and three practical examples that demonstrate value searching, strict type checking, and retrieving keys, helping developers improve array handling efficiency and code readability.

ArrayPHPbackend
0 likes · 4 min read
Using PHP in_array() Function: Syntax, Parameters, and Practical Examples
php Courses
php Courses
Jul 23, 2024 · Backend Development

Why Build a Custom PHP Framework and Course Outline

This article explains the benefits of creating a custom PHP framework—such as meeting specific needs, learning core concepts, ensuring maintainability, optimizing performance, improving usability, and enhancing security—and provides a detailed chapter and section outline for a tutorial covering MVC, routing, design patterns, configuration, and database handling.

MVCPHPbackend
0 likes · 3 min read
Why Build a Custom PHP Framework and Course Outline
Selected Java Interview Questions
Selected Java Interview Questions
Jul 22, 2024 · Backend Development

Using a Database as a Central Configuration Center in SpringBoot

This article analyzes the problems of scattered property configuration in SpringBoot projects, designs a database table to store configuration items, implements a configuration loader that injects database values into the Spring environment, and demonstrates testing and best‑practice considerations for a robust backend configuration solution.

ConfigurationDatabaseJava
0 likes · 11 min read
Using a Database as a Central Configuration Center in SpringBoot
php Courses
php Courses
Jul 22, 2024 · Backend Development

Using PHP mysqli_query to Execute MySQL Queries

This article explains how to use PHP's mysqli_query function to perform MySQL operations such as SELECT, INSERT, UPDATE, and DELETE, including a full example that creates a connection, runs a query, processes results, and closes the connection.

DatabaseMySQLiPHP
0 likes · 4 min read
Using PHP mysqli_query to Execute MySQL Queries
php Courses
php Courses
Jul 22, 2024 · Backend Development

Using PHP's str_replace Function for String Replacement and Deletion

This article explains how PHP's str_replace function works, shows its syntax, and provides three practical examples—simple replacement, multiple replacements using an array, and character deletion—demonstrating how to manipulate strings efficiently in backend development.

PHPbackendstr_replace
0 likes · 3 min read
Using PHP's str_replace Function for String Replacement and Deletion
Selected Java Interview Questions
Selected Java Interview Questions
Jul 20, 2024 · Backend Development

Introduction and Usage Guide for MyBatis-Mate: Enterprise Features for MyBatis-Plus

This article introduces MyBatis-Mate, an official MyBatis‑Plus extension offering enterprise‑level capabilities such as dictionary binding, field encryption, data masking, dynamic DDL maintenance, sharding, multi‑datasource switching, performance logging, and data permission control, with detailed Spring Boot integration examples.

JavaMyBatisSpring Boot
0 likes · 15 min read
Introduction and Usage Guide for MyBatis-Mate: Enterprise Features for MyBatis-Plus
Top Architect
Top Architect
Jul 19, 2024 · Databases

Design and Implementation of Database Table Sharding for a Loan Repayment System

The article details a real‑world backend engineering project where a loan repayment service is refactored to use table sharding with ShardingSphere, covering design decisions, table naming, sharding algorithms, historical data migration, dynamic switches, transaction management, code examples, and practical pitfalls.

DatabaseMySQLbackend
0 likes · 19 min read
Design and Implementation of Database Table Sharding for a Loan Repayment System
php Courses
php Courses
Jul 19, 2024 · Backend Development

How to Use PHP strlen() to Get String Length

This article explains how the PHP strlen() function works to determine the length of a string, provides a clear example with code, discusses the difference between byte and character counts, and highlights important considerations regarding character encoding when using strlen in backend development.

Codingbackendstring length
0 likes · 4 min read
How to Use PHP strlen() to Get String Length
php Courses
php Courses
Jul 19, 2024 · Backend Development

10 Innovative PHP Project Ideas to Elevate Your Portfolio

This article presents ten carefully crafted PHP project concepts—from building a custom MVC framework and implementing data import/export to creating QR code generators and event management tools—each designed to showcase backend expertise and enhance a developer's professional portfolio.

MVCPHPbackend
0 likes · 7 min read
10 Innovative PHP Project Ideas to Elevate Your Portfolio
php Courses
php Courses
Jul 18, 2024 · Backend Development

Using PHP is_bool() to Check Whether a Variable Is Boolean

This article explains how to use PHP's built-in is_bool() function to determine whether a variable holds a boolean value, provides clear code examples with four different variables, shows the expected output, and discusses why certain values are not considered booleans.

PHPType Checkingbackend
0 likes · 4 min read
Using PHP is_bool() to Check Whether a Variable Is Boolean
php Courses
php Courses
Jul 18, 2024 · Backend Development

Adjust Image Hue Using PHP Imagick

This guide explains how to install the Imagick extension for PHP, create an Imagick object, load an image, adjust its brightness, saturation, and hue using modulateImage, and then save or output the modified image, providing a complete example code snippet.

Hue AdjustmentPHPbackend
0 likes · 3 min read
Adjust Image Hue Using PHP Imagick
php Courses
php Courses
Jul 18, 2024 · Backend Development

Using PHP is_string() to Check if a Variable Is a String

This article explains the PHP is_string() function, its simple syntax, and demonstrates with example code how to check variables like $name, $age, and $city to determine whether they are strings, including best practices for input validation.

PHPbackendis_string
0 likes · 4 min read
Using PHP is_string() to Check if a Variable Is a String
Spring Full-Stack Practical Cases
Spring Full-Stack Practical Cases
Jul 18, 2024 · Backend Development

6 Proven Strategies to Eliminate if‑else in Spring Boot Projects

This article explains why excessive if‑else statements hurt Spring Boot code and presents six practical techniques—including strategy pattern, enums, polymorphism, lambda expressions, command pattern, and guard clauses—along with complete Java examples to make your backend more modular, readable, and maintainable.

JavaRefactoringbackend
0 likes · 10 min read
6 Proven Strategies to Eliminate if‑else in Spring Boot Projects
Sohu Tech Products
Sohu Tech Products
Jul 17, 2024 · Backend Development

Mastering Elasticsearch: Painless Scripts for Advanced Array Operations

This article provides a step‑by‑step guide on using Elasticsearch’s Painless scripting language to create, index, and manipulate array‑type fields, covering basic operations like length and element access, as well as advanced aggregations, filtering, and weighted calculations, while highlighting performance considerations.

ArrayData ProcessingElasticsearch
0 likes · 9 min read
Mastering Elasticsearch: Painless Scripts for Advanced Array Operations
php Courses
php Courses
Jul 17, 2024 · Backend Development

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

This article explains PHP's fgetc() function for reading single characters from files or user input, demonstrates opening files with fopen(), shows loop-based character reading, and provides complete code examples for both file and interactive input scenarios.

PHPbackendfgetc
0 likes · 4 min read
Using PHP fgetc() to Read Characters from Files and User Input
Architect
Architect
Jul 16, 2024 · Backend Development

Design and Implementation of a FIFO Export Queue for Large Data Exports in Java

This article explains how to handle massive MySQL export operations by introducing a fixed‑size FIFO queue, detailing the Java classes ExportQueue, AbstractExport, and ExportImpl, and showing a test controller that demonstrates queue limits, concurrency handling, and future considerations.

Export QueueFIFOJava
0 likes · 11 min read
Design and Implementation of a FIFO Export Queue for Large Data Exports in Java
Architect's Guide
Architect's Guide
Jul 16, 2024 · Backend Development

Refactoring Spring Boot Controllers: From Messy to Elegant

The article critiques overly complex Spring Boot controllers filled with repetitive validation and business logic, demonstrates cleaner implementations using @Valid, Assert, and global exception handling, and provides practical code examples and guidelines for building maintainable backend controllers.

@ValidExceptionHandlingJava
0 likes · 10 min read
Refactoring Spring Boot Controllers: From Messy to Elegant
Lobster Programming
Lobster Programming
Jul 16, 2024 · Frontend Development

Mastering CORS: 6 Practical Solutions for Frontend‑Backend Integration

This article explains why browsers enforce same‑origin policy, how cross‑origin requests affect front‑end and back‑end communication, and presents six common solutions—including JSONP, Spring @CrossOrigin, WebMvcConfigurer, CorsFilter, Nginx proxy, and other advanced techniques—complete with code examples.

CORSCross-Originbackend
0 likes · 8 min read
Mastering CORS: 6 Practical Solutions for Frontend‑Backend Integration
php Courses
php Courses
Jul 15, 2024 · Backend Development

Understanding PHP's array_key_first() Function: Syntax, Usage, and Examples

This article introduces PHP 7.3's new array_key_first() function, explains its syntax, demonstrates usage with examples for retrieving the first key and checking for empty arrays, discusses practical scenarios, and highlights precautions when arrays contain null values.

array functionsarray_key_firstbackend
0 likes · 3 min read
Understanding PHP's array_key_first() Function: Syntax, Usage, and Examples
Top Architect
Top Architect
Jul 14, 2024 · Backend Development

Designing Complex Payment Systems: Architecture, Process Decomposition, and Best Practices

The article outlines the challenges of payment systems, detailing business background, process decomposition, flow sequencing, structural design, related product and coupon management, and summarizes key technical considerations such as transaction management, locking, retry mechanisms, and fund settlement for robust backend development.

architecturebackendpayment
0 likes · 12 min read
Designing Complex Payment Systems: Architecture, Process Decomposition, and Best Practices
Architect
Architect
Jul 12, 2024 · Backend Development

How to Prevent Message Loss and Duplication in Kafka and RocketMQ

This article analyzes the root causes of message loss and duplication in modern message queues, explains how synchronous and asynchronous sending affect reliability, compares storage strategies like sync‑flush and broker clustering, and offers concrete idempotent handling techniques using database constraints and Redis.

KafkaMessage QueueMessage reliability
0 likes · 8 min read
How to Prevent Message Loss and Duplication in Kafka and RocketMQ
Top Architect
Top Architect
Jul 12, 2024 · Backend Development

Traffic Governance and High Availability in Backend Systems: Circuit Breakers, Isolation, Retries, Timeouts, and Rate Limiting

This article explains how high‑availability backend systems use traffic governance techniques—including circuit breakers, various isolation strategies, retry and timeout policies, degradation mechanisms, and rate‑limiting—to maintain balanced data flow, prevent cascading failures, and ensure performance, scalability, and reliability.

Retrybackendcircuit-breaker
0 likes · 30 min read
Traffic Governance and High Availability in Backend Systems: Circuit Breakers, Isolation, Retries, Timeouts, and Rate Limiting
php Courses
php Courses
Jul 12, 2024 · Backend Development

How to Use PHP strlen() to Get String Length

This article explains how PHP's built‑in strlen() function works to calculate a string's length, provides a clear example with code, discusses its byte‑based return value and the implications for multibyte characters, and offers practical guidance for using it correctly in backend development.

backendprogrammingstring length
0 likes · 3 min read
How to Use PHP strlen() to Get String Length
php Courses
php Courses
Jul 12, 2024 · Backend Development

Using PHP rename() Function to Rename Files and Directories

The article explains PHP's rename() function, detailing its syntax, required $source and $target parameters, return values, and provides clear examples for renaming both files and directories, along with important permission considerations and a concise summary of its usage.

File Handlingbackendfilesystem
0 likes · 3 min read
Using PHP rename() Function to Rename Files and Directories
Architecture Digest
Architecture Digest
Jul 11, 2024 · Backend Development

MyBatis-Plus Data Permission Interceptor: Annotation, Interceptor, and Role-Based Scope Implementation

This guide explains how to implement data permission control in MyBatis-Plus by creating a custom annotation, an interceptor that modifies SQL before execution, a handler that builds WHERE clauses based on user roles, and how to register the interceptor in the MyBatis-Plus plugin, covering both basic and advanced versions.

Data PermissionInterceptorJava
0 likes · 13 min read
MyBatis-Plus Data Permission Interceptor: Annotation, Interceptor, and Role-Based Scope Implementation
Top Architect
Top Architect
Jul 11, 2024 · Information Security

Why Many Developers Discourage Using JWT (JSON Web Token)

This article explains what JWT is, how it works in authentication flows, and details its major drawbacks—including large token size, redundant signatures, revocation difficulties, stale data risks, and lack of encryption—while concluding that JWT may be suitable only for short‑lived, single‑use scenarios.

JWTbackendsecurity
0 likes · 9 min read
Why Many Developers Discourage Using JWT (JSON Web Token)
php Courses
php Courses
Jul 11, 2024 · Backend Development

Using PHP's urldecode() Function: Concepts, Syntax, and Examples

This article explains PHP's urldecode() function, covering URL encoding basics, the function's prototype, usage examples with code demonstrating encoding with urlencode() and decoding back to the original string, and notes on limitations and the alternative rawurldecode() for non‑ASCII characters.

PHPbackendphp-functions
0 likes · 3 min read
Using PHP's urldecode() Function: Concepts, Syntax, and Examples
Architect's Guide
Architect's Guide
Jul 11, 2024 · Backend Development

Using Spring Transaction Hooks to Send Kafka Messages After Commit

This article demonstrates how to leverage Spring's TransactionSynchronizationManager to detect active transactions and register synchronization callbacks that asynchronously push payment‑ledger messages to Kafka only after the transaction successfully commits, ensuring data consistency and minimal impact on the main business flow.

JavaKafkaSpring
0 likes · 9 min read
Using Spring Transaction Hooks to Send Kafka Messages After Commit
Rare Earth Juejin Tech Community
Rare Earth Juejin Tech Community
Jul 11, 2024 · Backend Development

Implementing Online User Counting with Redis Sorted Sets (zset)

This article explains how to track online users by assigning each user a unique identifier, storing it in a Redis sorted set with an expiration timestamp, and using zadd, zrangeByScore, zremrangeByScore, and zrem commands together with browser fingerprinting to reliably count and clean up active sessions.

JavaScriptRedisZSet
0 likes · 7 min read
Implementing Online User Counting with Redis Sorted Sets (zset)
MaGe Linux Operations
MaGe Linux Operations
Jul 10, 2024 · Backend Development

How tunny Implements a Simple Goroutine Resource Pool in Go

This article explains how the tunny library wraps goroutine processing units into a workWrapper to limit concurrency, describes the workerWrapper.run flow that queues workRequests via reqChan, details the workRequest structure with jobChan and retChan, and outlines the required Worker interface methods for custom processing.

Gobackendresource pool
0 likes · 3 min read
How tunny Implements a Simple Goroutine Resource Pool in Go
php Courses
php Courses
Jul 10, 2024 · Backend Development

Using PHP's array_pop to Remove and Return the Last Element of an Array

This article explains how PHP's array_pop function removes and returns the last element of an array, demonstrates its syntax, provides a complete code example, and shows the resulting output, helping developers efficiently manipulate array data in backend applications.

array manipulationarray_popbackend
0 likes · 3 min read
Using PHP's array_pop to Remove and Return the Last Element of an Array
21CTO
21CTO
Jul 9, 2024 · Backend Development

Which PHP Versions Dominate Packagist? A Six‑Month Usage Deep Dive

This article analyzes six‑month PHP version adoption trends in the Packagist ecosystem, presenting detailed usage percentages, six‑month growth rates, and the minimum PHP versions required by the most popular Composer packages, highlighting a shift toward newer releases and the importance of raising baseline requirements.

PackagistVersion Usagebackend
0 likes · 6 min read
Which PHP Versions Dominate Packagist? A Six‑Month Usage Deep Dive
Architect
Architect
Jul 9, 2024 · Backend Development

Mastering Distributed Locks with Redis: From Simple SETNX to RedLock and Redisson

This article explains how to implement distributed locks using Redis, starting with a basic SETNX approach, identifying its shortcomings, and then presenting robust solutions such as identifier‑based unlocking, Lua scripts for atomicity, the RedLock algorithm, and Redisson’s advanced features including a watchdog mechanism.

JavaRedisRedisson
0 likes · 19 min read
Mastering Distributed Locks with Redis: From Simple SETNX to RedLock and Redisson
Architecture Digest
Architecture Digest
Jul 9, 2024 · Backend Development

Designing a Unified API Response Structure for Backend Services

This article explains how to design a unified API response format for backend services, covering JSON structure, status code conventions, message handling, data payload, a Result wrapper class, controller simplifications, custom annotations, interceptors, and global exception handling to achieve clean and maintainable code.

DesignJavaSpring
0 likes · 7 min read
Designing a Unified API Response Structure for Backend Services
php Courses
php Courses
Jul 9, 2024 · Backend Development

Understanding the Boolean true in PHP and Its Common Uses

This article explains the PHP boolean true, its role in conditionals and function return values, and demonstrates common usage through examples such as simple if statements, file writing with file_put_contents, and boolean variable assignments, illustrating how true indicates successful operations.

Conditionalsbackendboolean
0 likes · 3 min read
Understanding the Boolean true in PHP and Its Common Uses
php Courses
php Courses
Jul 8, 2024 · Backend Development

Using PHP's array_search() Function: Syntax, Examples, and Best Practices

This article explains PHP's array_search() function, covering its syntax, parameter details, practical examples for finding values in indexed arrays, handling missing elements, strict versus loose comparison, and important usage considerations such as return behavior and limitations with associative arrays.

array_searchbackendphp-array
0 likes · 5 min read
Using PHP's array_search() Function: Syntax, Examples, and Best Practices
Wukong Talks Architecture
Wukong Talks Architecture
Jul 8, 2024 · Backend Development

Design and Evolution of Ctrip Ticket Booking System for Flash‑Sale Events

This article analyzes the challenges faced by Ctrip's ticket‑booking transaction system during high‑traffic flash‑sale events and presents a series of architectural optimizations—including Redis caching, database load mitigation, supplier‑system safeguards, and fine‑grained traffic‑control strategies—to achieve stable, consistent, and fast performance under extreme concurrency.

RedisSystem Architecturebackend
0 likes · 15 min read
Design and Evolution of Ctrip Ticket Booking System for Flash‑Sale Events
Lobster Programming
Lobster Programming
Jul 7, 2024 · Backend Development

Understanding Linux poll(): Structure, Events, and How It Works

This article explains the Linux poll() system call, detailing its pollfd structure, event flags, parameters like nfds and timeout, return values, and step‑by‑step operation flow for reading and writing data, highlighting differences from select and its advantages on 32‑bit systems.

IO MultiplexingSystem Callbackend
0 likes · 5 min read
Understanding Linux poll(): Structure, Events, and How It Works
Liangxu Linux
Liangxu Linux
Jul 6, 2024 · Backend Development

Mastering Nginx Location Matching: Order, Rules, and Best Practices

This article explains the Nginx location matching hierarchy—including exact, longest‑prefix, regex, ^~, and default matches—illustrates each rule with configuration examples, and offers practical recommendations for writing efficient and reliable server blocks.

Performancebackendlocation
0 likes · 6 min read
Mastering Nginx Location Matching: Order, Rules, and Best Practices
IT Services Circle
IT Services Circle
Jul 6, 2024 · Backend Development

Design Techniques for High Availability in Large‑Scale Internet Architecture

This article explains the essential high‑availability design techniques for large‑scale internet systems, covering system splitting, decoupling, asynchronous processing, retry mechanisms, compensation, backup, multi‑active strategies, isolation, rate limiting, circuit breaking, and graceful degradation to ensure robust, scalable backend services.

System Designbackenddistributed systems
0 likes · 13 min read
Design Techniques for High Availability in Large‑Scale Internet Architecture
php Courses
php Courses
Jul 5, 2024 · Backend Development

Using PHP in_array() Function to Check for Values in Arrays

This article explains PHP's in_array() function, its syntax, parameters, return values, and demonstrates basic usage, strict mode, and multidimensional array searches with clear code examples, including how to handle type comparison and practical output handling in typical PHP development.

Arraybackendin_array
0 likes · 4 min read
Using PHP in_array() Function to Check for Values in Arrays
转转QA
转转QA
Jul 5, 2024 · Backend Development

Design and Implementation of a Configuration Checking Tool for an After‑Sales System

The article describes how a configuration‑checking tool was designed and built to automatically compare baseline business configuration data with the after‑sales system's settings, detect mismatches before use, and alert responsible testers, thereby reducing manual verification effort and preventing workflow disruptions.

MonitoringSystem Designbackend
0 likes · 5 min read
Design and Implementation of a Configuration Checking Tool for an After‑Sales System
php Courses
php Courses
Jul 4, 2024 · Backend Development

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

This article explains PHP’s is_numeric() function, detailing how it determines whether a variable is numeric, providing example code for direct checks, form input validation, and discussing edge cases such as trailing decimal points, making it a useful guide for beginner backend developers.

PHPbackendis_numeric
0 likes · 4 min read
Using PHP’s is_numeric() Function to Check Numeric Values
php Courses
php Courses
Jul 4, 2024 · Backend Development

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

This article explains the PHP fgetc() function, showing how to open a file with fopen(), read characters sequentially, handle end‑of‑file, and also capture single‑character user input from STDIN with practical code examples.

User Inputbackendfgetc
0 likes · 4 min read
Using PHP fgetc() to Read Characters from Files and User Input
Yum! Tech Team
Yum! Tech Team
Jul 3, 2024 · Backend Development

Implementing Sentinel for Traffic Protection and Rate Limiting in a Large-Scale Restaurant Digital Platform

This article details how a large restaurant chain leveraged the open‑source Sentinel framework to implement comprehensive traffic protection, rate limiting, and circuit‑breaking across millions of daily orders, describing challenges, design choices, high‑availability rule distribution, monitoring, user‑experience considerations, and providing Java code examples for integration.

JavaObservabilitySentinel
0 likes · 11 min read
Implementing Sentinel for Traffic Protection and Rate Limiting in a Large-Scale Restaurant Digital Platform
php Courses
php Courses
Jul 3, 2024 · Backend Development

Using PHP rawurldecode() to Decode URL‑Encoded Strings

PHP's rawurldecode() function decodes URL-encoded strings back to their original form, works alongside urlencode(), and is demonstrated with syntax, example code, output, and notes on its behavior versus urldecode(), providing a concise guide for web developers handling URL parameters.

PHPURL decodingbackend
0 likes · 3 min read
Using PHP rawurldecode() to Decode URL‑Encoded Strings
Architect's Guide
Architect's Guide
Jul 3, 2024 · Backend Development

Hot‑Pluggable AOP Implementation in Spring: Dynamically Managing Advice

This article demonstrates how to implement hot‑pluggable AOP in Spring by allowing users to dynamically add or remove advice at runtime, covering prerequisite concepts, core logic, complete code examples, and test scenarios that show logging activation and deactivation without restarting the application.

AOPAdviceDynamic Plugin
0 likes · 9 min read
Hot‑Pluggable AOP Implementation in Spring: Dynamically Managing Advice
Top Architect
Top Architect
Jul 2, 2024 · Backend Development

Token Transmission and Unified Authorization Strategies in Microservices

The article discusses the drawbacks of token pass‑through authentication in microservices, recommends explicit userId parameter passing, compares unified authorization approaches using Spring Cloud Gateway with Feign or Dubbo, and explores non‑unified and Kubernetes‑integrated deployment patterns for backend services.

Dubbobackendspring-cloud
0 likes · 13 min read
Token Transmission and Unified Authorization Strategies in Microservices
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.

CodingPHPString Manipulation
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.

Large Filesbackendfile-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.

Cache strategiesMemcachedRedis
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.

Message QueueReliabilitybackend
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.

PHPRPCbackend
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.

BeanUtilsCGLIBJava
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.

Arrayarray_pushbackend
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.

Networkingbackendcurl
0 likes · 4 min read
Using curl_errno() in PHP to Retrieve cURL Error Codes
Java Architect Essentials
Java Architect Essentials
Jun 30, 2024 · Backend Development

Integrating jCasbin Permission Management into Spring Boot Applications

This article demonstrates how to add jCasbin to a Spring Boot project, covering Maven dependencies, configuration files, Enforcer initialization, custom policy objects, a servlet filter for authorization, and dynamic add‑remove permission APIs, enabling lightweight, database‑driven access control.

JavaPermissionSpring Boot
0 likes · 10 min read
Integrating jCasbin Permission Management into Spring Boot Applications
Selected Java Interview Questions
Selected Java Interview Questions
Jun 30, 2024 · Backend Development

Design and Implementation of a Unified WebSocket Communication Service for Backend Systems

This article presents a comprehensive design of a unified WebSocket communication service that abstracts messaging, improves reliability with RabbitMQ, replaces polling with push, and provides standardized APIs and message formats for backend developers to quickly integrate real‑time features.

API designReliabilitybackend
0 likes · 9 min read
Design and Implementation of a Unified WebSocket Communication Service for Backend Systems
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.

array-sortingbackendcomparison-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.

AJAXE‑commerceInventory
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.

PHPRecursionarray 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.

Javabackendfailure-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.

APIFastAPILangChain
0 likes · 8 min read
Build a FastAPI Chatbot with LangChain and WebSocket – Step‑by‑Step Guide