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.
Challenge: When your Python application fails
From the course: Advanced SQL for Application Development
Challenge: When your Python application fails
(upbeat music) - [Instructor] Here is a two part challenge. First imagine your Python web application is failing and there's an unhandled exception and users are getting a stack trace. And the cause of the problem is that connection to the database is failing. When that happens, what Python programming statement would you use to trap the error? The second part of the challenge is this: what algorithm would you use in your error handling code when you're attempting to reconnect to the database?
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)
-
-