Anda di halaman 1dari 35

Amazon Simple Workflow Service (SWF)

Informatics Center Federal University of Pernambuco Airton Pereira


March, 2012

Agenda
Contextualization SWF Definition SWF Basic Concepts How to use it (quick view) SWF Pricing RighScale Case Study Thinking about our startups

Workflow- Example
Customer Order (Start) Verify Order
Order Verifiers

Charge Credit Card


Credit Card Processors

Ship Order
Warehouse Employees

Record Completition

End

Databases Recorders

Workflow ??

What we learned.....
1. The applications often incorporate a workflow 2. The workflow often represents a business process 3. Processes can be complex 4. Flexibility is key 5. Ease of use is important

SWF - Definition
Amazon Simple Workflow Service (Amazon SWF) is a workflow service for building scalable, resilient applications. Whether automating business processes for finance or insurance applications, building sophisticated data analytics applications, or managing cloud infrastructure services, Amazon SWF reliably coordinates all of the processing steps within an application.

SWF Some Features


Fully managed service No hardware or software to administer SWF provides simple API calls executed from code written in any language Running in your EC2 instance or machines located anywhere

Basic Concepts in SWF


Workflow History Tasks Actors Domains Timeout Types

Workflows History
The workflow history is a detailed, complete, and consistent record of every event that occurred since the workflow execution started.
Invoice0001 Start Workflow Execution Schedule Verify Order Start Verify Order Activity Complete Verify Order Activity Schedule Charge Credit Card Start Charge Credit Card Activity Complete Charge Credit Card Activity Schedule Ship Order Start Ship Order Activity

Tasks
Activity task. Decision task.

Actors

Actors - Workflow Starters

Actors - Deciders
A decider is an implementation of a workflow's coordination logic A decider represents a single computer process or thread.

history

+
Decision

Actors Activity Workers


An activity worker is a process or thread that performs the activity tasks that are part of your workflow.

SWF
Hey SWF, do you have any task to me?

Actors Deciders - Decisions


Some Decision Examples
ScheduleActivityTask RequestCancelActivityTask CompleteWorkflowExecution FailWorkflowExecution ContinueAsNewWorkflowExecution

Domains
Domains provide a way of scoping Amazon SWF resources within your AWS account It is possible to have more than one workflow in a domain Workflows in different domains cannot interact with each other

Timeouts
Workflow Start to Close Decision Task Start to Close Activity Task Start to Close Activity Task Heartbeat Activity Task Schedule to Start Activity Task Schedule to Close

How to use SWF?

Dashboard

What will happen?

Create a domain

Registration

Deployment

Run an execution

Finish.

Pricing
Starting for free
1,000 Workflows and 10,000 tasks per month

Beyond that, there are three pricing dimensions:


Executions: You pay $0.0001 for every Workflow execution Tasks: $0.000025 for every task execution Bandwidth: Charging just next the 1 Gigabyte of data transferred out.

Case - RightScale Workflow

The problem
Automatically launching and terminating servers based on monitoring metrics, such as cpu load

Bringing the new servers into full operation

Lets to think about our startups!

Search Products

Sort By Price
Trace Route

Search Events

Check Cost

To bid a Packet

Against bid

Ship Order

Record Completition

End

MixedTV
Upload Videos Convert Videos

Streaming

Create Playlist

Thanks!!
SWF site
http://aws.amazon.com/swf/

Amazon Web Services Blog


http://tinyurl.com/76grl69

Anda mungkin juga menyukai