Pro Yearly is on sale from $80 to $50! »

Codemotion DevsLunchBox - Cloud Run

Codemotion DevsLunchBox - Cloud Run

Ce3e7802c882fca3f9160768f57ae116?s=128

Mete Atamel

March 31, 2020
Tweet

Transcript

  1. Cloud Run Mete Atamel Developer Advocate @ Google @meteatamel speakerdeck.com/meteatamel

    github.com/meteatamel/cloudrun-tutorial
  2. Knative Stack Serving Eventing Kubernetes Platform Products Components Cloud Run

    Cloud Run on Anthos Gateway Kourier Istio
  3. Container to production in seconds Natively Serverless One experience, where

    you want it Cloud Run Bringing serverless to containers
  4. HTTPS Endpoint Public • Website • API endpoint Private •

    Internal services • Async tasks • Mobile backend • Webhook
  5. Container contract Listen on 0.0.0.0 on port $PORT (default 8080)

    HTTP server must start < 4 min (timeout → 504) Request time < 15 min (default → 5 min) Stateless (in-memory file system, doesn’t persist) Computation only within request (No background activity)
  6. Container resources 1 vCPU per container instance (configurable to 2vCPU)

    256 MiB of memory up to a max of 2 GiB (configurable) 80 concurrent requests per container (configurable 1-80) 1000 max containers by default (configurable 1-1000) Access to a Metadata Server Sandboxed by gVisor
  7. Pay per use CPU / Memory / Requests 100ms

  8. Billable time Instance Billable Time Request 1 Start Request 1

    End Request 2 Start Request 2 End Instance Time Billable Non-billable
  9. Concurrency: up to 80 concurrent requests concurrency = 1 concurrency

    = 80
  10. Pub/Sub triggered internal services Cloud Run Cloud Pub/Sub Queue Queue

    Queue
  11. Storage triggered internal services Cloud Run Cloud Pub/Sub Queue Queue

    Queue Cloud Storage
  12. Scheduled services Command Line Interface (CLI) User Interface (UI) Scheduler

    API Cloud Run Cloud Scheduler
  13. Services part of async tasks Cloud Tasks user_registration user_levelcompleted user_inapppurchase

    user_statechange Daily activity metrics service User profile service Payment processing service Game state service
  14. Stay for lunch with Codemotion!