Skip to content

Stay curious. Build better.

Appearance

Choose how BestHub looks on this device.

Changes apply immediately.

Search articles

Open Discover with these filters

Suggested searches

Explore BestHub

#Backend Development

RSS feed
Follow or choose interest 7-day signal and related keywords

Latest articles

500 articles in the current browsing window, ordered by publication date.

Three Ways to Call External APIs in Spring Boot: HttpClient, RestTemplate, and Feign

This article demonstrates three methods for invoking external services in Spring Boot applications—using raw HttpClient, the RestTemplate utility, and Feign clients—providing code examples, configuration steps, and tips for handling headers and tokens to simplify integration without Dubbo.

Mastering Spring Boot: Deep Dive into Core Extension Points

This guide explains Spring and Spring Boot's highly extensible architecture by detailing nine core extension points, their injection timing, practical uses, and best‑practice recommendations, enabling developers to customize the container lifecycle from startup to runtime.

Build a Simple PHP Router from Scratch: Step‑by‑Step Guide

This tutorial walks you through creating a lightweight PHP router—from understanding routing fundamentals and setting up project structure to writing the core Router class, configuring URL rewriting, defining routes with parameters, testing, and exploring extensions—empowering you to grasp framework internals and handle HTTP requests without a full‑stack framework.

When to Use SSE vs WebSocket: A Practical Guide with Node.js Demo

This article explains server‑to‑client push scenarios, compares polling, WebSocket and Server‑Sent Events (SSE), details SSE APIs and browser compatibility, and provides complete front‑end and back‑end Node.js demos to help you choose the right technology for real‑time data delivery.

How to Build Python Microservices with Zero‑Intrusion Service Discovery Using Nacos

This article introduces a Python‑centric microservice solution built on Nacos that brings non‑intrusive service registration, low‑threshold discovery, and flexible configuration to Python applications, offering code examples, CLI tools, import hooks, and middleware to achieve Java‑like ease of use in the cloud‑native era.

Spring Boot 4.0 Preview: Key New Features, Roadmap, and Upgrade Guide

Spring Boot 4.0, currently in preview with a GA slated for November 2025, introduces modular architecture, API versioning, BeanRegistrar, JSpecify null‑safety, GraalVM native image support, virtual threads, and up to 800% performance gains, while outlining a detailed release timeline and migration considerations for developers.

9 Hidden Spring Boot 3 Annotations That Supercharge Your Apps

This article introduces nine often‑overlooked Spring Boot 3 annotations—including @ConditionalOnExpression, @ConstructorBinding, @EventListener, @Lazy, @EnableConfigurationProperties, @Profile, @Scheduled, @Scope, and @Retryable—explaining their purpose, showing practical code examples, and demonstrating how they improve configuration, immutability, event handling, circular‑dependency resolution, and fault tolerance.

How to Instantly Spin Up a Full PHP Development Stack with Laradock

This guide explains how Laradock provides a ready‑to‑use Docker‑based PHP development environment, covering its configurable .env file, seamless PHP version switching, Chinese mirror acceleration, custom container builds, and step‑by‑step commands to launch services like NGINX, MySQL, Redis, and Composer.

Master Spring Boot AOP: Practical Guide to Logging, Transactions, and Performance

Spring Boot AOP simplifies cross‑cutting concerns such as logging, transaction management, and monitoring by using proxy‑based aspect‑oriented programming; this guide walks through adding dependencies, core concepts, proxy mechanisms, configuration, defining aspects with various advice types, custom annotations, real‑world scenarios, best practices, and troubleshooting tips.

Unlock Java’s New Power: Why JDK 17’s “Magic Syntax” Beats JDK 8

This article explains why upgrading from Java 8 to the long‑term‑support JDK 17 is essential, detailing record types, sealed classes, pattern matching, text blocks, var inference, enhanced switch, and other modern features that dramatically reduce boilerplate, improve readability, and boost performance for backend developers.

How to Refresh Spring Boot Configurations at Runtime with @RefreshScope

This article explains why traditional Java apps require restarts for config changes, introduces Spring Boot's @RefreshScope for zero‑downtime hot‑reloading, details its core principles, provides step‑by‑step implementation, troubleshooting tips, best practices, and advanced use cases for dynamic configuration in production environments.

Mastering Message Idempotency: From Simple Checks to State‑Machine Solutions

This article explores the challenges of duplicate message consumption in distributed systems, explains why naive de‑duplication fails under high concurrency, and presents four progressively robust idempotency strategies—from database pessimistic locks and local message tables to a state‑machine approach with Redis or MySQL, highlighting their trade‑offs.

What’s New in PHP 8.5? Explore Pipelines, NoDiscard, Array Helpers & More

PHP 8.5 arrives with a suite of developer‑friendly enhancements—including a pipeline operator that eliminates temporary variables, a NoDiscard attribute that enforces return‑value usage, new array_first/array_last helpers, constant‑expression closures, global constant attributes, an exception‑handler getter, IntlListFormatter, CLI diff tools, a build‑date constant, and refined final property syntax—making everyday coding cleaner, safer, and more efficient.

Master 11 Spring Boot Bean Registration Techniques for Dynamic Applications

Explore 11 practical Spring Boot bean registration methods—from simple @Component scanning to advanced ImportSelector, FactoryBean, and runtime dynamic registration—detailing code examples, use cases, and configuration steps, enabling developers to choose the optimal approach for flexible, modular applications.

Master Spring Boot 3: 171 Real-World Cases and Advanced Techniques

This article presents a continuously updated collection of 171 Spring Boot 3 practical cases, covering advanced topics such as global exception handling, custom interceptors, bean retrieval, configuration imports, startup runners, bean definition modification, initialization methods, custom scopes, and graceful shutdown, with full code examples and a free PDF ebook.

Master Spring’s Core: IoC, DI, AOP & Transaction Explained

This article provides a comprehensive overview of the Spring framework, covering its core principles such as Inversion of Control, Dependency Injection, Aspect‑Oriented Programming, and transaction management, while illustrating each concept with diagrams and practical code examples for Java developers.

Which Java Technologies Are Truly Obsolete in 2025? A Backend Developer’s Guide

The article reviews Java technologies that have become outdated—such as JSP, Struts, Hibernate, Applet, Swing, JDBC, and XML—explaining why they no longer merit learning and recommending modern alternatives like Spring MVC, MyBatis, and a deep understanding of Servlets for today's backend development.

Generate PDFs with Spring Boot 3, iText, and Thymeleaf – 170 Real‑World Cases

This article presents a comprehensive guide to generating PDF documents in Spring Boot 3 applications using iTextpdf and Thymeleaf, covering environment setup, Maven dependencies, data model, HTML template design, controller implementation, and a test case that produces a correctly rendered PDF with external CSS and images.

Mastering SpringDoc: Quick Setup and Advanced Grouping in Spring Boot

SpringDoc is a Spring Boot library that automatically generates OpenAPI 3 compliant API documentation, offering seamless integration with Swagger UI; this guide explains its advantages over SpringFox, walks through minimal configuration, grouping strategies, and handling of security and resource handling for robust API documentation.

Master Dynamic SQL in Spring Boot 3 with jpa-search-helper: Real‑World Examples

This article introduces dynamic SQL techniques for Spring Boot 3, compares JPA and MyBatis implementations, and demonstrates how the powerful jpa-search-helper library simplifies complex queries with both map‑based and JSON‑based modes, including pagination and sorting examples.

Master Java Backend Interview Questions: HTTP Status, JVM, Multithreading & More

This article shares Beike's recent campus hiring salary data and provides a comprehensive Java backend interview guide covering HTTP response codes, session vs. cookie, runtime and checked exceptions, abstract classes vs. interfaces, StringBuilder vs. String, JVM memory structure, multithreading techniques, thread‑pool parameters, the synchronized keyword, B+‑tree indexing, and essential Linux commands.

Master Spring Expression Language (SpEL) in Spring Boot 3: Real-World Cases

This article introduces Spring Expression Language (SpEL) for Spring Boot 3, explains its core features such as collection filtering, projection, Elvis and safe navigation operators, method and bean references, regular‑expression handling, and arithmetic expressions, and provides complete runnable code examples demonstrating each technique.

How to Debug SpringBoot Live Without Restart: A Zero‑Impact Injection Tool

This article explains the pain points of traditional Java backend debugging, compares existing solutions, and presents a SpringBoot zero‑impact online debug injector built with ByteBuddy, Java Instrumentation, and a lightweight Tailwind/Alpine.js UI that enables instant, precise, and secure method‑level debugging in production.

Master Long‑Running Workflows in Spring Boot 3 with Temporal

This article walks through building a robust, long‑running order‑processing workflow in Spring Boot 3 using the open‑source Temporal workflow engine, covering environment setup, Maven dependencies, configuration, workflow and activity definitions, service and controller code, and testing of retry and recovery features.

Unlock Million-Scale Concurrency in Go: Goroutine, Channel & Real-World Patterns

Discover how Go transforms massive concurrency challenges into elegant communication using goroutines, channels, select, and the GMP scheduler, and learn practical patterns such as producer-consumer, pub/sub, worker pools, pipelines, and a prime sieve, complete with runnable code snippets and engineering tips for robust backend systems.

10 Real‑World Scenarios Where Message Queues Transform Your System

This article explores ten practical use‑cases for message queues—covering system decoupling, asynchronous processing, traffic shaping, data synchronization, log collection, broadcast updates, ordered and delayed messages, retry mechanisms, and transactional messaging—illustrated with Java code examples and architectural diagrams.

Master ThinkTemplate: High‑Performance XML‑Based PHP Template Engine

ThinkTemplate is a high‑performance, XML‑based compiled PHP template engine originally built for ThinkPHP, offering customizable delimiters, native PHP support, file inclusion, multi‑level nesting, caching, variable defaults, security controls, and flexible tag types, with detailed installation and usage examples for web frameworks.

Why the New Official PHP MCP SDK Is a Game‑Changer for AI‑Powered Development

On September 5, 2025 the PHP Foundation announced the launch of an official PHP Model Context Protocol (MCP) SDK, detailing its purpose to standardize AI integration, its collaboration with existing community projects, key features like framework support and cross‑platform compatibility, and the early development milestones achieved.

Master Real-Time Data Streaming in Spring Boot 3: StreamingResponseBody vs SSE

This article compares Spring Boot 3's StreamingResponseBody and SseEmitter approaches for server‑side streaming, providing complete backend and frontend implementations, code samples, and performance considerations to help developers choose the right solution for real‑time data delivery.

How to Eliminate a 1M‑Message MQ Backlog Without Adding Servers: 5 Proven Strategies

This article explains why message queues can accumulate millions of messages, analyzes root causes such as over‑fast producers and slow consumers, and presents five practical solutions—including consumer code optimization, queue‑strategy tweaks, producer rate limiting, dead‑letter handling, and automated monitoring—to dramatically reduce backlog without costly hardware scaling.

How to Migrate Complex PHP Data Safely While Minimizing Downtime

This guide outlines essential strategies for PHP developers to execute complex data migrations—covering thorough planning, incremental migration, transaction safety, dual‑write architectures, feature‑flag rollouts, real‑time syncing, and comprehensive monitoring—to ensure data integrity and keep system downtime to a minimum.

Boost Your Java Backend with MyBatisPlusPro: A Complete CRUD Controller Guide

This article walks through building a reusable BaseController using MyBatisPlusPro in a Spring Boot application, covering dependency setup, utility methods for query conversion, generic CRUD endpoints, pagination configuration, and how to extend the controller for specific entities, providing ready‑to‑use code snippets for each step.

How mica-mqtt 2.5.4 Simplifies Dynamic Topic Parsing with Native Annotation Support

mica-mqtt 2.5.4 introduces native Topic variable parsing via enhanced @MqttClientSubscribe and @MqttServerFunction annotations, enabling effortless handling of dynamic MQTT topics, along with performance boosts, server subscription management upgrades, flexible heartbeat detection, and several breaking changes for improved code maintainability.

How Global Exception Handling Can Slash Crash Rates by 90% in Java Services

This article explains why uncaught exceptions can cripple a Java backend, demonstrates a three‑layer global exception handling strategy with Spring Boot, shows how circuit‑breaker rules further protect services, and provides real‑world data proving crash rates can drop from over 4% to under 0.1%.

How AI Can Auto‑Generate a Complete Java E‑Commerce Order System from 0 to 1

This tutorial walks through using the Lingma AI assistant to automatically create, configure, and run a full Java Maven e‑commerce order project—including environment setup, SQLite persistence, CRUD services, unit tests, and architecture visualization—showing each prompt, command, and generated code snippet.

Simplify Java Stream Operations with JDFrame: A Semantic DataFrame API

This article introduces JDFrame/SDFrame, a JVM‑level DataFrame library that provides a more semantic and concise API for Java 8 stream processing, showcases quick start steps, detailed API categories such as filtering, aggregation, grouping, sorting, joining, and explains the differences between SDFrame and JDFrame with practical code examples.

Why Switching to MyBatis‑Plus Can Break LocalDateTime Handling and How to Fix It

The article walks through replacing MyBatis with MyBatis‑Plus in a legacy project, explains the LocalDateTime conversion errors caused by version changes in MyBatis and mysql‑connector‑java, shows how upgrading the JDBC driver resolves the issue, and shares lessons on cautious component upgrades and testing.

Explore 160 Real-World Spring Boot 3 Cases – Free PDF Updated to 130+

This article presents a free, continuously updated collection of 160 practical Spring Boot 3 examples, organized into nine annotation categories with clear explanations and code snippets, allowing developers to master component scanning, bean lifecycle, dependency injection, MVC, configuration, JPA, exception handling, AOP, and testing.

Unlocking Tomcat’s Secrets: Deep Dive into Architecture, Design Patterns, and Class Loading

This comprehensive guide explores Tomcat’s mature architecture, detailing its connector and container components, the underlying design patterns such as composite, observer, and template method, and the custom class‑loading mechanisms that enable modularity, hot‑reloading, and isolation for Java web applications.

Mastering Redis BitMap for Efficient Sign‑In and Statistics in Spring Boot

This article explains how to implement a memory‑efficient sign‑in feature and continuous‑sign‑in statistics using Redis BitMap, covering basic commands, Spring Boot integration, key design, code examples, and advanced use cases such as cache‑penetration mitigation, providing step‑by‑step guidance for backend developers.

Unlocking JDK 17: Key Features, ZGC Benefits, and Upgrade Strategies

This article explores JDK 17's major language enhancements, new APIs, and performance‑focused improvements such as ZGC, then details Meituan's security‑team migration experience, performance benchmarks, practical upgrade steps, and JVM tuning tips for a smooth transition from JDK 8 to JDK 17.

Simplify Java HTTP Calls with UniHttp: A Declarative Framework Guide

This article introduces UniHttp, a declarative HTTP‑client framework for Java that replaces traditional HttpClient/OkHttp code with annotation‑driven interfaces, shows quick‑start setup, explains all supported annotations, lifecycle hooks, custom client configuration, and a real‑world enterprise integration example.

From State Machines to a Custom Workflow Engine: Scaling Quality Inspection Processes

This article chronicles the evolution of a quality‑inspection system from a simple finite state machine to a self‑developed, lightweight workflow engine, detailing the motivations, design decisions, implementation steps, challenges faced, and future roadmap for flexible, configurable process orchestration.

Unlock Java’s New Power: 7 Must‑Know JDK 17 Features for Modern Developers

This article walks through JDK 17’s most impactful language upgrades—including records, sealed classes, pattern matching, text blocks, var inference, enhanced switch, and new APIs—explaining their syntax, practical use cases, and how they simplify Java code while improving performance and maintainability.

How AI‑Powered Dynamic Auditing Transforms Product Review at Dewu

This article details Dewu's shift from manual product checks to an AI‑driven, dynamically configurable audit system that improves review speed, accuracy, and scalability while reducing manual effort through rule engines, HTTP‑based algorithm calls, and extensive data analysis.

Backend Essentials: TCP/UDP, HTTP, Linux, MySQL Indexes & C++ Basics

This article compiles essential backend knowledge, covering TCP vs UDP differences, why HTTP uses TCP, HTTP/2 and HTTP/3 improvements, status codes, long vs short connections, key Linux process commands, MySQL B+Tree indexing, C++ struct/class nuances, STL container types, map thread‑safety, and queue versus stack distinctions.

Unlock Faster Development with Scaffolding Frameworks: Spring Boot, Maven, Vue

Scaffolding tools—ranging from backend frameworks like Spring Boot, Maven, and Dropwizard to frontend solutions such as Vue CLI—streamline software development by promoting reuse, adhering to DRY and Open‑Closed principles, and preventing developers from reinventing the wheel, ultimately boosting productivity and maintainability.

When "null" Becomes a Real Username: Hidden Bugs and How to Prevent Them

This article reveals how treating the string "null" as a legitimate username can cause user experience glitches, log confusion, database contamination, security risks, and automation failures, and provides practical backend, frontend, and database validation strategies to safeguard your applications.

Up to 500 articles, 100 per page. The archive offers another way to explore older articles.