nugentmichael1 / portfolio-resume

1 stars 0 forks source link

Find New Hosting Service #2

Closed nugentmichael1 closed 1 year ago

nugentmichael1 commented 1 year ago

Problem

Heroku will soon remove it's Free tier, and charge 7$ per dyno, which this project needs since it's a react app ("npm start"). A new host must be sought.

Alternative Free Hosts

Name Comment
Firebase by Google Uses a different backend model that will require attunement.
nugentmichael1 commented 1 year ago

Firebase

Their backend model is "serverless." Firebase's "functions" directory will replace the original "backend" directory.

nugentmichael1 commented 1 year ago

Firebase - Blaze vs Spark plans

The Blaze plan exposes me to possible fees if someone ever abuses my site (i.e. reload it a million times with a script). The Spark plan has no such risk, but would require me to forfeit the "serverless" backend capabilities of Firebase Functions. This is fine since there is an API to directly access the no-sql database, Firestore. It's just that I will break the rules of separation of frontend and backend responsibilities.

nugentmichael1 commented 1 year ago

Decided to use the paid plan, Blaze, even though it exposes me to the risk of sabotage. Implemented a sub-pub function to be notified of any bills. It will send a message to a Slack channel once about every 45 minutes in the event of extreme traffic.