How to apply "Back off config" for all workers in Spring boot?

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.

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.