Tagged articles
5000 articles
Page 13 of 50
Rare Earth Juejin Tech Community
Rare Earth Juejin Tech Community
Nov 15, 2024 · Backend Development

Implementing a View‑Once Image Feature with Spring Boot and MySQL

This guide explains how to design and build a privacy‑focused, view‑once image sharing system using Spring Boot, MySQL, Thymeleaf, and optional cloud storage, covering requirements analysis, architecture, environment setup, code implementation, security considerations, performance optimizations, testing, and deployment.

BackendImage BurnMySQL
0 likes · 15 min read
Implementing a View‑Once Image Feature with Spring Boot and MySQL
Architect
Architect
Nov 14, 2024 · Backend Development

How to Set JVM Parameters for a Platform Handling 1 Million Daily Login Requests on an 8 GB Server

This article explains, step by step, how to estimate capacity, choose the appropriate garbage collector, size the young and old generations, configure stack memory, adjust object aging thresholds, and fine‑tune CMS or G1 settings so that a Java service handling one million daily logins can run reliably on an 8 GB node.

BackendGarbage CollectionJVM
0 likes · 24 min read
How to Set JVM Parameters for a Platform Handling 1 Million Daily Login Requests on an 8 GB Server
Selected Java Interview Questions
Selected Java Interview Questions
Nov 14, 2024 · Backend Development

AviatorScript: High‑Performance JVM‑Based Expression Engine and Scripting Language – Features and Usage Guide

This article introduces AviatorScript, a lightweight high‑performance expression engine and scripting language for the JVM (including Android), outlines its core features, demonstrates basic expression evaluation, variable handling, built‑in and custom functions, and shows how to run full scripts with code examples.

AviatorBackendExpression Engine
0 likes · 8 min read
AviatorScript: High‑Performance JVM‑Based Expression Engine and Scripting Language – Features and Usage Guide
php Courses
php Courses
Nov 14, 2024 · Backend Development

Using PHP str_replace for String Replacement and Deletion

This article explains PHP's str_replace function, its syntax, and demonstrates three examples—simple replacement, multiple replacements using arrays, and character deletion—showing how to modify strings efficiently in backend development, including sample code and expected output for each case.

BackendStringTutorial
0 likes · 3 min read
Using PHP str_replace for String Replacement and Deletion
Java Architecture Stack
Java Architecture Stack
Nov 14, 2024 · Backend Development

How Read‑Write Lock Separation Supercharges E‑Commerce Inventory

This article explains the read‑write lock separation design pattern, its principles, suitable scenarios such as high‑concurrency inventory queries, and provides a complete Java implementation with ReentrantReadWriteLock, including code samples, testing, performance benefits, and a discussion of its advantages and limitations.

BackendInventoryManagementJava
0 likes · 9 min read
How Read‑Write Lock Separation Supercharges E‑Commerce Inventory
Architect's Guide
Architect's Guide
Nov 14, 2024 · Backend Development

Implementing the Chain of Responsibility Pattern for Product Validation in Java

This article explains the Chain of Responsibility design pattern, demonstrates its application in a product creation workflow with concrete Java code, shows how to configure and assemble handlers dynamically using Spring, and discusses the pattern's advantages, drawbacks, and testing scenarios.

BackendChain of ResponsibilityHandler
0 likes · 20 min read
Implementing the Chain of Responsibility Pattern for Product Validation in Java
Architecture Digest
Architecture Digest
Nov 13, 2024 · Backend Development

Unified Exception Handling in Spring Boot Using @ControllerAdvice, Assert, and Enum-based Error Codes

This article explains how to replace repetitive try‑catch blocks in Java backend development with a unified exception handling approach using Spring's @ControllerAdvice, custom Assert utilities, and enum‑based error codes, providing cleaner code, consistent error responses, and easy internationalization.

AssertBackendEnum
0 likes · 20 min read
Unified Exception Handling in Spring Boot Using @ControllerAdvice, Assert, and Enum-based Error Codes
php Courses
php Courses
Nov 13, 2024 · Backend Development

Using PHP strtr() Function for String Replacement

This article explains the PHP strtr() function, detailing its syntax and demonstrating various replacement scenarios—including simple character swaps, multiple replacements, sequence substitutions, and partial removals—through clear code examples and shows how it can be applied in practical string manipulation tasks.

BackendCode ExamplesPHP
0 likes · 4 min read
Using PHP strtr() Function for String Replacement
php Courses
php Courses
Nov 12, 2024 · Backend Development

Analysis of Process Mutual Exclusion in PHP and Automatic Semaphore Release

This article explains how a PHP script uses a named semaphore for process mutual exclusion, demonstrates why a second concurrent process can acquire the semaphore after the first finishes, and clarifies that PHP automatically releases held semaphores when a process terminates.

BackendConcurrencyPHP
0 likes · 3 min read
Analysis of Process Mutual Exclusion in PHP and Automatic Semaphore Release
macrozheng
macrozheng
Nov 12, 2024 · Backend Development

Boost Kafka Throughput in Spring Boot: Batch Consumption Guide

This article demonstrates how to integrate Kafka with Spring Boot, add necessary dependencies and configuration, implement both single‑message and batch consumers, and tune batch settings to dramatically improve processing speed for millions of records in a microservice environment.

BackendBatchProcessingJava
0 likes · 12 min read
Boost Kafka Throughput in Spring Boot: Batch Consumption Guide
Spring Full-Stack Practical Cases
Spring Full-Stack Practical Cases
Nov 12, 2024 · Backend Development

Unlock Rapid API Development with Magic‑API: A Spring Boot 3 Practical Guide

This article introduces the Magic‑API framework for Java, explains its extensive features, walks through environment setup, dependency configuration, and demonstrates real‑world use cases such as data source management, pagination, SQL, MyBatis, HTTP calls, Redis integration, and inline Java execution within a Spring Boot 3 project.

API developmentBackendJava
0 likes · 6 min read
Unlock Rapid API Development with Magic‑API: A Spring Boot 3 Practical Guide
Mike Chen's Internet Architecture
Mike Chen's Internet Architecture
Nov 11, 2024 · Backend Development

Cache Penetration and Four Effective Mitigation Strategies

Cache penetration, a common issue in large-scale websites where malicious or non‑existent key requests bypass caches and overload databases, can cause crashes; this article explains the problem and presents four mitigation techniques—caching empty objects, rate limiting, blacklist mechanisms, and Bloom filters—to protect backend systems.

BackendRedisbloom-filter
0 likes · 4 min read
Cache Penetration and Four Effective Mitigation Strategies
Architect
Architect
Nov 10, 2024 · Backend Development

How to Prevent Duplicate Submissions in Java APIs with Redis and Redisson Locks

This article explains why API debouncing is crucial for backend Java services, outlines which endpoints need protection, describes how to identify duplicate requests, and provides step‑by‑step implementations using Redis shared‑cache and Redisson distributed locks with concrete code examples and test results.

BackendDebounceJava
0 likes · 14 min read
How to Prevent Duplicate Submissions in Java APIs with Redis and Redisson Locks
Python Programming Learning Circle
Python Programming Learning Circle
Nov 9, 2024 · Fundamentals

A One-Month Python Learning Roadmap: Weekly Plans, Projects, and Career Preparation

This article presents a detailed four‑week, 28‑day Python learning roadmap that guides beginners from core concepts to real‑world projects, covering fundamentals, data structures, OOP, web development, databases, testing, and job‑search preparation, with daily time allocations and resource suggestions.

BackendPythoncareer-prep
0 likes · 10 min read
A One-Month Python Learning Roadmap: Weekly Plans, Projects, and Career Preparation
Open Source Tech Hub
Open Source Tech Hub
Nov 8, 2024 · Information Security

Why Your WeChat Mini‑Program Is Scanned During Review and How to Interpret the Alerts

A migration mistake left a mini‑program pointing to a test endpoint, triggering an emergency release that generated Tencent Security Team scan alerts; the article explains the log evidence, the automatic security scanning process during WeChat review, and how developers can handle and mitigate these notifications.

BackendError LogsSecurity Scan
0 likes · 10 min read
Why Your WeChat Mini‑Program Is Scanned During Review and How to Interpret the Alerts
Python Programming Learning Circle
Python Programming Learning Circle
Nov 7, 2024 · Backend Development

9 Best Practices for Enterprise Python Development

This article presents nine essential best‑practice steps for building robust, maintainable Python backend applications, covering virtual environments, dependency management, logging, configuration files, testing, asynchronous I/O, Docker containerization, CI/CD automation, and ORM usage with a practical Flask example.

BackendPythonci/cd
0 likes · 11 min read
9 Best Practices for Enterprise Python Development
php Courses
php Courses
Nov 7, 2024 · Backend Development

Using PHP rawurldecode() to Decode URL‑Encoded Strings

This article explains PHP's rawurldecode() function, detailing its purpose for decoding URL‑encoded strings, providing syntax, a step‑by‑step example that converts an encoded URL back to its original form, and notes its limitations compared to urldecode(), making it a useful tool for backend web development.

BackendPHPURL decoding
0 likes · 4 min read
Using PHP rawurldecode() to Decode URL‑Encoded Strings
Sohu Tech Products
Sohu Tech Products
Nov 6, 2024 · Operations

Design and Implementation of a Business Operation Log Management System Using Canal and Elasticsearch

The article presents a decoupled business operation log management architecture that uses Alibaba’s Canal to capture MySQL binlog changes, streams them through Kafka, and stores structured before‑and‑after records in Elasticsearch with nested mappings, enabling multi‑table correlation via transaction IDs, visual querying, and reliable rollback without modifying application code.

BackendCanalElasticsearch
0 likes · 12 min read
Design and Implementation of a Business Operation Log Management System Using Canal and Elasticsearch
Java Tech Enthusiast
Java Tech Enthusiast
Nov 6, 2024 · Backend Development

Java Interview Insights: Spring Boot Startup, Spring MVC Flow, MySQL Indexes, and Redis Performance

The article recounts a recent Hikvision interview, outlining campus salary ranges and providing a technical Q&A that explains Spring Boot’s startup sequence, Spring MVC request handling, MySQL index structures, creation rules, and performance diagnostics, as well as Redis’s in‑memory, single‑threaded architecture and optional I/O threading.

BackendInterviewJava
0 likes · 20 min read
Java Interview Insights: Spring Boot Startup, Spring MVC Flow, MySQL Indexes, and Redis Performance
php Courses
php Courses
Nov 6, 2024 · Backend Development

Using PHP's array_filter() Function to Filter Arrays

This article explains how PHP's array_filter() function works, details its parameters, and provides two practical code examples—filtering even numbers from a numeric array and removing empty values from an associative array—to demonstrate flexible array filtering techniques.

BackendPHParray filtering
0 likes · 4 min read
Using PHP's array_filter() Function to Filter Arrays
php Courses
php Courses
Nov 6, 2024 · Backend Development

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

This article explains how the PHP file() function reads a file's contents into an array, details its syntax and parameters, demonstrates basic and flag‑based usage with code examples, and highlights important behaviors such as line handling and newline removal.

ArrayBackendfile function
0 likes · 5 min read
Using PHP file() Function to Read Files into an Array
Architecture Digest
Architecture Digest
Nov 5, 2024 · Backend Development

Spring Annotation-Based Development and MyBatis Integration Tutorial

This article explains how Spring 3.0's pure annotation mode simplifies bean configuration, demonstrates using @Component, @Scope, @Autowired, @Qualifier, @Value, and @PropertySource for dependency injection and property loading, and shows step‑by‑step integration of MyBatis with Spring, including required dependencies and configuration classes.

BackendJavaMyBatis
0 likes · 8 min read
Spring Annotation-Based Development and MyBatis Integration Tutorial
Architect
Architect
Nov 3, 2024 · Backend Development

How Ctrip Scaled Its Ticket Booking System for Flash‑Sale Events

This article analyzes the challenges Ctrip faced when handling massive traffic during ticket flash‑sale events and details the architectural upgrades, caching strategies, database optimizations, supplier integration safeguards, and traffic‑control mechanisms that enabled stable, fast, and consistent booking experiences.

BackendCachingDistributed Systems
0 likes · 18 min read
How Ctrip Scaled Its Ticket Booking System for Flash‑Sale Events
Python Programming Learning Circle
Python Programming Learning Circle
Nov 1, 2024 · Backend Development

Designing a Python SDK for Cloud TTS Services: Critique and Refactoring of Volcengine's SDK

This article examines the shortcomings of Volcengine's Python TTS SDK, proposes a cleaner design using request interceptors or Auth objects, demonstrates refactored code examples with the Tetos library, and explains how to integrate signing logic into standard HTTP clients for more maintainable backend development.

BackendHTTPPython
0 likes · 10 min read
Designing a Python SDK for Cloud TTS Services: Critique and Refactoring of Volcengine's SDK
php Courses
php Courses
Nov 1, 2024 · Backend Development

Using PHP's array_pop() to Remove the Last Element from an Array

This article explains how the PHP array_pop() function removes and returns the last element of an array, demonstrates its usage with a fruit array example, shows the resulting output, and discusses considerations such as multiple removals, looping, and preserving the original array.

BackendFunctionsPHP
0 likes · 4 min read
Using PHP's array_pop() to Remove the Last Element from an Array
DevOps
DevOps
Oct 31, 2024 · Backend Development

Improving Backend Engineer Skills: Abstract Problem Solving and Code Abstractions

This article explores the core competencies of backend engineers, emphasizing accurate problem abstraction, discusses Go's ServerCodec and I/O interfaces, demonstrates algorithmic solutions to the Word Search II problem, and offers practical advice on improving coding skills through studying language features, system design, and effective learning habits.

BackendGolangabstraction
0 likes · 19 min read
Improving Backend Engineer Skills: Abstract Problem Solving and Code Abstractions
Sohu Tech Products
Sohu Tech Products
Oct 30, 2024 · Backend Development

How to Build Dynamic Parameter‑Level Rate Limiting with Sentinel

This article explains the need for dynamic, fine‑grained rate limiting in high‑traffic services, describes Sentinel's core mechanisms, and details a three‑step implementation—data collection, rule management, and traffic verification—using sliding‑window counters and priority‑based throttling.

BackendDynamic ThrottlingRate Limiting
0 likes · 17 min read
How to Build Dynamic Parameter‑Level Rate Limiting with Sentinel
Selected Java Interview Questions
Selected Java Interview Questions
Oct 30, 2024 · Backend Development

Implementing Short URL Redirection with SpringBoot

This article explains the concept of short‑URL redirection, its benefits, and provides a complete SpringBoot implementation—including database schema, entity, DAO, service, controller, and testing code—to convert long links into short, trackable links and handle redirects.

BackendJavaMyBatis
0 likes · 11 min read
Implementing Short URL Redirection with SpringBoot
php Courses
php Courses
Oct 30, 2024 · Backend Development

Using PHP 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 with expected output, and highlights its usefulness for array manipulation in backend development.

ArrayBackendTutorial
0 likes · 3 min read
Using PHP array_pop to Remove and Return the Last Element of an Array
php Courses
php Courses
Oct 30, 2024 · Backend Development

Using PHP's array_flip() Function to Swap Keys and Values

This article explains PHP's array_flip() function, showing its syntax, behavior with duplicate values, and practical examples that demonstrate how to exchange array keys and values and apply the function for look‑ups and data manipulation.

Backendarray_flipdata manipulation
0 likes · 5 min read
Using PHP's array_flip() Function to Swap Keys and Values
php Courses
php Courses
Oct 30, 2024 · Backend Development

Comparing PHP and Node.js: Advantages, Disadvantages, and Migration Considerations

This article examines the shift from PHP to Node.js, outlining Node.js’s asynchronous, JavaScript‑unified, micro‑service‑friendly advantages and its thriving package ecosystem, while also highlighting PHP’s stability, mature CMS support, and hosting ease, and discusses key migration challenges to help developers decide which platform best fits their project needs.

BackendNode.jsPHP
0 likes · 10 min read
Comparing PHP and Node.js: Advantages, Disadvantages, and Migration Considerations
php Courses
php Courses
Oct 29, 2024 · Backend Development

PHP Functions for Randomly Shuffling Arrays

This article explains PHP’s built‑in functions for randomly shuffling arrays—shuffle() and array_rand()—provides code examples for each, and demonstrates a practical case of assigning students to classes using these functions, followed by links to additional programming learning resources.

Array ShuffleBackendPHP
0 likes · 3 min read
PHP Functions for Randomly Shuffling Arrays
php Courses
php Courses
Oct 29, 2024 · Backend Development

Swapping Array Keys and Values in PHP: array_flip vs Manual Method

This article explains two efficient ways to swap keys and values of a PHP array—using the built‑in array_flip() function and a manual loop—compares their performance with a microtime benchmark, and provides complete code examples for each approach.

ArrayBackendarray_flip
0 likes · 3 min read
Swapping Array Keys and Values in PHP: array_flip vs Manual Method
Rare Earth Juejin Tech Community
Rare Earth Juejin Tech Community
Oct 29, 2024 · Backend Development

Storing Douyin and Baidu Hot Search Data with MySQL, MyBatis Generator, and Java Crawlers

This tutorial explains how to design a MySQL table for hot‑search records, generate Java entity and mapper classes using MyBatis Generator, create unique IDs for each entry, and implement scheduled Java crawlers for Douyin and Baidu hot‑search data that persist the results via Spring‑Boot services.

BackendDatabase DesignJava
0 likes · 19 min read
Storing Douyin and Baidu Hot Search Data with MySQL, MyBatis Generator, and Java Crawlers
21CTO
21CTO
Oct 28, 2024 · Backend Development

What Are the Top 5 Python Packages on PyPI? Surprising Rankings Revealed

This article reveals the surprising top‑five Python packages on PyPI, explains why popular libraries like NumPy and Pandas are not among them, and provides installation details and key features for each of the leading packages such as boto3, urllib3, botocore, aiobotocore, and Requests.

BackendBoto3PyPI
0 likes · 7 min read
What Are the Top 5 Python Packages on PyPI? Surprising Rankings Revealed
php Courses
php Courses
Oct 28, 2024 · Backend Development

How to Use 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, and provides multiple code examples—including handling of non-indexed arrays—to demonstrate how to randomly reorder array elements in PHP.

ArrayBackendPHP
0 likes · 4 min read
How to Use PHP shuffle() to Randomly Rearrange Array Elements
php Courses
php Courses
Oct 28, 2024 · Backend Development

Impact of Microsoft Not Supporting PHP 8 on Windows Platforms

The article explains PHP 8’s new features and performance benefits, then details how Microsoft’s lack of support on Windows can reduce compatibility, limit ecosystem growth, lower developer confidence, and affect the adoption of PHP 8 in both desktop and cloud environments.

BackendMicrosoftPHP8
0 likes · 5 min read
Impact of Microsoft Not Supporting PHP 8 on Windows Platforms
Rare Earth Juejin Tech Community
Rare Earth Juejin Tech Community
Oct 28, 2024 · Backend Development

Resolving Missing Request Headers in Spring MVC Multithreaded Environments

This article analyzes why Spring MVC fails to retrieve request header fields in multithreaded scenarios, explains the underlying ThreadLocal storage mechanism, critiques a common but flawed solution, and presents reliable approaches using CountDownLatch, manual RequestContextHolder propagation, and request caching to ensure header availability across threads.

BackendJavaRequestContextHolder
0 likes · 10 min read
Resolving Missing Request Headers in Spring MVC Multithreaded Environments
Open Source Tech Hub
Open Source Tech Hub
Oct 27, 2024 · Backend Development

How FastRoute Supercharges PHP Routing with One‑Pass Regex

This article explains FastRoute, a high‑performance PHP routing library created by Nikita Popov, detailing its design, core dispatcher and router mechanisms, feature set, single‑regex compilation technique, code examples, and real‑world usage within the Webman framework.

BackendFastRoutePHP
0 likes · 8 min read
How FastRoute Supercharges PHP Routing with One‑Pass Regex
MaGe Linux Operations
MaGe Linux Operations
Oct 26, 2024 · Backend Development

Step-by-Step HAProxy Deployment and Configuration Guide for Load Balancing

This tutorial walks through installing HAProxy, configuring global, defaults, listen, frontend, and backend sections, setting up ACL‑based routing, defining server groups for default, website, and blog services, testing load‑balancing behavior, and accessing the HAProxy statistics page, all with complete command‑line examples.

BackendHAProxyLinux
0 likes · 15 min read
Step-by-Step HAProxy Deployment and Configuration Guide for Load Balancing
Su San Talks Tech
Su San Talks Tech
Oct 26, 2024 · Databases

9 Proven Tricks to Supercharge Your Pagination API Performance

This article presents nine practical techniques—including default filters, smaller page sizes, reduced joins, index tuning, straight_join usage, data archiving, count(*) optimization, ClickHouse offloading, and read/write splitting—to dramatically improve the speed and scalability of pagination query interfaces.

Backendpaginationsql
0 likes · 13 min read
9 Proven Tricks to Supercharge Your Pagination API Performance
Code Ape Tech Column
Code Ape Tech Column
Oct 25, 2024 · Fundamentals

Understanding Why BigDecimal Preserves Precision in Java

This article explains how Java's BigDecimal class maintains exact decimal precision by scaling numbers to long integers, detailing its internal fields, demonstrating addition with sample code, and analyzing the underlying add method logic to show why no precision is lost.

ArithmeticBackendBigDecimal
0 likes · 6 min read
Understanding Why BigDecimal Preserves Precision in Java
php Courses
php Courses
Oct 25, 2024 · Backend Development

Handling Special Cases in PHP Function Object Programming (FOP)

This article explains how PHP's Function Object Programming treats $this, static methods, anonymous functions, and call_user_func() differently from standard OOP, providing code examples and guidance to avoid common pitfalls when using functions as objects.

Backendfunction-object-programmingphp-fop
0 likes · 3 min read
Handling Special Cases in PHP Function Object Programming (FOP)
Wukong Talks Architecture
Wukong Talks Architecture
Oct 25, 2024 · Backend Development

Debugging a TCP Communication Bug That Stops Device Production at 70% Due to Length Field Misalignment

The article details a mysterious production stall at 70% caused by a TCP packet length field misalignment when the configuration name is "rabbit‑TD", explains the step‑by‑step investigation using server logs and packet captures, identifies the root cause of the merged D4/D5 packets, and proposes two concrete fixes to correct the length handling.

BackendDebuggingNetwork Protocol
0 likes · 10 min read
Debugging a TCP Communication Bug That Stops Device Production at 70% Due to Length Field Misalignment
Mingyi World Elasticsearch
Mingyi World Elasticsearch
Oct 24, 2024 · Backend Development

Full Elasticsearch 8.x Java API Client Code Ready for Immediate Project Use

This article walks through the new features of the Elasticsearch 8.x Java API client, shows how to set up the development environment, initialize the client with HTTPS or API‑key authentication, and provides complete, ready‑to‑run code examples for index creation, document indexing, searching, aggregations, and scripted sorting.

BackendElasticsearchElasticsearch 8.x
0 likes · 15 min read
Full Elasticsearch 8.x Java API Client Code Ready for Immediate Project Use
DeWu Technology
DeWu Technology
Oct 23, 2024 · Backend Development

Automated Traffic Rule Inspection with Flow Replay Platform

The Flow Replay Platform automates traffic‑rule inspection by recording traffic from all environments, letting engineers define jsonPath‑based interface rules that continuously validate pre‑release and production traffic, instantly alerting anomalies, reducing false positives, accelerating release verification, and cutting manual testing effort, as demonstrated by discovered coupon‑related bugs.

Backendautomated testingmonitoring
0 likes · 9 min read
Automated Traffic Rule Inspection with Flow Replay Platform
MaGe Linux Operations
MaGe Linux Operations
Oct 23, 2024 · Backend Development

How to Hide Nginx Version and Set a Custom Server Header

This guide walks you through downloading, compiling, and configuring Nginx so that the server version is hidden and a custom Server header is displayed, including step‑by‑step commands, source code edits, and verification methods.

BackendVersion Hidingcustom server header
0 likes · 4 min read
How to Hide Nginx Version and Set a Custom Server Header
Architecture Digest
Architecture Digest
Oct 23, 2024 · Backend Development

Generating Dynamic PDF Invoices with iTextPdf in Java

This article explains how to use the iTextPdf library in a Java SpringBoot project to create, fill, and merge PDF invoice templates—covering dependency setup, template design, dynamic table generation, and final PDF concatenation for both fixed and variable invoice data.

BackendDynamic PDFJava
0 likes · 11 min read
Generating Dynamic PDF Invoices with iTextPdf in Java
php Courses
php Courses
Oct 23, 2024 · Backend Development

Using PHP rawurlencode() to Encode URLs and Query Parameters

This article explains how PHP's rawurlencode() function encodes special characters in URLs and query strings, demonstrates its syntax with code examples, and shows how to safely construct encoded URLs for web applications.

Backendphp-functionsrawurlencode
0 likes · 4 min read
Using PHP rawurlencode() to Encode URLs and Query Parameters
php Courses
php Courses
Oct 22, 2024 · Backend Development

Using PHP str_replace for String Replacement and Deletion

This article explains PHP's str_replace function, shows its syntax, and provides three practical examples demonstrating simple replacement, multiple replacements using arrays, and character deletion, while also mentioning additional options and linking to the official documentation.

BackendTutorialstr_replace
0 likes · 4 min read
Using PHP str_replace for String Replacement and Deletion
php Courses
php Courses
Oct 22, 2024 · Backend Development

Structured Approach for Migrating Python Functions to PHP

This guide outlines a systematic method for tracking, testing, and documenting the migration of Python functions to PHP, including creating a mapping table, using version control, writing unit tests, recording edge cases, and conducting regular progress reviews to ensure code quality and functional equivalence.

BackendPHPPython
0 likes · 4 min read
Structured Approach for Migrating Python Functions to PHP
macrozheng
macrozheng
Oct 22, 2024 · Backend Development

Can @Service Replace @Controller in Spring Boot? A Deep Dive

This article explores whether the @Service annotation can replace @Controller in Spring Boot, demonstrates a working example, explains the underlying bean registration process, and clarifies how Spring’s component scanning and request mapping enable such unconventional usage.

BackendControllerJava
0 likes · 8 min read
Can @Service Replace @Controller in Spring Boot? A Deep Dive
Java Architecture Stack
Java Architecture Stack
Oct 22, 2024 · Backend Development

How to Prevent Browser Caching of JavaScript in Java Backend Apps

This article explains why stale JavaScript can break functionality, outlines the risks of caching such as outdated bugs, security flaws, and debugging difficulties, and provides practical Java‑side solutions—including versioned URLs, cache‑control headers, static‑resource policies, and ETag/Last‑Modified handling—to ensure browsers always load the latest scripts.

BackendCachingJava
0 likes · 7 min read
How to Prevent Browser Caching of JavaScript in Java Backend Apps
php Courses
php Courses
Oct 21, 2024 · Backend Development

Using PHP get_headers() to Retrieve HTTP Response Headers

This article explains the PHP get_headers() function, its syntax, parameters, and usage examples, demonstrates how to retrieve and display HTTP response headers from a URL, and discusses common application scenarios such as checking remote file existence, obtaining file metadata, and supporting web crawling or monitoring.

BackendHTTPWeb Scraping
0 likes · 4 min read
Using PHP get_headers() to Retrieve HTTP Response Headers
php Courses
php Courses
Oct 21, 2024 · Backend Development

Using PHP array_push to Add Elements to an Array

This article explains how the PHP array_push function can append one or multiple elements to the end of an array, shows step‑by‑step code examples for single and multiple element insertion, and demonstrates the resulting array length and contents.

ArraysBackendPHP
0 likes · 3 min read
Using PHP array_push to Add Elements to an Array
Architect's Guide
Architect's Guide
Oct 19, 2024 · Backend Development

Java Spring Development Best Practices: 14 Tips for Clean and Efficient Code

This article presents fourteen practical Java Spring development best‑practice tips—including using @ConfigurationProperties, Lombok's @RequiredArgsConstructor, modularizing code, throwing exceptions instead of returning error codes, minimizing unnecessary database calls, avoiding null returns, reducing if‑else chains, and leveraging IDE features—to help developers write cleaner, more maintainable backend code.

BackendBest PracticesJava
0 likes · 7 min read
Java Spring Development Best Practices: 14 Tips for Clean and Efficient Code
macrozheng
macrozheng
Oct 18, 2024 · Backend Development

Why @Transactional Often Fails: 13 Real-World Pitfalls and How to Fix Them

An in‑depth guide reveals thirteen common pitfalls that cause Spring’s @Transactional annotation to malfunction—ranging from unnecessary usage and proxy limitations to propagation misconfigurations and exception handling—plus practical demos and solutions to ensure reliable transaction rollbacks in Java backend development.

AOPBackendJava
0 likes · 20 min read
Why @Transactional Often Fails: 13 Real-World Pitfalls and How to Fix Them
Tencent Cloud Developer
Tencent Cloud Developer
Oct 18, 2024 · Backend Development

Tencent Meeting "My Recordings" List Optimization Practice

Tencent Meeting optimized its “My Recordings” list by replacing offset pagination with cursor‑based seeks, implementing a two‑layer cache separating ID lists from record details, choosing MongoDB for multi‑source aggregation, and adding reliable Kafka‑driven sync, cutting latency from 308 ms to 70 ms while supporting over 700 QPS.

BackendCachingMongoDB
0 likes · 36 min read
Tencent Meeting "My Recordings" List Optimization Practice
Architecture Digest
Architecture Digest
Oct 17, 2024 · Backend Development

Simplifying Backend CRUD with APIJSON: One Interface per Operation

This article explains how APIJSON can replace dozens of traditional SpringBoot controller methods with a single configurable endpoint, demonstrating concise request formats, permission annotations, and example code for creating, reading, updating, deleting, and aggregating data in a Java backend.

APIJSONBackendCRUD
0 likes · 8 min read
Simplifying Backend CRUD with APIJSON: One Interface per Operation
Java Captain
Java Captain
Oct 17, 2024 · Backend Development

Reducing CRUD Boilerplate with APIJSON: One Interface for All Operations

This article explains how APIJSON lets developers replace dozens of SpringBoot CRUD endpoints with a single, configurable interface for GET, POST, PUT, DELETE and HEAD requests, dramatically cutting code lines while supporting complex queries, pagination, joins and role‑based permissions.

APIJSONBackendCRUD
0 likes · 7 min read
Reducing CRUD Boilerplate with APIJSON: One Interface for All Operations
Architect's Guide
Architect's Guide
Oct 17, 2024 · Backend Development

Using JXLS for Complex Excel Export in Java Backend Applications

This article introduces the JXLS library for Java, explains how to add Maven dependencies, provides backend utility and controller code for exporting Excel files, and details common XLS expressions such as jx:area, jx:each, jx:mergeCells, and dynamic column handling to simplify complex Excel report generation.

BackendDynamic ColumnsJava
0 likes · 8 min read
Using JXLS for Complex Excel Export in Java Backend Applications
Architect
Architect
Oct 16, 2024 · Backend Development

Mastering Spring Transaction Hooks for Safe Kafka Publishing

This article explains how to use Spring's TransactionSynchronizationManager to detect active transactions, register synchronization callbacks, and asynchronously publish payment‑log messages to Kafka without affecting the main business flow, complete with practical code snippets and pitfalls to avoid.

BackendJavaKafka
0 likes · 11 min read
Mastering Spring Transaction Hooks for Safe Kafka Publishing
php Courses
php Courses
Oct 16, 2024 · Backend Development

How to Use PHP rawurldecode() to Decode URL‑Encoded Strings

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

BackendPHPURL decoding
0 likes · 4 min read
How to Use PHP rawurldecode() to Decode URL‑Encoded Strings
JD Cloud Developers
JD Cloud Developers
Oct 16, 2024 · Operations

Concurrency vs RPS: Which Load‑Testing Mode Boosts Service Performance?

This article compares the concurrency (virtual user) mode and the RPS (requests per second) mode of the Forcebot load‑testing platform, showing how each impacts TPS, TP99, and TP999 metrics through a product‑query tag case study, and explains when to apply each mode for optimal service performance.

BackendRPSload-testing
0 likes · 8 min read
Concurrency vs RPS: Which Load‑Testing Mode Boosts Service Performance?
php Courses
php Courses
Oct 15, 2024 · Backend Development

Using curl_multi_select() in PHP to Wait for Active cURL Transfers

The article explains how to use PHP’s curl_multi_select() function to wait for active cURL transfers in a multi‑handle scenario, detailing its definition, parameters, behavior, and providing a complete example that demonstrates efficient concurrent HTTP requests handling.

BackendConcurrencyHTTP
0 likes · 4 min read
Using curl_multi_select() in PHP to Wait for Active cURL Transfers
FunTester
FunTester
Oct 15, 2024 · Backend Development

Generate Realistic Test Data in Go with the GoFakeIt Library

This article introduces GoFakeIt, a lightweight Go library for quickly generating diverse fake data—personal, address, financial, network, and more—explains its key features, shows how to install it via go get, and provides practical code examples for each data type.

BackendData GenerationFake Data
0 likes · 13 min read
Generate Realistic Test Data in Go with the GoFakeIt Library
Baidu Geek Talk
Baidu Geek Talk
Oct 14, 2024 · Backend Development

Evolution of Baidu Visual Search Architecture: Stack Upgrade, Full‑Link Refactoring, and Stability Enhancements

Baidu Visual Search upgraded its PHP/HHVM stack to Golang, introduced a Backend‑For‑Frontend layer, refactored presentation and system modules with the GDP framework and ExGraph, and built comprehensive monitoring and self‑healing tools, delivering a modular, scalable, and stable AI‑driven search platform.

BackendGolangStability
0 likes · 13 min read
Evolution of Baidu Visual Search Architecture: Stack Upgrade, Full‑Link Refactoring, and Stability Enhancements
php Courses
php Courses
Oct 14, 2024 · Backend Development

Using PHP chmod() to Set File Permissions

This article explains how to use PHP's chmod() function to change file permissions, describes permission masks, provides the syntax and a practical example that sets a file's mode to 644, and includes the full PHP code snippet.

BackendPHPTutorial
0 likes · 3 min read
Using PHP chmod() to Set File Permissions
FunTester
FunTester
Oct 14, 2024 · Backend Development

Mastering Go Benchmarking: A Practical Guide to Performance Testing

This article introduces Go's benchmarking framework, explains its purpose and best practices, provides step‑by‑step code examples for measuring string concatenation performance, shows how to run benchmarks from the command line, and teaches how to interpret the detailed test reports.

BackendBenchmarkingCode Optimization
0 likes · 11 min read
Mastering Go Benchmarking: A Practical Guide to Performance Testing
Architecture Digest
Architecture Digest
Oct 13, 2024 · Backend Development

Improving Spring MVC Controllers: Unified Response Structure, Validation, and Exception Handling

The article explains how to simplify Spring MVC controller code by introducing a unified response wrapper, handling String return types with ResponseBodyAdvice, adjusting HttpMessageConverter order, applying JSR‑303 validation for @RequestParam, @PathVariable and @RequestBody, creating custom validation annotations, and implementing global exception handling for consistent API responses.

BackendControllerJava
0 likes · 18 min read
Improving Spring MVC Controllers: Unified Response Structure, Validation, and Exception Handling
Architect's Tech Stack
Architect's Tech Stack
Oct 13, 2024 · Backend Development

Should try‑catch be placed inside or outside a for loop?

This article discusses whether a try‑catch block should be placed inside or outside a Java for‑loop, explains the trade‑offs, and provides code examples illustrating both approaches to help developers write more robust exception‑handling logic.

Backendbest-practicesexception-handling
0 likes · 4 min read
Should try‑catch be placed inside or outside a for loop?