Skip to content

Commit 34d2693

Browse files
authored
fix typo
1 parent b558d76 commit 34d2693

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

articles/postgresql/flexible-server/concepts-connectivity.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ Transient errors should be handled using retry logic. Situations that must be co
3030
The first and second cases are fairly straight forward to handle. Try to open the connection again. When you succeed, the transient error has been mitigated by the system. You can use your Azure Database for PostgreSQL again. We recommend having waits before retrying the connection. Back off if the initial retries fail. This way the system can use all resources available to overcome the error situation. A good pattern to follow is:
3131

3232
* Wait for 5 seconds before your first retry.
33-
* For each following retry, the increase the wait exponentially, up to 60 seconds.
33+
* For each following retry, increase the wait exponentially, up to 60 seconds.
3434
* Set a max number of retries at which point your application considers the operation failed.
3535

3636
When a connection with an active transaction fails, it is more difficult to handle the recovery correctly. There are two cases: If the transaction was read-only in nature, it is safe to reopen the connection and to retry the transaction. If however if the transaction was also writing to the database, you must determine if the transaction was rolled back, or if it succeeded before the transient error happened. In that case, you might just not have received the commit acknowledgment from the database server.

0 commit comments

Comments
 (0)