Firebase server responding very slow and terminating connection with status canceled

328 views
Skip to first unread message

ami...@shawacademy.com

unread,
May 31, 2017, 5:44:05 PM5/31/17
to Firebase Google Group
We are an online education company and which provide live webinars to the students across the world. 
We provide text based Ques/Answ between students and educator. For this purpose we are using firebase through Angular fire. 

We have a single project name "pho-prod" that we are using for this purpose. We usually get 10K students concurrently and many reads and writes. 

Everything was working good but suddenly a few days back our firebase instance starts responding very slow and many times canceled the connection (See attached screenshot).

I am not able to figure out what is the issue with our firebase instance. Just as a workaround I have created a new firebase project and using this for live chat. 

Can anyone help me with possibilities what could be happening? Have we hit any firebase thresh hold or anything?


Here are some specifications we have 

Library Versions:

AngularJS v1.4.5
Firebase v2.4.2
And Student strength is ~8-10K at the same time.

We are using Firebase "pay as you go" payment.


Please let me know if you need any other information. 

Thanks

scc.jpg

Kato Richardson

unread,
Jun 1, 2017, 2:10:45 PM6/1/17
to Firebase Google Group

Hi Amit,

Generally, when you see your DB begin to slow down under load, this indicates that you have some inefficient queries, and it’s leading to excessive bandwidth consumption. For example, if your users all listen on a given path where the average payload is 100k per record, when you get to around half a million records in that path, that means each user is downloading around 50GB of data.

You can use the profiler to check out the bottlenecks in your app and to determine if you need to improve your bandwidth efficiency. Additionally, you can add debug logging to see socket traffic from the client:

JS:  firebase.database.enableLogging(true);
iOS:  [FIRDatabase setLoggingEnabled:YES];
Android:  FirebaseDatabase.getInstance().setLogLevel(Logger.Level.DEBUG);

Beyond that, we’ll probably need to hear some specifics of exactly what’s going on before we can be too helpful.

☼, 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/69b03482-5ec4-476e-b867-02c1e8829ce2%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--

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

Reply all
Reply to author
Forward
0 new messages