Web services can become unreliable. Discover how to prepare our app by adding the ability to use backup services.
- [Narrator] Web services are not guaranteed…to function all of the time.…They may fail for various reasons,…such as time-out issues, or authentication problems.…We can try to avoid this problem by using multiple services.…If one service fails, we switch to another one.…This fallback strategy helps us…maximize our chances to deliver weather data.…The solution that we're going to rely on…is based on a well-known software design pattern…called "Chain of Responsibility."…This pattern organizes the potential…request processors in the sequence.…
The request travels through the sequence…until one of the processors handles it,…or until it reaches the end of the chain.…In our case, we need to build…a chain of network controllers.…Each network controller relies on a different web service.…If a web service fails for whatever reason,…the controller forwards the sent request…to the next controller if there is any.…To be at the sequence of controllers,…each controller should keep…a reference to the next controller.…
I'm going to need to add the back-up…
- Comparing object-oriented programming with protocol-oriented programming
- Methods and class-bound protocols
- Adopting a protocol
- Declaring asynchronous behavior
- Preparing and implementing fallback logic
- Implementing an app using protocol-oriented programming
Skill Level Intermediate
1. Protocol-Oriented Programming
4. Implement the Weather App Using POP
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.