Firebase database per customer?

394 views
Skip to first unread message

chris...@ocobow.com

unread,
Sep 17, 2016, 12:24:10 PM9/17/16
to Firebase Google Group
I am working on an application that will have lots of data for each customer.

I have done some reading up the Firebase getting started quides but couldn't find an answer to this question so far.

Is there a way to have multiple Firebase databases deployed with a single application? 

shokunin

unread,
Sep 19, 2016, 11:31:13 AM9/19/16
to Firebase Google Group
I'm trying to find the answer to this too. I can't find any mention of how many databases you can have. Ideally I would like each app user to have their own database, that they can grant read/write privileges to share/collaborate with their friends.

Kato Richardson

unread,
Sep 19, 2016, 2:49:24 PM9/19/16
to Firebase Google Group
It would help to explain the use case you're trying to solve here, rather than the proposed solution (see XY problem). Here are a few helpful hints around multi-tenancy:

  • You can't create databases programmatically.
  • You are limited to the number of projects you can create per user account (the number depends on your reputation with Google Cloud).
  • If you are using a single app, then you generally want to share user authentication, so you probably want them in the same project and probably just need one database.
  • If you're creating third party software, it may be best to have your clients create their own project and db to store data.
☼, Kato

--
You received this message because you are subscribed to the Google Groups "Firebase Google Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to firebase-talk+unsubscribe@googlegroups.com.
To post to this group, send email to fireba...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/firebase-talk/4ce9e6d6-a06c-4a4b-a965-687d73df0235%40googlegroups.com.

For more options, visit https://groups.google.com/d/optout.



--

Kato Richardson | Developer Programs Eng | kato...@google.com | 775-235-8398

shokunin

unread,
Sep 19, 2016, 6:00:48 PM9/19/16
to Firebase Google Group
My app is for game stats collection for a sports team. A user captures data for each game. Its their personal data. However, they may choose to share it with other individuals.

In my case there is no real reason to have one gigantic database for all users. I have no need to query across teams. Only within the team. Each time a new team is set up, it may as well have its own database.

It sounds like if I were to use Firebase, I would have one database for all teams and all users of the app. Technically I suppose that would work as long as its partitioned/structure properly with the correct access controls. It just feels inefficient. But perhaps I'm prematurely optimizing? Should I worry about the fact that the data for all users is in one db? Or is it so efficient, I'll never notice.

On Monday, September 19, 2016 at 2:49:24 PM UTC-4, Kato Richardson wrote:
It would help to explain the use case you're trying to solve here, rather than the proposed solution (see XY problem). Here are a few helpful hints around multi-tenancy:

  • You can't create databases programmatically.
  • You are limited to the number of projects you can create per user account (the number depends on your reputation with Google Cloud).
  • If you are using a single app, then you generally want to share user authentication, so you probably want them in the same project and probably just need one database.
  • If you're creating third party software, it may be best to have your clients create their own project and db to store data.
☼, Kato
On Mon, Sep 19, 2016 at 6:40 AM, shokunin <julia...@osaaru.com> wrote:
I'm trying to find the answer to this too. I can't find any mention of how many databases you can have. Ideally I would like each app user to have their own database, that they can grant read/write privileges to share/collaborate with their friends.

On Saturday, September 17, 2016 at 12:24:10 PM UTC-4, chris...@ocobow.com wrote:
I am working on an application that will have lots of data for each customer.

I have done some reading up the Firebase getting started quides but couldn't find an answer to this question so far.

Is there a way to have multiple Firebase databases deployed with a single application? 

--
You received this message because you are subscribed to the Google Groups "Firebase Google Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to firebase-tal...@googlegroups.com.

To post to this group, send email to fireba...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages