Tagged articles

backend

5000 articles · Page 20 of 50
php Courses
php Courses
May 29, 2024 · Backend Development

Using PHP file_exists Function to Check File Existence

This article introduces PHP's file_exists function, explains its boolean return value, shows how to check both local and remote files with code examples, and highlights important considerations such as correct paths, permissions, and potential HTTP overhead.

File HandlingPHPbackend
0 likes · 4 min read
Using PHP file_exists Function to Check File Existence
php Courses
php Courses
May 28, 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 for tasks such as reverse lookups and data manipulation.

Arrayarray_flipassociative array
0 likes · 5 min read
Using PHP’s array_flip() Function to Swap Keys and Values
php Courses
php Courses
May 28, 2024 · Backend Development

Fast Multiplication of Large Integers Using PHP GMP Library

This article explains how to use PHP's GMP extension to perform fast multiplication of large integers by applying a divide‑and‑conquer algorithm, reducing the complexity from quadratic to near‑linear, and provides a complete PHP implementation with example code.

AlgorithmGMPPHP
0 likes · 4 min read
Fast Multiplication of Large Integers Using PHP GMP Library
php Courses
php Courses
May 28, 2024 · Backend Development

Using PHP’s array_pop Function to Remove the Last Element from an Array

This article explains how PHP’s built‑in array_pop function removes and returns the last element of an array, demonstrates its syntax, provides a complete code example that pops a fruit from a list, and shows the resulting output and remaining array contents.

PHParray manipulationarray_pop
0 likes · 3 min read
Using PHP’s array_pop Function to Remove the Last Element from an Array
Spring Full-Stack Practical Cases
Spring Full-Stack Practical Cases
May 28, 2024 · Backend Development

Master Multi‑Tenant Architecture in Spring Boot 3.3: Schemas, Separate DBs

This article explains three common multi‑tenant implementation strategies—separate databases, separate schemas, and partitioned (discriminator) data—detailing their advantages, drawbacks, and practical Spring Boot 3.3 code examples for entity definition, tenant‑ID resolution, data source routing, and request interception to achieve secure, scalable SaaS applications.

Javabackendmultitenancy
0 likes · 11 min read
Master Multi‑Tenant Architecture in Spring Boot 3.3: Schemas, Separate DBs
Ops Development & AI Practice
Ops Development & AI Practice
May 27, 2024 · Backend Development

Decoupling Gin Handlers with Dependency Injection in Go

This article explains how to apply Dependency Injection in the Go Gin framework to separate routing logic from business services, reducing code coupling, improving testability, and enhancing reusability through concrete interface definitions, a simple DI container, and practical code examples.

Design PatternsGinGo
0 likes · 6 min read
Decoupling Gin Handlers with Dependency Injection in Go
Lobster Programming
Lobster Programming
May 27, 2024 · Backend Development

Mastering Rate Limiting: 5 Algorithms to Prevent Service Avalanches

This article explains why rate limiting is essential in high‑traffic microservice architectures, illustrates the avalanche effect, and introduces five practical algorithms—including counter, sliding window, leaky bucket, token bucket, and Redis‑based implementations—complete with code examples and usage scenarios.

backendrate limitingtraffic control
0 likes · 7 min read
Mastering Rate Limiting: 5 Algorithms to Prevent Service Avalanches
Architecture Digest
Architecture Digest
May 27, 2024 · Backend Development

Upgrading to JDK 17 with ZGC: Performance Comparison and Migration Guide

This article explains why upgrading to JDK 17 and switching to the low‑latency ZGC garbage collector can dramatically reduce pause times and improve throughput, compares GC and CPU metrics against G1, and provides step‑by‑step installation and JVM tuning instructions with code examples.

Garbage CollectionJVMJava
0 likes · 6 min read
Upgrading to JDK 17 with ZGC: Performance Comparison and Migration Guide
dbaplus Community
dbaplus Community
May 27, 2024 · Backend Development

How to Optimize Java Logging for Maximum Performance

This article explains why Java logging can become a performance bottleneck, identifies common misuse patterns, and provides practical steps—such as dynamic log levels, avoiding string concatenation, selective location info, and cautious async logging—to dramatically improve throughput and latency.

JavaOptimizationasync
0 likes · 6 min read
How to Optimize Java Logging for Maximum Performance
Cognitive Technology Team
Cognitive Technology Team
May 27, 2024 · Backend Development

AREX: An Open‑Source Traffic Recording and Replay Platform for Enterprise‑Scale Testing

AREX is an open‑source traffic recording and replay platform created by Ctrip that enables comprehensive testing—from performance and regression to rapid issue fixing—by capturing real traffic across complex micro‑service environments, addressing challenges such as async context, non‑idempotent calls, authentication, time‑sensitivity, and cache consistency, and offering easy CI/CD integration and large‑scale deployment.

CI/CDJava Agentbackend
0 likes · 14 min read
AREX: An Open‑Source Traffic Recording and Replay Platform for Enterprise‑Scale Testing
Top Architect
Top Architect
May 24, 2024 · Fundamentals

Guidelines for Front‑Back End Separation and API Specification

The article explains why front‑back end separation is needed, outlines common collaboration patterns, presents a staged migration from MVC to SPA, and provides detailed API request/response standards, interface versioning, and practical steps for implementing clean separation in modern web projects.

APIarchitecturebackend
0 likes · 12 min read
Guidelines for Front‑Back End Separation and API Specification
php Courses
php Courses
May 24, 2024 · Backend Development

Using PHP intval() to Convert Variables to Integers

This article explains how PHP's built‑in intval() function converts different variable types—including strings, floating‑point numbers, and values in other bases—into integers, illustrating usage with code examples and noting that failed conversions return zero.

IntegerPHPbackend
0 likes · 4 min read
Using PHP intval() to Convert Variables to Integers
php Courses
php Courses
May 23, 2024 · Backend Development

Using curl_setopt_array() to Batch‑Set cURL Options in PHP

This article explains how to use PHP's curl_setopt_array() function to batch‑set cURL options, improving code readability and maintainability, and provides a complete example with code demonstrating initialization, option configuration, request execution, and response handling.

Networkbackendcurl
0 likes · 4 min read
Using curl_setopt_array() to Batch‑Set cURL Options in PHP
Top Architect
Top Architect
May 22, 2024 · Backend Development

Understanding Service Gateways: Definition, Benefits, and Technical Stack

This article explains what a service gateway is, why it is essential for microservice architectures, outlines its core functions such as routing, filtering, authentication, monitoring, and presents a practical Java‑based technical stack including Spring Boot, Zuul, Consul, JWT, Prometheus, ELK and JMeter.

API GatewayConsulJava
0 likes · 10 min read
Understanding Service Gateways: Definition, Benefits, and Technical Stack
Architect
Architect
May 22, 2024 · Backend Development

Replacing Tomcat with Undertow in Spring Boot: Performance and Memory Benefits

This article explains how to replace the default embedded Tomcat container in Spring Boot with Undertow, outlines the configuration steps, compares their performance and memory usage through benchmark results, and concludes that Undertow offers superior throughput for high‑concurrency Java web applications.

JavaTomcatUndertow
0 likes · 5 min read
Replacing Tomcat with Undertow in Spring Boot: Performance and Memory Benefits
php Courses
php Courses
May 22, 2024 · Backend Development

Using PHP floatval() to Convert Variables to Float

This article explains PHP's built-in floatval() function, its syntax, and provides multiple code examples showing how to convert integers, strings, booleans, and arrays to floating-point numbers, while also noting its behavior when conversion is not possible.

PHPbackendfloatval
0 likes · 4 min read
Using PHP floatval() to Convert Variables to Float
Architect's Guide
Architect's Guide
May 22, 2024 · Backend Development

Design and Implementation of a Spring Boot Starter for Request/Response Encryption and Decryption

This article explains how to build a reusable Spring Boot starter that automatically encrypts outgoing responses and decrypts incoming requests using hutool‑crypto, custom request wrappers, validation utilities, and Spring Boot advice components, providing a secure, zero‑boilerplate solution for Java backend services.

EncryptionJavaRequestBodyAdvice
0 likes · 21 min read
Design and Implementation of a Spring Boot Starter for Request/Response Encryption and Decryption
Spring Full-Stack Practical Cases
Spring Full-Stack Practical Cases
May 22, 2024 · Backend Development

How to Validate SpringBoot Configuration at Startup to Prevent Runtime Errors

This guide explains why validating configuration properties in SpringBoot 2.7 is essential, outlines the benefits such as increased robustness and faster debugging, and provides a step‑by‑step example with code snippets showing how to use @ConfigurationProperties, @Validated, and BeanPostProcessor for automatic validation at application startup.

Configuration ValidationJavabackend
0 likes · 7 min read
How to Validate SpringBoot Configuration at Startup to Prevent Runtime Errors
Java Architect Essentials
Java Architect Essentials
May 20, 2024 · Backend Development

Standardizing Spring Boot Controller Layer: Parameter Reception, Unified Status Codes, Validation, Response Wrapping, and Exception Handling

This article provides a comprehensive guide to standardizing the Spring Boot controller layer by explaining how to receive parameters, define unified status codes, apply validation annotations, wrap responses consistently, and handle exceptions globally, all illustrated with practical Java code examples.

ControllerJavaSpring Boot
0 likes · 19 min read
Standardizing Spring Boot Controller Layer: Parameter Reception, Unified Status Codes, Validation, Response Wrapping, and Exception Handling
DaTaobao Tech
DaTaobao Tech
May 20, 2024 · Backend Development

Reflections on 2023: A Backend Engineer's Journey Through DDD, Business Architecture, and Judgment Models

Reflecting on his 2023 technical writings, the author—prompted by the TV series 'Reply 1988'—structures his insights into chapters covering Domain‑Driven Design lessons illustrated by a Forrest Gump metaphor, business‑architecture note‑taking, judgment models drawn from everyday driving, and personal projects like the VSEF framework and the “曲径通幽” series, emphasizing curiosity, knowledge sharing, and continual growth.

2023DDDJudgment
0 likes · 11 min read
Reflections on 2023: A Backend Engineer's Journey Through DDD, Business Architecture, and Judgment Models
IT Services Circle
IT Services Circle
May 20, 2024 · Backend Development

Why Redis Can Become a Performance Bottleneck and How to Avoid It

The article explains several common reasons why Redis may degrade performance—such as network latency, misuse of high‑complexity commands, the KEYS command, clustered key expirations, and big‑key operations—and provides practical mitigation techniques like batch commands, TTL randomization, and lazy deletion.

Redisbackendkey management
0 likes · 8 min read
Why Redis Can Become a Performance Bottleneck and How to Avoid It
Code Ape Tech Column
Code Ape Tech Column
May 20, 2024 · Backend Development

Request Collapsing Techniques: Hystrix Collapser, Custom BatchCollapser, and ConcurrentHashMultiset

This article introduces three request‑collapsing techniques—Hystrix Collapser, a custom BatchCollapser implementation, and Guava's ConcurrentHashMultiset—explaining their design, configuration, code examples, and suitable scenarios for reducing downstream load and improving system throughput.

BatchCollapserConcurrentHashMultisetHystrix
0 likes · 16 min read
Request Collapsing Techniques: Hystrix Collapser, Custom BatchCollapser, and ConcurrentHashMultiset
Cognitive Technology Team
Cognitive Technology Team
May 19, 2024 · Backend Development

Achieving Efficient Data Transfer with Zero‑Copy Techniques

This article explains how zero‑copy technology eliminates redundant memory copies and context switches during data transmission, compares traditional read‑send workflows with zero‑copy approaches such as Linux sendfile/splice and Java's FileChannel.transferTo, and discusses performance benefits and practical considerations.

Data TransferJavaLinux
0 likes · 6 min read
Achieving Efficient Data Transfer with Zero‑Copy Techniques
Architect's Guide
Architect's Guide
May 19, 2024 · Information Security

RBAC Permission Analysis and Spring Security Integration with JWT

This article explains the fundamentals of role‑based access control (RBAC), its model variants, and user‑group usage, then demonstrates how to configure Spring Security with in‑memory authentication, integrate JWT for stateless token‑based authentication, customize JSON login, and securely encrypt passwords using BCrypt.

JavaRBACaccess control
0 likes · 15 min read
RBAC Permission Analysis and Spring Security Integration with JWT
Architecture and Beyond
Architecture and Beyond
May 18, 2024 · Backend Development

Comprehensive Guide to Caching Strategies and Implementation in Web Applications

This article explains the fundamentals of caching, enumerates various client‑side, server‑side and distributed cache types, describes common caching patterns and expiration policies, and highlights practical considerations to effectively improve web application performance and reliability.

Cache invalidationCache strategiesWeb Development
0 likes · 21 min read
Comprehensive Guide to Caching Strategies and Implementation in Web Applications
High Availability Architecture
High Availability Architecture
May 17, 2024 · Backend Development

Design and Implementation of Bilibili Live Ranking System

This article explains the business value, architecture, configuration, storage design, performance challenges, and future plans of Bilibili's live streaming ranking system, detailing how rankings are generated, stored in MySQL and Redis, and updated through automated and manual scoring pipelines.

backendlive streamingranking system
0 likes · 18 min read
Design and Implementation of Bilibili Live Ranking System
php Courses
php Courses
May 16, 2024 · Backend Development

Using PHP’s array_search() Function to Find Keys in an Array

This article explains PHP's array_search() function, detailing its purpose, prototype, parameters, return values, and provides clear code examples demonstrating how to locate keys of specific values in associative arrays, including handling of strict type comparison and cases where the value is absent.

ArraysPHParray_search
0 likes · 4 min read
Using PHP’s array_search() Function to Find Keys in an Array
php Courses
php Courses
May 16, 2024 · Backend Development

Using PHP fputs() to Write Data to Files

The article explains PHP's fputs() function, detailing its syntax, parameters, return values, and provides a complete example showing how to open a file with fopen(), write a string, handle the result, and close the file with fclose() to ensure proper resource management.

File HandlingPHPbackend
0 likes · 3 min read
Using PHP fputs() to Write Data to Files
Go Programming World
Go Programming World
May 16, 2024 · Backend Development

Using Monkey Patching with gomonkey for Unit Testing in Go

This article demonstrates how to apply Monkey Patching in Go using the gomonkey library to unit‑test a simple HTTP service, covering code examples, dependency analysis, patch creation, test execution parameters, and practical considerations such as inlining and concurrency limitations.

GoMonkey Patchingbackend
0 likes · 12 min read
Using Monkey Patching with gomonkey for Unit Testing in Go
Architect
Architect
May 15, 2024 · Backend Development

Hot‑Pluggable AOP in Spring: Dynamically Adding and Removing Advice

This article demonstrates how to implement a hot‑pluggable AOP solution in Spring by exposing endpoints that let users dynamically add or remove Advice, covering the underlying concepts, core implementation code, a demo service, and test scenarios that show logging being enabled and disabled at runtime.

AOPDynamicAdviceHotPluggable
0 likes · 10 min read
Hot‑Pluggable AOP in Spring: Dynamically Adding and Removing Advice
Selected Java Interview Questions
Selected Java Interview Questions
May 15, 2024 · Backend Development

retrofit-spring-boot-starter: A Lightweight HTTP Client Integration for Spring Boot

This article introduces retrofit-spring-boot-starter, a lightweight, type‑safe HTTP client starter that seamlessly integrates Retrofit into Spring Boot projects, outlines its key features, provides quick usage examples with Maven/Gradle dependencies, interface definitions, injection, configuration options, and advanced capabilities such as custom OkHttpClient injection, annotation‑based interceptors, connection‑pool management, logging, and retry mechanisms.

ConfigurationHTTP clientJava
0 likes · 13 min read
retrofit-spring-boot-starter: A Lightweight HTTP Client Integration for Spring Boot
php Courses
php Courses
May 15, 2024 · Backend Development

Using PHP password_hash Function for Secure Password Hashing

This article explains how to securely hash passwords in PHP using the password_hash function, describes the underlying hash concept, provides example code for hashing and verifying passwords, and highlights automatic salting and best practices for protecting user credentials.

PHPbackendpassword_hash
0 likes · 4 min read
Using PHP password_hash Function for Secure Password Hashing
php Courses
php Courses
May 14, 2024 · Backend Development

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

This article explains PHP's file() function, detailing its syntax, parameters, and usage examples for reading a file into an array, including how to handle flags such as FILE_IGNORE_NEW_LINES to control line endings.

ArraysFile HandlingFile Reading
0 likes · 4 min read
Using PHP's file() Function to Read File Contents into an Array
Programmer DD
Programmer DD
May 14, 2024 · Information Security

Why My Game Score Rankings Went Crazy: Lessons from RSA & AES API Encryption

The article recounts a real‑world incident where a game’s leaderboard showed absurd scores due to insecure API parameters, then explains RSA and AES fundamentals, demonstrates how to combine asymmetric and symmetric encryption for secure request handling, and provides Java code, custom annotations, and AOP logic to automate decryption on the server side.

AESAPI securityEncryption
0 likes · 23 min read
Why My Game Score Rankings Went Crazy: Lessons from RSA & AES API Encryption
Tencent Cloud Developer
Tencent Cloud Developer
May 14, 2024 · Backend Development

Product Middle Platform Workflow Orchestration Engine: Use Cases, Architecture, and High‑Availability Solutions

Tencent’s product middle platform employs a self‑built, stateless workflow orchestration engine—configurable via drag‑and‑drop or DSL—to coordinate massive product processing and audit tasks, using load‑balancing, retry, rate‑limiting, circuit‑breaker and service isolation strategies that ensure high availability, performance, and horizontal scalability on TKE.

DSLOrchestrationbackend
0 likes · 14 min read
Product Middle Platform Workflow Orchestration Engine: Use Cases, Architecture, and High‑Availability Solutions
Architect
Architect
May 13, 2024 · Backend Development

Push vs Pull: Designing a Scalable Feed Timeline with Redis and Cassandra

This article analyzes feed‑timeline architectures, compares pull‑based and push‑based models, proposes an online‑push/offline‑pull hybrid, and details practical implementations using Redis SortedSets, multi‑level caching with Cassandra, cursor‑based pagination, and large‑scale push task sharding.

CassandraPush‑PullRedis
0 likes · 15 min read
Push vs Pull: Designing a Scalable Feed Timeline with Redis and Cassandra
Sanyou's Java Diary
Sanyou's Java Diary
May 13, 2024 · Backend Development

Mastering Idempotent Design: 8 Proven Strategies for Reliable APIs

This article explains the concept of idempotence, why it matters in distributed systems, how to handle timeout scenarios, design principles using globally unique IDs, and eight practical implementation patterns—including database tricks, token schemes, locking, and HTTP method considerations—to build robust, repeat‑safe APIs.

backendhttpidempotence
0 likes · 21 min read
Mastering Idempotent Design: 8 Proven Strategies for Reliable APIs
Selected Java Interview Questions
Selected Java Interview Questions
May 12, 2024 · Backend Development

Optimizing Contract Signing with Strategy, Chain of Responsibility, and Composite Patterns in Java

This article explains how to improve a Java Spring Boot contract signing workflow by combining the Strategy pattern, Chain of Responsibility, and Composite patterns, detailing the process steps, project structure, code implementations, custom annotations, and dynamic bean injection to achieve a flexible and maintainable solution.

Chain of ResponsibilityDesign PatternsJava
0 likes · 13 min read
Optimizing Contract Signing with Strategy, Chain of Responsibility, and Composite Patterns in Java
Architect
Architect
May 11, 2024 · Backend Development

7 Common Cache Pitfalls and Practical Solutions

This article systematically examines seven typical cache problems—penetration, breakdown, avalanche, data inconsistency, big‑key, hot‑key, and low hit rate—explaining their root causes, illustrating concrete scenarios with diagrams and code, and presenting step‑by‑step mitigation techniques such as parameter validation, Bloom filters, locking, auto‑renewal, random expirations, high‑availability setups, and cache warm‑up.

CacheData ConsistencyPerformance
0 likes · 22 min read
7 Common Cache Pitfalls and Practical Solutions
php Courses
php Courses
May 11, 2024 · Backend Development

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

This article explains how PHP’s is_numeric() function determines whether a variable is numeric, demonstrates its usage with various data types, shows practical form‑validation examples, and highlights special cases developers should be aware of.

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

Generating Heatmaps with Baidu Map API in PHP

This tutorial explains how to use the Baidu Map API together with PHP to prepare heat‑map data, create a HeatMap instance, add weighted points, generate the heat‑map image and finally display it on a web page using JavaScript.

Baidu Map APIJavaScriptbackend
0 likes · 5 min read
Generating Heatmaps with Baidu Map API in PHP
Code Ape Tech Column
Code Ape Tech Column
May 11, 2024 · Information Security

Hybrid RSA‑AES Encryption for Secure API Parameter Transmission in Java

This article recounts a leaderboard data breach caused by tampered Base64 request parameters, then details a hybrid RSA‑AES encryption strategy—using RSA to protect the AES key, IV and timestamp while AES encrypts the actual payload—along with Java implementations, key‑generation utilities, and a Spring AOP aspect for automatic decryption, providing a comprehensive guide to securing API communications.

API securityJavaSpring AOP
0 likes · 20 min read
Hybrid RSA‑AES Encryption for Secure API Parameter Transmission in Java
Tongcheng Travel Technology Center
Tongcheng Travel Technology Center
May 10, 2024 · Backend Development

Design and Implementation of a Kafka‑Proxy for High Availability and Traffic Governance

This article presents a Kafka‑Proxy solution that enhances cluster availability, traffic governance, seamless cluster switching, near‑source production/consumption, non‑disruptive offset resetting, and message flow control through metadata sharing and a lightweight proxy layer.

Traffic Managementbackenddistributed-systems
0 likes · 16 min read
Design and Implementation of a Kafka‑Proxy for High Availability and Traffic Governance
php Courses
php Courses
May 10, 2024 · Backend Development

Using PHP's array_search Function to Find Keys by Value

This article explains how to use PHP's array_search function to locate the key of a specific value in an array, covering its syntax, parameters, basic and strict mode examples, and important considerations such as handling duplicate values and type-sensitive searches.

array-manipulationarray_searchbackend
0 likes · 4 min read
Using PHP's array_search Function to Find Keys by Value
php Courses
php Courses
May 9, 2024 · Backend Development

Implementing User Authentication and Authorization in PHP

This article explains how to implement user authentication and role‑based authorization in PHP, covering password hashing with password_hash/password_verify, database queries for credential verification, and conditional logic for granting access based on user roles, with sample code snippets illustrating each step.

PHPauthenticationauthorization
0 likes · 4 min read
Implementing User Authentication and Authorization in PHP
php Courses
php Courses
May 9, 2024 · Backend Development

Using PHP's substr() Function for String Manipulation

This article explains how to use PHP's substr() function to extract portions of a string, covering its syntax, parameters, and practical examples including specifying start positions, lengths, and negative offsets for flexible substring extraction.

PHPbackendstring
0 likes · 4 min read
Using PHP's substr() Function for String Manipulation
macrozheng
macrozheng
May 8, 2024 · Backend Development

Mastering Spring’s @Autowired: Advanced Usage, Qualifiers, and Common Pitfalls

This article explores the default behavior of Spring's @Autowired annotation, how to resolve bean name conflicts, use @Qualifier and @Primary, apply @Autowired on constructors, methods, parameters, and collections, and troubleshoot common issues such as missing annotations, filter injection, component scanning, and circular dependencies.

AutowiredJavaSpring Boot
0 likes · 15 min read
Mastering Spring’s @Autowired: Advanced Usage, Qualifiers, and Common Pitfalls
php Courses
php Courses
May 8, 2024 · Backend Development

How to Use PHP's basename() Function to Extract File Names from Paths

This article explains the PHP basename() function, detailing its syntax, parameters, and behavior across operating systems, and demonstrates its usage through three practical examples that show how to retrieve file names from absolute and relative paths, with and without suffix removal.

backendbasenamefile-path
0 likes · 4 min read
How to Use PHP's basename() Function to Extract File Names from Paths
php Courses
php Courses
May 8, 2024 · Backend Development

Using curl_multi_add_handle() in PHP to Manage Multiple cURL Handles

This article explains how PHP's curl_multi_add_handle() function can add multiple cURL handles to a single multi‑handle session, enabling efficient simultaneous network requests, with detailed syntax, parameters, and a complete example demonstrating initialization, execution, response retrieval, and cleanup.

Network RequestsPHPbackend
0 likes · 3 min read
Using curl_multi_add_handle() in PHP to Manage Multiple cURL Handles
Programmer XiaoFu
Programmer XiaoFu
May 8, 2024 · Backend Development

Quickly Secure Spring Boot APIs with RSA Encryption – A Simple Guide

This article walks through the fundamentals of RSA encryption, illustrates two security scenarios, and provides a step‑by‑step Spring Boot implementation—including Maven setup, annotations, key configuration, controller encryption, decryption testing, and practical tips—to protect API data from interception and tampering.

API EncryptionJavaRSA
0 likes · 8 min read
Quickly Secure Spring Boot APIs with RSA Encryption – A Simple Guide
JavaEdge
JavaEdge
May 7, 2024 · Backend Development

Mastering Product Management: Build SPU/SKU CRUD with Snowflake IDs in Java

This guide walks through implementing a complete product management module in a Java e‑commerce system, covering Snowflake distributed ID generation, database schema design for SPU and SKU tables, CRUD operations, category‑brand linking, audit workflow, status toggling, batch processing, and logical deletion, all with concrete code examples.

CRUDE‑commerceJava
0 likes · 16 min read
Mastering Product Management: Build SPU/SKU CRUD with Snowflake IDs in Java
php Courses
php Courses
May 7, 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 through example code how to check variables like $name, $age, and $city for string type, highlighting its usefulness for input validation and type safety.

backendis_stringphp-functions
0 likes · 4 min read
Using PHP is_string() to Check if a Variable Is a String
Open Source Tech Hub
Open Source Tech Hub
May 6, 2024 · Backend Development

How to Build a Redis-Based Delayed Queue with Lua Scripts

This article explains the concept of delayed queues, compares them with scheduled tasks, outlines common business scenarios, and provides a complete Redis implementation using Sorted Sets, Lua scripts, and PHP code, including producer and consumer examples and performance considerations.

Delayed QueueMessage QueuePHP
0 likes · 17 min read
How to Build a Redis-Based Delayed Queue with Lua Scripts
Architect
Architect
May 6, 2024 · Backend Development

Designing Effective Multi‑Level Cache Architecture for Microservices

This article explains how to build a multi‑level caching system for microservice applications, covering client‑side HTTP caching, CDN and Nginx static‑resource caching, in‑process and distributed Redis caches, consistency challenges, and practical guidelines for when such a design is beneficial.

CDNRedisbackend
0 likes · 16 min read
Designing Effective Multi‑Level Cache Architecture for Microservices
Top Architect
Top Architect
May 6, 2024 · Information Security

Designing Secure Third‑Party API Interfaces: Authentication, Signature, Token and Permission Management

This article presents a comprehensive design for secure third‑party API interfaces, covering API key generation (Access Key/Secret Key), request signing with timestamps and nonces, token handling, permission granularity, anti‑replay measures, HTTPS encryption, and practical RESTful endpoint examples with code snippets.

Access KeySignaturebackend
0 likes · 30 min read
Designing Secure Third‑Party API Interfaces: Authentication, Signature, Token and Permission Management
php Courses
php Courses
May 6, 2024 · Backend Development

Static Code Analysis with PHPStan: Benefits, Installation, and Integration

This article explains static code analysis, introduces PHPStan as a leading PHP static analysis engine, outlines its advantages, provides step‑by‑step installation and configuration instructions, describes level upgrades, and shows how to integrate it into development workflows to improve code quality and security.

PHPStanStatic Analysisbackend
0 likes · 8 min read
Static Code Analysis with PHPStan: Benefits, Installation, and Integration
Selected Java Interview Questions
Selected Java Interview Questions
May 5, 2024 · Backend Development

Deploying Redis Sentinel with Portainer and Integrating It into Spring Boot

This tutorial walks through installing Portainer, using Docker‑compose to set up a Redis master‑slave‑sentinel architecture, creating a custom bridge network, testing failover, and finally configuring a Spring Boot application to connect to the Sentinel cluster with Lettuce and connection‑pool settings.

DockerDocker ComposeRedis Sentinel
0 likes · 14 min read
Deploying Redis Sentinel with Portainer and Integrating It into Spring Boot
Architect
Architect
May 4, 2024 · Information Security

How to Secure Third‑Party APIs with AK/SK, Tokens, and Signature Strategies

This article walks through a complete security design for third‑party APIs, covering API‑key generation, request signing with timestamps and nonces, token handling, permission granularity, database schema, and practical implementation details such as rate limiting, idempotency, and TLS encryption.

API securitySignatureauthentication
0 likes · 34 min read
How to Secure Third‑Party APIs with AK/SK, Tokens, and Signature Strategies
IT Services Circle
IT Services Circle
May 4, 2024 · Backend Development

Common Backend Interface Optimization Techniques and Practices

This article shares a collection of practical backend performance‑optimization ideas—including batch database operations, asynchronous processing, caching, pre‑fetching, pooling, event‑driven callbacks, parallel remote calls, lock granularity, file‑based temporary storage, index tuning, deep‑pagination strategies, code‑level refactoring, data compression, NoSQL alternatives, thread‑pool configuration, and machine‑level troubleshooting—to dramatically reduce API latency and improve system scalability.

Asynchronousbackendthread-pool
0 likes · 16 min read
Common Backend Interface Optimization Techniques and Practices
Java Captain
Java Captain
May 4, 2024 · Backend Development

Implementing a FIFO Export Queue for Large Data Exports in Java

This article explains how to design and implement a fixed‑size FIFO export queue in a Java Spring application to control concurrent MySQL data exports, detailing the related entities, code implementation with EasyExcel, a test controller, and observed results.

EasyExcelExport QueueJava
0 likes · 10 min read
Implementing a FIFO Export Queue for Large Data Exports in Java
Code Ape Tech Column
Code Ape Tech Column
May 4, 2024 · Backend Development

Understanding PageHelper Pagination Issues and ThreadLocal Management in MyBatis

This article analyzes common anomalies caused by the PageHelper pagination plugin in a Java backend project—such as duplicate user registration, limited query results, and password‑reset errors—traces them to ThreadLocal misuse, explains the internal workflow of startPage, getLocalPage, and clearPage, and offers practical recommendations to avoid these pitfalls.

JavaMyBatisPagination
0 likes · 11 min read
Understanding PageHelper Pagination Issues and ThreadLocal Management in MyBatis
Go Programming World
Go Programming World
May 2, 2024 · Backend Development

Comprehensive Guide to Using Viper for Go Application Configuration

This article provides an in‑depth tutorial on Viper, a full‑featured Go configuration library, covering its features, usage scenarios, loading priorities, reading from files, environment variables, command‑line flags, remote stores, and best practices for managing application settings.

DevOpsGoRemote Config
0 likes · 22 min read
Comprehensive Guide to Using Viper for Go Application Configuration
Su San Talks Tech
Su San Talks Tech
May 1, 2024 · Backend Development

7 Common Cache Pitfalls and How to Avoid Them in Backend Systems

This article outlines seven typical cache issues—including cache penetration, breakdown, avalanche, data inconsistency, large keys, hot keys, and low hit rates—explains their causes, and provides practical solutions such as parameter validation, Bloom filters, locking, expiration randomization, key sharding, and cache warming to improve system reliability and performance.

CacheRedisbackend
0 likes · 20 min read
7 Common Cache Pitfalls and How to Avoid Them in Backend Systems
Architect
Architect
Apr 30, 2024 · Backend Development

Using CompletableFuture for Asynchronous Programming in Java: Examples and Best Practices

This article explains why asynchronous programming improves performance, compares serial and parallel implementations of a login flow, and demonstrates how to use Java's CompletableFuture API—including supplyAsync, runAsync, callbacks, composition, and error handling—to write efficient backend code.

AsynchronousCompletableFutureJava
0 likes · 22 min read
Using CompletableFuture for Asynchronous Programming in Java: Examples and Best Practices
Java Tech Enthusiast
Java Tech Enthusiast
Apr 30, 2024 · Backend Development

How to Prevent Message Loss and Duplication in Message Queues

This article examines why messages can be lost or duplicated in typical queue systems, explains the failure points from producer to broker to consumer, and provides practical techniques such as synchronous flushing, broker clustering, database unique constraints, and Redis deduplication to achieve reliable, idempotent processing.

KafkaMessage DuplicationMessage Loss
0 likes · 7 min read
How to Prevent Message Loss and Duplication in Message Queues
php Courses
php Courses
Apr 30, 2024 · Backend Development

Using PHP array_push() to Append Elements to an Array

This tutorial explains the PHP array_push() function, its syntax, parameter details, and demonstrates how to add single or multiple elements to an array while retrieving the new array length, complete with code examples and expected output.

ArraysPHParray_push
0 likes · 4 min read
Using PHP array_push() to Append Elements to an Array
php Courses
php Courses
Apr 30, 2024 · Information Security

Using Cloudmersive Virus Scan API in PHP to Secure File Uploads

This guide explains how to integrate the Cloudmersive virus‑scan API into a PHP application to efficiently detect and block malicious scripts in uploaded files, preventing XSS attacks and ensuring safe file handling with configurable security parameters.

Cloudmersive APIPHPVirus scanning
0 likes · 5 min read
Using Cloudmersive Virus Scan API in PHP to Secure File Uploads
DeWu Technology
DeWu Technology
Apr 29, 2024 · Backend Development

Handling Non-Standard Collection Types in Dubbo RPC with Protostuff Serialization

When Dubbo RPC uses Protostuff serialization, DTO fields declared with ambiguous types that contain non‑standard collections such as subList results can trigger ClassNotFound or null errors during deserialization, so converting these to regular JDK collections (or switching to a more tolerant format like Hessian2/JSON) restores stability.

DTODubboJava
0 likes · 8 min read
Handling Non-Standard Collection Types in Dubbo RPC with Protostuff Serialization
Architecture Digest
Architecture Digest
Apr 29, 2024 · Backend Development

Implementing a FIFO Export Queue in Spring Boot for Large Data Exports

This article explains how to design and implement a fixed-size FIFO export queue in a Spring Boot backend, using synchronized methods, EasyExcel for large data exports, and a test controller to simulate concurrent export requests, while discussing performance considerations and future enhancements.

EasyExcelExport QueueJava
0 likes · 10 min read
Implementing a FIFO Export Queue in Spring Boot for Large Data Exports
Shepherd Advanced Notes
Shepherd Advanced Notes
Apr 29, 2024 · Backend Development

How to Implement Dynamic, Configurable Data Desensitization in Spring Boot

This article walks through a Spring Boot solution for dynamically masking sensitive user data—such as names, ID numbers, phone numbers, and custom fields—by defining custom annotations, a configurable rule engine, a Redis‑backed context holder, and a Jackson serializer that applies masking at JSON serialization time, all while keeping performance overhead low.

Custom AnnotationDynamic ConfigurationHutool
0 likes · 24 min read
How to Implement Dynamic, Configurable Data Desensitization in Spring Boot
php Courses
php Courses
Apr 29, 2024 · Backend Development

Using PHP substr Function to Extract Substrings

This article explains how to use PHP's built‑in substr function to retrieve substrings by specifying start positions and lengths, covering basic syntax, parameter details, return values, and common examples such as extracting the last characters, specific ranges, and converting substrings to uppercase.

PHPString Manipulationbackend
0 likes · 4 min read
Using PHP substr Function to Extract Substrings
php Courses
php Courses
Apr 28, 2024 · Backend Development

Using array_pop() to Remove the Last Element from a PHP Array

This article explains the PHP array_pop() function, demonstrating how it removes and returns the last element of an array, showing example code, output, and best practices such as handling multiple removals and preserving the original array when needed.

PHParray manipulationarray_pop
0 likes · 3 min read
Using array_pop() to Remove the Last Element from a PHP Array