I am struggling to configure back off configuration for workers in Spring boot project. Does anyone have a working code that actually does this?
Been trying to follow this link, but I just can’t make it work.
Am I on a good road by having this code?
@Configuration
public class BackOffConfig {
@Bean
@Primary
public BackoffSupplier backOffSupplier() {
return BackoffSupplier.newBackoffBuilder()
.minDelay(20000L)
.backoffFactor(1.5)
.build();
}
}
Just having trouble to actually “connect” this to all workers.