SlideShare a Scribd company logo
Amazon SWF
(Simple Work Flow)
By: Deepak Verma
Workflows?
23/04/14
2
What is Workflow
Automation?
Automating follow up behind manual tasks
Makes manual tasks easier and less intensive to do
Can do anything an Action and Follow Up can do
Isolate task that can run independently reducing the risk
of failure
23/04/14
3
It’s like having an army of Minions
23/04/14
4
What is SWF?
Task coordination
Distributed state management
Define business logic
Break down complex task into independent steps that are
resilient to failures
Run multiple process in parallel
Build, process and manage workflows
23/04/14
5
23/04/14
6
When to use SWF?
Coordinated distributed processes
Ordered execution of application steps
Dispatch task to independent application components
Preserve application state
Auditable periodic execution
Event driven execution
Asynchronous invocation of processes
23/04/14
7
Use case
23/04/14
8
Why we need SWF?
Loosely coupled application design
Application that runs across multiple clouds
Effective resource usage
Scalability
Resilience
23/04/14
9
Benefits of SWF
Simple: Remove complex code with fully managed web service.
Task which can run independently can be converted into a service
resulting in your code to be simple.
Scalable: As tasks are independent of each other so no need of
manual administration. You can add more workflow to your
application as per your need
Flexible: You can write you workflow and coordination logic in any
programming language you want and can run them either in cloud
or on-premises
23/04/14
10
23/04/14
11
SWF Construct
23/04/14
12
23/04/14
13
SWF implementation process
23/04/14
14
Practical example
23/04/14
15
23/04/14
16
23/04/14
17
23/04/14
18
23/04/14
19
23/04/14
20
Features
Timers
Signals
Tags
Markers
23/04/14
21
Pricing
Start a Workflow Execution: $0.00012 per workflow
execution
Until a Workflow Execution Completes:$0.000006
per 24 hour period that a workflow is open
Retain a Completed Workflow Execution:
$0.000006 per 24 hour period that a workflow is retained
23/04/14
22
Example 1: pricing
 Example Cost Calculation
 To illustrate Amazon SWF pricing, consider a simple video processing application with three tasks: download a video, encode it, and store
the encoded video in Amazon S3. This application is used to encode 10,000 videos, each of which comprises a unique workflow
execution. The workers and deciders in this application are all running on Amazon EC2 in the AWS GovCloud (US) Region. The cost
incurred for running 10,000 workflow executions of this workflow daily is $2.10 as follows:
 $1.20 for starting 10,000 workflow executions (10,000 x $0.00012)
 $0.90 for initiating tasks ($0.000030 per task x 3 tasks per workflow execution x 10,000 workflow executions)
 We assume a video can be encoded and uploaded to S3 in less than 24 hours. As a result the workflow execution completes within 24
hours of being started and there is no ongoing workflow execution charge.
 Let’s suppose you also want to have Amazon SWF retain information about the encoding workflow executions for 7 days after they
complete. The cost for retaining information about the workflow executions is $0.42 ($0.000006 per day per execution x 7 workflow-days
of retention x 10,000 workflow executions).
 In total the Amazon SWF cost to coordinate the encoding and uploading of 10,000 videos and to retain information about the associated
workflow executions and processing steps for 7 days is: $2.52 ($2.10 for running the workflow executions + $0.42 for retaining
information on them).
Source: https://aws.amazon.com/govcloud-us/pricing/swf/ dated 24/04/2014
23/04/14
23
Example 2: pricing
23/04/14
24
Thank you
23/04/14
25

More Related Content

PDF
AWS Simple Workflow: Distributed Out of the Box! - JEEConf 2016
PPTX
Implementing Large Scale Digital Asset Repositories with Adobe Experience Man...
PDF
Maximize the power of OSGi in AEM
PDF
The present and future of Serverless observability
PDF
Adventures in Customization with Atlassian Add-ons and Integrations Using JIR...
PDF
O'Reilly Software Architecture Conf: Cloud Economics
KEY
Don't touch that server
PDF
One millions users vs your web application mega testing cloud applications pr...
AWS Simple Workflow: Distributed Out of the Box! - JEEConf 2016
Implementing Large Scale Digital Asset Repositories with Adobe Experience Man...
Maximize the power of OSGi in AEM
The present and future of Serverless observability
Adventures in Customization with Atlassian Add-ons and Integrations Using JIR...
O'Reilly Software Architecture Conf: Cloud Economics
Don't touch that server
One millions users vs your web application mega testing cloud applications pr...

What's hot (9)

PDF
FaaS or not to FaaS AWS Community Day Hamburg 2019 Bannes Kazulkin
PDF
Waking the Data Scientist at 2am: Detect Model Degradation on Production Mod...
PDF
Aws user group #04 landing zones
PDF
[AWS Media Symposium 2019] Perfecting the Media Experience with AWS - Bhavik ...
PDF
Mock Servers - Fake All the Things!
PDF
Building your own calendly using amazon app sync
PPTX
Immutable Server generation: The new App Deployment
PDF
Serverless in production, an experience report (London DevOps)
PDF
Azure Serverless Toolbox
FaaS or not to FaaS AWS Community Day Hamburg 2019 Bannes Kazulkin
Waking the Data Scientist at 2am: Detect Model Degradation on Production Mod...
Aws user group #04 landing zones
[AWS Media Symposium 2019] Perfecting the Media Experience with AWS - Bhavik ...
Mock Servers - Fake All the Things!
Building your own calendly using amazon app sync
Immutable Server generation: The new App Deployment
Serverless in production, an experience report (London DevOps)
Azure Serverless Toolbox
Ad

Similar to AWS Simple Work Flow (20)

PPTX
Ondemand scaling-aws
PDF
Amazon SWF and Gordon
PDF
Serverless best practices plus design principles 20m version
PPTX
Using AWS to Achieve Both Autonomy and Governance at 3M
PPTX
Serverless without Code (Lambda)
PPTX
Moving to DevOps the Amazon Way
PDF
Media Processing Workflows using AWS Step Functions and Machine Learning on A...
PPTX
Operando em Escala Preparando-se para a jornada
PPTX
Dev348 ReInvent Corteva Agriscience
PDF
Aws dc simple-workflow
PDF
How we scaled to 80K users by doing nothing!.pdf
PDF
Do more with less code in serverless
PDF
Serverless on AWS: Architectural Patterns and Best Practices
PPTX
WF_in_retail_banking_enterprise_systems
PPTX
Gluecon 2018 - The Best Practices and Hard Lessons Learned of Serverless Appl...
PPTX
AWS re:Invent serverless recap day: Whats new with AWS StepFunctions. - Expre...
PDF
Serverless to author, schedule, execute and monitor data workflows.
PPTX
Using GitHub actions on AWS.pptx
PDF
Genomics on aws-webinar-april2018
PDF
10 Lessons from 10 Years of AWS
Ondemand scaling-aws
Amazon SWF and Gordon
Serverless best practices plus design principles 20m version
Using AWS to Achieve Both Autonomy and Governance at 3M
Serverless without Code (Lambda)
Moving to DevOps the Amazon Way
Media Processing Workflows using AWS Step Functions and Machine Learning on A...
Operando em Escala Preparando-se para a jornada
Dev348 ReInvent Corteva Agriscience
Aws dc simple-workflow
How we scaled to 80K users by doing nothing!.pdf
Do more with less code in serverless
Serverless on AWS: Architectural Patterns and Best Practices
WF_in_retail_banking_enterprise_systems
Gluecon 2018 - The Best Practices and Hard Lessons Learned of Serverless Appl...
AWS re:Invent serverless recap day: Whats new with AWS StepFunctions. - Expre...
Serverless to author, schedule, execute and monitor data workflows.
Using GitHub actions on AWS.pptx
Genomics on aws-webinar-april2018
10 Lessons from 10 Years of AWS
Ad

Recently uploaded (20)

PPT
340036916-American-Literature-Literary-Period-Overview.ppt
PPTX
ICG2025_ICG 6th steering committee 30-8-24.pptx
PPTX
The Marketing Journey - Tracey Phillips - Marketing Matters 7-2025.pptx
PDF
DOC-20250806-WA0002._20250806_112011_0000.pdf
DOCX
Euro SEO Services 1st 3 General Updates.docx
PPTX
Lecture (1)-Introduction.pptx business communication
PPT
Data mining for business intelligence ch04 sharda
PDF
Laughter Yoga Basic Learning Workshop Manual
PDF
How to Get Business Funding for Small Business Fast
PDF
How to Get Funding for Your Trucking Business
PPTX
New Microsoft PowerPoint Presentation - Copy.pptx
PDF
pdfcoffee.com-opt-b1plus-sb-answers.pdfvi
PDF
Training And Development of Employee .pdf
PPTX
Belch_12e_PPT_Ch18_Accessible_university.pptx
DOCX
unit 1 COST ACCOUNTING AND COST SHEET
PPTX
HR Introduction Slide (1).pptx on hr intro
PPT
Chapter four Project-Preparation material
PDF
kom-180-proposal-for-a-directive-amending-directive-2014-45-eu-and-directive-...
PDF
Chapter 5_Foreign Exchange Market in .pdf
PDF
Business model innovation report 2022.pdf
340036916-American-Literature-Literary-Period-Overview.ppt
ICG2025_ICG 6th steering committee 30-8-24.pptx
The Marketing Journey - Tracey Phillips - Marketing Matters 7-2025.pptx
DOC-20250806-WA0002._20250806_112011_0000.pdf
Euro SEO Services 1st 3 General Updates.docx
Lecture (1)-Introduction.pptx business communication
Data mining for business intelligence ch04 sharda
Laughter Yoga Basic Learning Workshop Manual
How to Get Business Funding for Small Business Fast
How to Get Funding for Your Trucking Business
New Microsoft PowerPoint Presentation - Copy.pptx
pdfcoffee.com-opt-b1plus-sb-answers.pdfvi
Training And Development of Employee .pdf
Belch_12e_PPT_Ch18_Accessible_university.pptx
unit 1 COST ACCOUNTING AND COST SHEET
HR Introduction Slide (1).pptx on hr intro
Chapter four Project-Preparation material
kom-180-proposal-for-a-directive-amending-directive-2014-45-eu-and-directive-...
Chapter 5_Foreign Exchange Market in .pdf
Business model innovation report 2022.pdf

AWS Simple Work Flow

  • 1. Amazon SWF (Simple Work Flow) By: Deepak Verma
  • 3. What is Workflow Automation? Automating follow up behind manual tasks Makes manual tasks easier and less intensive to do Can do anything an Action and Follow Up can do Isolate task that can run independently reducing the risk of failure 23/04/14 3
  • 4. It’s like having an army of Minions 23/04/14 4
  • 5. What is SWF? Task coordination Distributed state management Define business logic Break down complex task into independent steps that are resilient to failures Run multiple process in parallel Build, process and manage workflows 23/04/14 5
  • 7. When to use SWF? Coordinated distributed processes Ordered execution of application steps Dispatch task to independent application components Preserve application state Auditable periodic execution Event driven execution Asynchronous invocation of processes 23/04/14 7
  • 9. Why we need SWF? Loosely coupled application design Application that runs across multiple clouds Effective resource usage Scalability Resilience 23/04/14 9
  • 10. Benefits of SWF Simple: Remove complex code with fully managed web service. Task which can run independently can be converted into a service resulting in your code to be simple. Scalable: As tasks are independent of each other so no need of manual administration. You can add more workflow to your application as per your need Flexible: You can write you workflow and coordination logic in any programming language you want and can run them either in cloud or on-premises 23/04/14 10
  • 22. Pricing Start a Workflow Execution: $0.00012 per workflow execution Until a Workflow Execution Completes:$0.000006 per 24 hour period that a workflow is open Retain a Completed Workflow Execution: $0.000006 per 24 hour period that a workflow is retained 23/04/14 22
  • 23. Example 1: pricing  Example Cost Calculation  To illustrate Amazon SWF pricing, consider a simple video processing application with three tasks: download a video, encode it, and store the encoded video in Amazon S3. This application is used to encode 10,000 videos, each of which comprises a unique workflow execution. The workers and deciders in this application are all running on Amazon EC2 in the AWS GovCloud (US) Region. The cost incurred for running 10,000 workflow executions of this workflow daily is $2.10 as follows:  $1.20 for starting 10,000 workflow executions (10,000 x $0.00012)  $0.90 for initiating tasks ($0.000030 per task x 3 tasks per workflow execution x 10,000 workflow executions)  We assume a video can be encoded and uploaded to S3 in less than 24 hours. As a result the workflow execution completes within 24 hours of being started and there is no ongoing workflow execution charge.  Let’s suppose you also want to have Amazon SWF retain information about the encoding workflow executions for 7 days after they complete. The cost for retaining information about the workflow executions is $0.42 ($0.000006 per day per execution x 7 workflow-days of retention x 10,000 workflow executions).  In total the Amazon SWF cost to coordinate the encoding and uploading of 10,000 videos and to retain information about the associated workflow executions and processing steps for 7 days is: $2.52 ($2.10 for running the workflow executions + $0.42 for retaining information on them). Source: https://aws.amazon.com/govcloud-us/pricing/swf/ dated 24/04/2014 23/04/14 23