Tagged articles

Backend

5000 articles · Page 20 of 50
Tencent Cloud Developer
Tencent Cloud Developer
Jun 6, 2024 · Backend Development

Tencent News Recommendation Architecture Upgrade

Tencent News upgraded its recommendation architecture by consolidating data platforms, redesigning index and feature services, adopting DDD and Lambda/Kappa patterns, and adding robust debugging and stability measures, which boosted availability to 99.99%, cut CPU, memory and cost by over 60%, and accelerated development and experiment cycles.

BackendDDDPerformance
0 likes · 28 min read
Tencent News Recommendation Architecture Upgrade
php Courses
php Courses
Jun 5, 2024 · Backend Development

Using PHP’s is_float() Function to Check for Floating-Point Numbers

This article explains PHP’s built‑in is_float() function, demonstrating how it checks whether a variable is a floating‑point number, with simple and complex code examples, output explanations, and notes on type strictness and practical usage scenarios.

BackendFunctionsPHP
0 likes · 5 min read
Using PHP’s is_float() Function to Check for Floating-Point Numbers
Top Architect
Top Architect
Jun 3, 2024 · Backend Development

Understanding Delay Queues and Implementing Them with JDK, RabbitMQ, Redis, and lmstfy

This article explains the concept, use cases, and common implementations of delay queues—including JDK's DelayQueue, RabbitMQ plugins, and Redis ZSet—followed by a detailed guide to installing, configuring, and using the open‑source lmstfy project, and concludes with promotional information for ChatGPT‑related services.

BackendGoRabbitMQ
0 likes · 14 min read
Understanding Delay Queues and Implementing Them with JDK, RabbitMQ, Redis, and lmstfy
Architecture Digest
Architecture Digest
Jun 3, 2024 · Backend Development

Spring Statemachine for Order State Management with Persistence, Exception Handling, and AOP Logging

This article explains the fundamentals of finite state machines, introduces Spring Statemachine, demonstrates how to model order lifecycle states, configure persistence with memory and Redis, handle exceptions during state transitions, and use AOP to log transition results, providing complete Java code examples.

AOPBackendJava
0 likes · 23 min read
Spring Statemachine for Order State Management with Persistence, Exception Handling, and AOP Logging
php Courses
php Courses
Jun 3, 2024 · Backend Development

Using fopen() in PHP: Syntax, Parameters, and Practical Examples

This article explains PHP's fopen() function, detailing its syntax, parameters, and four practical code examples for reading, writing, appending, and accessing URLs, while emphasizing proper mode selection and the importance of closing file handles to release resources.

BackendCode ExamplesFile Handling
0 likes · 3 min read
Using fopen() in PHP: Syntax, Parameters, and Practical Examples
FunTester
FunTester
Jun 3, 2024 · Backend Development

Implementing Unix Domain Socket Communication in Java with junixsocket

This article demonstrates how to use the junixsocket library to add Unix domain socket support to Java applications, providing Maven dependency details, full server and client code examples, and cross‑language testing with a Go server implementation.

BackendIPCJava
0 likes · 6 min read
Implementing Unix Domain Socket Communication in Java with junixsocket
Selected Java Interview Questions
Selected Java Interview Questions
Jun 2, 2024 · Backend Development

Implementing a Data Permission Interceptor with MyBatis‑Plus in Java

This article explains how to create a custom annotation and MyBatis‑Plus interceptor that automatically injects data‑permission WHERE clauses based on the current user's role, covering both a basic implementation and an advanced version with role‑based scope handling, complete with configuration and usage examples.

BackendData PermissionJava
0 likes · 16 min read
Implementing a Data Permission Interceptor with MyBatis‑Plus in Java
Tech Architecture Stories
Tech Architecture Stories
Jun 1, 2024 · Backend Development

Surviving a Pandemic-Scale Backend: Lessons from Tencent’s 2020 Video Red‑Packet Project

This article recounts the technical and organizational challenges of building Tencent WeSee's 2020 Spring video red‑packet system, detailing high‑traffic spikes, consistency and security demands, TRPC adoption risks, performance bottlenecks, and the 33 robustness principles that guided the subsequent architecture overhaul.

Backendscalabilitysystem architecture
0 likes · 8 min read
Surviving a Pandemic-Scale Backend: Lessons from Tencent’s 2020 Video Red‑Packet Project
21CTO
21CTO
May 31, 2024 · Backend Development

When Outsourcing Becomes a Nightmare: A Backend Developer’s Survival Story

A senior developer recounts how a Fortune‑500 project's ill‑planned outsourcing to a vendor using a massive MongoDB JSON store led to performance bottlenecks, hidden limits, and a frantic internal rewrite that forced the team to work through holidays and ultimately deliver a successful release.

BackendMongoDBcase study
0 likes · 12 min read
When Outsourcing Becomes a Nightmare: A Backend Developer’s Survival Story
Selected Java Interview Questions
Selected Java Interview Questions
May 31, 2024 · Backend Development

Flexible Switching Between Spring @Scheduled and XXL‑JOB for Scheduled Tasks

This article explains how to implement a configuration‑driven mechanism that dynamically switches between Spring's native @Scheduled tasks and XXL‑JOB execution, automatically registers jobs, disables Spring's scheduler when needed, and forwards logs to the XXL‑JOB console, providing a complete starter solution for backend developers.

AutoConfigurationBackendJava
0 likes · 25 min read
Flexible Switching Between Spring @Scheduled and XXL‑JOB for Scheduled Tasks
php Courses
php Courses
May 31, 2024 · Backend Development

Using PHP readfile() to Output File Contents to Browser or Another File

This article explains the PHP readfile() function, its syntax and return values, and provides step‑by‑step examples showing how to display a text file in the browser, force a download, and copy its contents to another file using simple PHP code.

BackendFile HandlingPHP
0 likes · 4 min read
Using PHP readfile() to Output File Contents to Browser or Another File
php Courses
php Courses
May 30, 2024 · Backend Development

Using PHP's floatval Function to Convert Variables to Float

This article explains PHP’s built‑in `floatval` function, showing its syntax, how it converts various variable types—including integers, strings, booleans, and arrays—to floating‑point numbers, and highlights important considerations such as handling non‑numeric strings that result in a zero value.

BackendPHPfloatval
0 likes · 4 min read
Using PHP's floatval Function to Convert Variables to Float
Code Ape Tech Column
Code Ape Tech Column
May 30, 2024 · Backend Development

Dynamic Loading of JAR Files in Spring Boot Applications

This article explains the concepts and step-by-step implementation of dynamically loading JAR packages in Spring Boot applications, covering built‑in classloader usage, creating JARs, and leveraging third‑party libraries to enhance flexibility and extensibility.

BackendClassLoaderDynamic Loading
0 likes · 9 min read
Dynamic Loading of JAR Files in Spring Boot Applications
Java Architect Essentials
Java Architect Essentials
May 29, 2024 · Backend Development

Deploying Redis Sentinel with Portainer and Integrating It into Spring Boot

This tutorial walks through installing Portainer, using it to deploy a Redis master‑slave‑sentinel cluster with Docker Compose, creating a custom bridge network, testing failover, and finally integrating the sentinel setup into a Spring Boot application with Lettuce connection pooling and sample controller code.

BackendDockerDocker Compose
0 likes · 15 min read
Deploying Redis Sentinel with Portainer and Integrating It into Spring Boot
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.

BackendFile HandlingPHP
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.

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

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

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

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

BackendDependency InjectionDesign Patterns
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
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.

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

BackendCI/CDJava Agent
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.

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

Backendcurlcurl_setopt_array
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 GatewayBackendConsul
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.

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

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

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

BackendConfiguration ValidationJava
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.

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

2023BackendBusiness Architecture
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.

BackendKey ManagementRedis
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.

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

BackendData TransferJava
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.

Access ControlAuthenticationBackend
0 likes · 15 min read
RBAC Permission Analysis and Spring Security Integration with JWT
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.

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

BackendFile HandlingPHP
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.

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

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

BackendConfigurationHTTP Client
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.

BackendPHPpassword_hash
0 likes · 4 min read
Using PHP password_hash Function for Secure Password Hashing
Alibaba Cloud Developer
Alibaba Cloud Developer
May 15, 2024 · Operations

How We Cut Application Deployment Time by 70%: A Step‑by‑Step Case Study

This article documents how a team reduced the average deployment time of the omega application from 229 seconds to 69.71 seconds—a 69% speed‑up—by analyzing startup logs, removing unused middleware, upgrading libraries, fixing logging configurations, and applying async bean creation and script optimizations.

BackendOperationsPerformance Optimization
0 likes · 11 min read
How We Cut Application Deployment Time by 70%: A Step‑by‑Step Case Study
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.

BackendFile 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 SecurityBackend
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.

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

BackendCassandraPush‑Pull
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.

BackendChain of ResponsibilityDesign Patterns
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.

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

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

BackendBaidu Map APIData Visualization
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 SecurityBackendJava
0 likes · 20 min read
Hybrid RSA‑AES Encryption for Secure API Parameter Transmission in Java
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.

Backendarray-manipulationarray_search
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.

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

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

BackendDependency InjectionJava
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.

BackendNetwork RequestsPHP
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 EncryptionBackendJava
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.

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

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

BackendCDNMicroservices
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 KeyBackendsignature
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.

BackendPHPStanSoftware Security
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.

BackendDockerDocker Compose
0 likes · 14 min read
Deploying Redis Sentinel with Portainer and Integrating It into Spring Boot