From the course: Advanced SQL for Application Development
Unlock the full course today
Join today to access over 24,800 courses taught by industry experts.
Solution: When your Python application fails
From the course: Advanced SQL for Application Development
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.
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.
Contents
-
-
-
-
-
-
-
(Locked)
Database errors2m 59s
-
(Locked)
Error trapping5m 11s
-
(Locked)
Database not responding, timeouts, and exponential backoff4m 11s
-
(Locked)
Connection pooling and bulk heads3m 53s
-
(Locked)
Monitoring and logging best practices4m 14s
-
(Locked)
Challenge: When your Python application fails30s
-
(Locked)
Solution: When your Python application fails32s
-
(Locked)
-
-