how to know the region location of my firebase storage? - firebase

for my firestore database, I can clearly see the location of my database, like in this image
but I can't find out the default location of my firebase storage to store my images. I only find the bucket name
how to find the default region location of my firebase storage ? I need to ensure the location is the nearest from my user
is it always be the same as Default GCP resource location ?

The region of a project's default storage bucket is the same as Firestore. You actually agreed to set it that way in a dialog at some point during project setup. Please read the documentation:
Cloud Firestore and Cloud Storage — If you start using either of these products, you're prompted to select your project's default Google Cloud Platform (GCP) resource location (if it wasn't already selected when setting up another service).

Related

How to add my project to multiple GCP resource locations?

I have built a firebase project which has "asia-south1" as its default GCP location, I choose this location because other servers had too much latency. But now I want the application to work in other countries as well, The data of one GCP location will also be accessed by others if we have multiple firebase projects and now I have really no idea how to proceed, your help would be really appreciated.
Hope I was able to clear the question
Thank you
Your Cloud Firestore data can be kept in either a regional or a multi-regional location. The developer must choose a location when Firestore is enabled in a project.
The only way for a developer to alter the location of data in an existing project is to start a new Firestore project at the desired location and transfer the data using the Import/Export capability. A Firestore project's location is not currently possible to be changed.
This is the public documentation on Firestore locations.
Just to clarify and complete my current response a little more, the only way to migrate your data (move your data) to another project at this time is manually using the managed export feature, as stated in this official document, or using cloud functions to schedule exports, as stated in this other one document, and then importing the data into your destination project.
It is unfortunately impossible to change the location of Firestore resource locations after setting up Functions, RTDB or Firestore. As per The Docs, Warning: Setting the location for one of these services (that is, Cloud Firestore, Cloud Storage, or scheduled functions) also sets the location for the others. After you set your project's default GCP resource location, you cannot change it.

How to change the lcoation of firebase storage?

Hello everyone while checking my costs for my firebase project, I detect that I have high cost caused by appspot . My GCP- is located at eur3 (europe-west). But my firebase Storage is Multi-Regional. So my question is can I change the location for firbebase Storage ? My question is not about us.artficats only about if it's makes sense to change location of firebase storage if so then how ?
Also as you can see that us.artifacts....appspot.com takes HUGE Bandwidth. The Problem should be fixed in Firebase CLI 9.14 but mine is 9.23.1. So I have no idea what caused this problem.Please leave also a solution(if you know a fix )down below.
Cloud Storage for Firebase stores your files in a Google Cloud Storage bucket, making them accessible through both Firebase and Google Cloud. Cloud Storage location is set on a bucket and you can create different buckets in different locations. You can change the storage class of the bucket but changing the location for the bucket is not supported currently. So if you want you can create another bucket with the preferred location. You can follow this guide on how to move and rename the bucket.
Now about the huge bandwidth taken by the us.artifacts....appspot.com bucket, I would suggest you setting up the Life Cycle Management Policy on the bucket as mentioned in this StackOverFlow answer.

Where are the Firebase server locations?

I am afraid of some latency when calling Firebase API. So I would like to know where the Firebase API servers are located. Are there any documents? Please help. Thanks.
The official documentation regarding choosing locations for your project, doesn't include an option for the Firebase Authentication. So currently, there is no way to specify a particular location for storing the Firebase Authentication data.
However, when you are using Cloud Firestore, Cloud Storage, or Cloud Functions for Firebase, you're prompted to select your project's default location. On the other hand, when using the Realtime Database, you're prompted to select the location of the instance, and each instance can be in a different location.
If you are also using Analytics, you're also prompted to select an Analytics reporting location. You can select a country or region that represents the location of your organization.

How to select closest bucket to user's position before uploading files Firebase Storage ? (Flutter)

I am using Firebase Storage for one of my projects to upload files worldwide.
I have a Blaze plan that allows me to create multiple buckets.
I would like to know how can I use the FirebaseStorage.instanceFor(bucket: "the_right_bucket_url") method in my Flutter app to upload files to the closest bucket to the user's location to minimize latency.
Of course i am asking the permission to get the user's location for other features in my app and i can use it when allowed.
The use case is when i have a permission denied for this.
Is there another way to know where the device requests come from and select the right bucket ?
Thanks in advance

Setting Cloud Firestore location Firebase

I am setting a new Firebase Firestore cloud for my project. I am from India and requires South-Asia1 for location But this location is having problem like cloud functions not enabled.
What should I do now, Should I go with my SouthAsia1 or change to nearest CloudFunctions location.
What does it mean that Deploying a function to this location is not yet available.
I am using firebase on Android with flutter.
Can I have cloud Function location and Firestore location different?
If you require those functions, I'd recommend picking the closest location that offers them.
In short, the further away the location, the higher the potential latency.

Resources