Almost any semi-complex app uses an online database. Online databases are helpful to keep track of users and their data, make real-time changes, and more. There are multiple options for using an online database. Two of the most common are mentioned below.
Option 1: Set up and use your own database
Pros: With this option you can fully manage your database however you like.
Cons: You have to deal with scaling, crashes, bugs, viruses, hijacks, and much more.
Option 2: Use and online database service (like firebase)
Pros: All Server managements is managed by the service, so you can focus on development.
Cons: You may have to pay the service