A hands-on exercise
In this exercise, we will build a solution using most of the services covered in this chapter. Our objective is to provide a web page containing the current weather information for a list of cities. This can be implemented using different architectures. Let me describe one of them and then we can comment on what other options we could have chosen.
In this case, I identified the following list of steps:
- Read the list of cities.
- Get the forecast for each city.
- Put the results in a centralized storage location.
- Update the web page containing the weather information.
- Repeat all previous steps periodically.
A lot of questions need to be answered before we can move on; these are some that came to my mind during the process and how I came to answers to them. You may disagree with some of them, and that’s perfectly fine.
First, I decided to use an external list of cities stored in a file, containing just the name of each of them...