Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Cloud Firestore - selecting region to store data?

I'm working on a product which for legal reasons needs to store user data in a specific region.

I'm using Firebase so I created a project selecting the region it needs to be in however looking at firestore where the user data is kept I can't find anything pinpointing the region the data actually is. The thing which makes me worry the most is the Cloud Functions endpoints start with us-central1 but obviously that could just be that cloud functions don't exist in the specified region.

Given this is an important matter is there a way to confirm the location of data and even force it to be in a specific region?

like image 986
meds Avatar asked Jan 27 '18 04:01

meds


People also ask

Where should I set my cloud firestore location?

Before you use Cloud Firestore, you must choose a location for your database. To reduce latency and increase availability, store your data close to the users and services that need it. This location setting is your project's default Google Cloud Platform (GCP) resource location.

Is firestore multi region?

You can store your Datastore mode data in either a multi-region location or a regional location. Data in a multi-region location operates in a multi-zone and multi-region replicated configuration. Select a multi-region location if you want to maximize the availability and durability of your database.

How do I change my Firebase Realtime Database region?

You can't change a location of a existing database. You would need to migrate it manually to a new one that you setup to the location you want. The migration is very easy. Just export the old database into a json file and import it to the new one.

What is the difference between native mode and Datastore mode?

Datastore mode can automatically scale to millions of writes per second. Use Firestore in Native mode for new mobile and web apps. Firestore offers mobile and web client libraries with real-time and offline features. Native mode can automatically scale to millions of concurrent clients.


1 Answers

Update

Cloud Firestore supports the following regional GCP resource locations, in addition to the 2 multi-region (nam5, eur3) locations: GCP resource locations See the documentation for an up-to-date list of locations.

Original Answer

Cloud Firestore is currently only available in our US multi-region (Iowa, Oklahoma, South Carolina). As we approach GA we plan to roll it out to multiple locations across the globe and you'll be able to select which one at creation time. Not something you can do today though.

like image 128
Dan McGrath Avatar answered Oct 24 '22 09:10

Dan McGrath