From the course: Advanced SQL for Application Development

Unlock the full course today

Join today to access over 22,500 courses taught by industry experts or purchase this course individually.

Solution: When your Python application fails

Solution: When your Python application fails

From the course: Advanced SQL for Application Development

Start my 1-month free trial

Solution: When your Python application fails

(upbeat music) - [Instructor] Okay, the solution to the first part is the try-except block. Now, if you're not using Python and you're using another programming language, there's probably something very similar to try-except that you would find in that programming language. Now, the second part of the solution is the exponential backoff approach. That's a commonly used technique which allows the database time to catch up and allocate resources and finish other tasks before trying to reconnect.

Contents