Spring Async 实战 & 源码

前言

什么是异步调用?什么时候需要异步调用?

相信大家日常开发过程中,大部分场景使用的是同步的方式来处理。但是当我遇到如下场景如:

Spring Retry 实战 & 源码

前言

To make processing more robust and less prone to failure, it sometimes helps to automatically retry a failed operation, in case it might succeed on a subsequent attempt. Errors that are susceptible to this kind of treatment are transient in nature. For example, a remote call to a web service or an RMI service that fails because of a network glitch or a DeadLockLoserException in a database update may resolve itself after a short wait. To automate the retry of such operations, Spring Retry has the RetryOperations strategy.

日常开发中,我们无法避免在调用远程Web服务时候因为网络故障或数据库死锁等原因导致的调用失败,有时候这些故障会在短暂的等待后自行恢复,而为了自动重试这些操作,我们可以选择引入 Spring Retry .

Java源码解读(一):Objects

其实阅读Java源码本身并没有那么难,只要我们踏出第一步,后面反而比我们想象的要简单。可能很多Java初学者并不知道从哪里下手,所以本篇博客将挑选一个源码较为简单的工具类—— java.util.Objects 作为切入点,走入Java源码的世界。

Your browser is out-of-date!

Update your browser to view this website correctly. Update my browser now

×