I'm involved with a project to convert our spring-boot codebase from Hystrix to Resilience4J. Some of the conversions have been straightforward but there are some more complicated ones that I'm not sure how to convert.
We have classes that have annotations like this:
@DefaultProperties(groupKey = "HistrixCircuitDefaultGroupKey",
commandProperties = {
@HystrixProperty(name = "execution.isolation.thread.timeoutInMilliseconds", value = "10000"),
@HystrixProperty(name = "circuitBreaker.sleepWindowInMilliseconds", value = "5000"),
@HystrixProperty(name = "circuitBreaker.requestVolumeThreshold", value = "20"),
@HystrixProperty(name = "circuitBreaker.errorThresholdPercentage", value = "50") },
threadPoolKey = "client-tp",
threadPoolProperties = {
@HystrixProperty(name = "coreSize", value = "55")
})
Then elsewhere in the class the methods are annotated with things like:
@HystrixCommand(commandKey = "postContact")
Can someone give me advice on how to convert that into the equivalent Resilence4J code?