# Retry factor in TN

Hi,

Can someone please educate me more on the concept of “retry factor” in TN?
What I have understood theorotically, I will explain with help of example:
Maximum Retries for Delivery = 3
Wait time Between Retries = 10000ms
Retry Factor = 2
Retry 1 Retry 2 Retry 3
Wait until next attempt
10000 ms 20000 ms 40000 ms
This hop takes place in terms of value mentioned as Retry factor.
So, if I have mentioned retry factor as 1, then in above scenario, it should take 10000ms till third retry.
But in reality it takes much more time than this. Which are the other factors matter in case of total time span for document delivery?
Thanks
Asawari

With your scenario and retry factor of 1, it will be at least 30000 ms until the third retry is tried.

Maximum Retries: 3
Wait time: 10000 ms
Retry factor: 1

At 0 ms, delivery service will attempt delivery.
Fails.
Delivery retry 1: 10000 ms
Time consumed by the delivery service for the try.
Fails.
Delivery retry 2: 20000 ms
Time consumed by the delivery service for the try.
Fails.
Delivery retry 3: 30000 ms
Time consumed by the delivery service for the try.
Fails.

The retry factor is a multiplier for the wait time. For each subsequent retry, the wait time is multiplied by the retry factor and the result is used as the wait time. Remember that the time consumed by the delivery service should also be accounted for. This time can be significant, depending upon the error encountered.

Need more clarification.
As you said "The retry factor is a multiplier for the wait time. For each subsequent retry, the wait time is multiplied by the retry factor ". so if the retry factor is “1”, then wait time will be the same. how it will get doubled?
if Wait time = 10000ms
Retry factor = 1
then 1st retry 10000ms
2nd retry (10000ms * 1) = 10000ms
Same for 3rd retry.
Let me know if I’m missing something.

Regards
Asawari

I was trying to show total elapsed time. I’ll try again, with elapsed time in parentheses:

First try starts at 0 ms.
Delivery attempt.
Failure.
Wait 10000ms (10000ms + 1 delivery try time)
Delivery retry attempt 1.
Failure.
Wait 10000ms (20000ms + 2 delivery try times)
Delivery retry attempt 2.
Failure.
Wait 10000ms (30000ms + 3 delivery try times)
Delivery retry attempt 3.
Failure.
Delivery marked as failed (30000ms + 4 delivery try times)

The time between attempts will be about 10 seconds but the total elapsed time will be over 30 seconds. Depending on how the delivery attempts fail (network timeouts can be quite long, depending on other settings) the time elapsed can be much longer than just the total wait time between delivery tries.