Skip to content

Latest commit

 

History

History
63 lines (47 loc) · 2.25 KB

README.md

File metadata and controls

63 lines (47 loc) · 2.25 KB

whispers

A Google Cloud Platform (GCP) Playground
Discovering how to run Node.js.

Options

xAAS Comparison

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

Another Viewpoint - the GCP onion

GCP Onion

Functional Spec

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
Loading

But concurrency issues lead to...

So now let's tie this into a website...

But all the options above are compromise of one sort or another; however...