When a network resource is temporary not available or temporary failing like connection to the database is failing temporary but can be successfully connected if retries after some time then retry pattern can be used. In simple meaning, retry pattern can be implemented when success is expected.
In Retry Pattern, retry a task/process for a defined number of times and after each retry, wait for a specified time. If that process/task still fails after attempting defined numbers of retry (count of retry) then throw an exception and don’t block the thread.