Tag

Backend

1 views collected around this technical thread.

macrozheng
macrozheng
Jun 13, 2025 · Backend Development

Why MyBatis-Plus saveBatch Triggers Unexpected Transaction Rollback and How to Fix It

This article explains a puzzling Spring Boot transaction rollback caused by MyBatis-Plus's saveBatch method, reproduces the error with nested @Transactional calls, analyzes why the rollback flag is set, and offers a practical workaround by replacing the framework batch operation with a custom mapper implementation.

BackendJavaMyBatis-Plus
0 likes · 6 min read
Why MyBatis-Plus saveBatch Triggers Unexpected Transaction Rollback and How to Fix It
php中文网 Courses
php中文网 Courses
Jun 13, 2025 · Backend Development

Master PHP’s file() Function: Read Files into Arrays with Flags

Learn how to use PHP’s built‑in file() function to read a text file into an array, control newline handling with FILE_IGNORE_NEW_LINES, skip empty lines with FILE_SKIP_EMPTY_LINES, and see practical code examples illustrating each option.

BackendPHParray
0 likes · 4 min read
Master PHP’s file() Function: Read Files into Arrays with Flags
Dual-Track Product Journal
Dual-Track Product Journal
Jun 13, 2025 · Backend Development

Layered E‑Commerce Architecture: Blueprint for Scalable Platforms

This article breaks down a mature e‑commerce platform into six layered modules—user reach, business operation, transaction fulfillment, supply chain, infrastructure, and BI—detailing core functions, design considerations, and data‑driven processes to guide scalable system design.

BackendProduct ManagementSystem Architecture
0 likes · 7 min read
Layered E‑Commerce Architecture: Blueprint for Scalable Platforms
Rare Earth Juejin Tech Community
Rare Earth Juejin Tech Community
Jun 13, 2025 · Backend Development

Turn a Spring Boot CRUD App into an AI‑Powered Service with Model Context Protocol

This guide shows how to integrate Spring Boot with the Model Context Protocol (MCP) to let large language models interact with existing services via natural language, covering entity definitions, Maven dependencies, configuration, tool annotations, and testing to create an AI‑enabled book management API.

AI integrationBackendJava
0 likes · 18 min read
Turn a Spring Boot CRUD App into an AI‑Powered Service with Model Context Protocol
Java Architect Essentials
Java Architect Essentials
Jun 13, 2025 · Backend Development

Mastering Activiti: Build and Deploy a Multi‑Level Approval Workflow in Minutes

This article walks through designing, deploying, and executing a multi‑level leave‑approval workflow using the Activiti BPM engine, covering BPMN diagram creation, Spring Boot configuration, Java code for process initiation and task handling, database tables, key services, and best‑practice development steps.

ActivitiBPMNBackend
0 likes · 23 min read
Mastering Activiti: Build and Deploy a Multi‑Level Approval Workflow in Minutes
Code Mala Tang
Code Mala Tang
Jun 12, 2025 · Backend Development

Essential FastAPI Middleware Guide: Boost Security, Performance, and Functionality

This article explains how FastAPI middleware sits between incoming requests and outgoing responses, detailing built‑in and third‑party middleware such as CORS, GZip, HTTPS redirect, session, trusted host, error handling, rate limiting, authentication, custom headers, logging, timeout, trailing‑slash handling, IP whitelisting, proxy headers, CSRF protection, context management and global state, each with usage scenarios and code examples.

BackendFastAPIPython
0 likes · 20 min read
Essential FastAPI Middleware Guide: Boost Security, Performance, and Functionality
Java Tech Enthusiast
Java Tech Enthusiast
Jun 12, 2025 · Backend Development

Why Cloudflare Replaced Nginx with Pingora: Inside the Next‑Gen Rust Proxy

This article explains how Cloudflare built Pingora, a Rust‑based HTTP proxy that outperforms Nginx in speed, efficiency, and security, detailing the architectural limits of Nginx, the decision to create a custom solution, design choices, performance gains, added features, and future plans.

BackendCloudflareHTTP
0 likes · 14 min read
Why Cloudflare Replaced Nginx with Pingora: Inside the Next‑Gen Rust Proxy
php中文网 Courses
php中文网 Courses
Jun 12, 2025 · Backend Development

Mastering PHP curl_errno(): Retrieve and Handle cURL Error Codes

Learn how to use PHP's curl_errno() function to obtain cURL request error codes, understand common error numbers, and implement robust error handling with practical code examples that initialize a cURL handle, execute requests, check for errors, and close the handle.

BackendError HandlingPHP
0 likes · 4 min read
Mastering PHP curl_errno(): Retrieve and Handle cURL Error Codes
Spring Full-Stack Practical Cases
Spring Full-Stack Practical Cases
Jun 12, 2025 · Backend Development

Master Spring Boot 3 Interception: Filters, Security, Interceptors & AOP

This article explains the various interception mechanisms in Spring Boot 3—including Filters, Spring Security filters, MVC Interceptors, AOP, ControllerAdvice, Request/ResponseBodyAdvice, and REST Clients—provides execution flow diagrams, detailed code examples, and practical usage tips for building robust backend applications.

AOPBackendFilters
0 likes · 14 min read
Master Spring Boot 3 Interception: Filters, Security, Interceptors & AOP
Top Architect
Top Architect
Jun 11, 2025 · Backend Development

How I Refactored a Bloated Open‑Source Admin into a Lean Backend Solution

The author shares a personal journey from early backend work to full‑stack responsibilities, critiques heavyweight admin frameworks, and explains how they rebuilt a lightweight enterprise admin using MyBatisPlus, Lombok, and streamlined architecture, while outlining future enhancements such as email, payment, multi‑tenant, and distributed scheduling.

BackendJavaLombok
0 likes · 9 min read
How I Refactored a Bloated Open‑Source Admin into a Lean Backend Solution
macrozheng
macrozheng
Jun 11, 2025 · Backend Development

Why Do Some Companies Force All APIs to Use POST? Pros, Cons, and Best Practices

The article examines why some companies mandate POST for every API, compares GET and POST characteristics, discusses RESTful principles, weighs the benefits and drawbacks, and offers practical guidance while showcasing an open‑source microservice project for deeper learning.

API designBackendGET
0 likes · 11 min read
Why Do Some Companies Force All APIs to Use POST? Pros, Cons, and Best Practices
php中文网 Courses
php中文网 Courses
Jun 11, 2025 · Backend Development

Master PHP’s array_unique(): Remove Duplicates and Sort Arrays Efficiently

Learn how to use PHP’s array_unique() function to eliminate duplicate values from arrays, understand its parameters—including optional sort flags—and see practical code examples that demonstrate deduplication and sorting for both string and numeric arrays.

BackendPHParray_unique
0 likes · 4 min read
Master PHP’s array_unique(): Remove Duplicates and Sort Arrays Efficiently
php中文网 Courses
php中文网 Courses
Jun 11, 2025 · Backend Development

PHP vs WordPress: Which Should Power Your Next Web Project?

An in‑depth comparison of PHP and WordPress examines their strengths, weaknesses, ideal use cases, performance and security considerations, and shows how developers can choose or combine them based on project requirements, team expertise, and long‑term maintenance goals.

BackendCMSPHP
0 likes · 8 min read
PHP vs WordPress: Which Should Power Your Next Web Project?
php中文网 Courses
php中文网 Courses
Jun 11, 2025 · Backend Development

How to Retrieve the First Key of an Array in PHP with array_key_first()

Learn how to use PHP's array_key_first() function introduced in PHP 7.3 to obtain the first key of an array, see syntax, example code, handling empty arrays, and fallback to array_keys() for older PHP versions.

BackendFunctionsPHP
0 likes · 3 min read
How to Retrieve the First Key of an Array in PHP with array_key_first()
Code Mala Tang
Code Mala Tang
Jun 10, 2025 · Backend Development

Boost Your FastAPI API Performance with Redis Caching: A Step‑by‑Step Guide

This tutorial explains how to integrate Redis caching into a FastAPI application, covering installation, connection handling, cache expiration, testing, cache clearing, and best‑practice considerations to dramatically improve API response times and scalability.

BackendFastAPIPerformance
0 likes · 9 min read
Boost Your FastAPI API Performance with Redis Caching: A Step‑by‑Step Guide
Mike Chen's Internet Architecture
Mike Chen's Internet Architecture
Jun 10, 2025 · Backend Development

Why Is Your Kafka Consumer Slow? Proven Strategies to Boost Throughput

This article explains why Kafka consumers often become bottlenecks—due to complex processing, resource constraints, or sub‑optimal configuration—and provides concrete steps such as profiling Java code, simplifying logic, using background threads, scaling consumer instances, and tuning key consumer parameters.

BackendConsumerDocker Compose
0 likes · 4 min read
Why Is Your Kafka Consumer Slow? Proven Strategies to Boost Throughput
php中文网 Courses
php中文网 Courses
Jun 10, 2025 · Backend Development

Unlock Go’s Power: Master the Most Essential Standard Library Packages

This guide walks through Go’s most powerful standard library packages—fmt, net/http, sync, encoding/json, context, os/io, testing, time, sort, and reflect—showing practical code examples, advanced tips, and best‑practice recommendations to boost development efficiency and write professional Go code.

BackendConcurrencyGo
0 likes · 20 min read
Unlock Go’s Power: Master the Most Essential Standard Library Packages
macrozheng
macrozheng
Jun 9, 2025 · Backend Development

Mastering Redis Hotspot Keys: Detection, Risks, and Solutions

This article explains what Redis hotspot keys are, the performance and stability issues they cause, common causes, how to monitor and identify them, and practical mitigation strategies such as cluster scaling, key sharding, and multi‑level caching.

BackendMonitoringPerformance
0 likes · 10 min read
Mastering Redis Hotspot Keys: Detection, Risks, and Solutions