<ahref="https://github.com/dotnetcore/cap/edit/master/docs/user-guide-cn/implementation-mechanisms.md"title="Edit this page"class="md-icon md-content__icon"></a>
<ahref="https://github.com/dotnetcore/cap/edit/master/docs/user-guide-cn/implementation.md"title="Edit this page"class="md-icon md-content__icon"></a>
<ahref="https://github.com/dotnetcore/cap/edit/master/docs/user-guide-cn/distributed-transactions.md"title="Edit this page"class="md-icon md-content__icon"></a>
<ahref="https://github.com/dotnetcore/cap/edit/master/docs/user-guide-cn/transactions.md"title="Edit this page"class="md-icon md-content__icon"></a>
<p>Retry plays a very important role in CAP's infrastructure,CAP will retry for Failed messages.CAP has the following retry strategies:</p>
<p><strong>1、 Retry on sending</strong></p>
<p>in the process of sending a message,when the Broker crashed or connection failed or exceptions are thrown,CAP will retry,it will retry 3 times for the first time,if still failed,then it will retry every 1 minute,the retry the retry count +1,when the retry count come to 50,CAP will not retry any more.</p>
<p>in the process of sending a message,when the Broker crashed or connection failed or exceptions are thrown,CAP will retry,it will retry 3 times for the first time,if still failed,then it will retry every 1 minute after 4 minutes,the retry the retry count +1,when the retry count come to 50,CAP will not retry any more.</p>
<blockquote>
<p>You can modify <codeclass="codehilite">FailedRetryCount</code> in <codeclass="codehilite">CapOptions</code> to change the default retry count.</p>