China Bank Money Transfer
中国,银行间转账场景。
my initial understanding of system resilience.
good news is from the spring framework itself, we have these resilience capabilities.
As of 7.0, the core Spring Framework includes a couple of common resilience features,
in particular@Retryableand@ConcurrencyLimitannotations for method invocations.
another good resource is resilience4j.
The RestClient is a synchronous HTTP client that offers a modern, fluent API. It offers an abstraction over HTTP libraries that allows for convenient conversion from a Java object to an HTTP request, and the creation of objects from an HTTP response.
Lets see how it is designed.
Docker Compose simplifies the management of multi-container applications by defining services, networks, and volumes in a single YAML file.
with a single command, we can create and start all the services from yaml file.
let’s see how we use docker compose in Spring Boot. Github Demo / Docker Compose Support in Spring Boot
Backoff is a strategy for dealing with failures, conflicts, or resource competition.
The core logic is: when an operation fails or encounters a limitation, it will pause for a period of time before trying again, and the retry interval is usually adjusted dynamically to avoid increasing system pressure or conflicts.
let’s see how spring-framework implement it.