Migrating to Firebase
We covered the overall architecture of our application in the second chapter of this book. In order to migrate to Firebase, we need to rethink this architecture and see what we can leverage from the Firebase platform and, more importantly, what we can't.
The User interface
This is probably the easiest to decide. Our user interface takes the form of static files that need to be served to the user.
With Firebase Hosting, we can offload the task of serving static assets and files (arguably the highest load in terms of network traffic) entirely to the cloud.
Moreover, the reliability that a cloud solution provides will lead to faster and more secure retrieval of our static assets.
Database
Another major area that is resource-intensive is the database layer. We need a readily available server with enough storage space.
The Firebase Realtime database gives us a convenient way to access and store our data. It is a JSON storage engine, which means that it is schemaless. One of the...