Home Software 01 Github 02 Colabs 03 Shell Basics 04 Apis 05 Webscraping 06 Nbdev 07 Javascript Packag... 08 Cloud Functions 09 Browser Extension Css Css Animations Javascript Llm Paradigms Protocols Websites

Don't Look! I'm changing!

URL Copied

⚠ī¸ This writing is a work in progress.⚠ī¸

BinderBinderBinderOpen Source Love svg3

NPM LicenseActiveGitHub last commit

GitHub starsGitHub watchersGitHub forksGitHub followers

TweetTwitter Follow

note: There is a lot of quoting and paraphrasing on this page in particular. Be sure to check the links you want to learn more.

Quickstart

  1. In the Cloud Console, on the project selector page, select or create a Cloud project. GCloud Platform Project Selector

  2. Make sure that billing is enabled for your Google Cloud project.

  3. Enable the Cloud Functions API .

Heroku

heroku login
 heroku ps:resize basic -a addy-puppeteer
 heroku ps:resize Standard-1x -a addy-puppeteer
 heroku ps:scale web=2 -a addy-puppeteer
 heroku apps:info -a addy-puppeteer
 heroku auth:whoami
 
 
 https://www.heroku.com/pricing
 eco - ~$0.005/hour -> $5 bucks (flat fee of $5/month)
 standard - ~$0.035/hour (max of $25/month)
 https://www.heroku.com/dynos

Google Cloud Functions

Google Documentation on:

I set these up a little while ago for testing:

https://us-central1-serverlessfunctions-250616.cloudfunctions.net/testFunction
! curl -X POST https://us-central1-serverlessfunctions-250616.cloudfunctions.net/testFunction -H "Content-Type:application/json"  -d '{"name":"Jane"}'
403 Forbidden

Error: Forbidden

Your client does not have permission to get URL /testFunction from this server.

Datastore

Cloud Datastore is a schemaless database.

var companies = query.filter('name =', 'Google').filter('size <', 400);

-------------| FREE daily limit | PRICE above free limit | Price Unit

Stored data | 1 GB storage | $0.18 | GB/Month

Entity Reads | 50,000 | $0.06 | per 100,000 entities

Entity Writes | 20,000 | $0.18 | per 100,000 entities

Entity Deletes | 20,000 | $0.02 | per 100,000 entities

Big Table

Cloud Bigtable offers consistent sub-10ms latency.

Feature | Price

Nodes | $0.65 node/hr

SSD Storage | $0.17 (GB/Month)

HDD Storage | $0.026 (GB/Month)