1. By using the PUSH feature, we have greatly reduced the likelihood of a race condition - the possibility that we are displaying or using outdated data. But have we eliminated the possibility entirely? Explain.
2. In your own words, describe the disadvantages of using a public database.
3. Explain why the Firebase version of the app requires less code to implement the same features than does the TinyWebDB version of the app.
4. Include a screenshot of your Firebase.DataChanged event handler in the student version of this app after the test for an updated question is added in the enhancement.
Answer
1. It is possible still, but it is a far more remote chance now. Generally, it would take hundreds or thousands of people using it at the same time to slow it down enough that there may be a race condition still.
2. The disadvantage is that because it is public, it can be altered by someone other than the owner.
3. The TinyWebDB still required some coding on our end, such as the use of the clock.
4. See below for teacher and student blocks.
Teacher App:
Student App: