This guide explains Java garbage collector internals and selection criteria, covering Serial, Parallel, G1, ZGC, and Shenandoah, detailing their trade-offs between throughput, latency, and memory overhead, and provides scenario-based recommendations for microservices, low-latency systems, batch processing, and small containers, including upcoming Java 27 defaults.
This article presents four reusable reasoning models for financial system architecture: phased FX cost optimization via netting, Boolean logic for regulatory boundary analysis, anemic vs rich domain model trade-offs for cross-module data transfer, and decomposing FX transactions into paired same-currency payments to simplify complex designs.
This article details a production-ready messaging architecture using Go and NATS JetStream, covering transactional outbox publishing, consumer idempotency via inbox tables, aggregate version ordering strategies, quarantine and recovery workflows, Kubernetes R3 deployment, capacity planning, and acceptance testing against failure injection scenarios.
This article presents a production-grade design for handling long-running, preemptible worker tasks in Go and PostgreSQL, covering lease protocols, fencing tokens, outbox patterns, and side-effect reconciliation to prevent stale workers from corrupting state or duplicating external operations.
This tutorial demonstrates implementing file upload and download using Java Servlets with Apache Commons FileUpload, including a CharacterEncodingFilter to handle UTF-8 encoding and resolve Chinese filename corruption during both upload and download operations.
This article analyzes whether Java developers should switch to Python, distinguishing three motivations—AI application development, data analysis/automation, and career dissatisfaction—and argues for extending skills with Python rather than switching, detailing ecosystem boundaries, a real-world SaaS architecture, and practical learning targets.
This tutorial demonstrates how to use ArchUnit to automatically enforce architectural constraints in Spring Boot projects, covering package structure validation, layered architecture protection, cycle detection between modules, and blocking problematic dependencies like BigDecimal(double) constructor through automated tests.
The article benchmarks multiple approaches for inserting 300,000 records into MySQL, showing that naive single inserts take over 4 hours, while optimized batched inserts using MyBatis or JDBC with proper batch sizes (1000–5000) and transaction management achieve 13–24 seconds, and summarizes key optimization strategies.
This article details a high-throughput WeChat Mini Program login architecture in Go targeting 50k entry QPS, covering distributed session design, async peak shaving with Kafka, capacity modeling using Little's Law, API contracts for sync/async flows, idempotency, transactional outbox, token management, observability, and load testing strategies.
This tutorial demonstrates using Apache POI 5.2.1 to create and read Excel .xlsx files in Java, covering Maven setup, cell styling, formula evaluation, date formatting, and fixing log4j2 logging errors with complete code examples.
This article demonstrates building an elegant API rate limiter in Spring Boot using interceptors and Redis, evolving from a basic fixed-window implementation to a flexible annotation-driven design supporting per-endpoint limits, class-level defaults, and solutions for path parameters and sliding window logic.
The author used AI to audit the Feat framework, uncovering 9 issues including connection reuse state leaks and security vulnerabilities, all fixed with automated tests, while reflecting on AI's role as a tireless code reviewer and the importance of invisible stability in foundational frameworks.
This article explains five Java thread communication methods—volatile flag, Object wait/notify, CountDownLatch, ReentrantLock with Condition, and LockSupport—with runnable code examples showing how each coordinates a producer thread adding items and a consumer thread triggered at the fifth addition.
The article explains how Claude Code's slash commands bypass PreToolUse hooks, requiring UserPromptExpansion for interception, details skill rendering-phase command execution and permission checks, and covers the 2.1.299 change moving UserPromptSubmit before command expansion.
Netty 4.2 delivers a major architectural rewrite after 10 years: event loops decoupled from transports via IoHandlerFactory, io_uring graduates from incubator with kernel-level batching, the default memory allocator switches to adaptive magazine-style caching, and TLS hostname verification becomes strict by default — all requiring careful migration due to API breakages and classpath incompatibility.
This tutorial demonstrates how to integrate Spring with MyBatis and JUnit using only annotations, covering Maven dependencies, Druid data source configuration, MyBatis SqlSessionFactory setup, mapper scanning, dynamic SQL with @SelectProvider, service layer wiring, and JUnit test execution with Spring's test context framework.
XXL-JOB v3.1.0+ introduces an AI executor that wraps AI calls as standard Bean-mode handlers, letting you schedule Ollama, Dify, and OpenClaw tasks alongside regular jobs with unified retries, logging, and dynamic parameter configuration — no separate AI orchestration system needed.
AsiaInfo's AST-guided LLM agent automates legacy Java refactoring via strangler pattern, identifying leaf modules through static analysis, generating clean architecture code with sandbox-verified unit tests, and routing traffic gradually, achieving 72% decoupling automation and cutting regression faults from 4.8% to 0.3% in a 124k-line BSS module.
This tutorial demonstrates implementing login attempt limiting using Spring Boot, Redis, and Lua scripts to block IP addresses after three failed password attempts, with automatic lockout expiration.
TencentOS Server 4 team debugs a boot hang caused by a systemd sd-event loop defect where pending tasks were ignored, leading to infinite epoll_wait; they traced it to a ratelimit expiry callback introduced in v250, built a reproducible PoC, and upstreamed a fix using an explicit state flag.