Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Serverless orchestration with Workflows

Serverless orchestration with Workflows

Mete Atamel

April 16, 2021
Tweet

More Decks by Mete Atamel

Other Decks in Programming

Transcript

  1. Proprietary + Confidential Imagine an e-commerce transaction Too much coupling

    between services What if one of the services goes down?
  2. Proprietary + Confidential Orchestrated services Best of both worlds: Loosely

    coupled + orchestrator to capture the transaction
  3. Proprietary + Confidential Serverless Compute External API’s Google API’s etc...

    Workflows - orchestrate & integrate SaaS API’s Private API’s Other Clouds
  4. - 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
  5. 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 <your-execution-id> --workflow my-workflow gcloud
  6. 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