У паттерна retry есть свои паттерны, смотрим статью: https://engineering.mercari.com/en/blog/entry/20210126-retry-pattern-in-microservices/