Firebase isn't responding after two users had a created the same document

77 views
Skip to first unread message

אורן זייצב 1

unread,
Feb 23, 2024, 6:07:32 PM2/23/24
to Firebase Google Group
I'm trying to build an online checkers for a school project so there are like lobbies which every user creates. I tried to check what will happen if 2 users create the same lobby at the same time and now the firebase won't work. I had this problem earlier already, but after a day or so it just fixed itself. Though I have no time to let it fix itself every time a bug like this happens, is there any solution for this?

Arthur Thompson

unread,
Feb 23, 2024, 6:14:33 PM2/23/24
to fireba...@googlegroups.com
I think you need to be more specific about what Firebase products you are using.

It sounds like you are using RTDB or Firestore in which case you can use transactions to avoid the same object or document being created. But this is just a guess. More info on about the products you are using will help.

‪On Fri, Feb 23, 2024 at 3:07 PM ‫אורן זייצב 1‬‎ <oren.z...@gmail.com> wrote:‬
I'm trying to build an online checkers for a school project so there are like lobbies which every user creates. I tried to check what will happen if 2 users create the same lobby at the same time and now the firebase won't work. I had this problem earlier already, but after a day or so it just fixed itself. Though I have no time to let it fix itself every time a bug like this happens, is there any solution for this?

--
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 view this discussion on the web visit https://groups.google.com/d/msgid/firebase-talk/2fc01e83-a31f-4b3c-9d39-fea7ebba8938n%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages