Tagged articles

Java

5000 articles · Page 6 of 50
Java Tech Workshop
Java Tech Workshop
Jun 2, 2026 · Backend Development

Implementing Distributed Locks in Spring Boot with Redis

This article explains why local locks like synchronized and ReentrantLock fail in microservice clusters, introduces the fundamentals and essential properties of distributed locks, walks through five iterative Redis lock implementations that address dead‑lock, atomicity, and timeout issues, and finally shows how to adopt the production‑grade Redisson library with best‑practice guidelines for key naming, lock scope, and lock type selection.

JavaMicroservicesRedisson
0 likes · 17 min read
Implementing Distributed Locks in Spring Boot with Redis
Alibaba Cloud Developer
Alibaba Cloud Developer
Jun 2, 2026 · Artificial Intelligence

Building a Dual‑Engine AI Assistant for DingTalk with Qoder CLI and Claude Code

The article details a complete engineering solution that lets a DingTalk group chat invoke an AI assistant—switchable between Qoder CLI and Claude Code—to query logs, run experiments, analyse performance and even deploy code, while handling intranet constraints, latency, security isolation, and Docker deployment.

AI assistantClaude CodeDingTalk
0 likes · 15 min read
Building a Dual‑Engine AI Assistant for DingTalk with Qoder CLI and Claude Code
Coder Trainee
Coder Trainee
Jun 2, 2026 · Backend Development

How to Use RocketMQ with Spring Cloud Stream: A Beginner’s Guide

This tutorial explains why microservices need a message queue, outlines RocketMQ’s core concepts, shows how to set up RocketMQ with Docker Compose, integrates it into Spring Boot projects with detailed producer and consumer code, provides testing steps, and lists common pitfalls and solutions.

Docker ComposeJavaMicroservices
0 likes · 15 min read
How to Use RocketMQ with Spring Cloud Stream: A Beginner’s Guide
Subtle Storm
Subtle Storm
Jun 1, 2026 · Fundamentals

Why Hexagonal Architecture Boosts Testability, Maintainability, and Flexibility

Hexagonal (Ports‑and‑Adapters) architecture, introduced by Alistair Cockburn in 2005, separates core business logic from external concerns through defined ports and interchangeable adapters, enhancing testability, maintainability, and technology‑agnostic flexibility, and is especially suited for complex domains requiring multiple interfaces such as REST and message queues.

Javahexagonal-architecturemaintainability
0 likes · 5 min read
Why Hexagonal Architecture Boosts Testability, Maintainability, and Flexibility
Programmer1970
Programmer1970
Jun 1, 2026 · Fundamentals

Why ZGC Pauses Stay Under 1 ms: Inside Colored Pointers and Load Barriers

The article explains how ZGC achieves sub‑millisecond pause times by embedding GC state in pointer bits (colored pointers) and using JIT‑injected load barriers that fix references on first access, comparing this approach with G1 and Shenandoah and detailing ZGC 2.0 enhancements and known pitfalls.

Colored PointersConcurrent GCGarbage Collection
0 likes · 11 min read
Why ZGC Pauses Stay Under 1 ms: Inside Colored Pointers and Load Barriers
Top Architect
Top Architect
Jun 1, 2026 · Backend Development

How to Stream Local Video with Spring Boot, FFmpeg, and ZLMediaKit

This guide walks you through installing ZLMediaKit and FFmpeg in Docker, configuring Spring Boot with the required dependencies and properties, implementing a streaming service that launches FFmpeg commands, and using a simple HTML page with flv.js to play the live or on‑demand video stream.

DockerFFmpegJava
0 likes · 17 min read
How to Stream Local Video with Spring Boot, FFmpeg, and ZLMediaKit
IT Services Circle
IT Services Circle
Jun 1, 2026 · Fundamentals

Why Does ThreadPoolExecutor Queue Tasks When Max Threads Are Still Idle?

The article explains why Java's ThreadPoolExecutor places tasks into its work queue before creating non‑core threads, describes the underlying JDK execution steps, shows how Tomcat customizes the queue to prioritize thread creation, and warns about misconfiguring unbounded queues that can cripple performance.

ConcurrencyJavaLinkedBlockingQueue
0 likes · 8 min read
Why Does ThreadPoolExecutor Queue Tasks When Max Threads Are Still Idle?
Spring Full-Stack Practical Cases
Spring Full-Stack Practical Cases
Jun 1, 2026 · Backend Development

20 Essential Exception‑Handling Rules to Prevent Crashes in Java

This article presents twenty practical rules for handling exceptions in Java, covering why catching RuntimeException is discouraged, how to avoid using exceptions for control flow, proper use of finally blocks, logging best practices, custom exception design, and early input validation to keep applications stable and maintainable.

JavaLoggingSpring Boot
0 likes · 19 min read
20 Essential Exception‑Handling Rules to Prevent Crashes in Java
samdeepthink
samdeepthink
Jun 1, 2026 · Backend Development

Why One ThreadLocal Instance Suffices for an Entire Business Scenario

The article explains that a single ThreadLocal object can be shared across dozens of threads because the actual data lives in each thread's own ThreadLocalMap, outlines how set/get work, highlights thread‑pool pitfalls such as stale data and memory leaks, and provides best‑practice guidelines for static declaration, proper removal, and using TransmittableThreadLocal for cross‑thread propagation.

ConcurrencyJavaStatic Final
0 likes · 10 min read
Why One ThreadLocal Instance Suffices for an Entire Business Scenario
Su San Talks Tech
Su San Talks Tech
Jun 1, 2026 · Backend Development

Can Java 21’s Virtual Threads Make Thread Pools Obsolete?

The article examines whether Java 21’s cheap virtual threads can replace traditional thread pools, explaining the original purpose of pools, their role as natural throttlers, scenarios where virtual threads excel or fail, and practical guidelines to avoid pitfalls like pinning.

ConcurrencyJavaJava 21
0 likes · 7 min read
Can Java 21’s Virtual Threads Make Thread Pools Obsolete?
Spring Full-Stack Practical Cases
Spring Full-Stack Practical Cases
Jun 1, 2026 · Backend Development

Real‑Time Communication with Spring Boot + WebSocket: Multi‑Client Sessions, Private Chat, and Broadcast

This article demonstrates how to use Spring Boot 3.5.0 with WebSocket + STOMP to build real‑time messaging, covering environment setup, WebSocket configuration, a user‑binding interceptor, and concrete code for private‑user messages, point‑to‑point chats, and global broadcasts, complete with sample results.

BroadcastJavaReal‑time communication
0 likes · 7 min read
Real‑Time Communication with Spring Boot + WebSocket: Multi‑Client Sessions, Private Chat, and Broadcast
Programmer1970
Programmer1970
May 31, 2026 · Fundamentals

Why synchronized is slower – tracing its roots from MESI cache coherence

The article demystifies why Java's synchronized keyword can be slower by tracing the full path from CPU cache‑coherence (MESI) through bus and cache locks, volatile, biased and lightweight locks, up to the heavyweight monitor implementation, revealing each layer’s impact on visibility, ordering and atomicity.

ConcurrencyJVMJava
0 likes · 15 min read
Why synchronized is slower – tracing its roots from MESI cache coherence
IT Services Circle
IT Services Circle
May 31, 2026 · Backend Development

Why Hand‑Crafted HTTP Calls to LLMs Are a Pitfall and How Spring AI Solves It

The article analyzes the hidden dangers of writing raw HTTP calls for large language models in Java projects—hard‑coded keys, fragile request bodies, missing retries, no observability—and demonstrates how Spring AI’s unified abstractions, built‑in resilience, streaming, function calling, and seamless Spring integration eliminate these issues while enabling effortless model switching and production‑grade AI services.

AI integrationFunction CallingJava
0 likes · 20 min read
Why Hand‑Crafted HTTP Calls to LLMs Are a Pitfall and How Spring AI Solves It
Cloud Architecture
Cloud Architecture
May 30, 2026 · Operations

How to Build Production‑Grade Observability Metrics and Alerting for Batch Jobs

The article explains why batch processing tasks often slip out of control, defines a four‑layer observability model covering status, progress, quality and performance, proposes a unified task state machine and event flow, and provides concrete metric, logging, tracing and alerting designs—including Go and Java SDK examples—for reliable production‑level batch job monitoring.

Batch ProcessingGoJava
0 likes · 34 min read
How to Build Production‑Grade Observability Metrics and Alerting for Batch Jobs
Su San Talks Tech
Su San Talks Tech
May 30, 2026 · Databases

Why PostgreSQL Beats MySQL for AI‑Driven Applications

The article explains why many developers stuck with MySQL should consider PostgreSQL, highlighting its superior SQL standards support, MVCC concurrency, rich indexing, JSONB performance, full‑text search, extensive extensions, and practical installation and Java integration steps, while also comparing pros, cons, and ideal use cases.

DatabaseFull-text SearchIndexing
0 likes · 24 min read
Why PostgreSQL Beats MySQL for AI‑Driven Applications
Black & White Path
Black & White Path
May 30, 2026 · Information Security

DigDeep: A Sensitive Information Mining Tool for Penetration Testing

DigDeep is a Java‑based tool that efficiently extracts nearly one hundred types of high‑, medium‑, and low‑risk sensitive data from source files across cloud, mini‑program, app, and web environments, offering recursive scanning, risk‑level filtering, deduplication, and multi‑format export to aid security audits.

DigDeepJavaPenetration Testing
0 likes · 4 min read
DigDeep: A Sensitive Information Mining Tool for Penetration Testing
Coder Trainee
Coder Trainee
May 30, 2026 · Information Security

Implementing Fine-Grained Permission Control with Spring Security and OAuth2 (Part 4)

This article walks through building a Spring Security resource server with OAuth2, enabling method‑level, object‑level and URL‑level permission checks using annotations like @PreAuthorize, @PostAuthorize, @PostFilter, and demonstrates configuration, utility helpers, controller examples, testing steps, best practices, and common pitfalls.

JWTJavaOAuth2
0 likes · 17 min read
Implementing Fine-Grained Permission Control with Spring Security and OAuth2 (Part 4)
AI Agent Super App
AI Agent Super App
May 29, 2026 · Databases

Why SQLite Is the World's Most Deployed Database—and How to Use It End‑to‑End

SQLite, the server‑less, single‑file database engine, is the most widely deployed database on the planet, powering Android, iOS, browsers and countless desktop apps; this article walks through its core features, Linux installation, command‑line CRUD, language bindings for Python, C, Java and Go, plus practical backup and performance tricks.

C++CLIDatabase
0 likes · 21 min read
Why SQLite Is the World's Most Deployed Database—and How to Use It End‑to‑End
IoT Full-Stack Technology
IoT Full-Stack Technology
May 29, 2026 · Backend Development

How We Cut a 30‑Second API Call to Under 1 Second on 2 Million Records

In a high‑concurrency transaction system, the author diagnosed a 30‑second API latency caused by costly SQL scans and Java Map creation on over two million rows, then applied SQL aggregation, moved counting logic into PostgreSQL, and introduced a Caffeine cache, ultimately reducing the response time to under 0.8 seconds while highlighting relational‑database limits for massive data.

Caffeine cacheJavaMyBatis
0 likes · 10 min read
How We Cut a 30‑Second API Call to Under 1 Second on 2 Million Records
LuTiao Programming
LuTiao Programming
May 28, 2026 · Backend Development

How a Master‑Child AI Agent Took Over a Spring Boot Project and Transformed the Development Team

After letting a Codex‑powered master‑child AI agent manage a multi‑module Spring Boot application, the author observed the system automatically scanning modules, inferring impact of a new refund feature, delegating tasks to specialized sub‑agents, and even fixing compile and runtime errors, revealing a shift from mere code completion to genuine engineering collaboration.

AI AgentDevOpsJava
0 likes · 8 min read
How a Master‑Child AI Agent Took Over a Spring Boot Project and Transformed the Development Team
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
The Dominant Programmer
The Dominant Programmer
May 28, 2026 · Artificial Intelligence

Spring AI RAG: Concepts, Hands‑On Implementation, and Full Code

This article explains the limitations of large language models, introduces Retrieval‑Augmented Generation (RAG) and its four‑step workflow, details Spring AI's RAG components and vector‑store options, and provides complete, runnable Java code—including Maven, configuration, and service classes—to build a local knowledge‑base Q&A system.

JavaOllamaQuestionAnswerAdvisor
0 likes · 18 min read
Spring AI RAG: Concepts, Hands‑On Implementation, and Full Code
Sohu Tech Products
Sohu Tech Products
May 27, 2026 · Backend Development

IDEA + JavaAI: A Hands‑On Review of Building a Mini‑Redis Spring Boot Starter

After struggling with AI‑generated code that failed on global edge cases, the author evaluates the FeiSuan JavaAI IDEA plugin, walking through its five‑agent workflow—from requirement planning to source generation—and demonstrates how it successfully creates a production‑ready mini‑redis Spring Boot starter with thorough testing.

AI code generationAgentIDEA
0 likes · 16 min read
IDEA + JavaAI: A Hands‑On Review of Building a Mini‑Redis Spring Boot Starter
Alibaba Cloud Native
Alibaba Cloud Native
May 27, 2026 · Artificial Intelligence

Quickly Build Enterprise Self‑Evolving Agents with AgentScope Builder and Harness Framework

This article presents a deep technical walkthrough of AgentScope Builder, showing how the Harness framework enables a single Java agent implementation to run on a personal machine as MinQwenPaw and then scale to a multi‑tenant, distributed enterprise platform with workspace isolation, sandboxing, and pluggable storage backends.

AgentArtificial IntelligenceJava
0 likes · 23 min read
Quickly Build Enterprise Self‑Evolving Agents with AgentScope Builder and Harness Framework
IT Services Circle
IT Services Circle
May 27, 2026 · Backend Development

How to Speed Up IntelliJ IDEA: 10 Essential Fixes

This article lists ten common IntelliJ IDEA problems—from sluggish performance and Lombok errors to Git commit issues and MySQL connection failures—and provides concrete configuration steps, code snippets, and best‑practice recommendations to resolve each pitfall for Java developers.

DebuggingGitIDE performance
0 likes · 21 min read
How to Speed Up IntelliJ IDEA: 10 Essential Fixes
Java Architect Handbook
Java Architect Handbook
May 27, 2026 · Fundamentals

What Triggers Young GC vs. Full GC in Java? Interview Guide

The article explains that Young GC fires when the Eden space is full, while Full GC can be triggered by old‑generation shortage, metaspace exhaustion, allocation‑guarantee failure, or an explicit System.gc() call, and provides interview‑ready answers, diagnostic steps, and a comparison table.

Garbage CollectionInterviewJVM
0 likes · 14 min read
What Triggers Young GC vs. Full GC in Java? Interview Guide
Spring Full-Stack Practical Cases
Spring Full-Stack Practical Cases
May 27, 2026 · Backend Development

Why the Powerful Java WatchService API Is Still Overlooked

This article explains how to use Java's built‑in WatchService API to monitor file‑system changes in real time, covering service creation, directory registration, event handling, key lifecycle, polling methods, a complete runnable example, and an advanced version that leverages virtual threads for efficient concurrency.

File MonitoringJavaNIO
0 likes · 8 min read
Why the Powerful Java WatchService API Is Still Overlooked
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.

JVMJavaMicroservices
0 likes · 5 min read
Comprehensive Collection of Java Backend Architecture Diagrams
Su San Talks Tech
Su San Talks Tech
May 27, 2026 · Artificial Intelligence

Why Switch from Hand‑Written HTTP Calls to Spring AI for Large‑Model Integration?

The article analyzes the drawbacks of manually coding HTTP calls to large language models—hard‑coded keys, fragile request construction, missing retries, and poor observability—and demonstrates how Spring AI’s layered abstraction, unified configuration, built‑in resilience, function calling, RAG support, and seamless Spring ecosystem integration solve these problems for production‑grade Java applications.

Function CallingJavaLLM
0 likes · 24 min read
Why Switch from Hand‑Written HTTP Calls to Spring AI for Large‑Model Integration?
Spring Full-Stack Practical Cases
Spring Full-Stack Practical Cases
May 27, 2026 · Backend Development

Master Modern Spring Boot Logging: 8 Essential Scenarios Covered

This guide walks through configuring comprehensive logging in Spring Boot 3.5 for eight common scenarios—including JPA SQL, transaction flow, JDBC operations, RestTemplate, RestClient, WebClient, controller requests, and Feign calls—providing concrete code samples, YAML settings, and sample output to help developers troubleshoot and monitor applications effectively.

FeignJPAJava
0 likes · 12 min read
Master Modern Spring Boot Logging: 8 Essential Scenarios Covered
LuTiao Programming
LuTiao Programming
May 26, 2026 · Industry Insights

When AI Agents Stop Chatting and Start Running Your Workflows

A brief experiment shows that an AI agent can execute an entire refund workflow—from querying the order to notifying finance—without any user clicks, illustrating a shift from traditional UI‑driven software to AI‑driven workflow automation that could reshape enterprise systems.

AI AgentsAI industryEnterprise Software
0 likes · 7 min read
When AI Agents Stop Chatting and Start Running Your Workflows
Architect's Ambition
Architect's Ambition
May 26, 2026 · Artificial Intelligence

Choosing CLI vs MCP for Enterprise AI Agents: A Hybrid Approach Balancing Cost and Effectiveness

The article compares CLI and MCP as integration methods for enterprise AI agents, presents benchmark data showing CLI's lower cost and higher reliability, explains why MCP is needed for compliance and structured data, and recommends a "CLI‑first, MCP‑supplement" architecture with reusable Python or Java implementations across multiple AI tools.

AI AgentCLIJava
0 likes · 24 min read
Choosing CLI vs MCP for Enterprise AI Agents: A Hybrid Approach Balancing Cost and Effectiveness
CodeNotes
CodeNotes
May 26, 2026 · Fundamentals

Mastering Java Lambda Expressions: From Anonymous Classes to Method References

This guide walks through the evolution from traditional classes to anonymous inner classes and finally to Java 8 lambda expressions, explains lambda syntax, demonstrates all four method‑reference forms, covers variable capture rules, this binding, practical stream chaining, and highlights common pitfalls for Java developers.

Functional ProgrammingJavaLambda
0 likes · 9 min read
Mastering Java Lambda Expressions: From Anonymous Classes to Method References
Su San Talks Tech
Su San Talks Tech
May 26, 2026 · Backend Development

Mybatis-Plus vs Mybatis-Flex: Which ORM Framework Is Best for Your Project?

This article provides a detailed comparison between Mybatis-Plus and Mybatis-Flex, examining their design philosophies, core mechanisms, feature sets, performance benchmarks, database support, dependency weight, and community maturity, and offers practical guidance on choosing the right framework for different project scenarios.

Feature comparisonJavaMyBatis-Flex
0 likes · 19 min read
Mybatis-Plus vs Mybatis-Flex: Which ORM Framework Is Best for Your Project?
IoT Full-Stack Technology
IoT Full-Stack Technology
May 26, 2026 · Backend Development

Build a Real‑Time Message Push Service with Spring Boot, Netty and WebSocket

This article walks through creating a Netty‑based WebSocket server integrated with Spring Boot, covering server bootstrap, global channel management, pipeline configuration, a custom handler for client messages, and a push‑message service that can target individual users or broadcast to all connections, complete with code samples and testing steps.

JavaMessage PushNetty
0 likes · 6 min read
Build a Real‑Time Message Push Service with Spring Boot, Netty and WebSocket
java1234
java1234
May 26, 2026 · Artificial Intelligence

Master Spring AI Alibaba: Build AI Agents, Workflows, and Multi‑Agent Apps with Minimal Java Code

Spring AI Alibaba extends Spring AI with a native agent and workflow framework, integrating Alibaba's DashScope models, ReactAgent, multi‑agent orchestration, Graph workflows, tool calling, memory handling, and production‑grade features, enabling Java developers to create sophisticated AI applications with just a few lines of code.

AI integrationAgent FrameworkDashScope
0 likes · 22 min read
Master Spring AI Alibaba: Build AI Agents, Workflows, and Multi‑Agent Apps with Minimal Java Code
Java Web Project
Java Web Project
May 26, 2026 · Artificial Intelligence

Master Spring AI Alibaba: Token Basics, RAG, and Multi‑Agent Implementation

This article walks through the core concepts of Spring AI Alibaba—including token mechanics, prompt structures, embedding, structured output, chat memory, RAG pipelines, function calling, and graph‑based multi‑agent workflows—while providing concrete code samples, configuration tips, performance tricks, and a curated list of common pitfalls.

Alibaba CloudFunction CallingGraph Agents
0 likes · 24 min read
Master Spring AI Alibaba: Token Basics, RAG, and Multi‑Agent Implementation
The Dominant Programmer
The Dominant Programmer
May 26, 2026 · Artificial Intelligence

Spring AI ChatMemory: Concepts, Practical Setup, and Common Issues

This guide explains how Spring AI abstracts LLM conversation memory using a three‑layer architecture, demonstrates configuring MessageWindowChatMemory with a sliding‑window strategy, shows two ways to register the memory advisor, and provides complete Maven, YAML, and Java code examples with test screenshots.

ChatMemoryJavaLLM
0 likes · 9 min read
Spring AI ChatMemory: Concepts, Practical Setup, and Common Issues
Java Architect Essentials
Java Architect Essentials
May 25, 2026 · Backend Development

AOP Aspect Order Mistakes? Stop Misusing @Order – A Rule That Cuts Interview Errors to Zero

A real‑world incident where mis‑ordered Spring AOP aspects caused payment callbacks to report success while the transaction rolled back leads to a concise rule—smaller @Order values have higher priority—plus pitfalls, three common scenarios, and a four‑step debugging guide that eliminates interview mistakes.

@OrderAspectJDebugging
0 likes · 8 min read
AOP Aspect Order Mistakes? Stop Misusing @Order – A Rule That Cuts Interview Errors to Zero
CodeNotes
CodeNotes
May 25, 2026 · Fundamentals

Master Java Enums: Safer, More Readable Alternative to Magic Numbers

Java enums replace magic numbers with meaningful, type‑safe constants, improving readability and safety; the guide covers basic definitions, core methods, typical usages like switch statements and iteration, advanced features with fields and constructors, a comparison with static‑final constant classes, and common pitfalls to avoid.

EnumJavaSwitch
0 likes · 6 min read
Master Java Enums: Safer, More Readable Alternative to Magic Numbers
Programmer1970
Programmer1970
May 25, 2026 · Backend Development

How a Full GC Spike Turned 50 ms P99 Latency into 3 s – Full Investigation

When a monitoring alarm showed the /api/order/create endpoint’s P99 latency jump from under 50 ms to over 3 s, the team traced the root cause to a Full GC storm caused by an unbounded static HashMap cache, using Arthas, heap dumps, MAT analysis, and finally applied both quick‑fix and permanent code changes to restore performance.

ArthasCaffeineEclipse MAT
0 likes · 8 min read
How a Full GC Spike Turned 50 ms P99 Latency into 3 s – Full Investigation
IT Services Circle
IT Services Circle
May 25, 2026 · Backend Development

Druid vs HikariCP: Which Connection Pool Wins?

This article compares Druid and HikariCP, the two most popular Java database connection pools, by explaining how connection pools work, presenting benchmark results, dissecting HikariCP's lock‑free design and bytecode optimizations, detailing Druid's rich monitoring and security features, and offering a practical decision framework for different scenarios.

DruidHikariCPJava
0 likes · 19 min read
Druid vs HikariCP: Which Connection Pool Wins?
IoT Full-Stack Technology
IoT Full-Stack Technology
May 25, 2026 · Backend Development

Practical Spring Boot + Netty + WebSocket Message Push

This article walks through building a simple Netty server integrated with Spring Boot and WebSocket, showing how to configure the server, manage channel groups, implement custom handlers, and expose a service that can push messages to individual users or broadcast to all connected clients.

JavaMessage PushNetty
0 likes · 8 min read
Practical Spring Boot + Netty + WebSocket Message Push
Java Tech Workshop
Java Tech Workshop
May 25, 2026 · Backend Development

Ensuring SpringBoot Message Idempotency to Prevent Duplicate Consumption

The article analyzes why duplicate consumption is inevitable in MQ systems, defines message idempotency, and presents four practical solutions—including Redis SETNX, database unique indexes, state‑machine with optimistic locking, and global unique constraints—along with their pros, cons, and best‑practice guidelines for SpringBoot applications.

DatabaseJavaMQ
0 likes · 13 min read
Ensuring SpringBoot Message Idempotency to Prevent Duplicate Consumption
Linyb Geek Road
Linyb Geek Road
May 25, 2026 · Artificial Intelligence

Designing a Claude Code Harness for Production‑Grade Java Microservices

The article presents a detailed, production‑focused harness for Claude Code that structures prompts, rules, skills, and external hooks to compensate for LLM shortcomings in Java microservice development, preventing hallucinations, concurrency bugs, and false completions while ensuring reliable code delivery.

JavaLLMMicroservices
0 likes · 20 min read
Designing a Claude Code Harness for Production‑Grade Java Microservices
CodeNotes
CodeNotes
May 24, 2026 · Fundamentals

Master Java Basics: Essential Object, String, and Collection Methods Explained

This guide walks Java beginners through the fundamental classes Object, String, and Collection, detailing their most frequently used methods, key differences such as == versus equals, and practical code examples for overriding methods, string concatenation optimization, and common collection operations.

BeginnerCollectionCore API
0 likes · 9 min read
Master Java Basics: Essential Object, String, and Collection Methods Explained
Su San Talks Tech
Su San Talks Tech
May 24, 2026 · Backend Development

How to Speed Up IntelliJ IDEA: 10 Essential Fixes for Java Developers

This article lists ten common IntelliJ IDEA pitfalls—such as high memory usage, indexing delays, Lombok errors, broken breakpoints, console encoding issues, unwanted Git commits, slow Maven downloads, classpath mismatches, shortcut conflicts, and automatic code reformatting—and provides step‑by‑step solutions to make the IDE run smoothly for Java and Spring projects.

DebuggingGitIDE optimization
0 likes · 23 min read
How to Speed Up IntelliJ IDEA: 10 Essential Fixes for Java Developers
LuTiao Programming
LuTiao Programming
May 24, 2026 · Backend Development

How Spring Boot and MCP Enable Java to Lead the AI Agent Ecosystem

This article explains the Model Context Protocol (MCP), compares it with traditional function calling, and walks through building a Spring Boot MCP server that lets Claude Desktop automatically invoke Java tools, covering architecture, code examples, security extensions, and future enterprise AI integrations.

AI AgentClaude DesktopJava
0 likes · 11 min read
How Spring Boot and MCP Enable Java to Lead the AI Agent Ecosystem
Java Tech Workshop
Java Tech Workshop
May 24, 2026 · Fundamentals

Why Does Java Initialize Static Members Before Instance Members? A Deep Dive into Object Initialization

The article explains Java's two‑phase object initialization, the seven‑step JVM process, static versus instance execution order, parent‑child class initialization rules, variable assignment lifecycle, and common pitfalls such as static forward references and constructor‑called overridden methods, all illustrated with concrete code examples.

InterviewJVMJava
0 likes · 10 min read
Why Does Java Initialize Static Members Before Instance Members? A Deep Dive into Object Initialization
Spring Full-Stack Practical Cases
Spring Full-Stack Practical Cases
May 24, 2026 · Backend Development

Stop Returning null! 4 Advanced Optional Patterns

The article explains why returning null from Java service methods is risky, demonstrates how to replace null with Optional as a return type, and presents four advanced Optional usage patterns—including chaining, flatMap, and proper scope—to write safer, more readable Spring Boot code.

Functional ProgrammingJavaNull Safety
0 likes · 12 min read
Stop Returning null! 4 Advanced Optional Patterns
The Dominant Programmer
The Dominant Programmer
May 24, 2026 · Artificial Intelligence

Integrating Spring AI with Ollama for Tool Calling: A Complete Beginner‑to‑Practice Guide

This article walks through setting up Spring AI with Ollama, explains the tool‑calling workflow, shows two ways to define tools, provides full Maven and YAML configurations, presents runnable Java code for services, chat client, and controller, and addresses common compatibility and dependency issues.

AI integrationJavaOllama
0 likes · 12 min read
Integrating Spring AI with Ollama for Tool Calling: A Complete Beginner‑to‑Practice Guide
Cloud Architecture
Cloud Architecture
May 23, 2026 · Cloud Native

Build a Production-Ready Observability Platform with OpenTelemetry

To solve fragmented monitoring in Java microservices, the article details how to construct a production‑grade observability platform using OpenTelemetry, covering unified data models, collector architecture, tracing, metrics, logging, sampling strategies, Kubernetes deployment, and practical guidelines for scaling, governance, and root‑cause analysis.

JavaKubernetesLogging
0 likes · 37 min read
Build a Production-Ready Observability Platform with OpenTelemetry
Spring Full-Stack Practical Cases
Spring Full-Stack Practical Cases
May 23, 2026 · Artificial Intelligence

Auto‑Splitting AI Agent Tasks and Real‑Time Monitoring with Spring AI + TodoWrite

This article explains how the TodoWriteTool, a Spring AI extension, solves large‑language‑model “mid‑session forgetting” by automatically splitting complex agent tasks into explicit, sequential subtasks and providing real‑time progress monitoring, with a complete Spring Boot 3.5.0 setup, code examples, and a runnable demonstration.

AgentJavaSpring AI
0 likes · 7 min read
Auto‑Splitting AI Agent Tasks and Real‑Time Monitoring with Spring AI + TodoWrite
Linyb Geek Road
Linyb Geek Road
May 23, 2026 · Backend Development

8 Essential Claude Code Skills to Supercharge Your Spring Boot Projects

This article explains what Claude Code Skills are, lists the eight most valuable Spring Boot Skills, shows how to configure each Skill with concrete examples and YAML rules, and provides step‑by‑step instructions for integrating them into a Java 21 / Spring Boot 3.x project.

AI code generationClaude CodeJava
0 likes · 15 min read
8 Essential Claude Code Skills to Supercharge Your Spring Boot Projects
samdeepthink
samdeepthink
May 22, 2026 · Backend Development

Building a Payment System for Hundreds of Millions of Users – Part 1 Intro

An incident where a forged free‑card callback corrupted order status reveals the need for daily cross‑system reconciliation, and the article outlines a 20‑part series that details the architecture, design decisions, multi‑channel handling, risk control, and implementation of a production‑grade payment system serving over a hundred million users.

Distributed ArchitectureJavaMicroservices
0 likes · 17 min read
Building a Payment System for Hundreds of Millions of Users – Part 1 Intro
Spring Full-Stack Practical Cases
Spring Full-Stack Practical Cases
May 22, 2026 · Fundamentals

Upgrade from Java 8: 8 Powerful Features in Java 21 You Should Know

The article examines why many projects still cling to Java 8 and demonstrates eight transformative Java 21 features—including records, sealed classes, pattern‑matching for instanceof, switch expressions, text blocks, virtual threads, structured concurrency, and enhanced APIs—showing code examples and the benefits they bring to performance, readability, and maintainability.

JavaJava 21Records
0 likes · 11 min read
Upgrade from Java 8: 8 Powerful Features in Java 21 You Should Know
Java Tech Workshop
Java Tech Workshop
May 22, 2026 · Fundamentals

Proper Use of Java's Scanner Class for Console Input

This article explains the Scanner class in java.util, outlines a four‑step usage pattern, details its API for reading and validation, addresses the common nextInt/nextLine line‑skip issue with two reliable solutions, and provides best‑practice guidelines and example code to avoid resource leaks and input errors.

Console InputIOInput Validation
0 likes · 10 min read
Proper Use of Java's Scanner Class for Console Input
Java Architecture Diary
Java Architecture Diary
May 22, 2026 · Artificial Intelligence

What the Javadocs MCP Server Solves for Java AI Development

AI code assistants often misinterpret Java library placeholders because they rely on web searches or bytecode decompilation, which miss Javadoc details; the Javadocs MCP server indexes Maven Central Javadocs, letting AI retrieve accurate method signatures and placeholder rules, and can be added to Claude Code with a simple configuration.

AIClaudeHutool
0 likes · 7 min read
What the Javadocs MCP Server Solves for Java AI Development
Spring Full-Stack Practical Cases
Spring Full-Stack Practical Cases
May 22, 2026 · Backend Development

Why Hand‑Write WebSocket? Use Spring Boot + Netty‑SocketIO for Simpler Real‑Time Communication

This article walks through building a real‑time bidirectional communication system with Spring Boot 3.5.0 and the Netty‑SocketIO library, covering its core features, Maven setup, server implementation via CommandLineRunner, client HTML/JavaScript code, room support, and testing screenshots.

JavaReal‑time communicationSocket.IO
0 likes · 9 min read
Why Hand‑Write WebSocket? Use Spring Boot + Netty‑SocketIO for Simpler Real‑Time Communication
Java Tech Workshop
Java Tech Workshop
May 21, 2026 · Fundamentals

Understanding Java's Module System: A Deep Dive into module-info.java

This article explains why Java modularization was introduced, outlines the problems with the pre‑Java 9 classpath, introduces the Java Platform Module System (JPMS) and its core file module-info.java, and provides detailed guidance on concepts, syntax, best practices, real‑world examples, IDE setup, and common pitfalls.

JPMSJavaModularization
0 likes · 43 min read
Understanding Java's Module System: A Deep Dive into module-info.java
samdeepthink
samdeepthink
May 21, 2026 · Fundamentals

Why Java’s wait() Must Be Called Inside a synchronized Block

Because wait() first releases the monitor, the calling thread must own the lock; the JVM enforces this with an IllegalMonitorStateException, and the synchronized block prevents the lost‑wake‑up race by atomically checking conditions and releasing the lock before waiting.

Javamonitornotify
0 likes · 10 min read
Why Java’s wait() Must Be Called Inside a synchronized Block
Java Architect Handbook
Java Architect Handbook
May 21, 2026 · Backend Development

How to Diagnose Frequent Full GC in Production Systems? (Second Interview at Taobao)

The article explains why Full GC should be minimized, defines normal versus abnormal GC frequencies, outlines the root causes of Full GC, and provides a step‑by‑step troubleshooting workflow with concrete code snippets, monitoring commands and real‑world examples for Java backend engineers.

Full GCGarbage CollectionJVM performance
0 likes · 13 min read
How to Diagnose Frequent Full GC in Production Systems? (Second Interview at Taobao)
java1234
java1234
May 21, 2026 · Backend Development

Three Months as an AI Code Babysitter: My Exhausting Journey and Hard Lessons

A veteran Java developer took a 5‑wan‑yuan retail project, relied on an end‑to‑end AI code generator for a month, then faced chaotic project structures, security flaws, and massive refactoring before discovering FeiSuan JavaAI's multi‑agent workflow that finally turned the disaster into a deliverable.

AIBackend DevelopmentDatabase
0 likes · 21 min read
Three Months as an AI Code Babysitter: My Exhausting Journey and Hard Lessons
Java Tech Workshop
Java Tech Workshop
May 21, 2026 · Backend Development

The Pros and Cons of Java’s var Local Variable Type Inference

This article examines Java's var local‑variable type inference introduced in Java 10, detailing its benefits such as reduced boilerplate, improved readability, and easier refactoring, while also highlighting drawbacks like potential readability loss, ambiguous types, and strict usage constraints that can lead to bugs if misused.

JavaJava 10Refactoring
0 likes · 26 min read
The Pros and Cons of Java’s var Local Variable Type Inference
Su San Talks Tech
Su San Talks Tech
May 21, 2026 · Backend Development

Druid vs HikariCP: Which Java Connection Pool Wins?

The article compares Alibaba’s Druid and Spring Boot’s default HikariCP connection pools, explaining how connection pooling works, presenting benchmark results that show HikariCP’s lower latency and higher TPS, detailing HikariCP’s lock‑free ConcurrentBag and bytecode optimizations, and highlighting Druid’s rich monitoring, SQL firewall and leak detection features to help developers choose the right pool for different scenarios.

DruidHikariCPJava
0 likes · 18 min read
Druid vs HikariCP: Which Java Connection Pool Wins?
samdeepthink
samdeepthink
May 20, 2026 · Backend Development

Designing a Scalable Delivery Dispatch System for Chain Restaurants

The article details a three‑module architecture—capacity verification, platform routing, and status synchronization—showing how a chain restaurant can dynamically choose third‑party delivery services across multiple cities, handle asynchronous checks, prioritize platforms, and ensure reliable callbacks and resends.

JavaMicroservicesRouting
0 likes · 13 min read
Designing a Scalable Delivery Dispatch System for Chain Restaurants
Senior Xiao Ying
Senior Xiao Ying
May 20, 2026 · Backend Development

Tired of N+1 Queries? Boost Your Spring Boot GraphQL Performance 40× with DataLoader

This article explains the N+1 query problem in a Spring Boot GraphQL service, demonstrates how DataLoader batches and caches requests to reduce database round‑trips, and provides step‑by‑step integration code, including dependency setup, schema definition, entity mapping, batch loader registration, and best‑practice recommendations.

Batch loadingDataLoaderGraphQL
0 likes · 8 min read
Tired of N+1 Queries? Boost Your Spring Boot GraphQL Performance 40× with DataLoader
Java Tech Workshop
Java Tech Workshop
May 20, 2026 · Backend Development

How Switch Expressions Evolved from Java 12 to Java 17

This article traces the evolution of Java's switch statement from a cumbersome statement to a modern expression, detailing the six shortcomings of the traditional switch, the introduction of arrow syntax and preview mode in Java 12, the yield keyword in Java 13, the standardization in Java 14, and the powerful pattern‑matching and null‑handling features added in Java 17, while providing concrete code examples and practical guidance.

JavaJava 17Pattern Matching
0 likes · 19 min read
How Switch Expressions Evolved from Java 12 to Java 17
Architecture & Thinking
Architecture & Thinking
May 20, 2026 · Operations

Six‑Step Emergency Plan to Detect, Recover, and Eliminate Message Backlog

In distributed systems, message‑queue backlogs can cripple core services; this article breaks down a six‑step emergency workflow—from alert detection and throttling to temporary scaling, root‑cause analysis, targeted fixes, and final validation—plus long‑term architectural and monitoring strategies, illustrated with real‑world cases and Java code samples.

BacklogJavaMessage Queue
0 likes · 21 min read
Six‑Step Emergency Plan to Detect, Recover, and Eliminate Message Backlog
Coder Trainee
Coder Trainee
May 20, 2026 · Backend Development

Mastering Distributed Transactions in Spring Cloud with Seata (Part 8)

This tutorial walks through why distributed transactions are needed in a Spring Cloud order‑stock‑point scenario, compares local and distributed transaction models, introduces Seata’s architecture and three transaction modes, shows environment setup, code implementation, testing steps, and common pitfalls with solutions.

AT ModeDistributed TransactionsDocker
0 likes · 11 min read
Mastering Distributed Transactions in Spring Cloud with Seata (Part 8)
Spring Full-Stack Practical Cases
Spring Full-Stack Practical Cases
May 20, 2026 · Backend Development

10 Essential Spring Boot Utility Classes to Cut Your Code in Half

This article showcases ten built‑in Spring Boot utilities—including version retrieval, system property access, temporary and home directory handling, method introspection, generic type resolution, process ID extraction, property binding, and package path registration—each illustrated with concise code examples that dramatically reduce the need for custom helper classes.

Code SimplificationConfigurationGenericTypeResolver
0 likes · 11 min read
10 Essential Spring Boot Utility Classes to Cut Your Code in Half
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 Backend Technology
Java Backend Technology
May 19, 2026 · Artificial Intelligence

Top 5 Java AI Frameworks You Should Know

This article reviews the five major Java AI frameworks—Spring AI, LangChain4j, Spring AI Alibaba, AgentScope‑Java, and Semantic Kernel—detailing their architectures, core features, pros and cons, and provides guidance on selecting the right one for different enterprise scenarios.

AIAgentScopeJava
0 likes · 22 min read
Top 5 Java AI Frameworks You Should Know
java1234
java1234
May 19, 2026 · Backend Development

Why JDK 26’s New Features Are a Game‑Changer for Your Projects

JDK 26 introduces a suite of impactful JEPs—including primitive type pattern matching, G1 GC throughput gains, AOT object caching for faster startup, built‑in PEM encoding, stricter final‑field handling, HTTP/3 support, LazyConstant, structured concurrency, and a mature Vector API—each backed by code examples and performance data to help developers modernize their Java applications.

G1 GCJDK 26Java
0 likes · 29 min read
Why JDK 26’s New Features Are a Game‑Changer for Your Projects
LuTiao Programming
LuTiao Programming
May 19, 2026 · Fundamentals

Don’t Limit Java Enums to SUCCESS/FAIL – 5 Advanced Enum Techniques Already Used by Top Frameworks

The article reveals five sophisticated ways to leverage Java enums—state‑machine implementation, built‑in strategy pattern, enum‑lambda combos, responsibility‑chain routing, and enum‑Map DSL—showing how major frameworks like Tomcat, Spring Boot and RocketMQ employ them to write cleaner, type‑safe, and easily extensible code.

DSLDesign PatternEnum
0 likes · 11 min read
Don’t Limit Java Enums to SUCCESS/FAIL – 5 Advanced Enum Techniques Already Used by Top Frameworks
Java Tech Workshop
Java Tech Workshop
May 18, 2026 · Fundamentals

Understanding Compile-Time and Run-Time Constants in Java

This article explains the fundamental differences between compile-time and run-time constants in Java, covering their definitions, required modifiers, allowed data types, initialization rules, JVM storage behavior, class‑initialization effects, constant‑folding optimizations, practical code examples, common pitfalls, and guidelines for choosing the appropriate constant type in production code.

JVMJavaPerformance
0 likes · 21 min read
Understanding Compile-Time and Run-Time Constants in Java