homotopy-io / homotopy-rs

A Rust/WASM implementation of homotopy.io
https://homotopy.io
BSD 3-Clause "New" or "Revised" License
80 stars 7 forks source link

Cannot deploy Firebase Cloud Functions with current billing plan #842

Open H-Yulong opened 1 year ago

H-Yulong commented 1 year ago

Google does not allow users to deploy cloud functions with the free plan (Spark, which we're using currently). We must upgrade to a pay-as-you-go plan (Blaze) to use cloud functions.

For pricing, see here for full details. Basically, we can still deploy functions for free within a certain amount of usage in the Blaze plan, but Google charges hosting, database, and cloud storage for a few cents per GB.

(I can still develop and test project CRUD functionalities with local firebase emulators though)

jamievicary commented 1 year ago

Can you estimate realistic price per year?

jamievicary commented 1 year ago

For our use case

calintat commented 1 year ago

Were we not using cloud functions in the JS version? Or did they start charging for them since then?

H-Yulong commented 1 year ago

@calintat Yes, I think Google start charging for cloud functions in late 2020.

@jamievicary The estimated price for a small app (with 50k installs and 5k daily users) is $12.14/month, as this page suggests. The price could be much lower (perhaps less than $1.00/month) since we don't really have many users.

H-Yulong commented 1 year ago

I have to mention that there're many free alternatives to Firebase out there, but it would be difficult to migrate user data from the JS version if we choose to use one of them.

jamievicary commented 1 year ago

Can you explain why it would be difficult? I thought we just used a simple json data structure.

H-Yulong commented 1 year ago

Can you explain why it would be difficult? I thought we just used a simple json data structure.

Sorry for not being clear -- what I mean is that using some free alternative to Firebase would be difficult. We need to dive into another framework and start over.

jamievicary commented 1 year ago

Ok but that issue is not about the data, it is about switching to a different API, right?

H-Yulong commented 1 year ago

Ok but that issue is not about the data, it is about switching to a different API, right?

Yes, it's about switching to another API.

NickHu commented 1 year ago

It is still free, you just need to be on their pay-as-you-go plan: https://firebase.google.com/pricing They have a free monthly allowance that I doubt we'll ever exceed.

jamievicary commented 1 year ago

That looks good to me, does everyone agree?