Tagged articles
126 articles
Page 1 of 2
James' Growth Diary
James' Growth Diary
May 17, 2026 · Artificial Intelligence

When an Agent Fails: Retry, Fallback, and Human Takeover Strategies

The article classifies agent failures into transient, structural, and semantic types, compares how Claude Code, OpenAI Codex, and Google Gemini CLI agents handle errors, and shows how LangGraph implements robust retry policies, fallback routing, and human‑in‑the‑loop handoff with concrete code examples and best‑practice guidelines.

AgentError HandlingFallback
0 likes · 16 min read
When an Agent Fails: Retry, Fallback, and Human Takeover Strategies
Spring Full-Stack Practical Cases
Spring Full-Stack Practical Cases
May 13, 2026 · Backend Development

Beyond try‑catch: 3 Elegant Fault‑Tolerance Patterns Every Senior Developer Needs

The article explains why simple try‑catch is insufficient for production stability and introduces three advanced fault‑tolerance patterns—retry with exponential back‑off, circuit breaker using Resilience4j, and idempotency design—each illustrated with concrete Spring Boot 3.5.0 code examples and best‑practice guidelines.

Exception HandlingIdempotencyRetry
0 likes · 12 min read
Beyond try‑catch: 3 Elegant Fault‑Tolerance Patterns Every Senior Developer Needs
Coder Trainee
Coder Trainee
Apr 24, 2026 · Backend Development

Mastering OpenFeign: Elegant Service Calls and Load Balancing in Spring Cloud

This article compares RestTemplate and OpenFeign for inter‑service calls, demonstrates how to set up OpenFeign with Spring Cloud, covers advanced configurations such as timeouts, retries, interceptors, logging, fallbacks, and circuit breaking, explains load‑balancing strategies, shares a complete microservice implementation, and resolves common pitfalls.

FallbackFeign clientMicroservices
0 likes · 13 min read
Mastering OpenFeign: Elegant Service Calls and Load Balancing in Spring Cloud
DeWu Technology
DeWu Technology
Feb 9, 2026 · Big Data

How to Build a Production‑Ready Flink ClickHouse Sink with Dynamic Sharding, Batch‑by‑Size, and Robust Retry

This article presents a production‑grade Flink ClickHouse sink that solves common pain points such as lack of size‑based batching, static table schemas, and distributed‑table latency by introducing data‑size batching, dynamic table routing, local‑table writes, load‑balanced node discovery, back‑pressure queues, dual‑trigger flush, and recursive retry with node exclusion, all integrated with Flink checkpoint semantics for at‑least‑once guarantees.

BatchingCheckpointClickHouse
0 likes · 25 min read
How to Build a Production‑Ready Flink ClickHouse Sink with Dynamic Sharding, Batch‑by‑Size, and Robust Retry
Su San Talks Tech
Su San Talks Tech
Jan 20, 2026 · Databases

How to Ensure Data Consistency Between Database and Cache in High‑Concurrency Scenarios

This article examines the common data‑consistency problems that arise when updating both a database and a cache under high concurrency, evaluates four typical write‑order strategies, and presents the most reliable solution—writing to the database first and then safely invalidating the cache using retry, scheduled tasks, MQ, or binlog listeners.

ConsistencyMQRetry
0 likes · 17 min read
How to Ensure Data Consistency Between Database and Cache in High‑Concurrency Scenarios
Data STUDIO
Data STUDIO
Jan 19, 2026 · Fundamentals

10 Advanced Python Decorators to Replace Repetitive if‑else Logic and Clean Up Your Code

This article introduces ten practical Python decorator patterns—covering caching, timing, retry, rate‑limiting, logging, dependency injection, class‑wide decoration, singleton, role‑based access control, and context management—each explained with concrete code examples, output snapshots, and guidance on when and how to apply them.

PythonRBACRetry
0 likes · 29 min read
10 Advanced Python Decorators to Replace Repetitive if‑else Logic and Clean Up Your Code
Java Backend Technology
Java Backend Technology
Nov 4, 2025 · Backend Development

10 Essential Spring Boot Features Every Developer Should Master

This comprehensive guide explores the most powerful Spring Boot capabilities—including @Conditional, @ConfigurationProperties, Actuator, DevTools, Retry, Cache, testing strategies, custom starters, Admin, and CLI—providing code examples and deep analysis to help developers boost productivity, reliability, and maintainability of their applications.

ActuatorCacheConditional
0 likes · 20 min read
10 Essential Spring Boot Features Every Developer Should Master
Cognitive Technology Team
Cognitive Technology Team
Oct 12, 2025 · Backend Development

Resilient Microservices: Practical Patterns to Keep Your Services Alive

Learn how to tame chaotic microservices with practical resilience patterns—circuit breakers, bulkheads, smart retries, timeouts with fallbacks, and event‑driven messaging—plus tool recommendations and observability tips that ensure your system stays responsive even when individual services fail.

ObservabilityResilienceRetry
0 likes · 9 min read
Resilient Microservices: Practical Patterns to Keep Your Services Alive
Spring Full-Stack Practical Cases
Spring Full-Stack Practical Cases
Aug 19, 2025 · Backend Development

Mastering Retry Strategies in Spring Boot 3: 5 Practical Components

This article explores the growing importance of retry mechanisms in distributed Spring Boot 3 applications, presenting five practical retry components—Spring‑Retry, Resilience4j‑Retry, Fast‑Retry, Easy‑Retry, and Guava‑Retrying—along with custom annotation examples, configuration details, code snippets, and execution results.

Easy RetryGuavaRetry
0 likes · 13 min read
Mastering Retry Strategies in Spring Boot 3: 5 Practical Components
Spring Full-Stack Practical Cases
Spring Full-Stack Practical Cases
Aug 1, 2025 · Backend Development

Master Spring Boot 3: 151 Real‑World Cases on Retry, Concurrency, and HttpClient

This article introduces a continuously updated collection of 151 Spring Boot 3 practical examples, covering built‑in retry mechanisms, concurrency limits, and automatic HTTP client registration, complete with configuration snippets, code samples, and visual illustrations to help developers implement resilient backend services.

BackendHttpClientJava
0 likes · 9 min read
Master Spring Boot 3: 151 Real‑World Cases on Retry, Concurrency, and HttpClient
Su San Talks Tech
Su San Talks Tech
Jul 13, 2025 · Backend Development

8 Proven Retry Strategies to Prevent Costly Failures in Distributed Systems

Discover why improper retry logic can cause massive financial losses, learn eight practical retry solutions—from simple loops to advanced Resilience4j and distributed lock techniques—and see how to avoid retry storms, ensure idempotency, and protect resources in high‑traffic backend services.

Distributed SystemsIdempotencyResilience
0 likes · 13 min read
8 Proven Retry Strategies to Prevent Costly Failures in Distributed Systems
Java Architect Essentials
Java Architect Essentials
Jul 3, 2025 · Backend Development

Why Hard‑Coded Timeouts Fail and How to Build Resilient Backend Services

An engineer recounts a midnight outage caused by misconfigured timeouts in Feign, Ribbon, and Hystrix, explains three common pitfalls, and presents a four‑step strategy—clarifying configuration hierarchy, intelligent retry, user‑friendly fallback, and dynamic Sentinel circuit breaking—to boost system availability from 91% to 99.97%.

FallbackMicroservicesRetry
0 likes · 9 min read
Why Hard‑Coded Timeouts Fail and How to Build Resilient Backend Services
Architecture Digest
Architecture Digest
Jun 19, 2025 · Backend Development

Supercharge Spring Boot HTTP Calls with Retrofit: A Complete Guide

This article introduces retrofit‑spring‑boot‑starter, a lightweight HTTP client for Spring Boot that simplifies request creation and offers powerful features such as custom OkHttpClient injection, annotation‑based interceptors, connection‑pool management, logging, retry, error decoding, circuit‑breaker support, service discovery, and flexible call adapters and converters, all with concise configuration examples.

HTTP clientInterceptorRetrofit
0 likes · 21 min read
Supercharge Spring Boot HTTP Calls with Retrofit: A Complete Guide
Su San Talks Tech
Su San Talks Tech
Mar 11, 2025 · Backend Development

7 Proven Retry Strategies to Keep Your System Running Smoothly

This article explores seven practical retry solutions—from simple loops and Spring Retry to Resilience4j, message queues, scheduled tasks, two‑phase commits, and distributed locks—explaining their scenarios, core code, and how they prevent costly system failures.

BackendMQRetry
0 likes · 10 min read
7 Proven Retry Strategies to Keep Your System Running Smoothly
Spring Full-Stack Practical Cases
Spring Full-Stack Practical Cases
Feb 26, 2025 · Backend Development

Mastering Optimistic Locking in Spring Boot 3: From Pitfalls to Proven Solutions

This article examines the challenges of using JPA optimistic locking for inventory deduction under high concurrency, demonstrates why naive retry logic can cause deadlocks and stale data, and walks through five progressively refined implementations that resolve transaction, caching, and isolation issues.

RetrySpring Bootconcurrency
0 likes · 13 min read
Mastering Optimistic Locking in Spring Boot 3: From Pitfalls to Proven Solutions
Architect
Architect
Jan 25, 2025 · Backend Development

HTTP Retry Strategies in Offline Store Systems: Simple Loop, Apache HttpClient, and MQ‑Based Asynchronous Retries

This article explores practical HTTP retry solutions for offline store applications, covering a basic loop retry, the built‑in retry mechanism of Apache HttpClient with custom handlers, and an asynchronous retry approach using message queues to achieve higher reliability and eventual consistency.

Apache HttpClientBackendHTTP
0 likes · 12 min read
HTTP Retry Strategies in Offline Store Systems: Simple Loop, Apache HttpClient, and MQ‑Based Asynchronous Retries
Architect's Guide
Architect's Guide
Dec 27, 2024 · Backend Development

Fast‑Retry: High‑Performance Asynchronous Retry Framework for Java

Fast‑Retry is a high‑throughput Java retry library that enables asynchronous, non‑blocking retries for massive task volumes, offering programmable and annotation‑based APIs, custom retry policies, and significant performance gains over traditional synchronous frameworks like Spring‑Retry and Guava‑Retry.

BackendJavaRetry
0 likes · 11 min read
Fast‑Retry: High‑Performance Asynchronous Retry Framework for Java
Yang Money Pot Technology Team
Yang Money Pot Technology Team
Dec 26, 2024 · Frontend Development

Design and Implementation of a Multi‑CDN Disaster Recovery Mechanism for Frontend Resource Loading

This article presents a comprehensive multi‑CDN disaster‑recovery solution for frontend static resources, detailing the background, current issues, goals, SDK‑based architecture, monitoring and retry strategies, data‑reporting mechanisms, evaluation results, and future dynamic scheduling improvements.

CDNRetrySDK
0 likes · 12 min read
Design and Implementation of a Multi‑CDN Disaster Recovery Mechanism for Frontend Resource Loading
Selected Java Interview Questions
Selected Java Interview Questions
Nov 28, 2024 · Backend Development

Key Considerations and Best Practices for Using Spring Event in Backend Systems

This article explains critical pitfalls and best‑practice guidelines for employing Spring Event in Java backend applications, covering graceful shutdown requirements, event loss during startup, suitable business scenarios, reliability enhancements, retry mechanisms, idempotency, and the relationship between Spring Event and message queues.

BackendEvent-Driven ArchitectureJava
0 likes · 12 min read
Key Considerations and Best Practices for Using Spring Event in Backend Systems
Java Backend Technology
Java Backend Technology
Sep 18, 2024 · Backend Development

Why Fast‑Retry Beats Spring‑Retry for Massive Asynchronous Retries

Fast‑Retry is a high‑performance, multi‑task asynchronous retry framework for Java that dramatically outperforms traditional synchronous retry libraries like Spring‑Retry and Guava‑Retry, especially when handling millions of tasks, by leveraging non‑blocking execution, customizable strategies, and seamless Spring integration.

AsynchronousJavaRetry
0 likes · 13 min read
Why Fast‑Retry Beats Spring‑Retry for Massive Asynchronous Retries
Test Development Learning Exchange
Test Development Learning Exchange
Aug 28, 2024 · Fundamentals

Python Decorators for API Testing: Retry, Timeout, Logging, Caching, Validation, and More

This article introduces Python decorators—such as retry, timeout, logging, caching, response validation, parameterization, exception handling, performance monitoring, permission checking, and composite usage—and provides complete code examples showing how they simplify and strengthen automated API testing.

DecoratorRetryTimeout
0 likes · 10 min read
Python Decorators for API Testing: Retry, Timeout, Logging, Caching, Validation, and More
Test Development Learning Exchange
Test Development Learning Exchange
Aug 26, 2024 · Fundamentals

Master Python unittest: From Basics to Advanced Techniques

This guide walks through Python's unittest module, covering fundamental concepts, test suites, loaders, custom result handling, skipping tests, retry decorators, execution order, tagging, class-level setup/teardown, and exception‑message assertions, each illustrated with clear code examples.

RetryassertRaisesRegexcustom result
0 likes · 8 min read
Master Python unittest: From Basics to Advanced Techniques
Test Development Learning Exchange
Test Development Learning Exchange
Aug 17, 2024 · Backend Development

Python Decorator Examples for API Testing

This article presents ten practical Python decorator patterns—such as logging, performance measurement, exception handling, retry, status‑code validation, parameter checking, rate limiting, data‑driven testing, environment configuration, and concurrent execution—each illustrated with clear use‑case descriptions and complete code snippets for API testing.

DecoratorError HandlingRetry
0 likes · 9 min read
Python Decorator Examples for API Testing
Spring Full-Stack Practical Cases
Spring Full-Stack Practical Cases
Aug 5, 2024 · Backend Development

Boost SpringBoot Reliability with Fast‑Retry Asynchronous Retry Framework

Fast‑Retry is a high‑performance, asynchronous retry framework for SpringBoot that handles millions of concurrent tasks, offering configurable retry attempts, delay, exception handling, and custom result policies, and outperforms traditional synchronous solutions like Spring‑Retry and Guava‑Retry in throughput and resource usage.

AsynchronousRetrySpringBoot
0 likes · 8 min read
Boost SpringBoot Reliability with Fast‑Retry Asynchronous Retry Framework
Zhuanzhuan Tech
Zhuanzhuan Tech
Jul 31, 2024 · Backend Development

HTTP Retry Strategies for Offline Store Systems: Simple Loop, Apache HttpClient, and Asynchronous MQ-Based Retries

This article examines the need for reliable HTTP retries in offline store applications, evaluates simple loop retries, explores Apache HttpClient's built‑in retry mechanism, and proposes a hybrid solution that combines customized HttpClient retry handling with asynchronous message‑queue retries to achieve high availability and eventual consistency.

Apache HttpClientHTTPJava
0 likes · 11 min read
HTTP Retry Strategies for Offline Store Systems: Simple Loop, Apache HttpClient, and Asynchronous MQ-Based Retries
Su San Talks Tech
Su San Talks Tech
Jul 21, 2024 · Backend Development

8 Effective Retry Strategies for Java APIs

This article presents eight practical retry mechanisms for Java applications—including loop, recursion, HttpClient configuration, Spring Retry, Resilience4j, custom utilities, asynchronous thread‑pool retries, and message‑queue based retries—along with code examples, configuration snippets, and best‑practice guidelines to help developers handle transient network failures reliably.

HttpClientJavaRetry
0 likes · 17 min read
8 Effective Retry Strategies for Java APIs
Top Architect
Top Architect
Jul 12, 2024 · Backend Development

Traffic Governance and High Availability in Backend Systems: Circuit Breakers, Isolation, Retries, Timeouts, and Rate Limiting

This article explains how high‑availability backend systems use traffic governance techniques—including circuit breakers, various isolation strategies, retry and timeout policies, degradation mechanisms, and rate‑limiting—to maintain balanced data flow, prevent cascading failures, and ensure performance, scalability, and reliability.

BackendRetryTimeout
0 likes · 30 min read
Traffic Governance and High Availability in Backend Systems: Circuit Breakers, Isolation, Retries, Timeouts, and Rate Limiting
Top Architect
Top Architect
Jun 26, 2024 · Backend Development

High Availability Traffic Governance: Circuit Breakers, Isolation, Retries, Timeouts, and Rate Limiting

This article explains how to achieve high‑availability in microservice systems through traffic governance techniques such as circuit breakers, various isolation strategies, retry mechanisms, timeout controls, and rate‑limiting, illustrating each concept with examples, formulas, and pseudo‑code.

RetryTimeoutcircuit breaker
0 likes · 31 min read
High Availability Traffic Governance: Circuit Breakers, Isolation, Retries, Timeouts, and Rate Limiting
Architect
Architect
Jun 24, 2024 · Operations

Traffic Governance and High‑Availability Strategies for Microservices

This article explains how traffic governance—including circuit breaking, isolation, retry mechanisms, degradation, timeout control, and rate limiting—helps microservice systems achieve the three‑high goals of high performance, high availability, and easy scalability, using concrete formulas, algorithms, and practical examples.

MicroservicesRetryTimeout
0 likes · 29 min read
Traffic Governance and High‑Availability Strategies for Microservices
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.

MicroservicesRetrySystem Design
0 likes · 30 min read
Mastering Traffic Governance: From Circuit Breakers to Rate Limiting for High‑Availability Systems
Architect
Architect
Jun 6, 2024 · Backend Development

Why Fast‑Retry Beats Spring‑Retry for Million‑Task Scenarios

The article explains how Fast‑Retry, an asynchronous multi‑task retry framework, dramatically outperforms synchronous retry libraries like Spring‑Retry and Guava‑Retry when handling massive workloads, and provides step‑by‑step code examples, performance benchmarks, and integration tips for Java developers.

AsynchronousBackendJava
0 likes · 8 min read
Why Fast‑Retry Beats Spring‑Retry for Million‑Task Scenarios
Architect
Architect
Apr 22, 2024 · Operations

Flow Governance and High‑Availability Strategies for Microservice Systems

This article explains how to achieve high availability in microservice architectures by applying flow governance techniques such as circuit breaking, isolation, retry policies, degradation, timeout management, and rate limiting, while detailing key metrics like MTBF and MTTR and providing practical implementation guidance.

Flow ControlMicroservicesRetry
0 likes · 30 min read
Flow Governance and High‑Availability Strategies for Microservice Systems
macrozheng
macrozheng
Apr 22, 2024 · Backend Development

Mastering Retry Strategies in Java: 8 Practical Implementations

This article explains why retry mechanisms are essential for unreliable network calls in distributed systems and presents eight concrete Java implementations—including loop, recursion, HttpClient built‑in, Spring Retry, Resilience4j, custom utilities, asynchronous thread‑pool, and message‑queue approaches—plus best‑practice guidelines to avoid common pitfalls.

HttpClientRetryresilience4j
0 likes · 16 min read
Mastering Retry Strategies in Java: 8 Practical Implementations
Test Development Learning Exchange
Test Development Learning Exchange
Apr 9, 2024 · Fundamentals

Boltons Python Library: Deepcopy, Type Checking, Retry, OrderedDict, FrozenMap, LinkedList, ThreadSafeDeque, Chunked, String Conversion, and Timeout Decorator

This article introduces the Boltons Python library and demonstrates how to use its utilities—including deep copy, enhanced type checking, configurable retry, ordered dictionaries, immutable maps, linked lists, thread‑safe deques, data chunking, string‑byte conversion, and timeout decorators—to extend standard Python functionality.

DeepCopyRetryboltons
0 likes · 5 min read
Boltons Python Library: Deepcopy, Type Checking, Retry, OrderedDict, FrozenMap, LinkedList, ThreadSafeDeque, Chunked, String Conversion, and Timeout Decorator
Rare Earth Juejin Tech Community
Rare Earth Juejin Tech Community
Apr 4, 2024 · Backend Development

Understanding and Preventing Payment Order Loss (Drop Order) in E‑commerce Systems

This article explains what payment order loss (drop order) is, its impact on customers and businesses, analyzes the internal and external causes within the payment flow, and provides concrete mitigation strategies such as asynchronous compensation, retry mechanisms, proactive querying, and delayed‑queue solutions to ensure reliable order processing.

QueueRetryasynchronous compensation
0 likes · 11 min read
Understanding and Preventing Payment Order Loss (Drop Order) in E‑commerce Systems
Rare Earth Juejin Tech Community
Rare Earth Juejin Tech Community
Mar 4, 2024 · Backend Development

Design and Usage of a Lightweight Go Retry Library

This article introduces a lightweight Go library named Retry that provides functional‑programming‑style retry mechanisms, explains the pain points of manual loop retries, describes its architecture, backoff algorithms, configuration options, and demonstrates both singleton and factory usage with complete code examples.

BackoffLibraryRetry
0 likes · 12 min read
Design and Usage of a Lightweight Go Retry Library
Architect's Guide
Architect's Guide
Jan 19, 2024 · Backend Development

Implementing a Graceful Retry Mechanism for Third‑Party API Calls in Spring Boot

This article explains why retry mechanisms are essential for unstable third‑party API calls, introduces Spring Retry, demonstrates how to configure synchronous and asynchronous retries, handle exception inclusion/exclusion, integrate circuit‑breaker fallback with Hystrix, and provides performance testing guidance, all with practical code examples.

HystrixJavaRetry
0 likes · 8 min read
Implementing a Graceful Retry Mechanism for Third‑Party API Calls in Spring Boot
JavaEdge
JavaEdge
Jan 13, 2024 · Backend Development

Ensuring Consistency, Idempotency, and Reliable Retries in Payment Systems

The article explains how payment systems should link related documents to maintain status and amount consistency, implement idempotency through unique keys, and use progressive retry mechanisms with message queues to handle network glitches and ensure reliable transaction processing.

ConsistencyIdempotencyRetry
0 likes · 5 min read
Ensuring Consistency, Idempotency, and Reliable Retries in Payment Systems
Architect
Architect
Jan 13, 2024 · Backend Development

Mastering API Retry Strategies in Java: 8 Proven Techniques

This article walks through eight practical ways to implement retry mechanisms for remote API calls in Java, covering simple loops, recursion, Apache HttpClient settings, Spring Retry, Resilience4j, custom utilities, asynchronous thread‑pool retries, and message‑queue based retries, while highlighting trade‑offs and best‑practice guidelines.

HttpClientJavaRetry
0 likes · 18 min read
Mastering API Retry Strategies in Java: 8 Proven Techniques
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.

HttpClientJavaRetry
0 likes · 17 min read
Mastering Retry Strategies in Java: 8 Proven Methods for Reliable API Calls
Didi Tech
Didi Tech
Oct 10, 2023 · Backend Development

Investigation of 300‑Second Redis Timeout Issues in a Go Service

The article details how a Go service’s 300‑second Redis call timeout was traced to a gateway’s full‑NAT session‑table loss, and explains how targeted retries, proper timeout settings, and rate‑limiting can prevent similar cascading failures in distributed systems.

GoRetryTimeout
0 likes · 9 min read
Investigation of 300‑Second Redis Timeout Issues in a Go Service
Rare Earth Juejin Tech Community
Rare Earth Juejin Tech Community
Aug 25, 2023 · Frontend Development

Implementing createPromise and createRetryPromise Utility Functions in JavaScript

This article explains the design and step‑by‑step implementation of two JavaScript utility functions—createPromise for exposing a Promise’s resolve/reject handlers and createRetryPromise for adding configurable retry logic—complete with TypeScript typings, detailed code walkthroughs, and a practical network‑request example.

AsyncJavaScriptPromise
0 likes · 11 min read
Implementing createPromise and createRetryPromise Utility Functions in JavaScript
Architecture Digest
Architecture Digest
Aug 16, 2023 · Backend Development

Implementing Retry Mechanisms in Java: Manual Loops, Static Proxy, JDK Dynamic Proxy, CGLib, AOP, Spring Retry and Guava‑Retry

This article explains why retry mechanisms are essential for remote service calls, compares several implementation approaches—including manual loops, static and dynamic proxies, AOP, Spring Retry annotations, and Guava‑Retry—provides complete Java code examples, and discusses the advantages and drawbacks of each method.

GuavaJavaProxy
0 likes · 15 min read
Implementing Retry Mechanisms in Java: Manual Loops, Static Proxy, JDK Dynamic Proxy, CGLib, AOP, Spring Retry and Guava‑Retry
Architect
Architect
Aug 15, 2023 · Backend Development

Mastering Retry Strategies in Java: From Manual Loops to Spring Retry and Guava

This article walks through seven retry implementations for Java services—manual loops, static proxy, JDK dynamic proxy, CGLib proxy, custom AOP, Spring Retry annotations, and Guava‑retry—showing code examples, analyzing their pros and cons, and recommending the best fit for different project contexts.

GuavaProxyRetry
0 likes · 18 min read
Mastering Retry Strategies in Java: From Manual Loops to Spring Retry and Guava
Code Ape Tech Column
Code Ape Tech Column
Aug 5, 2023 · Backend Development

Implementing Retry Mechanisms in Java: Manual Loops, Static Proxy, JDK Dynamic Proxy, CGLib Proxy, AOP, Spring Retry and Guava Retry

This article explains why retry mechanisms are essential for remote service calls in Java applications and demonstrates six practical implementations—from simple while‑loop retries to static proxies, JDK and CGLib dynamic proxies, custom AOP, Spring Retry annotations, and the Guava‑retry library—complete with code examples and usage tips.

GuavaProxyRetry
0 likes · 16 min read
Implementing Retry Mechanisms in Java: Manual Loops, Static Proxy, JDK Dynamic Proxy, CGLib Proxy, AOP, Spring Retry and Guava Retry
Java High-Performance Architecture
Java High-Performance Architecture
Jul 24, 2023 · Backend Development

Business Compensation in Distributed Systems: Rollback, Retry, and Consistency

This article explains how distributed systems handle business inconsistencies through compensation mechanisms, detailing rollback versus retry approaches, their implementation patterns such as explicit/implicit rollback, various retry strategies, and the trade‑offs between ACID and BASE consistency models for achieving eventual consistency.

ConsistencyDistributed SystemsMicroservices
0 likes · 11 min read
Business Compensation in Distributed Systems: Rollback, Retry, and Consistency
Sohu Tech Products
Sohu Tech Products
Jul 19, 2023 · Backend Development

Understanding RocketMQ Consumption Logic in Version 4.9.x

This article provides a comprehensive walkthrough of RocketMQ 4.9.x consumption architecture, covering the four core roles, publish‑subscribe model, storage structures, load‑balancing, long‑polling, concurrent and ordered consumption flows, progress persistence, and retry mechanisms, with illustrative diagrams and code snippets.

ConsumerDistributed SystemsMessage Queue
0 likes · 28 min read
Understanding RocketMQ Consumption Logic in Version 4.9.x
Code Ape Tech Column
Code Ape Tech Column
Jun 6, 2023 · Backend Development

Business Compensation Mechanisms: Rollback and Retry Strategies in Distributed Systems

The article explains business compensation mechanisms in distributed microservice architectures, detailing rollback and retry approaches, their implementation patterns, strategies, and practical considerations for achieving eventual consistency while handling failures and outlines best practices for idempotency, monitoring, and workflow engine design.

Distributed SystemsRetrybusiness compensation
0 likes · 14 min read
Business Compensation Mechanisms: Rollback and Retry Strategies in Distributed Systems
政采云技术
政采云技术
May 18, 2023 · Backend Development

Understanding Spring Retry: A Comprehensive Guide to Retry, Backoff, and Circuit Breaker Mechanisms

This article explains the concept of retry in distributed systems, introduces Spring Retry and its annotations, demonstrates Maven dependencies, configuration, various retry policies, backoff strategies, circuit breaker support, and walks through the core implementation details with practical code examples.

BackoffCircuitBreakerJava
0 likes · 20 min read
Understanding Spring Retry: A Comprehensive Guide to Retry, Backoff, and Circuit Breaker Mechanisms
Top Architect
Top Architect
May 4, 2023 · Backend Development

Business Compensation Mechanisms: Rollback and Retry Strategies in Distributed Systems

The article explains how distributed applications face consistency challenges, defines business compensation as a way to resolve inconsistent states, and details practical rollback and retry mechanisms—including explicit/implicit rollback, various retry strategies, code examples, and design considerations for microservice architectures.

Retrybusiness compensationrollback
0 likes · 14 min read
Business Compensation Mechanisms: Rollback and Retry Strategies in Distributed Systems
JD Cloud Developers
JD Cloud Developers
Mar 23, 2023 · Backend Development

How to Build a Reliable Distributed Delay Queue in Java: Strategies, Pros & Cons

This article examines common delay‑processing scenarios such as payment timeouts and token refreshes, compares several implementation methods—including Java DelayQueue, MQ‑based delay queues, scheduled tasks, Redis ZSETs, and time wheels—highlights their advantages and drawbacks, and presents a concrete architecture and demo code for a robust, retry‑capable distributed delay component.

BackendRetrydelay queue
0 likes · 14 min read
How to Build a Reliable Distributed Delay Queue in Java: Strategies, Pros & Cons
Su San Talks Tech
Su San Talks Tech
Feb 11, 2023 · Backend Development

Avoid the Top 9 OpenFeign Pitfalls: HTTP Clients, Timeouts, and Retries

This article explains nine common pitfalls when using OpenFeign in Spring Cloud, covering the choice of HTTP client, global and service‑specific timeout settings, Hystrix integration, Ribbon configuration, retry mechanisms, and the trade‑offs of using OpenFeign as a plain HTTP client.

HTTP clientHystrixOpenFeign
0 likes · 12 min read
Avoid the Top 9 OpenFeign Pitfalls: HTTP Clients, Timeouts, and Retries
IT Architects Alliance
IT Architects Alliance
Dec 4, 2022 · Backend Development

Mastering Retry Logic in Java: Spring‑Retry vs Guava‑Retry

This guide explains how to implement declarative retry mechanisms in Java using Spring‑Retry and Guava‑Retry, covering dependency setup, template and annotation usage, various retry and back‑off policies, test examples, and a comparative analysis of their flexibility and configuration options.

BackendBackoffGuava
0 likes · 17 min read
Mastering Retry Logic in Java: Spring‑Retry vs Guava‑Retry
IT Architects Alliance
IT Architects Alliance
Nov 24, 2022 · Backend Development

Transaction Consistency Strategies in Microservices: Blocking Retry, Async Queues, TCC, and Local Message Tables

The article examines common microservice transaction consistency techniques—including blocking retries, asynchronous queues, TCC compensation transactions, local message tables, and MQ transactions—explaining their mechanisms, advantages, drawbacks, and practical code examples for ensuring data integrity across distributed services.

ConsistencyMessage QueueRetry
0 likes · 13 min read
Transaction Consistency Strategies in Microservices: Blocking Retry, Async Queues, TCC, and Local Message Tables
DeWu Technology
DeWu Technology
Oct 31, 2022 · Databases

Analysis of Order Query Failures Caused by MySQL Master‑Slave Replication Lag and Mitigation Strategies

The e‑commerce platform’s order‑query alerts were caused by MySQL master‑slave replication lag—specifically, delayed redo‑log flushing let the slave receive binlog events before the master committed—so queries returned empty, a condition mitigated by retry logic, delayed MQ delivery, or emitting post‑commit business events.

BinlogMaster‑SlaveReplication
0 likes · 10 min read
Analysis of Order Query Failures Caused by MySQL Master‑Slave Replication Lag and Mitigation Strategies
Architecture Digest
Architecture Digest
Sep 25, 2022 · Cloud Native

Designing Microservices Architecture for Failure: Patterns and Practices

This article explains how to build highly available microservices by addressing the inherent risks of distributed systems and presenting fault‑tolerance patterns such as graceful degradation, change management, health checks, self‑healing, failover caching, retries, rate limiting, bulkheads, circuit breakers, and systematic failure testing.

Cloud NativeMicroservicesReliability
0 likes · 14 min read
Designing Microservices Architecture for Failure: Patterns and Practices
Top Architect
Top Architect
Sep 4, 2022 · Backend Development

Designing Fault‑Tolerant Microservices Architecture

The article explains how to build highly available microservice systems by isolating failures, applying graceful degradation, change‑management, health checks, self‑healing, fallback caches, circuit breakers, retry policies, rate limiting and testing strategies, while acknowledging the cost and operational complexity involved.

Retrychange managementcircuit breaker
0 likes · 16 min read
Designing Fault‑Tolerant Microservices Architecture
Top Architect
Top Architect
Aug 27, 2022 · Backend Development

Spring Retry and Guava Retry Frameworks: Concepts, Configuration, and Practical Code Examples

This article provides a comprehensive guide to using Spring Retry and Guava Retry in Java applications, covering dependency setup, basic and annotation-based usage, various retry and back‑off policies, code examples, and a comparison of both frameworks to help developers implement robust retry mechanisms.

Retrybackoff-policyexception-handling
0 likes · 15 min read
Spring Retry and Guava Retry Frameworks: Concepts, Configuration, and Practical Code Examples
Code Ape Tech Column
Code Ape Tech Column
Aug 25, 2022 · Backend Development

Using Guava‑Retrying for Flexible Retry Strategies in Java

This article introduces the Guava‑Retrying library for Java, explains how to add its Maven dependency, demonstrates building a Retryer with customizable retry conditions, stop strategies, wait strategies, and listeners, and provides detailed code examples illustrating each component.

Backend DevelopmentGuava-RetryingJava
0 likes · 14 min read
Using Guava‑Retrying for Flexible Retry Strategies in Java
Cognitive Technology Team
Cognitive Technology Team
Jul 3, 2022 · Backend Development

Network Timeouts Do Not Imply Server Failure: Effective Retry, Backoff, and Idempotency Strategies

Network timeouts do not necessarily indicate server‑side failure; handling them with appropriate retry strategies, exponential backoff, and idempotent APIs—combined with mechanisms such as distributed locks and atomic transactions—helps maintain system stability while avoiding duplicate operations and resource exhaustion.

BackendBackoffDistributed Systems
0 likes · 7 min read
Network Timeouts Do Not Imply Server Failure: Effective Retry, Backoff, and Idempotency Strategies
Tencent Cloud Developer
Tencent Cloud Developer
Jun 28, 2022 · Backend Development

Implementing HTTP Request Retry, Hedging, and Circuit Breaking in Go

The article explains how to add reliable HTTP communication in Go by implementing retry logic with configurable backoff and jitter, resetting request bodies for POST retries, using hedged parallel requests, and integrating circuit‑breaker patterns to prevent overload and cascading failures.

BackoffCircuitBreakerGo
0 likes · 16 min read
Implementing HTTP Request Retry, Hedging, and Circuit Breaking in Go
Python Programming Learning Circle
Python Programming Learning Circle
May 7, 2022 · Fundamentals

Using Tenacity: A Python Retry Library – Installation, Unlimited Retries, Stop Conditions, Intervals, and Logging

This article introduces the Tenacity Python library, explains how to install it, and demonstrates various retry strategies such as unlimited retries, stopping after success, limiting attempts or time, combining stop conditions, setting fixed or random wait intervals, and adding pre‑ and post‑retry logging with complete code examples.

BackoffRetrycode-example
0 likes · 5 min read
Using Tenacity: A Python Retry Library – Installation, Unlimited Retries, Stop Conditions, Intervals, and Logging
Alibaba Terminal Technology
Alibaba Terminal Technology
Apr 13, 2022 · Frontend Development

Boost Front‑End Reliability with Real‑World RxJS Anti‑Corruption Layer Patterns

This article demonstrates how to use RxJS Observable to build robust front‑end anti‑corruption layers, covering stability improvement, splash‑screen timing, automatic fast‑API selection, race‑condition handling, and high‑order data composition with practical code examples and online demos.

Anti‑Corruption LayerData compositionRetry
0 likes · 12 min read
Boost Front‑End Reliability with Real‑World RxJS Anti‑Corruption Layer Patterns
IT Services Circle
IT Services Circle
Apr 7, 2022 · Databases

Database and Cache Dual-Write Consistency: Common Solutions and Pitfalls

This article examines the problem of data inconsistency when writing to both a database and a cache, outlines four typical dual‑write strategies, analyzes their drawbacks in high‑concurrency scenarios, and recommends the most reliable approach—writing to the database first followed by cache deletion with retry mechanisms.

CacheConsistencyMessaging
0 likes · 18 min read
Database and Cache Dual-Write Consistency: Common Solutions and Pitfalls
Big Data Technology & Architecture
Big Data Technology & Architecture
Apr 5, 2022 · Big Data

Using ElasticsearchSink with Apache Flink: Configuration, Retry Strategies, and Failure Handling

This article introduces the ElasticsearchSink for Apache Flink, explains how to add Maven dependencies, implement the sink with configuration and retry settings, details failure handlers, and highlights important considerations such as exception handling and checkpoint requirements for reliable streaming pipelines.

Big DataElasticsearchFailure Handling
0 likes · 9 min read
Using ElasticsearchSink with Apache Flink: Configuration, Retry Strategies, and Failure Handling
Su San Talks Tech
Su San Talks Tech
Nov 3, 2021 · Backend Development

Avoid OpenFeign Pitfalls: HTTP Client, Timeouts, Retries & Ribbon Settings

This guide explains the most frequent OpenFeign configuration traps—including choosing the proper HTTP client, setting global and per‑service timeouts, enabling Hystrix circuit‑breaker timeouts, customizing retry behavior, and aligning Ribbon settings—to help developers prevent performance issues and system crashes.

HTTP clientOpenFeignRetry
0 likes · 11 min read
Avoid OpenFeign Pitfalls: HTTP Client, Timeouts, Retries & Ribbon Settings
ByteDance Dali Intelligent Technology Team
ByteDance Dali Intelligent Technology Team
Aug 26, 2021 · Backend Development

Design and Implementation of a Distributed KV‑Based Message Queue

This article explains the core concepts and detailed design of a custom message queue built on a distributed key‑value store, covering terminology, architecture, broker metadata, topic metadata, message format, sending, storage, retrieval, delay handling, retry mechanisms, dead‑letter queues, and TTL policies.

Delay MessageDistributed KVMessage Queue
0 likes · 13 min read
Design and Implementation of a Distributed KV‑Based Message Queue
Java Architect Essentials
Java Architect Essentials
Jun 27, 2021 · Backend Development

Preventing Order Loss and Duplicate Submissions in Payment Systems

This article explains the typical payment order flow, identifies external and internal causes of order loss, and provides concrete backend strategies—such as intermediate payment states, timeout queries, idempotent handling, retry mechanisms, and Redis‑based duplicate‑submission protection—to ensure reliable order processing.

Order ManagementRetryTimeout
0 likes · 5 min read
Preventing Order Loss and Duplicate Submissions in Payment Systems
Architect's Tech Stack
Architect's Tech Stack
Jun 26, 2021 · Backend Development

Retrofit Spring Boot Starter – A Lightweight HTTP Client Integration for Spring Boot

The article introduces retrofit‑spring‑boot‑starter, a lightweight HTTP client framework for Spring Boot that simplifies HTTP request management by integrating Retrofit with features such as custom OkHttpClient injection, annotation‑driven interfaces, global and path‑based interceptors, retry logic, logging, circuit‑breaker support, connection‑pool configuration, and flexible call‑adapter and converter factories.

HTTP clientJavaRetrofit
0 likes · 21 min read
Retrofit Spring Boot Starter – A Lightweight HTTP Client Integration for Spring Boot
Programmer DD
Programmer DD
May 14, 2021 · Backend Development

Why Simple Retries Fail in Kafka and How to Build Robust Failure Strategies

This article explains Kafka's core concepts, the challenges of consumer failures in microservice architectures, why naïve retry loops or message skipping are insufficient, and presents a nuanced approach that distinguishes recoverable from unrecoverable errors, using back‑off retries and hidden topics to preserve ordering and data integrity.

Distributed SystemsKafkaMicroservices
0 likes · 24 min read
Why Simple Retries Fail in Kafka and How to Build Robust Failure Strategies
Code Ape Tech Column
Code Ape Tech Column
May 12, 2021 · Backend Development

Preventing Order Loss and Duplicate Submissions in Payment Systems

This article outlines a simplified order flow involving payment gateways and third‑party channels, identifies external and internal order‑loss scenarios, and proposes practical measures such as intermediate “payment‑in‑progress” states, timeout queries, idempotent handling, retry mechanisms, and Redis‑based duplicate‑submission prevention to ensure reliable order processing.

Retryorder processingpayment
0 likes · 5 min read
Preventing Order Loss and Duplicate Submissions in Payment Systems
Architecture Digest
Architecture Digest
May 2, 2021 · Backend Development

Preventing Order Loss and Duplicate Submissions in Payment Systems

This article explains the typical payment flow, identifies causes of external and internal order loss, and provides concrete backend strategies—including intermediate payment states, timeout queries, idempotent handling, retry mechanisms, and Redis‑based duplicate‑submission protection—to ensure reliable order processing.

IdempotencyOrder ManagementRetry
0 likes · 4 min read
Preventing Order Loss and Duplicate Submissions in Payment Systems
Java Captain
Java Captain
Apr 3, 2021 · Backend Development

Preventing Order Loss and Duplicate Submissions in Payment Systems

This article explains common causes of order loss and duplicate submissions in payment workflows, and provides practical backend strategies such as intermediate payment states, timeout queries, idempotent handling, retry mechanisms, and Redis‑based deduplication to ensure reliable order processing.

IdempotencyOrder ManagementRetry
0 likes · 4 min read
Preventing Order Loss and Duplicate Submissions in Payment Systems
Top Architect
Top Architect
Mar 9, 2021 · Backend Development

Handling Kafka Consumer Failures and Retry Strategies in Microservices

This article explains how Apache Kafka is used for asynchronous microservice communication, identifies the common pitfall of consumer message failures, and evaluates retry‑topic patterns, their drawbacks, and alternative approaches such as back‑off retries and hidden topics while preserving message ordering and data consistency.

Consumer FailureKafkaMicroservices
0 likes · 23 min read
Handling Kafka Consumer Failures and Retry Strategies in Microservices