Sanyou's Java Diary
Author

Sanyou's Java Diary

Passionate about technology, though not great at solving problems; eager to share, never tire of learning!

207
Articles
0
Likes
506
Views
0
Comments
Recent Articles

Latest from Sanyou's Java Diary

100 recent articles max
Sanyou's Java Diary
Sanyou's Java Diary
Aug 5, 2024 · Cloud Native

Understanding Dubbo 3.x’s Move to Application-Level Service Registration

This article explains why Dubbo transitioned from interface-level to application-level service registration in version 3.x, detailing the performance pressures of interface registration, alignment with Spring Cloud and Kubernetes, and the underlying implementation using metadata centers, Nacos, Redis, and Zookeeper.

DubboMetadata CenterNacos
0 likes · 15 min read
Understanding Dubbo 3.x’s Move to Application-Level Service Registration
Sanyou's Java Diary
Sanyou's Java Diary
Jul 22, 2024 · Backend Development

Why Does My ThreadPool Freeze? Uncovering the Hidden Deadlock Pitfall

This article explains a subtle thread‑pool deadlock caused by parent‑child task interactions, demonstrates the issue with a reproducible demo, analyzes why the latch logic fails, and provides a practical solution of isolating thread pools to avoid false‑deadlock behavior in microservices.

CountDownLatchDeadlockJava
0 likes · 11 min read
Why Does My ThreadPool Freeze? Uncovering the Hidden Deadlock Pitfall
Sanyou's Java Diary
Sanyou's Java Diary
Jul 8, 2024 · Backend Development

Unveiling Dubbo RPC: Step‑by‑Step Core Process Explained

This article walks through the complete lifecycle of a single RPC call in Dubbo 3.x, covering demo setup, provider exposure, consumer referencing, parameter packaging, filter chains, cluster decision, routing, load balancing, communication and serialization protocols, and finally how the provider processes the request.

DubboRPCbackend development
0 likes · 17 min read
Unveiling Dubbo RPC: Step‑by‑Step Core Process Explained
Sanyou's Java Diary
Sanyou's Java Diary
Jul 1, 2024 · Backend Development

11 Ways to Implement Delayed Tasks in Java: From DelayQueue to Quartz

This article explores eleven practical methods for implementing delayed tasks in Java, covering native APIs like DelayQueue and Timer, advanced executors such as ScheduledThreadPoolExecutor, and popular messaging solutions including RocketMQ, RabbitMQ, Redis, Redisson, Netty, Hutool, and Quartz, with code demos and implementation details.

ConcurrencyMessage QueueRedis
0 likes · 27 min read
11 Ways to Implement Delayed Tasks in Java: From DelayQueue to Quartz
Sanyou's Java Diary
Sanyou's Java Diary
Jun 24, 2024 · Operations

How Visualized Full‑Chain Log Tracing Transforms Complex Business Systems

This article explains a new visualized full‑chain log tracing solution that organizes business logs by logical flow, dynamically links them during execution, and provides a visual, searchable view of the entire business process, dramatically improving issue localization in large‑scale distributed systems.

backendlog tracingobservability
0 likes · 26 min read
How Visualized Full‑Chain Log Tracing Transforms Complex Business Systems
Sanyou's Java Diary
Sanyou's Java Diary
Jun 20, 2024 · Backend Development

Mastering Traffic Governance: From Circuit Breakers to Rate Limiting for High‑Availability Systems

This article explains how traffic governance—through circuit breaking, isolation, retry strategies, degradation, timeout handling, and rate limiting—keeps distributed systems highly available, performant, and scalable, using concrete examples, formulas, and best‑practice patterns for modern microservice architectures.

circuit breakermicroservicesrate limiting
0 likes · 30 min read
Mastering Traffic Governance: From Circuit Breakers to Rate Limiting for High‑Availability Systems
Sanyou's Java Diary
Sanyou's Java Diary
Jun 17, 2024 · Backend Development

How to Keep Cache and Database Consistent? Proven Strategies and Common Pitfalls

This article explains why cache‑DB consistency is a long‑standing challenge, compares naive full‑load and delete‑cache approaches, analyzes concurrency and failure scenarios, and presents reliable solutions such as updating the database first followed by cache deletion using message queues or binlog subscriptions.

Cache ConsistencyDatabase SynchronizationEventual Consistency
0 likes · 19 min read
How to Keep Cache and Database Consistent? Proven Strategies and Common Pitfalls