Tagged articles
5000 articles
Page 48 of 50
JD Cloud Developers
JD Cloud Developers
Dec 13, 2023 · Backend Development

Resolving Unexpected 2‑Second Young GC Pauses in Java Rule Engine

A Java rule‑engine experiences occasional 1‑2 second Young GC pauses after warm‑up, caused by dynamic promotion thresholds that trigger massive object promotion, and the article explains the root cause, demonstrates log analysis, and provides JVM tuning steps to eliminate the long pauses.

Garbage CollectionJVMJava
0 likes · 15 min read
Resolving Unexpected 2‑Second Young GC Pauses in Java Rule Engine
Architect's Tech Stack
Architect's Tech Stack
Dec 13, 2023 · Databases

MyBatis-Flex: A Lightweight High‑Performance MyBatis Enhancement Framework – Features, Comparison, and Quick‑Start Guide

This article introduces MyBatis‑Flex, a lightweight and high‑performance MyBatis enhancement framework, outlines its key features, compares it with similar tools, presents benchmark results, lists supported databases, and provides a step‑by‑step quick‑start tutorial with complete code examples for Spring Boot integration.

DatabaseJavaMybatis-Flex
0 likes · 11 min read
MyBatis-Flex: A Lightweight High‑Performance MyBatis Enhancement Framework – Features, Comparison, and Quick‑Start Guide
FunTester
FunTester
Dec 12, 2023 · Backend Development

Understanding ResultSet Resource Release and Statement Concurrency in MySQL JDBC

This article examines how MySQL's JDBC driver manages ResultSet resource release, the internal close mechanisms, and the concurrency limitations of Statement objects, illustrated with code excerpts and a Groovy virtual‑thread demo that reveals runtime exceptions when ResultSets are accessed after implicit closure.

ConcurrencyJDBCJava
0 likes · 8 min read
Understanding ResultSet Resource Release and Statement Concurrency in MySQL JDBC
JD Cloud Developers
JD Cloud Developers
Dec 12, 2023 · Backend Development

Why @ResponseBody Fails When Writing Directly to the Output Stream in Spring

This article analyzes a Spring MVC issue where a batch template download failed due to missing configuration, explores how @ResponseBody interacts with manual stream writes, presents code examples, debugging insights, and offers best‑practice recommendations for reliable file‑download endpoints.

FileDownloadJavaResponseBody
0 likes · 5 min read
Why @ResponseBody Fails When Writing Directly to the Output Stream in Spring
Selected Java Interview Questions
Selected Java Interview Questions
Dec 12, 2023 · Backend Development

Spring Boot Integration with Spring Batch: A Complete Tutorial and Example

This article provides a step‑by‑step guide on integrating Spring Batch with Spring Boot, covering business scenarios, database setup, Maven dependencies, configuration of JobRepository, JobLauncher, Job, Step, ItemReader, ItemProcessor, ItemWriter, listeners, validators, execution via REST endpoints, troubleshooting with Druid and switching to HikariCP, and demonstrates processing CSV and database data in large batches.

Batch ProcessingJavaMyBatis
0 likes · 19 min read
Spring Boot Integration with Spring Batch: A Complete Tutorial and Example
macrozheng
macrozheng
Dec 12, 2023 · Backend Development

Mastering Retry Strategies in Java: 8 Proven Methods for Reliable API Calls

This article explains why retry mechanisms are essential for distributed Java applications and walks through eight practical implementations—including loop, recursion, Apache HttpClient, Spring Retry, Resilience4j, custom utilities, asynchronous thread‑pool retries, and message‑queue based retries—plus best‑practice guidelines to avoid common pitfalls.

ConcurrencyHttpClientJava
0 likes · 17 min read
Mastering Retry Strategies in Java: 8 Proven Methods for Reliable API Calls
macrozheng
macrozheng
Dec 12, 2023 · Backend Development

RediSearch vs Elasticsearch: Cheap Setup, Performance Benchmarks, Java Guide

RediSearch, a low‑memory Redis module, offers comparable full‑text search capabilities to Elasticsearch, with faster indexing and query performance on modest hardware; this article explains its features, compares benchmarks, shows Docker installation, and provides Java/Jedis code examples for creating, querying, and managing indexes.

DockerElasticsearchFull-Text Search
0 likes · 11 min read
RediSearch vs Elasticsearch: Cheap Setup, Performance Benchmarks, Java Guide
Qunar Tech Salon
Qunar Tech Salon
Dec 12, 2023 · Backend Development

System Slimming at Qunar Travel: Reducing Code and Service Footprint by 50% Using Observability and Automation

This article presents Qunar Travel's "system slimming" project, describing how observability techniques, a two‑stage strategy, and automated tooling were used to identify and remove unused services and code, achieving a 50% reduction in code size, a 26% cut in services, and measurable improvements in reliability and release efficiency.

JavaObservabilitybackend optimization
0 likes · 20 min read
System Slimming at Qunar Travel: Reducing Code and Service Footprint by 50% Using Observability and Automation
Architect's Guide
Architect's Guide
Dec 12, 2023 · Backend Development

Understanding Kafka Consumer: Delivery Guarantees, Rebalance Mechanisms, Partition Assignment, and Thread Safety

This article provides a comprehensive guide to KafkaConsumer, covering message delivery semantics (at‑most‑once, at‑least‑once, exactly‑once), practical exactly‑once implementations, consumer rebalance triggers and strategies, partition assignment algorithms, thread‑safety considerations, and detailed Java code examples of the consumer workflow.

ConsumerJavaKafka
0 likes · 14 min read
Understanding Kafka Consumer: Delivery Guarantees, Rebalance Mechanisms, Partition Assignment, and Thread Safety
Spring Full-Stack Practical Cases
Spring Full-Stack Practical Cases
Dec 12, 2023 · Backend Development

Master Advanced Spring Cloud Function Techniques in Spring Boot

This tutorial walks through advanced Spring Cloud Function features—including handling HTTP request parameters, function mapping and filtering rules, functional bean definitions, visualization via Actuator, and package scanning—providing code examples and configuration tips for Spring Boot 2.7.15 projects.

Backend DevelopmentJavaSpring Boot
0 likes · 8 min read
Master Advanced Spring Cloud Function Techniques in Spring Boot
DevOps Cloud Academy
DevOps Cloud Academy
Dec 11, 2023 · Operations

Managing Java Process Memory in Kubernetes Pods to Prevent OOMKilled

This article explains why Java processes in Kubernetes pods often encounter OOMKilled despite correct JVM heap settings, analyzes the discrepancy between JVM‑reported memory and container metrics, and provides practical steps such as adjusting MaxRAMPercentage and pod memory limits to stabilize memory usage.

JVMJavaKubernetes
0 likes · 9 min read
Managing Java Process Memory in Kubernetes Pods to Prevent OOMKilled
Architect
Architect
Dec 11, 2023 · Backend Development

How to Integrate Dataway into a Spring Boot Project – A Step‑by‑Step Guide

This article walks through the complete process of adding Dataway to a Spring Boot application, covering Maven dependencies, configuration properties, database schema creation, data source setup, Hasor module integration, enabling Hasor in Spring, and finally creating and testing API endpoints using both SQL and DataQL, all illustrated with concrete code snippets and log output.

API ConfigurationDataQLDataway
0 likes · 16 min read
How to Integrate Dataway into a Spring Boot Project – A Step‑by‑Step Guide
DaTaobao Tech
DaTaobao Tech
Dec 11, 2023 · Big Data

Design and Implementation of an Online Batch Processing Framework for Large-Scale Promotion Systems

The paper presents a centralized online batch‑processing framework for large‑scale promotion systems, where applications integrate via an SDK, a task‑center schedules and dispatches sub‑tasks through RocketMQ to Dubbo‑enabled containers, employing MapReduce‑style splitting, Guava rate‑limiting, heartbeat health checks, and has successfully handled over 1.3 million tasks during Double‑11.

Batch ProcessingBig DataDistributed Scheduling
0 likes · 9 min read
Design and Implementation of an Online Batch Processing Framework for Large-Scale Promotion Systems
Code Ape Tech Column
Code Ape Tech Column
Dec 11, 2023 · Information Security

Design and Implementation of a Lightweight Maven Jar Encryption and Agent‑Based Decryption Solution for Java IP Protection

This article examines common Java jar obfuscation tools, identifies their limitations for protecting both proprietary code and third‑party dependencies, and proposes a lightweight Maven‑based encryption combined with a runtime agent that decrypts classes on demand while keeping performance impact under five percent.

Backend SecurityIP ProtectionJAR encryption
0 likes · 9 min read
Design and Implementation of a Lightweight Maven Jar Encryption and Agent‑Based Decryption Solution for Java IP Protection
Rare Earth Juejin Tech Community
Rare Earth Juejin Tech Community
Dec 11, 2023 · Backend Development

Configuring Multiple Data Sources in Spring Boot with MyBatis

This article explains the underlying principles and step‑by‑step configuration for integrating Spring Boot with MyBatis to manage multiple data sources, covering BeanFactory, FactoryBean, SqlSessionFactoryBean setup, datasource properties, mapper scanning, and sample controller code for accessing distinct databases.

JavaMulti-DataSourceMyBatis
0 likes · 8 min read
Configuring Multiple Data Sources in Spring Boot with MyBatis
Spring Full-Stack Practical Cases
Spring Full-Stack Practical Cases
Dec 11, 2023 · Backend Development

Mastering Spring 6 REST Calls: WebClient, RestTemplate, HTTP Interface & RestClient

Spring 6 offers four powerful ways to perform remote HTTP calls—WebClient, RestTemplate, HTTP Interface, and RestClient—each with distinct APIs, configuration options, and usage patterns, and this guide walks through their setup, method signatures, request handling, and error management for Java developers.

HTTP InterfaceJavaREST
0 likes · 12 min read
Mastering Spring 6 REST Calls: WebClient, RestTemplate, HTTP Interface & RestClient
IT Xianyu
IT Xianyu
Dec 10, 2023 · Backend Development

Caffeine Cache: Introduction, Core Concepts, and Spring Boot Integration

This article provides a comprehensive overview of the Caffeine local cache library, covering its fundamentals, configuration options, loading strategies, eviction policies, statistics, and detailed steps for integrating Caffeine with Spring Boot using annotations and custom cache managers.

CacheCaffeineJava
0 likes · 17 min read
Caffeine Cache: Introduction, Core Concepts, and Spring Boot Integration
JavaEdge
JavaEdge
Dec 10, 2023 · Backend Development

How to Size Java Thread Pools for Optimal Performance

This guide explains why thread pools are essential in Java, walks through factors such as CPU cores, I/O latency, and workload characteristics, and provides formulas and concrete code examples for calculating the ideal pool size for both CPU‑bound and I/O‑bound tasks.

CPU BoundI/O BoundJava
0 likes · 14 min read
How to Size Java Thread Pools for Optimal Performance
Senior Brother's Insights
Senior Brother's Insights
Dec 10, 2023 · Backend Development

Why a Veteran Java Developer Chose Rust: Performance, Concurrency, and Ecosystem

A seasoned Java engineer shares his journey transitioning to Rust, highlighting Rust’s advantages for CLI tools, superior resource utilization, easier concurrency and async programming, while also acknowledging Java’s strengths in rapid feature delivery, mature ecosystem, and ease of learning, and discussing practical migration considerations.

JavaRustperformance
0 likes · 10 min read
Why a Veteran Java Developer Chose Rust: Performance, Concurrency, and Ecosystem
Java Architect Essentials
Java Architect Essentials
Dec 10, 2023 · Fundamentals

Common For‑Loop Optimizations in Java

This article presents more than ten practical techniques for writing faster, cleaner Java for‑loops, covering basic size caching, reverse iteration, iterator usage, enhanced for‑loops, nested loop reduction, exception handling placement, and method‑call minimization to improve overall program performance.

JavaOptimizationcoding best practices
0 likes · 8 min read
Common For‑Loop Optimizations in Java
Code Ape Tech Column
Code Ape Tech Column
Dec 9, 2023 · Backend Development

PowerJob Overview: Selection Rationale, Architecture, Task Types, and Scheduling Strategies with Code Samples

This article introduces the PowerJob distributed task framework, explains why it was chosen, details its architecture and high‑availability design, demonstrates various job types—including standalone, broadcast, map, and map‑reduce—with Java code examples, and covers scheduling options such as CRON, fixed‑rate, and fixed‑delay execution.

Distributed SchedulingJavaMapReduce
0 likes · 14 min read
PowerJob Overview: Selection Rationale, Architecture, Task Types, and Scheduling Strategies with Code Samples
Java High-Performance Architecture
Java High-Performance Architecture
Dec 9, 2023 · Backend Development

Simplify Spring Boot API Development with Graceful Response

Graceful Response is a Spring Boot component that unifies response wrapping, global exception handling, and custom error codes, helping developers reduce boilerplate, improve readability, and accelerate API development while supporting validation and customizable response styles.

APIException HandlingGraceful Response
0 likes · 12 min read
Simplify Spring Boot API Development with Graceful Response
Bitu Technology
Bitu Technology
Dec 8, 2023 · Backend Development

Why Every Java Developer Should Learn Scala – Key Advantages and Insights from the Scala Meetup

The article reviews a Scala meetup where experts compare Java and Scala, highlighting Scala's stronger expressiveness, type inference, pattern matching, safety, and concurrency features, and discusses real‑world adoption, developer experiences, and a recruitment opportunity for a Scala‑focused big‑data team.

Big DataConcurrencyFunctional Programming
0 likes · 13 min read
Why Every Java Developer Should Learn Scala – Key Advantages and Insights from the Scala Meetup
DaTaobao Tech
DaTaobao Tech
Dec 8, 2023 · Backend Development

ZSTD Compression and GC Optimization in Java Netty Backend

Switching a Java Netty gateway from GZIP to ZSTD compression using zstd‑jni doubled GC time and introduced heap and Netty off‑heap memory leaks, which were resolved by employing the library’s direct off‑heap API with a NoFinalizer compressor, promptly releasing ByteBufs, avoiding finalize(), and adopting jemalloc to reduce fragmentation.

JavaMemoryLeakNetty
0 likes · 19 min read
ZSTD Compression and GC Optimization in Java Netty Backend
Java Architect Essentials
Java Architect Essentials
Dec 7, 2023 · Backend Development

Essential IntelliJ IDEA Tips and Shortcuts for Java Developers

This article compiles a comprehensive list of IntelliJ IDEA shortcuts, configuration tweaks, and useful plugins—including history navigation, memory settings, Eclipse keymap, code inspection, bookmark management, Maven helpers, and multi‑port debugging—to boost Java developers' productivity and streamline their workflow.

IDE shortcutsIntelliJ IDEAJava
0 likes · 12 min read
Essential IntelliJ IDEA Tips and Shortcuts for Java Developers
JavaEdge
JavaEdge
Dec 7, 2023 · Backend Development

Why Java’s Blocking Model Is a Bottleneck and How Virtual Threads Solve It

Java’s traditional synchronous blocking model wastes thread resources during I/O, leading to scalability limits, while asynchronous, reactive, and especially Java 21’s virtual threads offer non‑blocking execution paths that improve performance and simplify development without complex reactive pipelines.

AsyncJavareactive-programming
0 likes · 11 min read
Why Java’s Blocking Model Is a Bottleneck and How Virtual Threads Solve It
Rare Earth Juejin Tech Community
Rare Earth Juejin Tech Community
Dec 7, 2023 · Backend Development

In-Depth Analysis of XXL‑RPC Framework: Design, Implementation, and Source Code Walkthrough

This article provides a comprehensive overview of the lightweight XXL‑RPC framework, covering fundamental RPC concepts, the framework's architecture built on Spring and Netty, detailed provider and consumer implementations, various call types, and the service registry‑discovery mechanism, concluding with practical insights for developers.

Distributed SystemsJavaNetty
0 likes · 17 min read
In-Depth Analysis of XXL‑RPC Framework: Design, Implementation, and Source Code Walkthrough
Java High-Performance Architecture
Java High-Performance Architecture
Dec 7, 2023 · Backend Development

Master Distributed Locks in Java with Lock4j: Features, Setup, and Advanced Usage

This article introduces the Lock4j distributed lock library for Java, outlines its key features and supported backends, provides step‑by‑step Maven dependency setup, Redis configuration, annotation details, and demonstrates both basic and advanced usage patterns including custom executors and lock‑failure strategies.

JavaLock4jRedis
0 likes · 6 min read
Master Distributed Locks in Java with Lock4j: Features, Setup, and Advanced Usage
21CTO
21CTO
Dec 6, 2023 · Backend Development

Master Java Development in VS Code: Step‑by‑Step Guide for 2024

Microsoft reports over 2.5 million Java developers using VS Code and outlines a new roadmap, while this guide walks you through installing the JDK, adding the Java extension pack, and creating Java projects in VS Code with troubleshooting tips.

Backend DevelopmentDevelopment EnvironmentJava
0 likes · 4 min read
Master Java Development in VS Code: Step‑by‑Step Guide for 2024
FunTester
FunTester
Dec 6, 2023 · Backend Development

Groovy Script setLength Error with StringBuilder and How to Work Around It

The article describes a Groovy scripting issue where calling StringBuilder.setLength(0) triggers a NoSuchMethodError, explains Groovy's automatic property generation, demonstrates debugging steps, metaprogramming attempts, and the final workaround that resolves the error.

DebuggingGroovyJava
0 likes · 6 min read
Groovy Script setLength Error with StringBuilder and How to Work Around It
dbaplus Community
dbaplus Community
Dec 5, 2023 · Backend Development

Taming Chaotic Logs: Practical Governance and Stack Trace Optimization

Facing uncontrolled log proliferation, the author shares a real-world case of log governance that reduces costs and boosts efficiency by categorizing logs, simplifying formats, consolidating tools, introducing a three‑layer log architecture, and applying stack‑trace reversal techniques with concrete code examples.

JavaLog ManagementLogging
0 likes · 16 min read
Taming Chaotic Logs: Practical Governance and Stack Trace Optimization
Top Architect
Top Architect
Dec 5, 2023 · Backend Development

Unified Exception Handling and Assertion Practices in Spring Boot Backend Development

This article explains how to implement unified exception handling in Spring Boot applications using @ControllerAdvice, custom Assert utilities, and enum-based error codes, demonstrating code examples, response structures, and best practices for reducing try-catch clutter, improving readability, and handling various HTTP and business exceptions consistently.

AssertEnumException Handling
0 likes · 24 min read
Unified Exception Handling and Assertion Practices in Spring Boot Backend Development
Selected Java Interview Questions
Selected Java Interview Questions
Dec 5, 2023 · Backend Development

Implementing Data Isolation in Java Applications Using MyBatis Interceptor and Custom Annotations

This article describes a practical approach to achieve environment‑based data isolation in Java services by adding an env field to tables, using a MyBatis interceptor to rewrite SQL, and defining custom annotations with AOP to control the isolation logic, while sharing code snippets and lessons learned.

Backend DevelopmentCustom AnnotationData Isolation
0 likes · 9 min read
Implementing Data Isolation in Java Applications Using MyBatis Interceptor and Custom Annotations
Architecture Digest
Architecture Digest
Dec 5, 2023 · Backend Development

Common Java Backend Code Smells and Bugs: Real‑World Cases and Fixes

The article presents a collection of typical Java backend coding mistakes—ranging from misused ternary operators and poor parameter validation to logging pitfalls, dead code, improper exception handling, AOP self‑invocation issues, Redis resilience problems, and Excel file upload bugs—along with concrete examples, images, and corrected code snippets to help developers avoid and fix them.

BugFixesCodeQualityExcel
0 likes · 12 min read
Common Java Backend Code Smells and Bugs: Real‑World Cases and Fixes
macrozheng
macrozheng
Dec 5, 2023 · Backend Development

Why Can Spring Boot Fat JARs Run Directly? Uncover the Secrets

This article explains how Spring Boot packages applications as executable Fat JARs, embeds a web server, uses a special launcher, and defines a main class so the JAR can be run with a simple java -jar command, eliminating the need for separate deployment servers.

Fat JarJavaSpring Boot
0 likes · 7 min read
Why Can Spring Boot Fat JARs Run Directly? Uncover the Secrets
Code Ape Tech Column
Code Ape Tech Column
Dec 5, 2023 · Backend Development

Design and Implementation of a Java Rule Engine with AND/OR Logic

This article explains how to design and refactor a Java rule engine that supports short‑circuit AND/OR logic, demonstrates the abstraction of rules, shows concrete implementations, and provides a chainable service for executing combined rule sets with example code.

AND/OR LogicCode RefactoringDesign Patterns
0 likes · 8 min read
Design and Implementation of a Java Rule Engine with AND/OR Logic
Java Architect Essentials
Java Architect Essentials
Dec 4, 2023 · Fundamentals

Top Java Features Since Java 8 Every Developer Should Know

This article surveys the most popular Java language enhancements introduced from Java 8 through Java 20—including var type inference, switch expressions, text blocks, records, pattern‑matching instanceof, sealed classes, and improved NullPointerExceptions—providing concise explanations and visual examples to help developers decide which features to adopt during migration.

Javafundamentalsjava17
0 likes · 7 min read
Top Java Features Since Java 8 Every Developer Should Know
Architect
Architect
Dec 4, 2023 · Backend Development

Mastering Unified Exception Handling in Spring: Clean Code, Better Readability

This article analyzes the problem of scattered try‑catch blocks in Java services, explains why per‑controller exception methods are cumbersome, and presents a unified exception handling solution using @ControllerAdvice, custom Assert utilities, enum‑based error codes, and environment‑aware response formatting, all illustrated with concrete code examples and test results.

AssertEnumException Handling
0 likes · 24 min read
Mastering Unified Exception Handling in Spring: Clean Code, Better Readability
Architecture Digest
Architecture Digest
Dec 4, 2023 · Operations

Using Arthas to Diagnose High CPU Usage in a Java Application

This tutorial demonstrates how to employ the open‑source Java diagnostic tool Arthas to quickly locate and analyze a high‑CPU problem in a running JVM by leveraging commands such as dashboard, thread, jad, watch, and ognl, complete with code examples and step‑by‑step instructions.

ArthasCPU profilingJava
0 likes · 7 min read
Using Arthas to Diagnose High CPU Usage in a Java Application
Spring Full-Stack Practical Cases
Spring Full-Stack Practical Cases
Dec 4, 2023 · Cloud Computing

Master Serverless with Spring Cloud Function: A Hands‑On Guide

This tutorial introduces Spring Cloud Function, explains its core concepts and benefits for serverless development, and walks through a complete example—including configuration, code snippets, HTTP endpoints, function composition, custom routing, and deployment—so readers can quickly build and test function‑based applications.

JavaServerlessSpring Boot
0 likes · 8 min read
Master Serverless with Spring Cloud Function: A Hands‑On Guide
Su San Talks Tech
Su San Talks Tech
Dec 4, 2023 · Fundamentals

Can You Build a HashMap from Scratch? A Step‑by‑Step Java Guide

This article walks you through the fundamentals of hash tables, explains bucket arrays and hash functions, discusses collision resolution strategies, and provides a complete Java implementation of a simple HashMap called ThirdHashMap with code, tests, and performance notes.

Data StructuresHashMapJava
0 likes · 13 min read
Can You Build a HashMap from Scratch? A Step‑by‑Step Java Guide
FunTester
FunTester
Dec 3, 2023 · Backend Development

Why Your Java App’s CPU Spikes: Mastering C1/C2 JIT Threads

This article explains how HotSpot's C1 and C2 JIT compiler threads work, why they can consume excessive CPU, and provides practical JVM tuning options—including tiered compilation, code‑cache sizing, and compiler‑thread adjustments—to mitigate performance issues.

C1C2HotSpot
0 likes · 11 min read
Why Your Java App’s CPU Spikes: Mastering C1/C2 JIT Threads
Efficient Ops
Efficient Ops
Dec 3, 2023 · Backend Development

Why Our Redis Cluster Pipeline Deadlocked: Thread Locks Explained

This article walks through a production incident where a Redis Cluster pipeline caused Dubbo threads to block and eventually deadlock, detailing the root‑cause analysis, code inspection, and verification steps using jstack, jmap, and MAT to confirm the deadlock and propose fixes.

JavaJedisRedis
0 likes · 13 min read
Why Our Redis Cluster Pipeline Deadlocked: Thread Locks Explained
Architect
Architect
Dec 3, 2023 · Backend Development

Implementing Automatic Idempotency in Spring Boot with Redis and Interceptors

This article explains how to achieve automatic request idempotency in Spring Boot applications by using Redis for token storage, custom @AutoIdempotent annotation, and a web interceptor that validates tokens, providing code examples, configuration steps, and testing procedures.

InterceptorJavaSpring Boot
0 likes · 12 min read
Implementing Automatic Idempotency in Spring Boot with Redis and Interceptors
MaGe Linux Operations
MaGe Linux Operations
Dec 3, 2023 · Backend Development

Master RabbitMQ: Core Concepts, Programming Models, and Spring Boot Integration

This guide explains RabbitMQ fundamentals—including brokers, virtual hosts, connections, channels, exchanges, queues, producers, and consumers—covers common messaging patterns, provides step‑by‑step Java code for creating connections, declaring exchanges and queues, publishing and consuming messages, handling acknowledgments and confirmations, and shows how to integrate RabbitMQ with Spring Boot.

AMQPJavaMessage Queue
0 likes · 17 min read
Master RabbitMQ: Core Concepts, Programming Models, and Spring Boot Integration
Spring Full-Stack Practical Cases
Spring Full-Stack Practical Cases
Dec 3, 2023 · Backend Development

Master Custom HandlerMapping in Spring Boot: Header‑Based Routing with getCustomMethodCondition

This tutorial explains how to extend Spring MVC's HandlerMapping by implementing a custom RequestCondition that matches requests based on an x-token header and a custom @AKF annotation, covering code implementation, configuration, testing, and the underlying request‑matching mechanism.

Custom RequestConditionHandlerMappingHeader Authentication
0 likes · 7 min read
Master Custom HandlerMapping in Spring Boot: Header‑Based Routing with getCustomMethodCondition
Architect's Tech Stack
Architect's Tech Stack
Dec 2, 2023 · Backend Development

Drawbacks of the Spring Framework: Performance, Configuration Complexity, Learning Curve, and More

This article examines several drawbacks of the Spring framework—including performance overhead from reflection and proxies, complex configuration, steep learning curve, over‑reliance on the Spring ecosystem, hidden “magic” features, version compatibility challenges, and misuse of dependency injection—illustrated with Java code examples.

Javaconfigurationdependency-injection
0 likes · 8 min read
Drawbacks of the Spring Framework: Performance, Configuration Complexity, Learning Curve, and More
Selected Java Interview Questions
Selected Java Interview Questions
Dec 2, 2023 · Backend Development

Understanding HashMap Resize Behavior and the Revision from Expansion Count to Resize Count in Alibaba's Developer Manual

This article explains the recent correction in Alibaba's developer manual that replaces the ambiguous "expansion count" of HashMap with the precise "resize count", details the conditions under which HashMap triggers resize during the first put operation, and shows why storing 1024 elements in JDK 1.8 results in eight resize calls.

Data StructuresJDK8Java
0 likes · 9 min read
Understanding HashMap Resize Behavior and the Revision from Expansion Count to Resize Count in Alibaba's Developer Manual
Spring Full-Stack Practical Cases
Spring Full-Stack Practical Cases
Dec 2, 2023 · Backend Development

Mastering Spring’s @Import: Three Powerful Ways to Load Configurations

This guide explains Spring’s @Import annotation, covering three import strategies—direct class array, ImportSelector, and ImportBeanDefinitionRegistrar—through detailed code examples, usage scenarios, and important version notes, helping developers improve configuration management, code maintainability, and readability in backend Java applications.

Backend DevelopmentImport AnnotationJava
0 likes · 6 min read
Mastering Spring’s @Import: Three Powerful Ways to Load Configurations
Architect
Architect
Dec 1, 2023 · Backend Development

Implementing a Process Pool with Apache Commons GenericObjectPool in Java

This article explains how to use Apache Commons GenericObjectPool to implement a reusable process pool in Java, covering the underlying concepts, required dependencies, custom factory implementation, pool configuration, and example code for borrowing and returning pooled objects.

GenericObjectPoolJavabackend
0 likes · 9 min read
Implementing a Process Pool with Apache Commons GenericObjectPool in Java
Spring Full-Stack Practical Cases
Spring Full-Stack Practical Cases
Dec 1, 2023 · Backend Development

Resilience4j Essentials: Circuit Breaker, TimeLimiter, Bulkhead & RateLimiter

This article introduces Resilience4j, a lightweight fault‑tolerance library for Spring Boot, explaining its core decorators—CircuitBreaker, TimeLimiter, Bulkhead, and RateLimiter—along with configuration examples, annotation usage, fallback handling, and practical test code to improve system stability and resilience.

Circuit BreakerJavaSpring Boot
0 likes · 16 min read
Resilience4j Essentials: Circuit Breaker, TimeLimiter, Bulkhead & RateLimiter
JD Cloud Developers
JD Cloud Developers
Nov 30, 2023 · Backend Development

How to Extend MyBatis-Plus with Custom CRUD Methods and SQL Injection

Learn how to leverage MyBatis-Plus's built-in CRUD capabilities, create custom SQL methods like SelectByErp, integrate them via a custom SqlInjector, and modify existing operations such as AlwaysUpdateSomeColumnById and UpdateById for sharding scenarios, enabling reusable and efficient data access across your backend.

CRUDJavaMybatis-Plus
0 likes · 9 min read
How to Extend MyBatis-Plus with Custom CRUD Methods and SQL Injection
Architect's Tech Stack
Architect's Tech Stack
Nov 30, 2023 · Backend Development

Spring Boot Startup Optimization Practices

This article presents a comprehensive set of techniques—including lazy initialization, deferred database connections, selective auto‑configuration, logging level tuning, JVM parameter tweaks, dependency pruning, bean optimization, JIT settings, class‑path scanning reduction, and DevTools restart—to significantly shorten Spring Boot application startup time, each illustrated with clear code examples.

Javaperformancestartup optimization
0 likes · 7 min read
Spring Boot Startup Optimization Practices
Code Ape Tech Column
Code Ape Tech Column
Nov 30, 2023 · Backend Development

Performance Comparison of Spring Boot on JVM vs GraalVM Native Image

This article evaluates the startup speed, memory consumption, and request‑handling performance of a simple Spring Boot "Hello World" service when run on the traditional JVM compared with a GraalVM‑compiled native binary, using a MacBook M1 and Bombardier for load testing.

JavaSpring Bootbenchmark
0 likes · 9 min read
Performance Comparison of Spring Boot on JVM vs GraalVM Native Image
Tencent Cloud Developer
Tencent Cloud Developer
Nov 30, 2023 · Backend Development

Tutorial: Building a Spring Boot CRUD Application with Tencent Hunyuan Large Model API and MySQL

This tutorial demonstrates how to prompt Tencent Hunyuan’s large‑model API to generate a Spring Boot project configured for MySQL, create a user table, and implement full JPA‑based CRUD layers—including entity, repository, service, and REST controller—while addressing common null‑field errors and testing the endpoints.

APICRUDJava
0 likes · 14 min read
Tutorial: Building a Spring Boot CRUD Application with Tencent Hunyuan Large Model API and MySQL
Spring Full-Stack Practical Cases
Spring Full-Stack Practical Cases
Nov 30, 2023 · Backend Development

Mastering Spring Cloud OpenFeign: Configuration, Customization, and Best Practices

This guide walks through Spring Cloud OpenFeign's core concepts, enabling steps, custom configurations, timeout handling, logging, retry mechanisms, interceptors, fallback strategies, caching, inheritance, compression, and reactive alternatives, providing developers with a comprehensive reference for building robust microservice clients.

Feign clientJavaOpenFeign
0 likes · 12 min read
Mastering Spring Cloud OpenFeign: Configuration, Customization, and Best Practices
Java Architect Essentials
Java Architect Essentials
Nov 29, 2023 · Backend Development

Performance Tuning of a Java Backend Service: From 50/s to 500/s Through Profiling, Thread‑Pool, and SQL Optimization

The article details a step‑by‑step investigation and optimization of a Java backend service that initially delivered only 50 requests per second under load, covering profiling, slow‑SQL fixes, thread‑pool tuning, JVM memory adjustments, and Spring bean creation overhead to approach the target 500 req/s.

JavaProfilingRedis
0 likes · 14 min read
Performance Tuning of a Java Backend Service: From 50/s to 500/s Through Profiling, Thread‑Pool, and SQL Optimization
macrozheng
macrozheng
Nov 29, 2023 · Backend Development

Why BigDecimal Is the Safest Choice for Money Calculations in Java

This article explains why using Java's BigDecimal for monetary values ensures precise, immutable, and correctly rounded calculations, compares it with float, double, long, and int, and provides best‑practice code examples for constructing, computing, and formatting financial numbers.

BigDecimalJavaMonetary Calculations
0 likes · 8 min read
Why BigDecimal Is the Safest Choice for Money Calculations in Java
Java High-Performance Architecture
Java High-Performance Architecture
Nov 29, 2023 · Backend Development

Understanding MyBatis: A Complete Architecture Overview and Workflow

This article provides a comprehensive, step‑by‑step overview of MyBatis’s architecture—including its three‑layer design, configuration parsing, proxy generation, and SQL execution process—while highlighting key features such as SQL mapping, dynamic SQL, parameter and result mapping, transaction management, connection‑pool integration, and second‑level caching.

Backend DevelopmentJavaMyBatis
0 likes · 9 min read
Understanding MyBatis: A Complete Architecture Overview and Workflow
Java Architect Essentials
Java Architect Essentials
Nov 28, 2023 · Backend Development

Various Ways to Send HTTP Requests in Java

This article introduces multiple Java approaches for sending HTTP GET and POST requests, covering the built‑in HttpURLConnection class, Apache HttpClient, Square's OkHttp, and Spring's RestTemplate, with step‑by‑step explanations and complete code examples for each method.

HTTPHttpClientHttpURLConnection
0 likes · 8 min read
Various Ways to Send HTTP Requests in Java
JD Cloud Developers
JD Cloud Developers
Nov 28, 2023 · Backend Development

Choosing the Right Java Expression Engine: Performance, Security, and Community Insights

This article provides a comprehensive overview and comparative analysis of popular Java expression engines—including AviatorScript, MVEL, OGNL, SpEL, QLExpress, JEXL, JUEL, and Janino—covering their features, community support, size, performance benchmarks, security settings, usage cases, and syntax differences to guide developers in selecting the most suitable engine for their projects.

Expression EngineJavaPerformance Benchmark
0 likes · 23 min read
Choosing the Right Java Expression Engine: Performance, Security, and Community Insights
IT Services Circle
IT Services Circle
Nov 28, 2023 · Backend Development

Comprehensive Java Interview Guide: Basics, Collections, Concurrency, Spring Boot, MySQL, and Network Concepts

This article provides a thorough overview of Java interview topics, covering core language fundamentals, collection frameworks, concurrency mechanisms, Spring Boot transaction handling, database indexing strategies, and network protocol comparisons, all presented in clear English with code examples and diagrams.

ConcurrencyInterviewJava
0 likes · 19 min read
Comprehensive Java Interview Guide: Basics, Collections, Concurrency, Spring Boot, MySQL, and Network Concepts
Code Ape Tech Column
Code Ape Tech Column
Nov 28, 2023 · Backend Development

Understanding CQRS and Implementing It with Spring Microservices

This article explains the CQRS architectural pattern, its benefits and challenges, and provides a step‑by‑step guide to implementing CQRS, event sourcing, and asynchronous communication with Spring Boot, Axon, and Apache Kafka in microservice environments.

CQRSEvent SourcingJava
0 likes · 13 min read
Understanding CQRS and Implementing It with Spring Microservices
Su San Talks Tech
Su San Talks Tech
Nov 28, 2023 · Backend Development

Why Hutool Is the Must-Have Java Utility Library for Faster Development

This article introduces Hutool, a comprehensive Java utility library that consolidates common functions such as file handling, encryption, HTTP, and scheduling into easy-to-use modules, showcases key components like SecureUtil, HtmlUtil, and CronUtil with code examples, and highlights its benefits for reducing development effort.

Backend DevelopmentHTML SanitizationHutool
0 likes · 6 min read
Why Hutool Is the Must-Have Java Utility Library for Faster Development
Architect
Architect
Nov 27, 2023 · Backend Development

Why 500 req/s Became 50 req/s: A Deep Dive into Spring Bean Creation Bottlenecks

A ToB system that seemed able to handle 500 requests per second stalled at 50 req/s due to hidden lock contention in prototype‑scoped Spring beans, slow SQL updates, excessive logging, and thread‑pool misconfiguration, prompting a step‑by‑step performance investigation and multiple optimizations.

JavaOptimizationSQL
0 likes · 16 min read
Why 500 req/s Became 50 req/s: A Deep Dive into Spring Bean Creation Bottlenecks
Top Architect
Top Architect
Nov 27, 2023 · Backend Development

Performance Comparison of String Concatenation Using '+' vs StringBuilder in Java

This article evaluates the execution time and bytecode differences of simple and looped string concatenation in Java, comparing the '+' operator with explicit StringBuilder usage, and concludes that '+' is fine for single concatenations while StringBuilder dramatically outperforms '+' in iterative scenarios.

JavaString concatenationperformance
0 likes · 9 min read
Performance Comparison of String Concatenation Using '+' vs StringBuilder in Java
Architect's Guide
Architect's Guide
Nov 27, 2023 · Backend Development

Unified Exception Handling in Spring Boot: Design, Implementation, and Best Practices

This article provides a comprehensive guide to designing and implementing a unified exception handling framework in Spring Boot, covering the use of @ControllerAdvice, custom assertion interfaces, enum‑based error codes, standardized response structures, and practical testing scenarios to improve code readability and robustness.

EnumException HandlingJava
0 likes · 20 min read
Unified Exception Handling in Spring Boot: Design, Implementation, and Best Practices