A Google Cloud Platform (GCP) Playground
Discovering how to run Node.js.
GCP product | Type | Unit | Abstraction level | Usage | Billing | Project focus |
---|---|---|---|---|---|---|
Cloud Functions | FAAS | function | event, functions | events | usage | dev |
App Engine | PAAS | app | code, http requests | web applications | usage | dev |
Cloud Run | CAAS | container | containers | HTTP(S) workloads | usage, provision | dev(/ops) |
Kubernetes Engine | CAAS(?) | container | managed services | containerised apps | provision | ops |
Compute Engine | IAAS | virtual machines | applications | legacy migration | provision | ops |
- Where should I run my code?
- "definition of enterrpise - any environments where most of the applications do not have an applications team working on them"
- also https://cloud.google.com/serverless-options/
The party game 'Chinese Whispers' (in the US, 'telephone') with Google's speech API's.
(Generated with mermaid.js - if you see markdown rather than a diagram, click here)
sequenceDiagram
autonumber
User->>Firewall / Load Balancer: /playGame?xxx
Firewall / Load Balancer->>Worker: /playGame?xxx
activate Worker
loop number of iterations
Worker->>Text to Speech API: synthesizeSpeech(text)
Text to Speech API-->>Worker: audio
par
Worker->>Bucket: write(audio)
Worker->>Speech API: recognize(audio)
Speech API-->>Worker: text
end
end
Worker-->>User: html
deactivate Worker