16

I'm a developer in Australia and and I'm using the Firebase Realtime database for a project on Android and iOS.

Customers are complaining about lag and delays, especially when logging-in, and I'm trying to find out if any Firebase processes are by default on US servers, but can be moved to Asia to improve performance.

When I check my Google Cloud Console, the default Storage Bucket is set up as the US, but I cannot find any information about the Firebase Realtime Database.

AL.
  • 33,241
  • 9
  • 119
  • 257
DrZaphod
  • 448
  • 1
  • 5
  • 16
  • Lag and delay can be caused by many factors. I am using firebase REST Api (slower than Javascript), but have never faced any delays is response. – Adarsh Madrecha Sep 05 '16 at 08:02
  • See [this link](https://firebase.google.com/docs/database/rtdb-vs-firestore#reliability_and_performance) - Firebase realtime DB is single-region (US) and Cloud Firestore is multi (albeit currently in Beta). – opyate Sep 05 '18 at 12:37

2 Answers2

16

Update: as of late 2020 Firebase Realtime Database instances can be in different locations. You can find the location of your database as the bottom of the data viewer in the Firebase console, as also shown in the screenshot in Jürgen's answer.

All Firebase Databases are hosted in the central US. There is no way to change this at the moment.

Frank van Puffelen
  • 418,229
  • 62
  • 649
  • 645
  • 3
    Are there any plans to allow customers to choose where their Firebase Database is hosted? – DrZaphod Sep 05 '16 at 07:20
  • Is this was change lately? – The Butcher Jul 17 '18 at 11:28
  • We are getting very slow loading times of page in india approx 6-7 second while after adding cdn through cloud function i see a huge performance gain of around 100ms , because the servers are located at us therefore ttfb (waiting) is high in other countries , i want to know is there a way i can speed up fiebase read from database first time so that page loading becomes fast?. This is the only problem i fear of using it in production . – gautam Aug 09 '18 at 06:58
  • 2
    Hi Frank, how are you? I want to ask if Firebase has any plans to support multiple locations for the realtime database as well (similar to firestore)? I ask this because of recent changes by the EU that invalidates the US-EU privacy shield (Schrems II case). Thanks – Glauber Ramos Oct 13 '20 at 16:04
2

When you open the RTDB console you can see it at the bottom as indicated in the image. This feature is currently in a beta state. https://firebase.google.com/docs/projects/locations?authuser=0#rtdb-locations

enter image description here

Jürgen Brandstetter
  • 5,058
  • 2
  • 30
  • 27