Getting and rating the news periodically
Let's say we need to fetch fresh news twice a day. That means we need a service that runs every 12 hours, sends a request to the news agencies, and rates and saves them in the Firebase Realtime database. Later we will notify the user about the stored news.
You might ask why we need to store them in the database. We can email them as soon as we have filtered the right news. That is true for email notifications. But what if we needed to show them inside the application?
The first part of this scenario sounds familiar and we have already implemented it in the Collector service. However, we cannot use it right away and we need to modify the business logic a little.
The current Collector service saves the SELECTED ...