Skip to content
Tagged articles

Java

500 articles · Page 5 of 5
samdeepthink
samdeepthink
Jul 30, 2026 · Backend Development

Live Refactor: Turning a Messy Java Registration Method into Intent‑Clear Code

The article demonstrates how a convoluted Java user‑registration method—filled with magic error codes, inline regex checks, deep nesting, and mutable parameters—can be systematically refactored by introducing meaningful exception types, extracting password validation, applying early‑return style, and using immutable request records to produce clear, intent‑driven code.

Best PracticesClean CodeException Handling
0 likes · 7 min read
Live Refactor: Turning a Messy Java Registration Method into Intent‑Clear Code
Dabaoshi
Dabaoshi
Jul 29, 2026 · Fundamentals

How the JVM Allocates Objects and Arranges Their Memory Layout

This article walks through the JVM's six-step process for creating a new object, explains heap allocation strategies and thread‑local buffers, details escape analysis optimizations, reveals the exact memory layout of an object including header and padding, compares handle versus direct pointer access, and describes reachability‑based garbage collection with the four Java reference types.

Garbage CollectionJVMJava
0 likes · 22 min read
How the JVM Allocates Objects and Arranges Their Memory Layout
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
Su San Talks Tech
Su San Talks Tech
Jul 28, 2026 · Information Security

Fastjson 1.x Exposes Critical CVSS 9.8 RCE Vulnerability and What to Do

Fastjson 1.x (versions 1.2.66‑1.2.83) contains a CVSS 9.8 remote‑code‑execution flaw that works with default settings, was disclosed in July 2026, and sparked heated community debate, while the library had already been unmaintained since 2024 and official guidance now recommends migration to Fastjson 2.x or enabling SafeMode.

FastjsonJavaMigration
0 likes · 9 min read
Fastjson 1.x Exposes Critical CVSS 9.8 RCE Vulnerability and What to Do
samdeepthink
samdeepthink
Jul 28, 2026 · Backend Development

Why Ignoring Non‑Critical Alerts Is Safe When Core Services Are Monitored

The author explains that when core business modules are properly monitored with structured logs and dedicated alert groups, a flood of non‑critical alerts can be ignored, shares a lightweight Java StructuredLog utility, and outlines best practices for real‑time monitoring and log standardization.

Backend DevelopmentDingTalkJava
0 likes · 9 min read
Why Ignoring Non‑Critical Alerts Is Safe When Core Services Are Monitored
Java Tech Workshop
Java Tech Workshop
Jul 28, 2026 · Fundamentals

Why Is AQS the Cornerstone of Java Concurrency?

The article explains how Java's AbstractQueuedSynchronizer (AQS) serves as the foundational framework for most JUC utilities by encapsulating state, a FIFO wait queue, and template methods, and demonstrates its design through detailed source analysis of ReentrantLock, Semaphore, CountDownLatch, and a custom latch.

AQSAbstractQueuedSynchronizerConcurrency
0 likes · 17 min read
Why Is AQS the Cornerstone of Java Concurrency?
Java Baker
Java Baker
Jul 28, 2026 · Backend Development

Choosing the Right Distributed Lock: A Guide for Architects

Distributed locks are essential for coordinating access to shared resources across multiple machines; this article compares common solutions—Redis locks, database optimistic and logical locks, DB row locks, and Zookeeper locks—detailing their principles, pros, cons, implementation details, and best‑fit scenarios.

ConcurrencyDistributed LockJava
0 likes · 15 min read
Choosing the Right Distributed Lock: A Guide for Architects
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
Dabaoshi
Dabaoshi
Jul 27, 2026 · Fundamentals

Understanding JVM Runtime Data Areas: From JDK 8 to JDK 17

This article walks through the five JVM runtime data areas, explains the distinction between the JVM specification and HotSpot implementation, compares the PermGen to Metaspace transition from JDK 8 to JDK 17, and provides hands‑on code to reproduce each type of memory‑related OutOfMemoryError.

Garbage CollectionHeapJVM
0 likes · 22 min read
Understanding JVM Runtime Data Areas: From JDK 8 to JDK 17
samdeepthink
samdeepthink
Jul 27, 2026 · Backend Development

WeChat Pay Integration Walkthrough: From Order Creation to Callback Confirmation

This article walks through a production‑grade WeChat Pay V2 integration, detailing the multi‑layer architecture, required configuration, unified order parameters, thread‑safe service usage, signature generation, and a four‑step callback verification process—including signature check, idempotency, amount validation, and active order query—to ensure reliable payment confirmation.

Callback SecurityJavaPayment Integration
0 likes · 18 min read
WeChat Pay Integration Walkthrough: From Order Creation to Callback Confirmation
Java Tech Workshop
Java Tech Workshop
Jul 27, 2026 · Backend Development

Spring Boot + EasyExcel: High‑Performance, Elegant Excel Import/Export

This article explains why native Apache POI causes memory‑heavy, boilerplate Excel import/export code, introduces Alibaba's EasyExcel as a low‑memory, annotation‑driven alternative, and provides step‑by‑step Spring Boot examples for exporting, importing, custom conversion, validation, pagination, and template filling while highlighting common pitfalls and solutions.

EasyExcelExcel ExportJava
0 likes · 15 min read
Spring Boot + EasyExcel: High‑Performance, Elegant Excel Import/Export
SpringMeng
SpringMeng
Jul 27, 2026 · Backend Development

Why More Developers Choose Apache PDFBox for PDF Processing

This article provides a comprehensive guide to Apache PDFBox, covering its licensing advantages, architecture, installation, core operations such as creating, editing, extracting, merging, encrypting PDFs, migration tips from 2.x to 3.x, performance considerations, and recommended use cases for Java backend development.

ApacheJavaPDF manipulation
0 likes · 17 min read
Why More Developers Choose Apache PDFBox for PDF Processing
The Dominant Programmer
The Dominant Programmer
Jul 26, 2026 · Artificial Intelligence

Building Smart Agents with Spring AI Alibaba: A Hands‑On Guide

This article walks through the Spring AI Alibaba Agent Framework (v1.1.2.0), explaining the ReAct reasoning‑acting loop, core APIs, configuration, code examples, testing commands, and common troubleshooting steps so developers can quickly create LLM‑driven agents with tool‑calling and memory support.

Agent FrameworkAlibabaJava
0 likes · 15 min read
Building Smart Agents with Spring AI Alibaba: A Hands‑On Guide
Architecture Pony
Architecture Pony
Jul 26, 2026 · Fundamentals

Java Syntax Deep Dive: Complete Beginner's Guide to Fundamentals

This comprehensive tutorial covers Java fundamentals including program structure, variables, data types, operators, control flow, arrays, methods, object-oriented programming, exception handling, generics, collections, and practical examples for beginners.

ExceptionsGenericsI/O
0 likes · 47 min read
Java Syntax Deep Dive: Complete Beginner's Guide to Fundamentals
Ops Community
Ops Community
Jul 26, 2026 · Operations

When APM Agent Overheads Spike: In‑Depth Comparison of SkyWalking vs Pinpoint

The article provides a step‑by‑step methodology for establishing a performance baseline, verifying JVM and agent versions, collecting CPU, memory, GC, thread, and network metrics, configuring SkyWalking and Pinpoint agents, running controlled experiments, and using the results to choose the most suitable APM probe.

APMJavaPerformance
0 likes · 15 min read
When APM Agent Overheads Spike: In‑Depth Comparison of SkyWalking vs Pinpoint
java1234
java1234
Jul 26, 2026 · Backend Development

Why PDFBox Is Gaining Popularity Among Java Developers

Apache PDFBox, an open‑source Java library under the Apache 2.0 license, lets developers create, read, modify, and extract data from PDFs, offering extensive features, command‑line tools, and seamless Maven integration, which explains its growing adoption in Java‑based backend and enterprise projects.

ApacheJavaMaven
0 likes · 9 min read
Why PDFBox Is Gaining Popularity Among Java Developers
Coder Life Journal
Coder Life Journal
Jul 26, 2026 · Industry Insights

Why Writing Less Code with AI Makes Developers More Anxious

Although AI coding tools let Java developers generate DTOs, interfaces, tests and business logic faster, the resulting speed boost often leaves them uneasy because the reasoning and design decisions that used to be embedded in handwritten code disappear, leading to deeper doubts during review and deployment.

AI codingJavaautomation
0 likes · 7 min read
Why Writing Less Code with AI Makes Developers More Anxious
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.

CDCConsistencyJava
0 likes · 22 min read
Why Delayed Double Delete Fails: A Hierarchical Java Design for MySQL‑Redis Consistency
IT Services Circle
IT Services Circle
Jul 25, 2026 · Backend Development

Why More Developers Are Choosing Spring WebFlux for High‑Performance Applications

Spring WebFlux replaces the thread‑per‑request model of Spring MVC with an event‑loop, non‑blocking architecture that dramatically reduces memory and CPU usage, supports back‑pressure, streaming, and GraalVM native images, making it ideal for high‑concurrency microservices while acknowledging its learning curve and debugging challenges.

GraalVMJavaPerformance
0 likes · 18 min read
Why More Developers Are Choosing Spring WebFlux for High‑Performance Applications
CodeSmart Hoops
CodeSmart Hoops
Jul 25, 2026 · Backend Development

Interview Self‑Test: Spring Boot Actuator Health Checks – Quick Review & Must‑Know Answers

This article provides a comprehensive interview self‑test covering Spring Boot Actuator’s built‑in endpoints, health‑check JSON format, status aggregation logic, custom HealthIndicator implementation, show‑details configuration, @Endpoint operation annotations, liveness vs. readiness probes, handling of DOWN status, disabling auto‑configured indicators, security risks of exposing all endpoints, HealthIndicatorRegistry naming rules, additional Actuator endpoints, CompositeHealth construction, and custom HealthStatusHttpMapper mapping.

ActuatorHealth CheckJava
0 likes · 22 min read
Interview Self‑Test: Spring Boot Actuator Health Checks – Quick Review & Must‑Know Answers
The Dominant Programmer
The Dominant Programmer
Jul 24, 2026 · Backend Development

Build a Spring Boot Code Review Skill: Turn Claude Code into Your Senior Architect

This guide walks you through creating a Claude Code Skill for Spring Boot projects that automates comprehensive, security‑aware code reviews by encapsulating architectural standards, generating structured reports, and integrating with CI/CD pipelines to boost code quality and team productivity.

AI automationBackend DevelopmentClaude Code
0 likes · 16 min read
Build a Spring Boot Code Review Skill: Turn Claude Code into Your Senior Architect
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
CodeSmart Hoops
CodeSmart Hoops
Jul 24, 2026 · Backend Development

Hands‑On Unit Testing of Spring Boot Actuator Health Checks

This guide walks through setting up Spring Boot 3.x with JDK 17+, adding Actuator and test dependencies, and implementing a comprehensive JUnit 5 test suite that validates health endpoint aggregation, status priority, show‑details configuration, custom endpoints, JVM metrics, endpoint exposure, health groups, and custom HTTP status mapping, with instructions for running the tests via Maven or an IDE.

ActuatorHealth CheckJDK 17
0 likes · 17 min read
Hands‑On Unit Testing of Spring Boot Actuator Health Checks
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.

@ScheduledBackendDistributed Lock
0 likes · 15 min read
Why Scheduled Tasks Run Multiple Times in a Cluster – The Real Issue Isn’t Quartz but Poor Architecture
Programmer1970
Programmer1970
Jul 23, 2026 · Fundamentals

6 Real Scenarios That Break Java’s ClassLoader Parent‑Delegation Model

The article examines six practical situations—SPI, Tomcat WebAppClassLoader, OSGi bundles, JDBC driver loading, custom ClassLoaders, and Java agents—where Java’s default parent‑delegation class‑loading mechanism is intentionally bypassed, explaining the motivations, implementations, and associated risks of each approach.

ClassLoaderJavaOSGi
0 likes · 13 min read
6 Real Scenarios That Break Java’s ClassLoader Parent‑Delegation Model
samdeepthink
samdeepthink
Jul 23, 2026 · Backend Development

Enterprise-Scale Source Code for 4 Real-World Projects: Flash Sale, Product Catalog, Payment System, and DDD Implementation

The author releases the complete, production‑ready source code for four enterprise‑level projects—a flash‑sale service handling 60 million members, a high‑concurrency product system for hundreds of millions of users, a payment platform serving over a hundred million users, and a three‑year DDD migration case study—while the fifth column remains under development.

DDDJavaPayment Integration
0 likes · 5 min read
Enterprise-Scale Source Code for 4 Real-World Projects: Flash Sale, Product Catalog, Payment System, and DDD Implementation
SpringMeng
SpringMeng
Jul 23, 2026 · Backend Development

Escape the if‑else Nightmare: Why Workflow Orchestration Is a Game‑Changer

The article explains how excessive if‑else branching in multi‑business systems leads to maintenance chaos, and demonstrates how a workflow engine combined with plugin extensions can isolate code, simplify extensions, and improve reliability through configurable flow chains and node execution.

Backend ArchitectureJavaWorkflow Orchestration
0 likes · 6 min read
Escape the if‑else Nightmare: Why Workflow Orchestration Is a Game‑Changer
LuTiao Programming
LuTiao Programming
Jul 22, 2026 · Backend Development

Why Does Pagination Slow Down at 10 Million Records? Rethinking MySQL LIMIT in Java Backends

The article explains why deep pagination with large offsets becomes increasingly slow, why adding indexes often does not help, examines common “optimizations” like delayed joins, introduces cursor (keyset) pagination as a high‑performance alternative, and provides practical guidelines for designing pagination APIs in Java back‑ends at scale.

Cursor PaginationDeep PaginationJava
0 likes · 16 min read
Why Does Pagination Slow Down at 10 Million Records? Rethinking MySQL LIMIT in Java Backends
CTO Full-Stack Academy
CTO Full-Stack Academy
Jul 22, 2026 · Information Security

Understanding Path Traversal: How Directory Traversal Leads to Arbitrary File Reads

The article explains how unsanitized user‑supplied filenames combined with simple path concatenation enable attackers to traverse directories and read arbitrary files, illustrates common vulnerable endpoints with Java examples, and outlines prioritized defenses such as ID whitelisting and canonical path validation.

JavaWeb Securitydirectory traversal
0 likes · 7 min read
Understanding Path Traversal: How Directory Traversal Leads to Arbitrary File Reads
Random Bulletin
Random Bulletin
Jul 22, 2026 · Backend Development

Lock Optimization at Ten‑Million QPS: From Coarse Locks to Lock‑Free Designs

When a service’s QPS jumps from two to eight million, a single global lock can turn a multi‑core machine into a bottleneck, so the article walks through coarse‑lock problems, fine‑grained locking, read‑write separation, optimistic reads, CAS‑based lock‑free techniques, LongAdder and advanced data structures, showing when each step is appropriate for high‑throughput systems.

CASJavaLocks
0 likes · 19 min read
Lock Optimization at Ten‑Million QPS: From Coarse Locks to Lock‑Free Designs
Su San Talks Tech
Su San Talks Tech
Jul 22, 2026 · Artificial Intelligence

Getting Started with AgentScope-Java: Build Enterprise AI Agents in Minutes

This guide introduces AgentScope-Java, Alibaba's open‑source Java framework for building production‑grade AI agents, explains how it solves the lack of Java‑native agent tools, compares it with Spring AI Alibaba, walks through core concepts, installation, tool registration, multi‑agent orchestration, underlying architecture, distributed deployment, real‑world examples, and evaluates its strengths and limitations.

AI agentsAgentScopeHarnessAgent
0 likes · 27 min read
Getting Started with AgentScope-Java: Build Enterprise AI Agents in Minutes
The Dominant Programmer
The Dominant Programmer
Jul 21, 2026 · Backend Development

Practical Guide to Applying Domain‑Driven Design in Spring Boot Microservices

This guide explains Domain‑Driven Design (DDD) and shows how to structure Spring Boot microservices by organizing code around business domains, detailing strategic and tactical concepts, package layouts, layer responsibilities, cross‑domain communication, comparisons with traditional layering, evolution steps, and common FAQs.

Backend ArchitectureDDDJava
0 likes · 19 min read
Practical Guide to Applying Domain‑Driven Design in Spring Boot Microservices
Coder Life Journal
Coder Life Journal
Jul 21, 2026 · Backend Development

Why ThreadPoolExecutor Won’t Expand When the Queue Isn’t Full

The article explains that ThreadPoolExecutor’s execution flow first fills core threads, then enqueues tasks, and only creates non‑core threads after the work queue is full, so a high maximumPoolSize (e.g., 100) does not guarantee rapid thread growth, and queue choice and rejection policies critically shape scaling behavior.

ConcurrencyJavaQueue
0 likes · 9 min read
Why ThreadPoolExecutor Won’t Expand When the Queue Isn’t Full
Top Architect
Top Architect
Jul 21, 2026 · Backend Development

Stop Confusing PO, VO, BO, DTO, DAO, and POJO – A Complete Guide

This article clarifies the roles and differences of PO, VO, BO, DTO, DAO, and POJO in Java backend development, showing where each object belongs in the architecture, providing concrete code examples, and offering practical advice to keep layers clean and maintainable.

BOBackendDAO
0 likes · 11 min read
Stop Confusing PO, VO, BO, DTO, DAO, and POJO – A Complete Guide
Tinker Programmer
Tinker Programmer
Jul 21, 2026 · Backend Development

Migrating a High‑Traffic Java 8 Service to JDK 21/25: Pitfalls, Compatibility Checks, and Best‑Practice SOP

The author details a production migration of a core transaction service from Java 8 to JDK 21/25—handling millions of users and 30 k QPS—by exposing runtime silent‑failure pitfalls, outlining six compatibility‑risk categories, prescribing version‑selection rules, a step‑by‑step gray‑scale upgrade and rollback plan, and quantifying performance gains such as ZGC latency reduction and AppCDS startup speedup.

JDK 21JDK 25Java
0 likes · 20 min read
Migrating a High‑Traffic Java 8 Service to JDK 21/25: Pitfalls, Compatibility Checks, and Best‑Practice SOP
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 QueueSpring
0 likes · 17 min read
A Lighter‑Than‑MQ Async Solution: Spring’s Hidden Transactional Event Feature
Su San Talks Tech
Su San Talks Tech
Jul 21, 2026 · Backend Development

Why Apache PDFBox Is Becoming the Go-To Java PDF Library

This article provides a comprehensive guide to Apache PDFBox, covering its licensing advantages, latest version, installation steps, core APIs for creating, editing, extracting, merging, encrypting and signing PDFs, underlying architecture, migration tips, performance considerations, and real‑world use cases.

Apache PDFBoxJavaOpen-source libraries
0 likes · 18 min read
Why Apache PDFBox Is Becoming the Go-To Java PDF Library
LuTiao Programming
LuTiao Programming
Jul 20, 2026 · Artificial Intelligence

AI Coding Agents Boost PRs 24%—Why Java Teams Face New Challenges

Microsoft’s study of tens of thousands of engineers shows AI coding agents raise merged pull requests by 24%, but the metric masks deeper issues: faster code production creates verification bottlenecks, knowledge debt, and a shift from coding to review that Java teams must address.

AI agentsAI codingJava
0 likes · 14 min read
AI Coding Agents Boost PRs 24%—Why Java Teams Face New Challenges
Su San Talks Tech
Su San Talks Tech
Jul 20, 2026 · Backend Development

What’s New in Jackson 3? A Complete Migration Guide

This article explains the major breaking changes introduced in Jackson 3—including the JDK 17 baseline, package and groupId renames, immutable JsonMapper, unchecked exceptions, default configuration shifts, performance tweaks, and module consolidation—while providing step‑by‑step migration advice and a quick‑reference table for developers upgrading from Jackson 2.

JSONJacksonJava
0 likes · 16 min read
What’s New in Jackson 3? A Complete Migration Guide
Java Tech Workshop
Java Tech Workshop
Jul 20, 2026 · Backend Development

Spring Boot 4’s Underrated Feature: Spring Data AOT Explained

Spring Data AOT in Spring Boot 4 moves all repository parsing, reflection and query generation to compile time, dramatically cutting startup time, reducing memory and Metaspace usage, enabling compile‑time SQL validation, simplifying GraalVM native‑image configuration, and providing measurable performance gains backed by real‑world benchmarks.

AOTGraalVMJava
0 likes · 17 min read
Spring Boot 4’s Underrated Feature: Spring Data AOT Explained
samdeepthink
samdeepthink
Jul 20, 2026 · Fundamentals

Implementing the Singleton Pattern in One Line: Scala vs. Java

The article shows that Scala’s built‑in object keyword lets you create a singleton with a single line, contrasts this with Java’s multi‑line implementation, explains why design patterns exist, and discusses when and how to use them responsibly.

JavaScaladesign patterns
0 likes · 3 min read
Implementing the Singleton Pattern in One Line: Scala vs. Java
Lobster Programming
Lobster Programming
Jul 20, 2026 · Fundamentals

A Comprehensive Guide to New Features from JDK 8 Through JDK 27

The article systematically outlines the major new features introduced in JDK 8 and each subsequent release up to JDK 27, highlighting language enhancements, API additions, module system, garbage collectors, virtual threads, and offering migration recommendations for different project scenarios.

JDKJavaMigration
0 likes · 10 min read
A Comprehensive Guide to New Features from JDK 8 Through JDK 27
Linyb Geek Road
Linyb Geek Road
Jul 20, 2026 · Artificial Intelligence

Understanding Agent Harness: An Architecture Guide for Java Developers

The article deep‑dives into Agent Harness, comparing it to Spring’s IoC container, explains its five‑layer design, lifecycle management, skill registration, memory handling, security sandboxing, checkpointing, multi‑model routing, and multi‑agent collaboration, and even provides a minimal 20‑line implementation for Java developers.

AI agentsAgent HarnessJava
0 likes · 16 min read
Understanding Agent Harness: An Architecture Guide for Java Developers
TonyBai
TonyBai
Jul 20, 2026 · Industry Insights

From a Failed Handheld Project to AI’s Cornerstone: Inside Java’s 30‑Year Survival Gamble

The article analyzes the official documentary “The Java Story,” tracing Java’s origins from a failed embedded‑device project, its pivotal moments—including the Mosaic‑driven HotJava launch, the Servlet breakthrough, the Sun‑Microsoft lawsuit, the OpenJDK open‑source shift, and the recent Loom, Valhalla, and Panama initiatives—showing how technical choices and community strength kept the language alive for three decades.

AIJavaenterprise
0 likes · 16 min read
From a Failed Handheld Project to AI’s Cornerstone: Inside Java’s 30‑Year Survival Gamble
Spring Full-Stack Practical Cases
Spring Full-Stack Practical Cases
Jul 19, 2026 · Backend Development

8 Java File‑Writing Techniques for Large Files, High Concurrency, and Cross‑Platform Scenarios

This article walks through eight Java file‑writing approaches—from the modern Files.writeString() API to low‑level FileChannel and asynchronous channels—detailing their parameters, performance characteristics, and ideal use cases such as large files, high‑throughput logging, and cross‑platform line handling.

JavaNIOPerformance
0 likes · 10 min read
8 Java File‑Writing Techniques for Large Files, High Concurrency, and Cross‑Platform Scenarios
webdream
webdream
Jul 18, 2026 · Backend Development

Java Architecture Overview: 7 Key Patterns from Layered to DDD

The article explains why solid architecture matters for Java projects, outlines seven mainstream architectural patterns—including layered, DDD, hexagonal, clean, CQRS, event‑driven, and microkernel—and provides a decision guide to help teams choose the most suitable approach based on complexity, experience, performance, and evolution needs.

CQRSJavaLayered Architecture
0 likes · 11 min read
Java Architecture Overview: 7 Key Patterns from Layered to DDD
Tinker Programmer
Tinker Programmer
Jul 18, 2026 · Backend Development

Java 11-26 Core Library Evolution: HTTP/3, FFM, Stream Gatherers & Practical Upgrades

This article explores major Java core library enhancements from versions 11 to 26, including the HTTP Client with HTTP/3 support, FFM API for safe native interop replacing JNI, Stream Gatherers for custom intermediate operations like sliding windows, SequencedCollection for unified ordered collections, KDF and post-quantum cryptography, plus numerous String, IO, and random-number improvements that reduce third-party dependencies.

FFM APIHTTP ClientHTTP/3
0 likes · 20 min read
Java 11-26 Core Library Evolution: HTTP/3, FFM, Stream Gatherers & Practical Upgrades
Cloud Architecture
Cloud Architecture
Jul 18, 2026 · Backend Development

RabbitMQ Idempotent Consumption: Keeping Duplicate Processing Within Business Limits

The article explains why RabbitMQ provides at‑least‑once delivery, how duplicate consumption arises in publish‑subscribe scenarios, and presents a step‑by‑step design—including deduplication keys, a deduplication table, transactional writes, proper ACK ordering, and a checklist of common pitfalls—to ensure idempotent processing stays within acceptable business tolerances.

Database TransactionJavaMessage Queue
0 likes · 20 min read
RabbitMQ Idempotent Consumption: Keeping Duplicate Processing Within Business Limits
Java Tech Workshop
Java Tech Workshop
Jul 18, 2026 · Backend Development

Spring Boot 4.0 + gRPC: Minimal Integration in 4 Steps, Faster Than REST

This tutorial shows how to integrate gRPC with Spring Boot 4.0 using the grpc‑spring‑boot‑starter in just four concise steps, covering a side‑by‑side comparison with REST, Maven setup, protobuf contract definition, server implementation, and client invocation with streaming support.

JavaProtobufSpring Boot
0 likes · 14 min read
Spring Boot 4.0 + gRPC: Minimal Integration in 4 Steps, Faster Than REST
Tinker Programmer
Tinker Programmer
Jul 18, 2026 · Backend Development

From CMS to ZGC: How Java GC Pauses Dropped Below 1 ms

The article chronicles Java’s garbage‑collector evolution—from the deprecated CMS to G1’s pitfalls and the low‑latency ZGC and Shenandoah—explaining why CMS was removed, how G1 can degrade, and how ZGC/Shenandoah achieve sub‑millisecond pauses, plus new JDK 25/26 features and practical tuning steps.

G1Garbage CollectionJDK25
0 likes · 18 min read
From CMS to ZGC: How Java GC Pauses Dropped Below 1 ms
java1234
java1234
Jul 18, 2026 · Backend Development

Should You Store Money as Long or BigDecimal in Java?

The article explains why floating‑point types are unsafe for monetary values, compares the Long‑in‑cents and BigDecimal‑in‑yuan approaches, lists their advantages and drawbacks, and provides concrete Java code, database schemas, layer‑boundary conversion patterns, and common pitfalls.

BackendFinancialJava
0 likes · 8 min read
Should You Store Money as Long or BigDecimal in Java?
Linyb Geek Road
Linyb Geek Road
Jul 18, 2026 · Cloud Native

How to Shrink Spring Boot Docker Images with JLink

This guide explains how to use JLink together with jdeps and a multi‑stage Docker build to create a minimal custom Java runtime, reducing Spring Boot Docker image size from over 200 MB to under 50 MB while improving startup speed and security.

DockerJLinkJava
0 likes · 10 min read
How to Shrink Spring Boot Docker Images with JLink
The Dominant Programmer
The Dominant Programmer
Jul 17, 2026 · Artificial Intelligence

Mastering Spring AI Alibaba Graph: A Complete Guide from Basics to Advanced

This article provides a thorough walkthrough of Spring AI Alibaba Graph, covering its core concepts, API details, environment setup, common pitfalls, and advanced features such as human-in-the-loop support, parallel execution, and checkpointing, enabling Java developers to build sophisticated AI workflows.

AI workflowAlibaba GraphGraph engine
0 likes · 20 min read
Mastering Spring AI Alibaba Graph: A Complete Guide from Basics to Advanced
Cloud Architecture
Cloud Architecture
Jul 17, 2026 · Backend Development

Elasticsearch Cluster: Inverted Index, Mechanics, Architecture for 100M+ Queries

This article provides a comprehensive, production‑grade guide to Elasticsearch clusters, covering the fundamentals of inverted indexes and Lucene segments, near‑real‑time write mechanics, shard routing, indexing pipelines, query execution flow, scaling strategies, and practical tips to avoid common pitfalls in high‑traffic search systems.

ElasticsearchJavaScaling
0 likes · 37 min read
Elasticsearch Cluster: Inverted Index, Mechanics, Architecture for 100M+ Queries
Tinker Programmer
Tinker Programmer
Jul 17, 2026 · Backend Development

How Java 21 Virtual Threads Enable 100 k Threads Without Thread‑Pool Tuning

After weeks of futile thread‑pool tuning for an IO‑bound gateway, the author switched to Java 21 virtual threads, achieving stable 5,000 concurrent requests with dramatically lower P99 latency, reduced memory usage, and higher CPU efficiency, and then explains virtual‑thread internals, Scoped Values, migration steps, and limitations.

ConcurrencyJavaPerformance
0 likes · 18 min read
How Java 21 Virtual Threads Enable 100 k Threads Without Thread‑Pool Tuning
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.

BeanFactoryFactoryBeanIoC
0 likes · 10 min read
Interview Question: What’s the Relationship Between BeanFactory and FactoryBean?
Ctrip Technology
Ctrip Technology
Jul 17, 2026 · Artificial Intelligence

From Demo to Production: How Our Java Agent Harness Fixes Common Pitfalls

Java agents often work in demos but crash in production due to stack mismatches, governance gaps, and runtime issues such as memory drift, large tool outputs, and lack of observability; the Spring‑Ai‑Trip harness adds progressive compression, spill protection, skill injection, hot‑plug tools, and concurrent execution to bridge the gap.

AI AgentJavaMemory Compression
0 likes · 31 min read
From Demo to Production: How Our Java Agent Harness Fixes Common Pitfalls
Java Tech Workshop
Java Tech Workshop
Jul 17, 2026 · Backend Development

Production-Ready WebSocket Connection Pool for Real-Time Market Data with Load Balancing

The article analyzes the fatal issues of using raw WebSocket clients for high‑frequency market feeds and presents a production‑grade, reusable connection‑pool design that adds rate limiting, automatic reconnection, heartbeat, hash‑based load balancing, fault isolation and full lifecycle management to support stable delivery of hundreds of thousands of subscriptions.

Connection PoolHash ShardingHigh Availability
0 likes · 22 min read
Production-Ready WebSocket Connection Pool for Real-Time Market Data with Load Balancing
liandk
liandk
Jul 17, 2026 · Fundamentals

Observer Pattern Explained: Code Demo and Real‑World Use Cases

This article introduces the Observer pattern, explains its purpose of decoupling publishers and subscribers, walks through a complete Java implementation with an official‑account subscription example, lists typical business scenarios, compares it with the Mediator pattern, and outlines its advantages and pitfalls.

DecouplingJavaObserver Pattern
0 likes · 6 min read
Observer Pattern Explained: Code Demo and Real‑World Use Cases
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.

BackendConcurrencyJVM
0 likes · 10 min read
Complete Summary of the Six‑Part Java Interview High‑Frequency Questions Series
Programmer XiaoFu
Programmer XiaoFu
Jul 16, 2026 · Backend Development

Can Java 21 Virtual Threads Replace CompletableFuture for Async Programming?

With Java 21’s virtual threads making threads cheap, the article examines whether the traditional CompletableFuture async style can be dropped, showing that simple IO can now be written synchronously, while complex task orchestration, fallback, and timeout still benefit from CompletableFuture’s richer API.

Async ProgrammingCompletableFutureConcurrency
0 likes · 10 min read
Can Java 21 Virtual Threads Replace CompletableFuture for Async Programming?
Java Tech Enthusiast
Java Tech Enthusiast
Jul 16, 2026 · Frontend Development

How to Build a Java Desktop App with Shadcn UI, React, and JxBrowser

This article demonstrates how to create a cross‑platform Java desktop application by embedding a React + TypeScript UI built with shadcn/ui inside a Chromium‑based JxBrowser view, covering window setup, resource loading for development and production, and two Java‑Web communication strategies (JS‑Java bridge and Protobuf + gRPC).

JavaJxBrowserProtobuf
0 likes · 7 min read
How to Build a Java Desktop App with Shadcn UI, React, and JxBrowser
Tinker Programmer
Tinker Programmer
Jul 16, 2026 · Fundamentals

How Pattern Matching Let Me Scrap the Visitor Pattern in Java

The article walks through a real‑world refactor of a Java event‑handling system, showing how instanceof pattern matching, switch pattern matching, record patterns, sealed classes and the new JDK 25 syntax features replace verbose if‑else chains and the Visitor pattern, yielding shorter, safer, compile‑time‑checked code.

JDK 25JavaRecords
0 likes · 15 min read
How Pattern Matching Let Me Scrap the Visitor Pattern in Java
samdeepthink
samdeepthink
Jul 16, 2026 · Backend Development

How Off‑Heap Caching Eliminates GC Scanning for Massive Product Data

The article explains why a large product cache moved from an in‑heap Caffeine cache to an off‑heap OHC solution, detailing serialization trade‑offs, per‑dimension cache configuration, singleflight loading, and the performance gains observed during high‑traffic promotions.

GC optimizationJavaPerformance
0 likes · 4 min read
How Off‑Heap Caching Eliminates GC Scanning for Massive Product Data
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.

BackendJavaSpring
0 likes · 14 min read
Java Interview Essentials: 10 Must‑Ask Microservice Questions
Java Architect Handbook
Java Architect Handbook
Jul 15, 2026 · Backend Development

Build an Electronic Document Signing and Contract System with SpringBoot

This article walks through creating a SpringBoot‑based electronic document signing and contract system, covering the problem background, project structure, Maven setup, key controller and service code, utility classes, deployment steps, and a step‑by‑step demo of drafting, approval, sealing and signing workflows.

JavaMavenSpringBoot
0 likes · 13 min read
Build an Electronic Document Signing and Contract System with SpringBoot
samdeepthink
samdeepthink
Jul 15, 2026 · Interview Experience

How to Present Your Project Experience in a Programming Interview to Stand Out

The article explains how candidates should showcase only the most relevant, deeply‑involved projects—detailing background, role, challenges, solutions, and impact—to demonstrate technical depth and decision‑making ability during a Java interview, while avoiding superficial or overly lengthy descriptions.

Javainterviewproject experience
0 likes · 8 min read
How to Present Your Project Experience in a Programming Interview to Stand Out
samdeepthink
samdeepthink
Jul 15, 2026 · Fundamentals

How the JVM Implements Java’s Object‑Oriented Model

The article walks through the JVM’s internal steps that turn a simple `new User()` statement into a fully formed Java object, detailing memory allocation, the object header’s type pointer, the Klass structure, and why methods are stored at the class level rather than in each instance.

JVMJavaKlass
0 likes · 4 min read
How the JVM Implements Java’s Object‑Oriented Model
Java Tech Workshop
Java Tech Workshop
Jul 15, 2026 · Backend Development

Generating Trillions of Unique Order IDs Without Collisions

The article analyzes why simple auto‑increment or timestamp‑based IDs fail at massive scales, compares common distributed ID schemes, and presents an improved Snowflake‑plus‑segment hybrid solution with clock‑rollback protection, automatic machine/room allocation, and production‑grade safeguards for trillion‑level order processing.

JavaMySQLSnowflake
0 likes · 19 min read
Generating Trillions of Unique Order IDs Without Collisions
Su San Talks Tech
Su San Talks Tech
Jul 15, 2026 · Artificial Intelligence

How Codex Transforms Java Development: From Theory to Real-World Projects

Codex, OpenAI’s cloud‑native software‑engineering agent, replaces the traditional write‑test‑fix cycle with an automated loop that can pull repositories, modify multiple files, run tests in isolated sandboxes, and output merge‑ready diffs, delivering 60‑75% speed gains for Java backend tasks when used with well‑crafted prompts and proper governance.

AI code generationCloud NativeJava
0 likes · 34 min read
How Codex Transforms Java Development: From Theory to Real-World Projects
LuTiao Programming
LuTiao Programming
Jul 14, 2026 · Backend Development

Stop Writing Ad‑hoc Reports for Your Boss: Build a One‑sentence Data Query Assistant with GPT + Spring Boot

The article explains why Java developers waste time on repetitive ad‑hoc reports, proposes using GPT as a natural‑language front‑end to call secure Spring Boot metric tools, and walks through a step‑by‑step implementation that includes tool definition, permission checks, audit logging, and safe prompt engineering.

AIData QueryGPT
0 likes · 16 min read
Stop Writing Ad‑hoc Reports for Your Boss: Build a One‑sentence Data Query Assistant with GPT + Spring Boot
The Dominant Programmer
The Dominant Programmer
Jul 14, 2026 · Backend Development

How to Fix Spring AI Ollama Timeout: Full Guide to Configuring OkHttp Read Timeout

The article explains why Spring AI Ollama requests time out after 10 seconds despite server‑side timeout settings, analyzes the independent OkHttp read timeout and other ineffective configurations, and provides a step‑by‑step solution that creates a custom OllamaApi bean with a longer OkHttp read timeout to permanently fix the issue.

JavaOkHttpOllama
0 likes · 10 min read
How to Fix Spring AI Ollama Timeout: Full Guide to Configuring OkHttp Read Timeout
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 ScopeDependency Injection
0 likes · 12 min read
Top 10 Must‑Know Spring Interview Questions for Java Developers
Yumin Fish Harvest
Yumin Fish Harvest
Jul 14, 2026 · Backend Development

Mastering CQRS: When to Separate Read and Write in DDD

This article explains how CQRS splits write operations that enforce business rules using domain models from read operations optimized for page performance, illustrates common pitfalls of mixing the two, and provides concrete Java code, SQL examples, migration steps, validation checklists, and best‑practice guidelines for implementing lightweight CQRS in a DDD‑based backend.

Backend ArchitectureCQRSCommand Query Separation
0 likes · 26 min read
Mastering CQRS: When to Separate Read and Write in DDD
Java Architect Handbook
Java Architect Handbook
Jul 14, 2026 · Frontend Development

Building a Java Desktop App with Shadcn UI, React, and JxBrowser

The article explains how to replace outdated Swing/JavaFX UI by embedding a React application styled with shadcn/ui into a Java desktop program using JxBrowser, covering reliable web view setup, dev‑vs‑prod resource loading via a custom jxb:// scheme, and two Java‑to‑JS communication approaches (JS‑Java bridge and Protobuf + gRPC) with concrete code examples.

JavaJxBrowserProtobuf
0 likes · 8 min read
Building a Java Desktop App with Shadcn UI, React, and JxBrowser
Tinker Programmer
Tinker Programmer
Jul 14, 2026 · Fundamentals

Lambda Isn’t Just Sugar: Avoid the ParallelStream Pitfall That Blocks Your Thread Pool

The article dissects Java 8‑10 core features—revealing that Lambda is powered by invokedynamic rather than anonymous classes, exposing the danger of default parallelStream blocking the common ForkJoinPool in I/O‑heavy code, and offering concrete best‑practice guidelines for Optional, var, and collection factory usage.

CollectionFactoryJavaOptional
0 likes · 17 min read
Lambda Isn’t Just Sugar: Avoid the ParallelStream Pitfall That Blocks Your Thread Pool
samdeepthink
samdeepthink
Jul 14, 2026 · Backend Development

Thread‑Pool Outage Postmortem: Four Defense Layers to Prevent Data Loss

A July 13 incident revealed that sharing a single thread pool across order, refund, and status sync services caused queue saturation, task rejection, and data loss, prompting a four‑layer defense—pool isolation, CallerRunsPolicy with structured alerts, minute‑level DingTalk notifications, and a compensation tool—to ensure reliability and quick recovery.

ConcurrencyFault ToleranceJava
0 likes · 10 min read
Thread‑Pool Outage Postmortem: Four Defense Layers to Prevent Data Loss
java1234
java1234
Jul 14, 2026 · Backend Development

Quarkus: Java Framework Up to 5× Faster Than Spring Boot, Uses Half the Memory

Quarkus, Red Hat's cloud‑native Java framework, achieves dramatically faster startup (0.3‑1 s vs 2‑5 s) and roughly half the memory usage (150‑200 MB vs 300‑500 MB) by moving many optimizations to compile time, and offers a Spring‑like developer experience with extensions, reactive support, and hot‑reload tooling.

Dev ModeJavaQuarkus
0 likes · 9 min read
Quarkus: Java Framework Up to 5× Faster Than Spring Boot, Uses Half the Memory
dbaplus Community
dbaplus Community
Jul 13, 2026 · Interview Experience

How to Process a 10 GB CSV File with Only 512 MB RAM?

The article walks through an interview scenario where a candidate must handle a 10 GB CSV using just 512 MB of memory, critiques naive answers, and presents a step‑by‑step streaming, chunked, and checkpoint‑based solution with optional Kafka/Flink considerations.

CSVFlinkJava
0 likes · 8 min read
How to Process a 10 GB CSV File with Only 512 MB RAM?
Cloud Architecture
Cloud Architecture
Jul 13, 2026 · Backend Development

Production-Grade Payment System Guide: Java Implementation for Alipay & WeChat All-Channel Integration

This article explains why a payment system is more than a simple SDK integration, presents a four‑layer architecture (access, state, event, governance), details state machines, idempotent callbacks, outbox pattern, reconciliation, high‑concurrency handling, observability, security, and provides Java code examples for integrating Alipay and WeChat across all channels.

AlipayJavaOutbox
0 likes · 29 min read
Production-Grade Payment System Guide: Java Implementation for Alipay & WeChat All-Channel Integration