What to do with hanging transactions after external bank unavailability? How to find out when the bank is available again?
sobes.tech AI
Answer from AI
After the external bank becomes unavailable, hanging transactions need to be handled carefully to avoid data loss or duplication of operations. Usually, the following steps are applied:
-
Identification of hanging transactions: Use logs or transaction monitoring in the database to find transactions that were not completed (for example, in "pending" or "in progress" state).
-
Manual or automatic cleanup: Depending on the business logic, these transactions can either be canceled or retried after restoring connectivity.
-
Logging and notifications: It is important to record such cases and notify responsible specialists.
To find out when the bank is available again, you can:
- Periodically perform test requests (heartbeat) to the bank's API.
- Use network and service monitoring mechanisms.
- Receive notifications from the bank (if provided).
After confirming availability, you can restart processing the hanging transactions.