Tagged articles

spring

1855 articles · Page 1 of 19
LuTiao Programming
LuTiao Programming
Aug 21, 2026 · Backend Development

Spring’s New Multitenancy: Serving 1,000 Tenants with One Spring Boot App Without Hand‑Writing tenant_id

The article explains how Spring’s latest multitenancy support, combined with Spring Security, JWT and Hibernate’s @TenantId, lets a single Spring Boot application safely serve thousands of SaaS tenants by automatically isolating data, avoiding manual tenant_id filters, and handling indexes, native SQL, and async tasks.

JWTSpring Securitydatabase-index
0 likes · 11 min read
Spring’s New Multitenancy: Serving 1,000 Tenants with One Spring Boot App Without Hand‑Writing tenant_id
Java Architect Handbook
Java Architect Handbook
Aug 18, 2026 · Backend Development

Why Misusing Spring Event Can Destroy Your Service Performance

The article analyzes common pitfalls of Spring Event—such as publishing during shutdown or early startup, unsuitability for strong‑consistency use cases, and the need for graceful shutdown, idempotent listeners, and extra reliability measures—while comparing it with message‑queue solutions.

Eventual ConsistencyPublish-SubscribeSpring Boot
0 likes · 12 min read
Why Misusing Spring Event Can Destroy Your Service Performance
Architect's Guide
Architect's Guide
Aug 16, 2026 · Backend Development

How Architects Can Achieve Unified Login Across Company Products

The article explains why traditional session mechanisms break in clustered and multi‑service environments, compares session replication and centralized storage, introduces CAS‑based single sign‑on with ticket flow, contrasts it with OAuth2, and provides a complete Spring‑Boot demo with Redis‑backed session handling.

AuthenticationCASJava
0 likes · 15 min read
How Architects Can Achieve Unified Login Across Company Products
Architect's Guide
Architect's Guide
Aug 7, 2026 · Backend Development

A Clear Diagram of the User Login Verification Process

This article walks through a complete user login flow—including client verification, token generation, expiration policies, gateway validation, logout handling, anonymous access, rate‑limiting via authorized tokens, regex path checks, and blacklist management—illustrated with diagrams and Spring‑Redis code examples.

AuthenticationRedisgateway
0 likes · 9 min read
A Clear Diagram of the User Login Verification Process
Java Tech Workshop
Java Tech Workshop
Jul 29, 2026 · Backend Development

Why Spring Boot’s Built‑in StopWatch Is a Cleaner Way to Measure Execution Time

The article explains the drawbacks of manually using System.currentTimeMillis for multi‑stage timing, introduces Spring’s StopWatch utility from spring‑core, demonstrates its API and code examples, shows three common usage scenarios, warns about pitfalls, compares it with raw timers, and argues why Spring itself adopts StopWatch for concise, structured performance monitoring.

AOPJavaPerformance
0 likes · 12 min read
Why Spring Boot’s Built‑in StopWatch Is a Cleaner Way to Measure Execution Time
dbaplus Community
dbaplus Community
Jul 27, 2026 · Backend Development

Why Java AI Coding Feels Slower and How to Build a Harness Environment in Five Steps

The article explains that Java micro‑service projects feel a whole order of magnitude slower for AI‑assisted coding because they rely on cloud‑only infrastructure, and it presents a five‑principle methodology—dependency inversion, zero‑intrusion profiles, CLI‑first tools, local adapters, and verification scripts—to create a local Harness environment that lets AI agents verify and iterate code autonomously.

AI codingCLIJava
0 likes · 24 min read
Why Java AI Coding Feels Slower and How to Build a Harness Environment in Five Steps
LuTiao Programming
LuTiao Programming
Jul 25, 2026 · Backend Development

Why Delayed Double Delete Fails: A Hierarchical Java Design for MySQL‑Redis Consistency

The article analyzes why MySQL and Redis cannot guarantee strong consistency with simple cache‑aside patterns, explains the pitfalls of delayed double delete, and presents a tiered Java design—including transaction‑after‑commit deletion, retryable invalidation, CDC/Outbox pipelines, TTL safeguards, and multi‑level cache considerations—to achieve reliable cache consistency.

CDCCache invalidationJava
0 likes · 22 min read
Why Delayed Double Delete Fails: A Hierarchical Java Design for MySQL‑Redis Consistency
Top Architect
Top Architect
Jul 24, 2026 · Backend Development

Stop Manually Deploying JARs: Embrace Dynamic Hot Deployment

The article demonstrates how to let users upload a JAR that implements a given interface, then hot‑replace the implementation at runtime using either reflection or Spring annotation‑based loading, covering class loading, bean registration, and cleanup with concrete code examples.

Dynamic LoadingHot DeploymentJava
0 likes · 10 min read
Stop Manually Deploying JARs: Embrace Dynamic Hot Deployment
LuTiao Programming
LuTiao Programming
Jul 24, 2026 · Backend Development

Why Scheduled Tasks Run Multiple Times in a Cluster – The Real Issue Isn’t Quartz but Poor Architecture

When a Java application that uses Spring’s @Scheduled moves from a single server to a cluster, the same job may execute on every node, causing duplicate orders, messages, and data; the article explains why this happens, examines common lock‑based fixes and their pitfalls, and proposes a robust, idempotent, sharded task architecture.

@ScheduledJavaTask Sharding
0 likes · 15 min read
Why Scheduled Tasks Run Multiple Times in a Cluster – The Real Issue Isn’t Quartz but Poor Architecture
java1234
java1234
Jul 21, 2026 · Backend Development

Why Spring 7 Is Moving Away From Feign (And What to Use Instead)

Spring 7 doesn’t remove Feign from the classpath but officially discourages its use, labeling OpenFeign as feature‑complete and recommending the new Spring Framework HTTP Service Client, with a detailed comparison, migration steps, and guidance on when Feign may still be viable.

FeignHTTP Service ClientSpring 7
0 likes · 10 min read
Why Spring 7 Is Moving Away From Feign (And What to Use Instead)
Java Tech Workshop
Java Tech Workshop
Jul 21, 2026 · Backend Development

A Lighter‑Than‑MQ Async Solution: Spring’s Hidden Transactional Event Feature

The article explains how Spring’s built‑in @Async and TransactionalEventListener mechanisms provide a lightweight, zero‑dependency alternative to external message queues for local asynchronous processing, detailing their advantages, limitations, and production‑grade enhancements such as custom thread pools, dead‑letter persistence, and clustering strategies.

JavaMessage QueueTransactionalEventListener
0 likes · 17 min read
A Lighter‑Than‑MQ Async Solution: Spring’s Hidden Transactional Event Feature
samdeepthink
samdeepthink
Jul 20, 2026 · Fundamentals

Good Architecture Means Cutting Components, Not Adding More

The article argues that seasoned developers improve system architecture by removing unnecessary components—such as redundant Redis caches or message queues—rather than continuously adding new ones, because each addition raises complexity and maintenance overhead, while simpler designs are easier to manage and evolve.

Message QueueRedisSoftware Architecture
0 likes · 3 min read
Good Architecture Means Cutting Components, Not Adding More
Su San Talks Tech
Su San Talks Tech
Jul 19, 2026 · Backend Development

Why Is Spring Dropping Feign for @HttpExchange?

The article analyzes Spring Framework’s new native HTTP Interface (@HttpExchange), comparing it with OpenFeign in terms of architecture, dependency management, performance, and suitability for reactive programming, and provides migration guidance and practical code examples.

@HttpExchangeFeignPerformance
0 likes · 16 min read
Why Is Spring Dropping Feign for @HttpExchange?
Java Architect Handbook
Java Architect Handbook
Jul 17, 2026 · Backend Development

Interview Question: What’s the Relationship Between BeanFactory and FactoryBean?

This article explains the distinction between Spring's BeanFactory and FactoryBean, covering their roles, core APIs, typical implementations, key differences in registration and retrieval, classic use cases, common pitfalls, and frequent interview follow‑up questions, with concrete code examples and comparison tables.

BeanFactoryFactoryBeanInterview
0 likes · 10 min read
Interview Question: What’s the Relationship Between BeanFactory and FactoryBean?
Coder Trainee
Coder Trainee
Jul 16, 2026 · Backend Development

Complete Summary of the Six‑Part Java Interview High‑Frequency Questions Series

This article compiles all 60 high‑frequency Java interview questions from six core backend topics—basics, collections, concurrency, JVM, Spring, and microservices—provides a quick‑reference table, outlines the most common and hardest questions, and shares a five‑layer answering technique for interview success.

InterviewJVMJava
0 likes · 10 min read
Complete Summary of the Six‑Part Java Interview High‑Frequency Questions Series
Coder Trainee
Coder Trainee
Jul 16, 2026 · Interview Experience

Java Interview Essentials: 10 Must‑Ask Microservice Questions

This article presents ten essential microservice interview questions, covering service registration and discovery, API gateways, fault tolerance, distributed transactions, tracing, configuration management, messaging, ID generation, and service decomposition, each explained with principles, diagrams, code snippets, and tips for impressing interviewers.

InterviewJavabackend
0 likes · 14 min read
Java Interview Essentials: 10 Must‑Ask Microservice Questions
Coder Trainee
Coder Trainee
Jul 14, 2026 · Backend Development

Top 10 Must‑Know Spring Interview Questions for Java Developers

This article walks through the ten most frequently asked Spring interview topics—including IoC/DI concepts, bean lifecycle, AOP mechanics, circular‑dependency resolution, @Transactional behavior, Spring Boot startup steps, auto‑configuration, @Autowired vs @Resource, bean scopes, and the differences between servlet filters and Spring interceptors—providing concrete code examples and key points that can earn interviewers' extra credit.

AOPBean ScopeIoC
0 likes · 12 min read
Top 10 Must‑Know Spring Interview Questions for Java Developers
Java Tech Workshop
Java Tech Workshop
Jul 11, 2026 · Backend Development

Mastering @Valid and @Validated: Practical Group Validation in Spring

This article explains the fundamental differences between Spring's @Valid and @Validated annotations, demonstrates how to apply group validation, nested object checks, and custom validation annotations, and provides a complete strategy for global exception handling and production‑grade best practices.

Custom AnnotationGroup ValidationJava
0 likes · 17 min read
Mastering @Valid and @Validated: Practical Group Validation in Spring
IoT Full-Stack Technology
IoT Full-Stack Technology
Jul 9, 2026 · Backend Development

Comprehensive Collection of Java Backend Architecture Diagrams

This article compiles a comprehensive set of 31 Java‑related architecture diagrams, covering core components such as the class loader, JVM, threading, Spring, Hibernate, as well as related technologies like Android, Linux kernel, cloud computing, and enterprise solutions, each illustrated with detailed images.

AndroidJVMJava
0 likes · 5 min read
Comprehensive Collection of Java Backend Architecture Diagrams
IoT Full-Stack Technology
IoT Full-Stack Technology
Jul 8, 2026 · Backend Development

Comprehensive Collection of Java Backend Architecture Diagrams

This article presents a curated list of 31 Java backend architecture diagrams, covering class loader, JVM, technology stack, thread runtime, compilation, JMS, JMX, Spring, Hibernate, iBATIS, Struts, EJB, portal, Android, cloud, Linux kernel, VMware, SAP, SOA, GIS ESB, CRM, and OA, each illustrated with detailed images.

JVMJavaarchitecture
0 likes · 6 min read
Comprehensive Collection of Java Backend Architecture Diagrams
Java Tech Workshop
Java Tech Workshop
Jul 4, 2026 · Backend Development

Why Spring Chooses Its Own SPI Over Java’s Native ServiceLoader

The article compares Java’s native SPI with Spring’s custom SPI, explains the fundamental flaws of ServiceLoader, details SpringFactoriesLoader’s lazy loading and conditional filtering, and shows why SpringBoot auto‑configuration relies entirely on its own SPI mechanism.

AutoConfigurationJavaSPI
0 likes · 13 min read
Why Spring Chooses Its Own SPI Over Java’s Native ServiceLoader
Cloud Architecture
Cloud Architecture
Jul 1, 2026 · Backend Development

8 Asynchronous Programming Techniques: From Thread Pools and MQ to Virtual Threads

The article examines eight practical ways to implement asynchronous programming—thread pools, CompletableFuture, Spring @Async, message queues, event‑driven architecture, reactive streams, the Actor model, and coroutines/virtual threads—explaining their core mechanisms, trade‑offs, production‑grade configurations, and when each should be chosen.

Asynchronous ProgrammingJavaMessage Queue
0 likes · 53 min read
8 Asynchronous Programming Techniques: From Thread Pools and MQ to Virtual Threads
Java Tech Workshop
Java Tech Workshop
Jul 1, 2026 · Backend Development

Resolving AOP + IOC Circular Dependency Conflicts in Spring

The article explains why Spring's three‑level cache solves simple circular dependencies but fails for AOP‑enhanced beans, describes the timeline mismatch that causes BeanCurrentlyInCreationException, and presents tiered solutions including @Lazy injection, setter refactoring, early proxy processing, and architectural redesign.

AOPBeanCircular Dependency
0 likes · 14 min read
Resolving AOP + IOC Circular Dependency Conflicts in Spring
Java Tech Workshop
Java Tech Workshop
Jun 28, 2026 · Backend Development

Inside Spring AOP: Full Lifecycle of Proxy Object Creation

The article provides a step‑by‑step analysis of Spring AOP’s proxy creation process, explaining why some beans are proxied, how @Order, @EnableAspectJAutoProxy, proxyTargetClass and exposeProxy affect proxying, the differences between JDK and CGLIB proxies, and why private, static or final methods cannot be intercepted.

AOPAspectJBean Lifecycle
0 likes · 15 min read
Inside Spring AOP: Full Lifecycle of Proxy Object Creation
Coder Trainee
Coder Trainee
Jun 27, 2026 · Backend Development

Mastering Java Thread‑Pool Tuning: Practical Performance Tips

This article explains why Java thread pools need tuning, walks through the seven core ThreadPoolExecutor parameters, provides formula‑based sizing, offers configuration templates for different workloads, shows monitoring and dynamic adjustment techniques, and highlights common pitfalls with concrete code examples.

JavaPerformance TuningThreadPoolExecutor
0 likes · 8 min read
Mastering Java Thread‑Pool Tuning: Practical Performance Tips
Cloud Architecture
Cloud Architecture
Jun 27, 2026 · Backend Development

Spring Multi-Level Cache: Production Design & Management with Caffeine + Redis

Spring’s multi‑level caching combines Caffeine’s ultra‑fast local store with Redis’s distributed capacity to tackle high‑concurrency challenges such as read amplification, cache storms, consistency, and capacity management, offering a production‑grade design, implementation details, risk boundaries, and evolution paths for robust Spring applications.

CacheCaffeineMulti-Level Cache
0 likes · 36 min read
Spring Multi-Level Cache: Production Design & Management with Caffeine + Redis
Java Tech Workshop
Java Tech Workshop
Jun 27, 2026 · Backend Development

Why Do final, static, and private Methods Escape Spring AOP Proxying?

The article explains that Spring AOP cannot intercept methods marked as private, static, or final because JDK dynamic proxies only work on public interface methods and CGLIB subclasses cannot override such methods, leading to static matching but dynamic execution failure, self‑invocation bypass, and complete loss of advice for these method types.

AOPCGLIBJDK Proxy
0 likes · 11 min read
Why Do final, static, and private Methods Escape Spring AOP Proxying?
Tinker Programmer
Tinker Programmer
Jun 25, 2026 · Interview Experience

Singleton Pattern: 6 Implementations, DCL Volatile Pitfall, Spring vs GoF

The article examines the evolution of six singleton implementations in Java, explains why the double‑checked locking pattern requires the volatile keyword to prevent instruction reordering bugs, compares Spring container‑managed singletons with classic GoF singletons, and highlights common pitfalls such as mutable state in singleton beans.

Design PatternJavaVolatile
0 likes · 13 min read
Singleton Pattern: 6 Implementations, DCL Volatile Pitfall, Spring vs GoF
Linyb Geek Road
Linyb Geek Road
Jun 25, 2026 · Backend Development

8 Hard‑Earned Rules for Using Spring @Transactional Correctly

Drawing on a decade of production experience, the article presents eight concrete rules for Spring @Transactional—covering transaction duration, proxy limitations, rollback settings, exception handling, read‑only flags, method visibility, bean separation for retries, and logging—to prevent common bugs and ensure reliable database operations.

JavaSpring BootTransaction Management
0 likes · 12 min read
8 Hard‑Earned Rules for Using Spring @Transactional Correctly
Tinker Programmer
Tinker Programmer
Jun 24, 2026 · Fundamentals

Master Strategy, Observer, and Chain of Responsibility with Spring & MQ examples

This article walks through the three core behavioral design patterns—Strategy, Observer, and Chain of Responsibility—explaining their intent, showing problematic anti‑patterns, providing step‑by‑step Spring and MQ code implementations, mapping them to real‑world frameworks, and offering interview‑style comparison questions to solidify understanding.

Chain of ResponsibilityDesign PatternsJava
0 likes · 19 min read
Master Strategy, Observer, and Chain of Responsibility with Spring & MQ examples
Java Tech Workshop
Java Tech Workshop
Jun 24, 2026 · Backend Development

Mastering Spring AOP: All Four Types of Advice Explained

Spring AOP provides five distinct advice types—@Before, @AfterReturning, @AfterThrowing, @After, and @Around—each with specific execution timing; this guide explains their purposes, execution order, common pitfalls, and offers a complete SpringBoot example with code, Maven setup, and logging demonstrations.

AOPJavaLogging
0 likes · 13 min read
Mastering Spring AOP: All Four Types of Advice Explained
Cloud Architecture
Cloud Architecture
Jun 21, 2026 · Backend Development

How to Build a Production‑Ready AI Service with Spring 7.0 and Spring AI for High‑Concurrency Microservices

This article explains how to integrate large language models into enterprise Java microservices using Spring 7.0 and Spring AI, covering architectural layers, design principles, code structure, resilience, observability, and a step‑by‑step production checklist to turn AI capabilities into a maintainable, high‑throughput service.

AIJavabackend
0 likes · 38 min read
How to Build a Production‑Ready AI Service with Spring 7.0 and Spring AI for High‑Concurrency Microservices
Java Tech Workshop
Java Tech Workshop
Jun 21, 2026 · Backend Development

Mastering Spring’s BeanPostProcessor: The Ultimate Hook for Advanced Container Customization

Spring’s BeanPostProcessor is a global container hook that intercepts every bean’s lifecycle, enabling custom initialization, dynamic proxying, annotation processing, and resource cleanup; the article explains its three-tier hierarchy, execution order, priority rules, practical use‑cases like auto‑injection, logging, data masking, and common pitfalls.

AOPBeanPostProcessorDynamic Proxy
0 likes · 18 min read
Mastering Spring’s BeanPostProcessor: The Ultimate Hook for Advanced Container Customization
Java Tech Workshop
Java Tech Workshop
Jun 20, 2026 · Backend Development

How Custom Spring Converters Eliminate Date and Enum Parameter Pain Points

The article explains why front‑end date and enum parameters often cause parsing errors in Spring applications, describes the two independent conversion mechanisms in Spring MVC and Jackson, and provides a step‑by‑step guide to building global custom converters that unify date formats and enum mappings across the whole project.

Custom ConverterEnum MappingJackson
0 likes · 17 min read
How Custom Spring Converters Eliminate Date and Enum Parameter Pain Points
Java Tech Workshop
Java Tech Workshop
Jun 19, 2026 · Backend Development

BeanFactory vs ApplicationContext: The Real Differences You Must Know

The article explains how BeanFactory is a minimal, lazy‑loading container that only creates and caches beans, while ApplicationContext extends it with eager pre‑loading, full annotation, AOP, transaction, environment and event support, and outlines their respective use cases and pitfalls.

ApplicationContextBeanFactoryEager Loading
0 likes · 9 min read
BeanFactory vs ApplicationContext: The Real Differences You Must Know
Java Tech Workshop
Java Tech Workshop
Jun 18, 2026 · Backend Development

Understanding @Lazy in Spring: Solving Circular Dependencies and Accelerating Startup

The article explains that Spring's @Lazy annotation has two distinct mechanisms—class‑level lazy bean creation and dependency‑level proxy placeholders—detailing how each works, when to apply them, common pitfalls such as transaction and aspect failures, and best‑practice scenarios for reducing startup time while safely handling circular dependencies.

@LazyBean ProxyCircular Dependency
0 likes · 12 min read
Understanding @Lazy in Spring: Solving Circular Dependencies and Accelerating Startup
Java Tech Workshop
Java Tech Workshop
Jun 17, 2026 · Backend Development

Step‑by‑Step Source Code Walkthrough of Spring’s Singleton Bean Creation

This article dissects Spring’s singleton bean creation process, explaining the three‑level cache system, the doGetBean and doCreateBean workflows, circular‑dependency handling, proxy generation timing, and common pitfalls such as multithreaded duplicate creation and hot‑deployment cache issues.

Bean LifecycleCacheCircular Dependency
0 likes · 11 min read
Step‑by‑Step Source Code Walkthrough of Spring’s Singleton Bean Creation
Java Tech Workshop
Java Tech Workshop
Jun 16, 2026 · Backend Development

How Spring’s Third‑Level Cache Resolves Circular Dependencies

The article explains Spring’s three kinds of circular dependencies, the role of the first, second, and third‑level caches in the DefaultSingletonBeanRegistry, how the third‑level cache works with AOP proxies, why constructor injection cannot be solved, the @Lazy workaround, and the hidden bugs and best‑practice recommendations.

AOPBean LifecycleCircular Dependency
0 likes · 12 min read
How Spring’s Third‑Level Cache Resolves Circular Dependencies
Programmer XiaoFu
Programmer XiaoFu
Jun 15, 2026 · Backend Development

Why a Simple Redis Mutex Lock Isn’t Enough for Cache Breakdown – When to Use Never‑Expire or Logical Expiration

The article analyzes why a basic Redis mutex lock can cause thread blocking, latency spikes, and service collapse under high concurrency, and compares it with logical expiration and never‑expire with proactive updates, explaining their trade‑offs and how to choose the right cache‑breakdown mitigation strategy.

CacheJavaLogical Expiration
0 likes · 12 min read
Why a Simple Redis Mutex Lock Isn’t Enough for Cache Breakdown – When to Use Never‑Expire or Logical Expiration
Java Tech Workshop
Java Tech Workshop
Jun 14, 2026 · Backend Development

Spring Bean Scopes: 5 Types, Common Pitfalls and Concurrency Gotchas

The article explains the five Spring Bean scopes, clarifies that scope only controls instance count and not thread safety, and walks through real‑world concurrency bugs such as mutable singleton fields, prototype beans losing their prototype nature, and request‑scoped beans failing in async threads, offering concrete fixes and usage recommendations.

Bean ScopeJavaPrototype
0 likes · 10 min read
Spring Bean Scopes: 5 Types, Common Pitfalls and Concurrency Gotchas
Java Tech Workshop
Java Tech Workshop
Jun 13, 2026 · Backend Development

Which DI Injection Method Should You Use in Production? Field vs Setter vs Constructor

The article compares Spring's three dependency‑injection styles—field, setter, and constructor—showing code, execution order, source‑code mechanics, risks such as null‑pointer windows and reflection tampering, and concludes that constructor injection (preferably with Lombok @RequiredArgsConstructor) is the production‑grade choice.

Constructor InjectionField InjectionJava
0 likes · 10 min read
Which DI Injection Method Should You Use in Production? Field vs Setter vs Constructor
ITPUB
ITPUB
Jun 9, 2026 · Backend Development

How to Prevent Server Crashes from Concurrent Excel Exports with a Queue

The article explains why simultaneous Excel exports can overload a server, proposes a fixed‑size FIFO queue to serialize export tasks, and provides a complete Spring‑Boot implementation—including the ExportQueue, abstract export logic with EasyExcel, and a test controller—to demonstrate the queuing mechanism in action.

EasyExcelExcel exportJava
0 likes · 11 min read
How to Prevent Server Crashes from Concurrent Excel Exports with a Queue
The Dominant Programmer
The Dominant Programmer
Jun 7, 2026 · Backend Development

Executing Asynchronous Operations After Spring Transaction Commit: Principles, Pitfalls, and Best Practices

The article explains why sending messages before a Spring transaction commits can cause data inconsistency, and demonstrates how to reliably execute asynchronous actions such as MQ notifications after a successful commit using TransactionSynchronization, custom collectors, and @TransactionalEventListener, while highlighting common pitfalls and mitigation strategies.

AsynchronousJavaMQ
0 likes · 16 min read
Executing Asynchronous Operations After Spring Transaction Commit: Principles, Pitfalls, and Best Practices
Cloud Architecture
Cloud Architecture
Jun 4, 2026 · Backend Development

Kafka Backlog Mastery: Root Causes, Emergency Fixes, and Production‑Grade Governance

This comprehensive guide explains why Kafka message backlog occurs, how to diagnose its root causes, and provides a step‑by‑step 5‑minute emergency response and production‑grade consumer architecture, including back‑pressure control, idempotent processing, capacity planning, observability, and cloud‑native deployment strategies.

BacklogConsumerKafka
0 likes · 48 min read
Kafka Backlog Mastery: Root Causes, Emergency Fixes, and Production‑Grade Governance
IoT Full-Stack Technology
IoT Full-Stack Technology
Jun 3, 2026 · Backend Development

Can We Achieve Seamless Account Interoperability Across Multiple Company Systems?

The article examines the challenges of multiple corporate systems requiring separate logins, explains traditional session mechanisms and their limitations in clustered environments, compares session replication versus centralized storage, and presents a complete Java Spring implementation of CAS‑based single sign‑on with code samples and a discussion of differences from OAuth2.

AuthenticationCASJava
0 likes · 13 min read
Can We Achieve Seamless Account Interoperability Across Multiple Company Systems?
Programmer XiaoFu
Programmer XiaoFu
May 29, 2026 · Backend Development

Why Does Spring Use a Third-Level Cache When the Second-Level Cache Can Resolve Circular Dependencies?

Spring’s bean factory uses a three‑level cache—singletonObjects, earlySingletonObjects, and singletonFactories—to handle circular dependencies, but only the third level is needed when AOP proxies are involved, allowing lazy proxy creation without breaking the standard bean lifecycle.

AOPBean LifecycleCircular Dependency
0 likes · 9 min read
Why Does Spring Use a Third-Level Cache When the Second-Level Cache Can Resolve Circular Dependencies?
ITPUB
ITPUB
May 28, 2026 · Backend Development

Skipping Spring Upgrades: Hidden Risks or Upgrade Hazards? Tanzu Spring’s Answer

Enterprise Java teams face mounting technical debt and accelerating security vulnerabilities from outdated Spring versions, a problem amplified by AI‑driven attacks, and Tanzu Spring offers a six‑year extended lifecycle, automated upgrade tooling, AI‑integrated governance, and 24/7 vendor support to safely modernize their applications.

AIJavaLifecycle
0 likes · 11 min read
Skipping Spring Upgrades: Hidden Risks or Upgrade Hazards? Tanzu Spring’s Answer
Architect's Guide
Architect's Guide
May 27, 2026 · Backend Development

Comprehensive Collection of Java Backend Architecture Diagrams

This article compiles over thirty detailed architecture diagrams covering Java class loaders, JVM, Spring, Hibernate, Android, Linux kernel, cloud computing, and various enterprise technologies, offering developers a visual reference library for understanding and designing Java backend systems.

JVMJavabackend architecture
0 likes · 5 min read
Comprehensive Collection of Java Backend Architecture Diagrams
Java Architect Handbook
Java Architect Handbook
May 23, 2026 · Backend Development

How to Preheat Cache During Spring Startup – Interview Guide

The article explains four ways to preheat caches in Spring during startup, recommends CommandLineRunner/ApplicationRunner as the safest option, and discusses timing, async handling, error protection, and distributed‑lock strategies to avoid common pitfalls in production environments.

CommandLineRunnerInterviewSpring Boot
0 likes · 13 min read
How to Preheat Cache During Spring Startup – Interview Guide
samdeepthink
samdeepthink
May 22, 2026 · Backend Development

How to Answer Bean Thread‑Safety Questions from an Architecture‑Responsibility Perspective

The article breaks down Bean thread‑safety into container‑level creation safety and business‑level usage safety, explains Spring's four concurrency strategies, details the implementation of Singleton, Prototype, Request and Session scopes, compares them with other DI frameworks, and argues why Spring's division of responsibilities is appropriate.

BeanPrototypeScope
0 likes · 14 min read
How to Answer Bean Thread‑Safety Questions from an Architecture‑Responsibility Perspective
Programmer1970
Programmer1970
May 19, 2026 · Interview Experience

What Do Interviewers Really Test When They Ask About Design Patterns?

The article shows that interviewers don’t just want you to list design patterns; they assess your ability to identify real scenarios, solve concrete problems, justify trade‑offs, and discuss implementation details, illustrated with payment and order‑processing examples in Java and Spring.

Chain of ResponsibilityDesign PatternsFactory Pattern
0 likes · 11 min read
What Do Interviewers Really Test When They Ask About Design Patterns?
Java Tech Enthusiast
Java Tech Enthusiast
May 13, 2026 · Backend Development

Why Adding Spring HATEOAS Stops Front‑End Teams From Chasing Swagger Updates

The article explains how integrating Spring HATEOAS transforms a Level‑2 REST API into a hypermedia‑driven Level‑3 API, automatically exposing actionable links, reducing front‑end state‑handling, enabling type‑safe URL generation, and simplifying RBAC integration, thereby eliminating the need for constant Swagger revisions.

API designRESTSecurity
0 likes · 7 min read
Why Adding Spring HATEOAS Stops Front‑End Teams From Chasing Swagger Updates
samdeepthink
samdeepthink
May 10, 2026 · Backend Development

Why Debugging Is the Best Way to Master Framework Source Code

The author argues that understanding frameworks through a debugging mindset and concise demo programs—such as inspecting Redis’s single‑threaded model, Spring’s circular‑dependency resolution, ThreadPoolExecutor’s rejection policy, and HashMap’s resize behavior—provides deeper insight than memorization, and shows how to isolate problems into minimal, testable units.

DebuggingFrameworksHashMap
0 likes · 4 min read
Why Debugging Is the Best Way to Master Framework Source Code
samdeepthink
samdeepthink
May 9, 2026 · Backend Development

When You Can’t Understand Someone Else’s Code, Is It Their Skill or Yours?

The article explains that difficulty reading code often stems from unfamiliar design patterns and complex construction logic rather than poor code quality, illustrating with factory and strategy patterns in inventory systems, and provides a checklist to distinguish between genuinely bad code and gaps in a developer’s knowledge.

Code OrganizationDesign PatternsFactory Pattern
0 likes · 9 min read
When You Can’t Understand Someone Else’s Code, Is It Their Skill or Yours?
Coder Trainee
Coder Trainee
May 8, 2026 · Backend Development

How Spring Boot Instantiates Beans and Resolves Circular Dependencies

This article walks through Spring Boot's bean creation pipeline—from the initial getBean call through doGetBean, the three‑level singleton cache, and the detailed steps of createBean, populateBean, and initializeBean—explaining how circular dependencies are safely resolved and where AOP proxies are generated.

AOPBeanBean Lifecycle
0 likes · 14 min read
How Spring Boot Instantiates Beans and Resolves Circular Dependencies
MeowKitty Programming
MeowKitty Programming
May 6, 2026 · Backend Development

Why Faster AI Code Generation Demands Strong Transaction Boundaries for Java Developers

As AI accelerates Java business code generation, developers must carefully define transaction boundaries, distinguishing atomic operations, avoiding oversized or overly fragmented transactions, and coordinating with messaging and caching to ensure consistency, recoverability, and reliable system behavior.

AI code generationJavaTransaction Management
0 likes · 8 min read
Why Faster AI Code Generation Demands Strong Transaction Boundaries for Java Developers
CodeNotes
CodeNotes
May 4, 2026 · Backend Development

Mastering ThreadLocal in Java: Core Principles, Real‑World Scenarios & Best Practices

This article explains how ThreadLocal provides per‑thread variable copies in Java web applications, details its internal storage in Thread objects, showcases ten practical scenarios—from request tracing to async tasks—and highlights common pitfalls such as memory leaks and thread‑pool data contamination, offering concrete best‑practice recommendations.

JavaLoggingMemoryLeak
0 likes · 23 min read
Mastering ThreadLocal in Java: Core Principles, Real‑World Scenarios & Best Practices
Java Tech Workshop
Java Tech Workshop
May 3, 2026 · Backend Development

Mastering Java Annotations: From Basic Usage to Custom Annotation Processors

This article explains the fundamentals of Java annotations, their core purposes, built‑in annotations, meta‑annotations, and provides step‑by‑step practical examples for creating a runtime @Sensitive annotation and a compile‑time @AutoGetter processor, while also dissecting how Spring leverages annotations for component scanning, dependency injection, and request mapping.

Annotation ProcessorJavaMeta‑annotations
0 likes · 27 min read
Mastering Java Annotations: From Basic Usage to Custom Annotation Processors
java1234
java1234
Apr 30, 2026 · Backend Development

Designing Clean Backend APIs: Unified Responses, Validation, and Exception Handling in Spring

The article explains how to refactor Spring controller code by introducing a unified response structure, using ResponseBodyAdvice for automatic wrapping, fixing String conversion issues through message‑converter ordering, applying JSR‑303 validation (including custom validators), and implementing custom exceptions with a global exception handler, resulting in concise, maintainable backend APIs.

ControllerExceptionHandlingResponseBodyAdvice
0 likes · 18 min read
Designing Clean Backend APIs: Unified Responses, Validation, and Exception Handling in Spring
dbaplus Community
dbaplus Community
Apr 29, 2026 · Backend Development

Choosing a Scheduling Solution: Quartz vs XXL‑Job vs @Scheduled – Core Principles, Use Cases, Pros & Cons

The article provides a detailed comparison of three Java scheduling solutions—Spring's @Scheduled, Quartz, and XXL‑Job—covering their underlying mechanisms, key features, typical scenarios, common pitfalls, and practical recommendations to help developers select the most suitable option for their projects.

@ScheduledQuartzTask Scheduling
0 likes · 18 min read
Choosing a Scheduling Solution: Quartz vs XXL‑Job vs @Scheduled – Core Principles, Use Cases, Pros & Cons
Top Architect
Top Architect
Apr 28, 2026 · Backend Development

Elegant API Rate Limiting with Spring Interceptor and Redis

This article demonstrates a step‑by‑step implementation of API anti‑brush (rate limiting) using a Spring Interceptor combined with Redis, explains how to configure time windows and request limits, introduces a custom @AccessLimit annotation for fine‑grained control, discusses path‑parameter pitfalls, real‑IP handling, and shares practical testing results.

API securityInterceptorJava
0 likes · 20 min read
Elegant API Rate Limiting with Spring Interceptor and Redis
Java Architect Handbook
Java Architect Handbook
Apr 22, 2026 · Backend Development

How Changing Five Lines of Code Boosted API Throughput Over 10×

A low‑traffic B2B service struggled to meet a 500 req/s demand, achieving only 50 req/s with high CPU usage; through systematic profiling, lock analysis, async refactoring, thread‑pool tuning, and eliminating costly Spring bean creation, the team dramatically improved response times and throughput, revealing deeper CPU‑usage mysteries.

JavaPerformance OptimizationThroughput
0 likes · 16 min read
How Changing Five Lines of Code Boosted API Throughput Over 10×
Alibaba Cloud Developer
Alibaba Cloud Developer
Apr 22, 2026 · Artificial Intelligence

Spring AI Agent Demo: Architecture, RAG, Tools & Sub‑Agents Explained

An in‑depth walkthrough of a Spring AI‑based AI Agent demo showcases its core modules—including AgentCore orchestration, multi‑layer conversation memory compression, function‑calling tool registration, RAG retrieval pipelines, markdown‑driven Commands and Skills, Sub‑Agent isolation, and MCP integration—complete with code snippets, design rationale, and runtime configuration details.

AIAgentFunctionCalling
0 likes · 27 min read
Spring AI Agent Demo: Architecture, RAG, Tools & Sub‑Agents Explained
Java Backend Full-Stack
Java Backend Full-Stack
Apr 20, 2026 · Backend Development

What Skills Should a 3‑Year Java Backend Developer Master?

The article outlines a comprehensive skill matrix for a three‑year Java backend engineer, covering core Java and JVM knowledge, mainstream frameworks, storage, messaging, containerization, architecture, engineering practices, soft skills, and emerging trends such as AI integration and reactive programming.

DockerJVMJava
0 likes · 9 min read
What Skills Should a 3‑Year Java Backend Developer Master?
IT Services Circle
IT Services Circle
Apr 18, 2026 · Backend Development

7 Common Spring Backend Code Review Mistakes and Their Fixes

This article shares seven frequent pitfalls discovered during Spring backend code reviews—such as misuse of @Async, exposing exception details, non‑unique lock values, deep pagination, missing batch operations, lack of authorization, and insecure file uploads—and provides concrete corrected examples and best‑practice recommendations.

JavaSecuritybackend development
0 likes · 13 min read
7 Common Spring Backend Code Review Mistakes and Their Fixes
Coder Trainee
Coder Trainee
Apr 18, 2026 · Backend Development

Building a Tech Blog from Scratch: Implementing a Comment System and Full‑Text Search

This article walks through the design and implementation of a nested comment system with likes, @‑mentions, and sensitive‑word filtering, plus full‑text search using Elasticsearch, covering database schema changes, backend services, Vue components, and recommendation logic for a technical blog platform.

ElasticsearchFull-text SearchJava
0 likes · 23 min read
Building a Tech Blog from Scratch: Implementing a Comment System and Full‑Text Search
Java Tech Workshop
Java Tech Workshop
Apr 18, 2026 · Backend Development

Deep Dive into SpringBoot @Transactional: How It Works and Common Pitfalls

This article explains the fundamentals of transaction management in SpringBoot, detailing the ACID properties, the @Transactional annotation’s AOP‑based implementation, core attributes such as propagation, isolation, rollback rules, timeout and read‑only mode, and provides practical code examples for single‑ and multi‑datasource scenarios.

IsolationJavaSpringBoot
0 likes · 20 min read
Deep Dive into SpringBoot @Transactional: How It Works and Common Pitfalls
Java Architect Essentials
Java Architect Essentials
Apr 15, 2026 · Backend Development

Spring 7.0.4: Hidden Deadlock Fix and 30‑50% Startup Boost for K8s Apps

The article analyzes a nondeterministic deadlock bug in Spring 7.0.0‑7.0.3 that surfaces in Kubernetes pods, explains how Spring 7.0.4 resolves it with a revised shutdown state machine, details additional performance‑related fixes and new features, and provides practical upgrade guidance based on JDK version and deployment scenario.

BugFixJavaKubernetes
0 likes · 14 min read
Spring 7.0.4: Hidden Deadlock Fix and 30‑50% Startup Boost for K8s Apps
Top Architect
Top Architect
Apr 13, 2026 · Backend Development

Why Did a Forgotten Transaction Block Payments? A Deep Dive into Spring’s Transaction Management

An online payment service suffered invisible data loss and lock timeouts because a newly deployed business branch failed to commit its transaction, leading to polluted connections that were reused by other services, and the article explains the root cause, debugging steps, code fixes, and preventive measures.

Databaseconnection-poolspring
0 likes · 11 min read
Why Did a Forgotten Transaction Block Payments? A Deep Dive into Spring’s Transaction Management
Java Tech Workshop
Java Tech Workshop
Apr 12, 2026 · Backend Development

Understanding SpringBoot’s Environment and PropertySource: Core Concepts and Practical Usage

The article explains SpringBoot’s configuration architecture, detailing how the Environment facade and PropertySource abstractions manage all settings, the loading order, key APIs, debugging techniques, custom PropertySource extensions, and dynamic refresh, enabling developers to resolve priority conflicts and implement advanced configuration scenarios.

ConfigurationDevOpsJava
0 likes · 22 min read
Understanding SpringBoot’s Environment and PropertySource: Core Concepts and Practical Usage
Architect's Tech Stack
Architect's Tech Stack
Apr 10, 2026 · Backend Development

Replace RabbitMQ with Spring Events for Cleaner Order Processing

This article explains how to refactor a monolithic order‑creation method by using Spring's built‑in ApplicationEvent mechanism, separating core logic from side‑effects such as SMS, points, and notifications, and clarifies when to choose Spring events over a message queue.

AsynchronousJavaMQ Alternative
0 likes · 7 min read
Replace RabbitMQ with Spring Events for Cleaner Order Processing
Coder Circle
Coder Circle
Apr 9, 2026 · Artificial Intelligence

Mastering Agent Harness: An Architecture Guide for Java Developers

This article deeply analyzes the Agent Harness framework, mapping its concepts to familiar Spring components, detailing its layered design, lifecycle management, skill registration, memory handling, security sandboxing, checkpointing, multi‑model adapters, and multi‑agent collaboration, and even provides a minimal 20‑line implementation.

AI AgentsAgent HarnessJava
0 likes · 15 min read
Mastering Agent Harness: An Architecture Guide for Java Developers
Code Ape Tech Column
Code Ape Tech Column
Apr 9, 2026 · Artificial Intelligence

Spring AI Alibaba vs AgentScope-Java: Which AI Framework Fits Your Java Projects?

This article compares Spring AI Alibaba and AgentScope-Java, examining their distinct design philosophies—graph‑based workflow versus agentic autonomy—core architectures, key capabilities, code examples, and practical selection guidance, while also highlighting the emerging trend of merging both approaches for optimal Java AI development.

AI FrameworkAgentScopeAgentic
0 likes · 14 min read
Spring AI Alibaba vs AgentScope-Java: Which AI Framework Fits Your Java Projects?
macrozheng
macrozheng
Apr 7, 2026 · Backend Development

Boost Your MyBatis Workflow in IDEA with MyBatisCodeHelper-Pro – A Complete Guide

This article introduces the MyBatisCodeHelper-Pro IntelliJ IDEA plugin, outlines its popular features such as mapper navigation, @Param generation, XML creation, pagination support, Spring integration, and SQL log conversion, and provides step‑by‑step installation and usage instructions with screenshots.

IntelliJ IDEAMyBatisSQL
0 likes · 5 min read
Boost Your MyBatis Workflow in IDEA with MyBatisCodeHelper-Pro – A Complete Guide
Java Companion
Java Companion
Apr 7, 2026 · Backend Development

A Lighter‑Than‑MQ Asynchronous Solution: Spring’s Hidden Event‑Driven Feature

The article explains how Spring’s built‑in ApplicationEvent and @EventListener mechanism provides a lightweight, zero‑dependency alternative to external message queues for decoupling logic within the same JVM, covering core components, implementation styles, async execution, transactional listeners, pitfalls, performance comparison, and production best practices.

ApplicationEventAsynchronousSpring Boot
0 likes · 23 min read
A Lighter‑Than‑MQ Asynchronous Solution: Spring’s Hidden Event‑Driven Feature
Top Architect
Top Architect
Apr 5, 2026 · Backend Development

Designing a Robust Asynchronous Processing SDK with Spring, Kafka and MySQL

This article explains the design, principles, components, database schema, configuration, and usage of a generic asynchronous processing SDK that leverages Spring AOP, transactional events, Kafka, and a Vue UI to achieve reliable async execution and eventual consistency in Java backend systems.

AsynchronousDesign PatternsMySQL
0 likes · 11 min read
Designing a Robust Asynchronous Processing SDK with Spring, Kafka and MySQL
Architect's Guide
Architect's Guide
Apr 5, 2026 · Backend Development

Demystifying Spring Bean Creation: From Simple Instantiation to Three‑Level Caching

This article breaks down Spring's bean lifecycle, explaining the minimal creation steps, the role of BeanFactoryPostProcessor and BeanPostProcessor, how Spring resolves bean references, handles circular dependencies with three‑level caches, and clarifies common misconceptions about proxy generation.

Bean LifecycleCircular DependencyThree-level Cache
0 likes · 14 min read
Demystifying Spring Bean Creation: From Simple Instantiation to Three‑Level Caching
java1234
java1234
Apr 5, 2026 · Backend Development

Why Spring and Spring MVC Use Parent‑Child Containers

The article explains how Spring’s parent‑child container pattern separates core beans like DataSource and TransactionManager from business‑level beans, improving modularity, configuration reuse, decoupling, and flexible bean management, and shows concrete XML and Spring Boot examples for defining and loading these containers.

Bean ConfigurationIoCParent-Child Container
0 likes · 7 min read
Why Spring and Spring MVC Use Parent‑Child Containers
Top Architect
Top Architect
Apr 3, 2026 · Backend Development

Why Did My Payment Service Lose Data? Uncovering Hidden Transaction Bugs in Spring

A mysterious payment failure where orders appeared successful but were never persisted was traced to a missing transaction commit in a special code path, leading to polluted connections that silently broke subsequent transactions, and the article explains the root cause, debugging steps, fix, and preventive measures.

DatabaseDebuggingMySQL
0 likes · 11 min read
Why Did My Payment Service Lose Data? Uncovering Hidden Transaction Bugs in Spring
WeiLi Technology Team
WeiLi Technology Team
Mar 31, 2026 · Backend Development

Why ThreadLocal Leaks Cause Full GC in Thread Pools and How to Fix It

An online service experienced frequent Full GC due to a ThreadLocal memory leak in a thread‑pool scenario; the article walks through GC log analysis, heap dump inspection, root‑cause discovery in ThreadFactory logic, and presents a robust fix using Spring’s TaskDecorator to ensure proper cleanup.

GCJavaTaskDecorator
0 likes · 14 min read
Why ThreadLocal Leaks Cause Full GC in Thread Pools and How to Fix It