Slide 1

Slide 1 text

Proprietary + Confidential Serverless orchestration with Workflows Mete Atamel Developer Advocate Google Cloud

Slide 2

Slide 2 text

Proprietary + Confidential Orchestration vs Choreography in microservices

Slide 3

Slide 3 text

Proprietary + Confidential Imagine an e-commerce transaction Too much coupling between services What if one of the services goes down?

Slide 4

Slide 4 text

Proprietary + Confidential Choreographed services Services are loosely coupled Who ensures that the transaction is complete?

Slide 5

Slide 5 text

Proprietary + Confidential Imagine a more complex transaction

Slide 6

Slide 6 text

Proprietary + Confidential Orchestrated services Best of both worlds: Loosely coupled + orchestrator to capture the transaction

Slide 7

Slide 7 text

Proprietary + Confidential What’s Workflows?

Slide 8

Slide 8 text

Proprietary + Confidential Serverless Compute External API’s Google API’s etc... Workflows - orchestrate & integrate SaaS API’s Private API’s Other Clouds

Slide 9

Slide 9 text

- callMyFunction: call: http.get args: url: https://us-central1-project123.cloudfunctions.net/... query: metric: NoOfTrs result: metricResult - saveResult: switch: - condition: ${ metricResult.body.TrNo > 100 } call: http.post args: url: https://mydeployment.... body: Metric: ${ metricResult.body.TrNo } getMetric TrNo>100 End Yes No {“metric”:”NoOfTrs”} Notify

Slide 10

Slide 10 text

Proprietary + Confidential Steps

Slide 11

Slide 11 text

Proprietary + Confidential Expression language

Slide 12

Slide 12 text

Proprietary + Confidential Errors and retries

Slide 13

Slide 13 text

Proprietary + Confidential Conditional Expressions

Slide 14

Slide 14 text

Proprietary + Confidential How do I use Workflows?

Slide 15

Slide 15 text

Proprietary + Confidential # Deploy a workflow gcloud workflows deploy my-workflow --source=workflow.yaml # Execute a workflow gcloud workflows execute my-workflow # See the result gcloud workflows executions describe --workflow my-workflow gcloud

Slide 16

Slide 16 text

Proprietary + Confidential Cloud Console

Slide 17

Slide 17 text

Proprietary + Confidential Workflows cloud.google.com/workflows Quickstarts cloud.google.com/workflows/docs/quickstarts Codelab: Introduction to serverless orchestration with Workflows codelabs.developers.google.com/codelabs/cloud-workflows-intro Thank you