Challenges in connecting services
What is Workflows? - HTTP based service orchestration and automation
Introduction to Workflows - automate complex processes
Practical use cases
Automate, orchestrate and provide reliable line-of-business automation
What is Cloud Workflows:
Step-Automation-as-a-Service - Serverless HTTP service automation
Familiar Syntax (YAML, Steps, HTTP request, JSON, arrays)
Decent pricing (internal: $1/100K steps, external: $2.5/100K) *Oct 2020
Built-in decision and conditional executions expression formulas, operation on var
Subworkflows similar to routine in a programming language with input/return var
Support for external API calls out of the box support outside of Google Cloud
Integrates with any Google Cloud product without worrying about authentication
Benefits:
Reliable workflow execution - execute workflows for enterprise business apps
Low latency of execution - no cold starts
Built-in error handling out of the box error handling with configurable retry policies
Passing variable built-in JSON parsing and expression-based variable manipulation
Rich runtime iterating through an array, embedded steps for readability
Reading from Firestore read/write an entry using Yaml syntax
Cloud Logging out of the box integration with Cloud Logging
Enables kids to build their first serverless product by using only YAML language.
%in Stilfontein+277-882-255-28 abortion pills for sale in Stilfontein
Serverless orchestration and automation with Cloud Workflows
1. Serverless orchestration and automation
with GCPWorkflows
October 2020 - Bucharest, Romania
Márton Kodok / @martonkodok
Google Developer Expert at REEA.net
2. ● Among the Top3 romanians on Stackoverflow 185k reputation
● Google Developer Expert on Cloud technologies
● Crafting Web/Mobile backends at REEA.net
● BigQuery + Redis database engine expert
Slideshare: martonkodok
Twitter: @martonkodok
StackOverflow: pentium10
GitHub: pentium10
Serverless orchestration and automation with GCP Workflows @martonkodok
About me
3. 1. Challenges in connecting services
2. What is Workflows? - HTTP based service orchestration and automation
3. Introduction to Workflows - automate complex processes
4. Practical use cases
5. Automate, orchestrate and provide reliableline-of-business automation
6. Conclusions
Agenda
Serverless orchestration and automation with GCP Workflows @martonkodok
4. Connectivity - should be easy, but in reality you need to figure out
● Common connection format
● Make the connections
● Parse the results
● Decisions and conditional step executions
● Error handling, logging
● Retries
● Scaling up and down to zero
● Authentication
Challenges in connecting services
Serverless orchestration and automation with GCP Workflows @martonkodok
6. Step-Automation-as-a-Service - Serverless HTTP service automation
Familiar Syntax (YAML, Steps, HTTP request, JSON, arrays)
Decent pricing (internal: $1/100K steps, external: $2.5/100K) *Oct 2020
Built-in decision and conditional executions expression formulas, operation on var
Subworkflows similar to routine in a programming language with input/return var
Support for external API calls out of the box support outside of Google Cloud
Integrates with any Google Cloud product without worrying about authentication
What is GCP Workflows?
Serverless orchestration and automation with GCP Workflows @martonkodok
7. Invoking an HTTP endpoint
Assigning a variable
Sleeping
Creating the logic for conditional jumps
Returning a value
Steps supported
Serverless orchestration and automation with GCP Workflows @martonkodok
9. Console - execute workflows from Google Cloud Console
gcloud - from terminal/shell
REST API - from any service by using a service account for Authentication
Executing a workflow
Serverless orchestration and automation with GCP Workflows @martonkodok
11. http_get.yaml
Making an external HTTP GET request
Serverless orchestration and automation with GCP Workflows @martonkodok
[
"Dacia",
"Dacia Logan",
"Dacians",
"Dacia Duster",
"Dacia Sandero",
"Dacian language",
"Dacian bracelets",
"Dacian Draco",
"Dacian warfare",
"Dacia Maraini"
]
12. http_post.yaml
Making an external HTTP POST request
Serverless orchestration and automation with GCP Workflows @martonkodok
{
"archived":false,
"created_at":"2020-10-16T17:40:17+0000",
"id":"bit.ly/35452TM",
"link":"https://bit.ly/35452TM",
"long_url":"<truncated>",
}
13. wikipedia.yaml
Sequence two steps to get data from Wikipedia
Serverless orchestration and automation with GCP Workflows @martonkodok
19. exceptions.yaml
Catching and handling HTTP request errors
Serverless orchestration and automation with GCP Workflows @martonkodok
exc
17
27
Note: If an exception is not recognized, the workflow execution fails and throws the exception as returned by the GET request.
22. Reliable workflow execution - execute workflows for enterprise business apps
Low latency of execution - no cold starts
Built-in error handling out of the box error handling with configurable retry policies
Passing variable built-in JSON parsing and expression-based variable manipulation
Rich runtime iterating through an array, embedded steps for readability
Reading from Firestore read/write an entry using Yaml syntax
Cloud Logging out of the box integration with Cloud Logging
Benefits of Cloud Workflows
Serverless orchestration and automation with GCP Workflows @martonkodok
23. “Enables kids to build their first serverless
product by using only YAML language.
Serverless orchestration and automation with GCP Workflows @martonkodok
Google Cloud Workflows
24. “Automate, orchestrate and provide reliable
line-of-business automation,
Like a clone of your best handyman
Serverless orchestration and automation with GCP Workflows @martonkodok
Google Cloud Workflows
25. Easy to build/operate
Scales out
Does not lose state
Handles errors/timeouts
Out-of-the-box support of Cloud APIs
Auditable
Developer friendly
Serverless orchestration and automation with GCP Workflows @martonkodok
26. The possibilities are endless
Marketing Retail IndustrialandIoT Developer
Event driven marketing
workflow execution
Relay conversions to
customer profiles in external
services
Workflow based emails,
discounts, promotions
Order management
Inventory chain operations
Data gathering and
processing
Synchronize systems
Generate state machines
Verify equipment lifecycle
Workflow based
maintenance needs
Digitalization of internal
policies
Automate the Cloud
Shell-script replacement
Orchestrate devops
workflows
@martonkodok
27. Thank you. Q&A.
Slides available on:
slideshare.net/martonkodok
Reea.net - Integrated web solutions driven by creativity
to deliver projects.