Who uses Firebase hosting and firestore?

I am using firebase hosting and firestore for by database. I find it loads extremly slowly (something about a cold start I think). For an indie maker I feel this is extremely bad right? Bad for seo and user experiences. Anyone have any tips?

I've tried Firebase, but never built a production project with it.

I did enjoy it though. What queries are you doing? It may just come down to an optimization problem. I watched a great keynote from Google on this.

0 Likes
Phil Author

Ah that seems like a interesting video to watch, will do! Anyway I will have a look for similar keynotes for "cold restarts".

Though I dont think its the queries thats the problem, its just "cold restart" of functions apparently, once its started its reasonably quick. It feels like the chicken and egg issue: I need lots of traffic to get it always "started", but right now I have low traffic and its slow so people get bored and leave haha

0 Likes

@strange_quirks you could try writing some script to auto-query it every few minutes. It could keep it from sleeping?

0 Likes
Phil Author

Possibly or im wondering if I hosted my app somewhere else (like linode) and used just the database from firebase if this would still be an issue?

0 Likes

@strange_quirks it would still be an issue, yes. @mtimofiiv's solution is best - I remember someone doing a cron script for Heroku back in the day that would cheat the free tier into always being "hot" (fast).

0 Likes
Bruce

Didn't notice the issues you're describing, but found it unsuited for production for multiple other reasons.

There are multiple alternatives popping up, most notably supabase

0 Likes
Ashking

I use firebase for almost everything. The current side-hack is using firebase.

Just curious to know - how big your data and documents? and what kind of queries are you running.

I have never dealt with SEO so far but in my understanding firestore would not be a good idea to have top-notch SEO.

0 Likes
Phil Author

Quite simple queries and not much data and small documents too.

I think the general issue with firebase i feel is it you want it to load quickly and dont have much traffic, its going to be slow

0 Likes

Please sign in to leave a comment.