How do real-time databases work so fast

885 views

I was just testing the database of my app which uses the Firebase real-time database. I made a new data entry into the database, and as soon as I pressed enter the data instantly appeared on my device.

How is this possible so fast, and so quickly. Because the data has to be uploaded from my computer through many servers until it reaches the database servers, and from there it has to travel again through so many nodes to reach the end client device.

In: Technology

Anonymous 0 Comments

If I understand what I’ve researched while building my apps, unless you specificity tell it to, Firebase maintains a constant connection to your app while its open. This skips, albeit small, the time it takes for the device to connect to the database.