-
Notifications
You must be signed in to change notification settings - Fork 373
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Getting Cold start latency of 5+ seconds even after using the preferRest option for firebase-admin #2195
Comments
@alexander-fenster @lahirumaramba can you please help on this |
I'm also still seeing slow cold starts (> 5 seconds) after implementing |
@johnnyoshika @HarshitPersona have you found the fix? I am also experiencing super slow cold start with Vercel serverless when using the admin sdk |
@juniorforlife I had to disable preferRest because of this issue. |
@johnnyoshika then how do you fix the slow cold start issue? Isn't preferRest supposed to fix it? |
@juniorforlife Sadly I'm still living with painfully slow cold starts on some functions. For critical ones, I set a |
it's a shame the firebase team keeps ignoring this problem 😔 |
I enabled preferRest in my projects again. I'm not getting the ECONNRESET error anymore but the cold start doesn't seem to be any better than before preferRest was enabled. Cold start seems to be > 7 seconds or so. |
I was getting a cold start latency of 5+ seconds while using firestore database. I came across this age old issue- https://issuetracker.google.com/issues/158014637 and the solution here- #1901 but even after implementing the solution as mentioned, I am still getting a latency of 5-6 seconds.
"firebase-admin": "^11.8.0" is the only dependencies I have.
Please find below my code snippet-
``
const { initializeApp } = require("firebase-admin/app");
``
Do let me know in case of any other queries.
The text was updated successfully, but these errors were encountered: