aws simple workflow: distributed out of the box! - morning@lohika
TRANSCRIPT
![Page 1: AWS Simple Workflow: Distributed Out of the Box! - Morning@Lohika](https://reader034.vdocuments.us/reader034/viewer/2022051503/587063af1a28ab48378b4791/html5/thumbnails/1.jpg)
Distributed Out of the Box!AWS Simple Workflow
Serhiy Batyuk Morning@Lohika
May 14, 2016
![Page 2: AWS Simple Workflow: Distributed Out of the Box! - Morning@Lohika](https://reader034.vdocuments.us/reader034/viewer/2022051503/587063af1a28ab48378b4791/html5/thumbnails/2.jpg)
My Interests
![Page 3: AWS Simple Workflow: Distributed Out of the Box! - Morning@Lohika](https://reader034.vdocuments.us/reader034/viewer/2022051503/587063af1a28ab48378b4791/html5/thumbnails/3.jpg)
Tech Lead at
![Page 4: AWS Simple Workflow: Distributed Out of the Box! - Morning@Lohika](https://reader034.vdocuments.us/reader034/viewer/2022051503/587063af1a28ab48378b4791/html5/thumbnails/4.jpg)
AWS SWF 1 year>
![Page 5: AWS Simple Workflow: Distributed Out of the Box! - Morning@Lohika](https://reader034.vdocuments.us/reader034/viewer/2022051503/587063af1a28ab48378b4791/html5/thumbnails/5.jpg)
Agenda
SWF Overview
![Page 6: AWS Simple Workflow: Distributed Out of the Box! - Morning@Lohika](https://reader034.vdocuments.us/reader034/viewer/2022051503/587063af1a28ab48378b4791/html5/thumbnails/6.jpg)
Agenda
SWF Overview Demo
![Page 7: AWS Simple Workflow: Distributed Out of the Box! - Morning@Lohika](https://reader034.vdocuments.us/reader034/viewer/2022051503/587063af1a28ab48378b4791/html5/thumbnails/7.jpg)
Agenda
SWF Overview Demo Our Experience
![Page 8: AWS Simple Workflow: Distributed Out of the Box! - Morning@Lohika](https://reader034.vdocuments.us/reader034/viewer/2022051503/587063af1a28ab48378b4791/html5/thumbnails/8.jpg)
What Is AWS Simple Workflow?
![Page 9: AWS Simple Workflow: Distributed Out of the Box! - Morning@Lohika](https://reader034.vdocuments.us/reader034/viewer/2022051503/587063af1a28ab48378b4791/html5/thumbnails/9.jpg)
AWS SWF Use Cases
https://www.youtube.com/watch?v=DYmJIQO2ZyQ&t=83
Media Processing Infrastructure Provisioning
Business ProcessesReport GenerationData Processing
![Page 10: AWS Simple Workflow: Distributed Out of the Box! - Morning@Lohika](https://reader034.vdocuments.us/reader034/viewer/2022051503/587063af1a28ab48378b4791/html5/thumbnails/10.jpg)
https://globallogic.com.ua/speaking-event/jeeconf-2015
![Page 11: AWS Simple Workflow: Distributed Out of the Box! - Morning@Lohika](https://reader034.vdocuments.us/reader034/viewer/2022051503/587063af1a28ab48378b4791/html5/thumbnails/11.jpg)
Preparing to Attend JEEConf
![Page 12: AWS Simple Workflow: Distributed Out of the Box! - Morning@Lohika](https://reader034.vdocuments.us/reader034/viewer/2022051503/587063af1a28ab48378b4791/html5/thumbnails/12.jpg)
Preparing to Attend JEEConf
![Page 13: AWS Simple Workflow: Distributed Out of the Box! - Morning@Lohika](https://reader034.vdocuments.us/reader034/viewer/2022051503/587063af1a28ab48378b4791/html5/thumbnails/13.jpg)
Preparing to Attend JEEConf
![Page 14: AWS Simple Workflow: Distributed Out of the Box! - Morning@Lohika](https://reader034.vdocuments.us/reader034/viewer/2022051503/587063af1a28ab48378b4791/html5/thumbnails/14.jpg)
Preparing to Attend JEEConf
![Page 15: AWS Simple Workflow: Distributed Out of the Box! - Morning@Lohika](https://reader034.vdocuments.us/reader034/viewer/2022051503/587063af1a28ab48378b4791/html5/thumbnails/15.jpg)
Preparing to Attend JEEConf
PROGRAM
STEPS
![Page 16: AWS Simple Workflow: Distributed Out of the Box! - Morning@Lohika](https://reader034.vdocuments.us/reader034/viewer/2022051503/587063af1a28ab48378b4791/html5/thumbnails/16.jpg)
Preparing to Attend JEEConf
![Page 17: AWS Simple Workflow: Distributed Out of the Box! - Morning@Lohika](https://reader034.vdocuments.us/reader034/viewer/2022051503/587063af1a28ab48378b4791/html5/thumbnails/17.jpg)
Preparing to Attend JEEConf
![Page 18: AWS Simple Workflow: Distributed Out of the Box! - Morning@Lohika](https://reader034.vdocuments.us/reader034/viewer/2022051503/587063af1a28ab48378b4791/html5/thumbnails/18.jpg)
Preparing to Attend JEEConf
![Page 19: AWS Simple Workflow: Distributed Out of the Box! - Morning@Lohika](https://reader034.vdocuments.us/reader034/viewer/2022051503/587063af1a28ab48378b4791/html5/thumbnails/19.jpg)
Preparing to Attend JEEConf
![Page 20: AWS Simple Workflow: Distributed Out of the Box! - Morning@Lohika](https://reader034.vdocuments.us/reader034/viewer/2022051503/587063af1a28ab48378b4791/html5/thumbnails/20.jpg)
AWS SWF
https://aws.amazon.com/swf
![Page 21: AWS Simple Workflow: Distributed Out of the Box! - Morning@Lohika](https://reader034.vdocuments.us/reader034/viewer/2022051503/587063af1a28ab48378b4791/html5/thumbnails/21.jpg)
Workflows and Activities
WORKFLOW
ACTIVITIES
![Page 22: AWS Simple Workflow: Distributed Out of the Box! - Morning@Lohika](https://reader034.vdocuments.us/reader034/viewer/2022051503/587063af1a28ab48378b4791/html5/thumbnails/22.jpg)
SWF Application Architecture
WorkerDecider
![Page 23: AWS Simple Workflow: Distributed Out of the Box! - Morning@Lohika](https://reader034.vdocuments.us/reader034/viewer/2022051503/587063af1a28ab48378b4791/html5/thumbnails/23.jpg)
SWF Application Architecture
WorkerDecider
AWS SWF
![Page 24: AWS Simple Workflow: Distributed Out of the Box! - Morning@Lohika](https://reader034.vdocuments.us/reader034/viewer/2022051503/587063af1a28ab48378b4791/html5/thumbnails/24.jpg)
AWS SWF
AWS SWF Message Flow
WorkerDecider
![Page 25: AWS Simple Workflow: Distributed Out of the Box! - Morning@Lohika](https://reader034.vdocuments.us/reader034/viewer/2022051503/587063af1a28ab48378b4791/html5/thumbnails/25.jpg)
AWS SWF
AWS SWF Message Flow
WorkerDecider
START
![Page 26: AWS Simple Workflow: Distributed Out of the Box! - Morning@Lohika](https://reader034.vdocuments.us/reader034/viewer/2022051503/587063af1a28ab48378b4791/html5/thumbnails/26.jpg)
AWS SWF
AWS SWF Message Flow
WorkerDecider
MAKE A DECISION
![Page 27: AWS Simple Workflow: Distributed Out of the Box! - Morning@Lohika](https://reader034.vdocuments.us/reader034/viewer/2022051503/587063af1a28ab48378b4791/html5/thumbnails/27.jpg)
AWS SWFGET
HISTORY
AWS SWF Message Flow
WorkerDecider
![Page 28: AWS Simple Workflow: Distributed Out of the Box! - Morning@Lohika](https://reader034.vdocuments.us/reader034/viewer/2022051503/587063af1a28ab48378b4791/html5/thumbnails/28.jpg)
AWS SWF
AWS SWF Message Flow
WorkerDecider
BUY TICKET
![Page 29: AWS Simple Workflow: Distributed Out of the Box! - Morning@Lohika](https://reader034.vdocuments.us/reader034/viewer/2022051503/587063af1a28ab48378b4791/html5/thumbnails/29.jpg)
AWS SWF
AWS SWF Message Flow
WorkerDecider
BUY TICKET
![Page 30: AWS Simple Workflow: Distributed Out of the Box! - Morning@Lohika](https://reader034.vdocuments.us/reader034/viewer/2022051503/587063af1a28ab48378b4791/html5/thumbnails/30.jpg)
AWS SWF
AWS SWF Message Flow
WorkerDecider
TICKET CONFIRMATION
![Page 31: AWS Simple Workflow: Distributed Out of the Box! - Morning@Lohika](https://reader034.vdocuments.us/reader034/viewer/2022051503/587063af1a28ab48378b4791/html5/thumbnails/31.jpg)
AWS SWF
AWS SWF Message Flow
WorkerDecider
![Page 32: AWS Simple Workflow: Distributed Out of the Box! - Morning@Lohika](https://reader034.vdocuments.us/reader034/viewer/2022051503/587063af1a28ab48378b4791/html5/thumbnails/32.jpg)
AWS SWF
AWS SWF Message Flow
WorkerDecider
MAKE A DECISION
![Page 33: AWS Simple Workflow: Distributed Out of the Box! - Morning@Lohika](https://reader034.vdocuments.us/reader034/viewer/2022051503/587063af1a28ab48378b4791/html5/thumbnails/33.jpg)
AWS SWFGET
HISTORY
AWS SWF Message Flow
WorkerDecider
![Page 34: AWS Simple Workflow: Distributed Out of the Box! - Morning@Lohika](https://reader034.vdocuments.us/reader034/viewer/2022051503/587063af1a28ab48378b4791/html5/thumbnails/34.jpg)
AWS SWF
AWS SWF Message Flow
WorkerDecider
BOOK HOTEL
![Page 35: AWS Simple Workflow: Distributed Out of the Box! - Morning@Lohika](https://reader034.vdocuments.us/reader034/viewer/2022051503/587063af1a28ab48378b4791/html5/thumbnails/35.jpg)
AWS SWF
AWS SWF Message Flow
WorkerDecider
BOOK HOTEL
![Page 36: AWS Simple Workflow: Distributed Out of the Box! - Morning@Lohika](https://reader034.vdocuments.us/reader034/viewer/2022051503/587063af1a28ab48378b4791/html5/thumbnails/36.jpg)
AWS SWF
AWS SWF Message Flow
WorkerDecider
HOTEL CONFIRMATION
![Page 37: AWS Simple Workflow: Distributed Out of the Box! - Morning@Lohika](https://reader034.vdocuments.us/reader034/viewer/2022051503/587063af1a28ab48378b4791/html5/thumbnails/37.jpg)
AWS SWF
AWS SWF Message Flow
WorkerDecider
![Page 38: AWS Simple Workflow: Distributed Out of the Box! - Morning@Lohika](https://reader034.vdocuments.us/reader034/viewer/2022051503/587063af1a28ab48378b4791/html5/thumbnails/38.jpg)
AWS SWF
AWS SWF Message Flow
WorkerDecider
![Page 39: AWS Simple Workflow: Distributed Out of the Box! - Morning@Lohika](https://reader034.vdocuments.us/reader034/viewer/2022051503/587063af1a28ab48378b4791/html5/thumbnails/39.jpg)
AWS SWF
AWS SWF Message Flow
WorkerDecider
RESULT
![Page 40: AWS Simple Workflow: Distributed Out of the Box! - Morning@Lohika](https://reader034.vdocuments.us/reader034/viewer/2022051503/587063af1a28ab48378b4791/html5/thumbnails/40.jpg)
Task Lists and Routing
WorkerDecider
SWF
![Page 41: AWS Simple Workflow: Distributed Out of the Box! - Morning@Lohika](https://reader034.vdocuments.us/reader034/viewer/2022051503/587063af1a28ab48378b4791/html5/thumbnails/41.jpg)
AWS SWF API
PollForDecisionTask GetWorkflowExecutionHistory RespondDecisionTaskCompleted
PollForActivityTask RespondActivityTaskCompleted RespondActivityTaskFailed
StartWorkflowExecution
http://docs.aws.amazon.com/amazonswf/latest/apireference
![Page 42: AWS Simple Workflow: Distributed Out of the Box! - Morning@Lohika](https://reader034.vdocuments.us/reader034/viewer/2022051503/587063af1a28ab48378b4791/html5/thumbnails/42.jpg)
AWS SWF API
RegisterWorkflowType
RegisterActivityType
http://docs.aws.amazon.com/amazonswf/latest/apireference
![Page 43: AWS Simple Workflow: Distributed Out of the Box! - Morning@Lohika](https://reader034.vdocuments.us/reader034/viewer/2022051503/587063af1a28ab48378b4791/html5/thumbnails/43.jpg)
AWS SWF Flow Framework
AWS SWFSWF API
.Net, Python, others
SWF Flow Framework
Java, Ruby
![Page 44: AWS Simple Workflow: Distributed Out of the Box! - Morning@Lohika](https://reader034.vdocuments.us/reader034/viewer/2022051503/587063af1a28ab48378b4791/html5/thumbnails/44.jpg)
Java Flow Framework
Workflow Worker
Decider
Workflow Implementation
Activities Client
Activities Worker
Worker
Activities Implementations
Workflow Starter
Client app
Workflow Client
SWF
http://docs.aws.amazon.com/amazonswf/latest/awsflowguide/awsflow-basics-application-structure.html
![Page 45: AWS Simple Workflow: Distributed Out of the Box! - Morning@Lohika](https://reader034.vdocuments.us/reader034/viewer/2022051503/587063af1a28ab48378b4791/html5/thumbnails/45.jpg)
Java Flow Framework
Workflow Worker
Decider
Activities Client
Activities Worker
WorkerClient app
Workflow Client
SWF
http://docs.aws.amazon.com/amazonswf/latest/awsflowguide/awsflow-basics-application-structure.html
![Page 46: AWS Simple Workflow: Distributed Out of the Box! - Morning@Lohika](https://reader034.vdocuments.us/reader034/viewer/2022051503/587063af1a28ab48378b4791/html5/thumbnails/46.jpg)
Java Flow Framework
Decider
Workflow Implementation
Worker
Activities Implementations
Workflow Starter
Client app
SWF
http://docs.aws.amazon.com/amazonswf/latest/awsflowguide/awsflow-basics-application-structure.html
![Page 47: AWS Simple Workflow: Distributed Out of the Box! - Morning@Lohika](https://reader034.vdocuments.us/reader034/viewer/2022051503/587063af1a28ab48378b4791/html5/thumbnails/47.jpg)
Java Flow Framework Classes
@Activities
@Workflow Client to schedule workflows
Client to schedule activities
![Page 48: AWS Simple Workflow: Distributed Out of the Box! - Morning@Lohika](https://reader034.vdocuments.us/reader034/viewer/2022051503/587063af1a28ab48378b4791/html5/thumbnails/48.jpg)
Java Flow Framework Classes
@Activities
@Workflow Client to schedule workflows
Client to schedule activities
WorkflowWorker
ActivitiesWorker
Handle decision tasks
Handle activity tasks
![Page 49: AWS Simple Workflow: Distributed Out of the Box! - Morning@Lohika](https://reader034.vdocuments.us/reader034/viewer/2022051503/587063af1a28ab48378b4791/html5/thumbnails/49.jpg)
DemoSWF
![Page 50: AWS Simple Workflow: Distributed Out of the Box! - Morning@Lohika](https://reader034.vdocuments.us/reader034/viewer/2022051503/587063af1a28ab48378b4791/html5/thumbnails/50.jpg)
Visit Organizer Workflow
![Page 51: AWS Simple Workflow: Distributed Out of the Box! - Morning@Lohika](https://reader034.vdocuments.us/reader034/viewer/2022051503/587063af1a28ab48378b4791/html5/thumbnails/51.jpg)
Visit Organizer Workflow
![Page 52: AWS Simple Workflow: Distributed Out of the Box! - Morning@Lohika](https://reader034.vdocuments.us/reader034/viewer/2022051503/587063af1a28ab48378b4791/html5/thumbnails/52.jpg)
Visit Organizer Workflow
![Page 53: AWS Simple Workflow: Distributed Out of the Box! - Morning@Lohika](https://reader034.vdocuments.us/reader034/viewer/2022051503/587063af1a28ab48378b4791/html5/thumbnails/53.jpg)
Visit Organizer Workflow
![Page 54: AWS Simple Workflow: Distributed Out of the Box! - Morning@Lohika](https://reader034.vdocuments.us/reader034/viewer/2022051503/587063af1a28ab48378b4791/html5/thumbnails/54.jpg)
Preparing for JEEConf
Visit Organizer
Service
JEEConf Service
Travel Service
![Page 55: AWS Simple Workflow: Distributed Out of the Box! - Morning@Lohika](https://reader034.vdocuments.us/reader034/viewer/2022051503/587063af1a28ab48378b4791/html5/thumbnails/55.jpg)
Preparing for JEEConf
Visit Organizer
Service
JEEConf Service
Travel Service
Buy tickets
![Page 56: AWS Simple Workflow: Distributed Out of the Box! - Morning@Lohika](https://reader034.vdocuments.us/reader034/viewer/2022051503/587063af1a28ab48378b4791/html5/thumbnails/56.jpg)
Preparing for JEEConf
Visit Organizer
Service
JEEConf Service
Travel Service
Book hotelBuy
tickets
![Page 57: AWS Simple Workflow: Distributed Out of the Box! - Morning@Lohika](https://reader034.vdocuments.us/reader034/viewer/2022051503/587063af1a28ab48378b4791/html5/thumbnails/57.jpg)
Preparing for JEEConf
Visit Organizer
Service
JEEConf Service
Travel Service
Book train tickets
Book hotelBuy
tickets
![Page 58: AWS Simple Workflow: Distributed Out of the Box! - Morning@Lohika](https://reader034.vdocuments.us/reader034/viewer/2022051503/587063af1a28ab48378b4791/html5/thumbnails/58.jpg)
Time to see the code!
public class HelloWorld {
public static void main() { System.out.println(“Hi”); }
}
https://github.com/sbatyuk/aws-swf-sample
![Page 59: AWS Simple Workflow: Distributed Out of the Box! - Morning@Lohika](https://reader034.vdocuments.us/reader034/viewer/2022051503/587063af1a28ab48378b4791/html5/thumbnails/59.jpg)
http://info.thinkfun.com/stem-education/mark-engelberg-inventor-of-code-master-featured-in-getting-smart
EASY, RIGHT?
![Page 60: AWS Simple Workflow: Distributed Out of the Box! - Morning@Lohika](https://reader034.vdocuments.us/reader034/viewer/2022051503/587063af1a28ab48378b4791/html5/thumbnails/60.jpg)
FeaturesSWF
![Page 61: AWS Simple Workflow: Distributed Out of the Box! - Morning@Lohika](https://reader034.vdocuments.us/reader034/viewer/2022051503/587063af1a28ab48378b4791/html5/thumbnails/61.jpg)
Fully Managed Service
![Page 62: AWS Simple Workflow: Distributed Out of the Box! - Morning@Lohika](https://reader034.vdocuments.us/reader034/viewer/2022051503/587063af1a28ab48378b4791/html5/thumbnails/62.jpg)
Worker
Worker
Worker
Decider
Decider
Scalable
AWS SWF
My App
http://docs.aws.amazon.com/amazonswf/latest/awsflowguide/awsflow-basics-scalable.html
![Page 63: AWS Simple Workflow: Distributed Out of the Box! - Morning@Lohika](https://reader034.vdocuments.us/reader034/viewer/2022051503/587063af1a28ab48378b4791/html5/thumbnails/63.jpg)
Worker
Worker
Worker
Decider
Decider
Scalable
AWS SWF
My App
http://docs.aws.amazon.com/amazonswf/latest/awsflowguide/awsflow-basics-scalable.html
![Page 64: AWS Simple Workflow: Distributed Out of the Box! - Morning@Lohika](https://reader034.vdocuments.us/reader034/viewer/2022051503/587063af1a28ab48378b4791/html5/thumbnails/64.jpg)
Worker
Worker
Worker
Decider
Decider
Activity Retries
AWS SWF
My App
http://docs.aws.amazon.com/amazonswf/latest/awsflowguide/features-retry.html
![Page 65: AWS Simple Workflow: Distributed Out of the Box! - Morning@Lohika](https://reader034.vdocuments.us/reader034/viewer/2022051503/587063af1a28ab48378b4791/html5/thumbnails/65.jpg)
Worker
Worker
Worker
Decider
Decider
Activity Retries
AWS SWF
My App
http://docs.aws.amazon.com/amazonswf/latest/awsflowguide/features-retry.html
![Page 66: AWS Simple Workflow: Distributed Out of the Box! - Morning@Lohika](https://reader034.vdocuments.us/reader034/viewer/2022051503/587063af1a28ab48378b4791/html5/thumbnails/66.jpg)
Worker
Worker
Worker
Decider
Decider
Activity Retries
AWS SWF
My App
http://docs.aws.amazon.com/amazonswf/latest/awsflowguide/features-retry.html
![Page 67: AWS Simple Workflow: Distributed Out of the Box! - Morning@Lohika](https://reader034.vdocuments.us/reader034/viewer/2022051503/587063af1a28ab48378b4791/html5/thumbnails/67.jpg)
Workflow Execution History
![Page 68: AWS Simple Workflow: Distributed Out of the Box! - Morning@Lohika](https://reader034.vdocuments.us/reader034/viewer/2022051503/587063af1a28ab48378b4791/html5/thumbnails/68.jpg)
Exactly Once Delivery
= 1
![Page 69: AWS Simple Workflow: Distributed Out of the Box! - Morning@Lohika](https://reader034.vdocuments.us/reader034/viewer/2022051503/587063af1a28ab48378b4791/html5/thumbnails/69.jpg)
Integration with Spring and JUnit
http://docs.aws.amazon.com/amazonswf/latest/awsflowguide/test.html
![Page 70: AWS Simple Workflow: Distributed Out of the Box! - Morning@Lohika](https://reader034.vdocuments.us/reader034/viewer/2022051503/587063af1a28ab48378b4791/html5/thumbnails/70.jpg)
Other Features
Child workflows
Lamda tasks
Heartbeats
Continuous workflows
Timers
Signals
![Page 71: AWS Simple Workflow: Distributed Out of the Box! - Morning@Lohika](https://reader034.vdocuments.us/reader034/viewer/2022051503/587063af1a28ab48378b4791/html5/thumbnails/71.jpg)
AWS SWF Pricing
https://aws.amazon.com/swf/pricing
10,000 workflows in a day with 3 activities each:
$1.75
![Page 72: AWS Simple Workflow: Distributed Out of the Box! - Morning@Lohika](https://reader034.vdocuments.us/reader034/viewer/2022051503/587063af1a28ab48378b4791/html5/thumbnails/72.jpg)
Lessons learntSWF
![Page 73: AWS Simple Workflow: Distributed Out of the Box! - Morning@Lohika](https://reader034.vdocuments.us/reader034/viewer/2022051503/587063af1a28ab48378b4791/html5/thumbnails/73.jpg)
Workflow Replays
http://docs.aws.amazon.com/amazonswf/latest/awsflowguide/awsflow-basics-distributed-execution.html
@Overridepublic void prepareForJEEConf(String name, String email) { Promise<Integer> ticket = jeeConfService.buyTicket(name); Promise<Integer> hotel = travelService.bookHotel(name, ticket); Promise<Integer> train = travelService.bookTrainTickets(name, ticket); sendConfirmationEmail(email, ticket, hotel, train);}
![Page 74: AWS Simple Workflow: Distributed Out of the Box! - Morning@Lohika](https://reader034.vdocuments.us/reader034/viewer/2022051503/587063af1a28ab48378b4791/html5/thumbnails/74.jpg)
Workflow Replay #1Workflow Activity Client Activity Workflow History
![Page 75: AWS Simple Workflow: Distributed Out of the Box! - Morning@Lohika](https://reader034.vdocuments.us/reader034/viewer/2022051503/587063af1a28ab48378b4791/html5/thumbnails/75.jpg)
Workflow Replay #1Workflow Activity Client Activity Workflow History
Get history
![Page 76: AWS Simple Workflow: Distributed Out of the Box! - Morning@Lohika](https://reader034.vdocuments.us/reader034/viewer/2022051503/587063af1a28ab48378b4791/html5/thumbnails/76.jpg)
Workflow Replay #1Workflow Activity Client Activity Workflow History
History
Get history
![Page 77: AWS Simple Workflow: Distributed Out of the Box! - Morning@Lohika](https://reader034.vdocuments.us/reader034/viewer/2022051503/587063af1a28ab48378b4791/html5/thumbnails/77.jpg)
Workflow Replay #1
Buy ticket
Workflow Activity Client Activity Workflow History
History
Get history
![Page 78: AWS Simple Workflow: Distributed Out of the Box! - Morning@Lohika](https://reader034.vdocuments.us/reader034/viewer/2022051503/587063af1a28ab48378b4791/html5/thumbnails/78.jpg)
Workflow Replay #1
Buy ticketBuy ticket
Workflow Activity Client Activity Workflow History
History
Get history
![Page 79: AWS Simple Workflow: Distributed Out of the Box! - Morning@Lohika](https://reader034.vdocuments.us/reader034/viewer/2022051503/587063af1a28ab48378b4791/html5/thumbnails/79.jpg)
Workflow Replay #1
Buy ticket
PromiseBuy ticket
Workflow Activity Client Activity Workflow History
History
Get history
![Page 80: AWS Simple Workflow: Distributed Out of the Box! - Morning@Lohika](https://reader034.vdocuments.us/reader034/viewer/2022051503/587063af1a28ab48378b4791/html5/thumbnails/80.jpg)
Workflow Replay #1
Buy ticket
PromiseBuy ticket
Book hotel
Workflow Activity Client Activity Workflow History
History
Get history
![Page 81: AWS Simple Workflow: Distributed Out of the Box! - Morning@Lohika](https://reader034.vdocuments.us/reader034/viewer/2022051503/587063af1a28ab48378b4791/html5/thumbnails/81.jpg)
Workflow Replay #1
Buy ticket
PromiseBuy ticket
Book hotel
Promise
Workflow Activity Client Activity Workflow History
History
Get history
![Page 82: AWS Simple Workflow: Distributed Out of the Box! - Morning@Lohika](https://reader034.vdocuments.us/reader034/viewer/2022051503/587063af1a28ab48378b4791/html5/thumbnails/82.jpg)
Workflow Replay #1
Buy ticket
PromiseBuy ticket
Book hotel
Promise
Ticket confirmation
Workflow Activity Client Activity Workflow History
History
Get history
![Page 83: AWS Simple Workflow: Distributed Out of the Box! - Morning@Lohika](https://reader034.vdocuments.us/reader034/viewer/2022051503/587063af1a28ab48378b4791/html5/thumbnails/83.jpg)
Workflow Replay #2Workflow Activity Client Activity Workflow History
![Page 84: AWS Simple Workflow: Distributed Out of the Box! - Morning@Lohika](https://reader034.vdocuments.us/reader034/viewer/2022051503/587063af1a28ab48378b4791/html5/thumbnails/84.jpg)
Workflow Replay #2Workflow Activity Client Activity Workflow History
Get history
![Page 85: AWS Simple Workflow: Distributed Out of the Box! - Morning@Lohika](https://reader034.vdocuments.us/reader034/viewer/2022051503/587063af1a28ab48378b4791/html5/thumbnails/85.jpg)
Workflow Replay #2Workflow Activity Client Activity Workflow History
History
Get history
![Page 86: AWS Simple Workflow: Distributed Out of the Box! - Morning@Lohika](https://reader034.vdocuments.us/reader034/viewer/2022051503/587063af1a28ab48378b4791/html5/thumbnails/86.jpg)
Workflow Replay #2
Buy ticket
Workflow Activity Client Activity Workflow History
History
Get history
![Page 87: AWS Simple Workflow: Distributed Out of the Box! - Morning@Lohika](https://reader034.vdocuments.us/reader034/viewer/2022051503/587063af1a28ab48378b4791/html5/thumbnails/87.jpg)
Workflow Replay #2
Buy ticket
Workflow Activity Client Activity Workflow History
History
Get history
Promise with confirmation
![Page 88: AWS Simple Workflow: Distributed Out of the Box! - Morning@Lohika](https://reader034.vdocuments.us/reader034/viewer/2022051503/587063af1a28ab48378b4791/html5/thumbnails/88.jpg)
Workflow Replay #2
Buy ticket
Book hotel
Workflow Activity Client Activity Workflow History
History
Get history
Promise with confirmation
![Page 89: AWS Simple Workflow: Distributed Out of the Box! - Morning@Lohika](https://reader034.vdocuments.us/reader034/viewer/2022051503/587063af1a28ab48378b4791/html5/thumbnails/89.jpg)
Workflow Replay #2
Buy ticket
Book hotelBook hotel
Workflow Activity Client Activity Workflow History
History
Get history
Promise with confirmation
![Page 90: AWS Simple Workflow: Distributed Out of the Box! - Morning@Lohika](https://reader034.vdocuments.us/reader034/viewer/2022051503/587063af1a28ab48378b4791/html5/thumbnails/90.jpg)
Workflow Replay #2
Buy ticket
Book hotelBook hotel
Promise
Workflow Activity Client Activity Workflow History
History
Get history
Promise with confirmation
![Page 91: AWS Simple Workflow: Distributed Out of the Box! - Morning@Lohika](https://reader034.vdocuments.us/reader034/viewer/2022051503/587063af1a28ab48378b4791/html5/thumbnails/91.jpg)
Workflow Replay #2
Buy ticket
Book hotelBook hotel
Promise
Hotel confirmation
Workflow Activity Client Activity Workflow History
History
Get history
Promise with confirmation
![Page 92: AWS Simple Workflow: Distributed Out of the Box! - Morning@Lohika](https://reader034.vdocuments.us/reader034/viewer/2022051503/587063af1a28ab48378b4791/html5/thumbnails/92.jpg)
Activity Timeouts
![Page 93: AWS Simple Workflow: Distributed Out of the Box! - Morning@Lohika](https://reader034.vdocuments.us/reader034/viewer/2022051503/587063af1a28ab48378b4791/html5/thumbnails/93.jpg)
Activity Heartbeats
![Page 94: AWS Simple Workflow: Distributed Out of the Box! - Morning@Lohika](https://reader034.vdocuments.us/reader034/viewer/2022051503/587063af1a28ab48378b4791/html5/thumbnails/94.jpg)
Activity Heartbeats
![Page 95: AWS Simple Workflow: Distributed Out of the Box! - Morning@Lohika](https://reader034.vdocuments.us/reader034/viewer/2022051503/587063af1a28ab48378b4791/html5/thumbnails/95.jpg)
Serialization of Exceptions
1 1 1 0 1 0 0 0 1 1 0 1 1 1 0 1 0 1 0 1 0 1 1 1 0 1 0 0 0 1 1 1 0 1 0 0 1 0 1 0 0 0 1 0 0 1 0 0 0 0 0 0 1 0 0 1 1 1 1 0 0 1 0 0 0 0 1 1 0 1 1 1 1 0 1 1 0 0 1 0 1 1 0 0 0 1 1 0 1 0 0 1 1 0 0 0 0 1 0 0 1 1 0 1 1 1 1 1 0 1 1 0 0 1 0 0 1 1 0 1 0 0 0 1 1 1 1 0 1 1 0 0 1 0 0 1 1 1 0 0 1 1 0 0 0 1 1 0 1 1 1 0 0 0 1 0 0 0 1 1 1 1 1 0 0 1 0 1 0 0 0 1 1 1 1 0 0 1 0 0 1 1 1 0 0 0 0 1 0 1 0 1 1 1 1 0 0 0 0 1 1 0 0 1 0 1 0 0 1 1 0 1 0 0 1 1 1 0 1 1 0 0 0 0 0 0 1 0 0 0 1 1 1 0 0 0 0 0 0 0 1 0 1 1 1 0 1 1 1 1 0 0 1 0 1 1 1 1 0 1 1 0 0 1 0 1 0 0 0 1 0 0 0 1 0 0 0 0 0 0 0 0 1 0 1 1 1 0 1 1 1 0 0 0 0 1 1 0 0 0 1 1 0 0 1 0 1 0 1 0 0 0 0 1 0 1 1 1 1 1 1 1 1 1 1 0 0 0 1 0 0 1 0 1 1 1 0 1 1 1 1 1 1 0 0 1 0 0 0 0 0 1 0 0 0 1 0 0 1 1 0 1 1 1 0 1 0 1 0 1 1 1 0 0 0 1 0 0 0 1 1 0 1 0 1 0 1 1 1 1 0 1 0 1 0 0 0 0 1 0 1 1 0 1 0 0 0 1 1 1 1 0 0 0 0 0 0 1 0 1 0 0 0 1 1 1 0 1 1 0 1 0 0 0 1 1 0 1 0 1 0 1 0 1 1 1 1 0 0 0 1 0 0 0 0 0 0 0 0 0 1 1 1 1 0 1 1 0 0 0 1 0 0 0 1 1 1 1 1 1 0 1 1 0 0 0 0 0 0 1 1 0 0 1 1 0 1 1 1 1 0 0 1 1 1 1 0 0 0 1 1 1 0 1 0 1 0 0 1 1 1 1 1 0 0 1 0 0 0 1 0 1 0 0 0 1 0 0 1 1 1 1 0 0 1 0 0 1 1 0 0 0 1 0 0 0 1 1 0 0 0 0 0 0 1 0 1 0 1 0 0 1 1 1 0 1 1 0 0 0 0 1 1 1 0 0 0 1 0 1 0 1 1 0 1 1 1 0 1 0 0 1 0 1 1 1 0 0 1 1 0 1 1 0 1 0 1 0 0 1 1 1 1 0 0 1 1 0 1 1 1 0 0 0 0 0 0 1 0 1 0 0 0 0 0 1 1 0 0 1 0 1 1 0 1 0 0 0 0 0 0 1 1 0 1 1 0 1 1 1 0 1 1 0 0 1 0 0 1 0 0 0 0 1 1 0 1 0 0 0 1 0 1 1 0 1 0 1 1 1 1 0 0 0 0 0 1 1 0 0 1 1 1 1 0 0 1 0 1 1 1 0 0 0 0 0 0 1 0 1 0 0 1 1 0 1 1 1 0 0 1 1 0 1 1 0 1 0 0 1 1 0 1 0 1 0 0 0 1 0 0 0 0 0 1 1 1 0 0 1 1 0 0 0 1 1 1 1 0 0 1 0 1 0 1 1 1 0 1 0 0 1 1 1 0 1 0 0 0 0 1 1 1 1 1 0 1 1 0 0 0 1 0 0 0 0 0 0 0 0 0 1 0 0 0 1 0 0 1 0 0 1 0 0 1 1 1 1 1 0 0 1 1 0 0 0 0 1 0 1 0 0 1 1 0 0 1 0 1 1 1 0 1 1 0 0 0 0 1 1 1 1 0 1 0 1 0 1 1 0 0 0 0 1 1 1 1 1 0 1 1 0 1 1 0 1 0 1 0 0
![Page 96: AWS Simple Workflow: Distributed Out of the Box! - Morning@Lohika](https://reader034.vdocuments.us/reader034/viewer/2022051503/587063af1a28ab48378b4791/html5/thumbnails/96.jpg)
History and Data Size Limits
25K
http://docs.aws.amazon.com/amazonswf/latest/developerguide/swf-dg-limits.html
History events
32K
Message size (chars)
![Page 97: AWS Simple Workflow: Distributed Out of the Box! - Morning@Lohika](https://reader034.vdocuments.us/reader034/viewer/2022051503/587063af1a28ab48378b4791/html5/thumbnails/97.jpg)
Summary
Programs with steps Scalability
Timeouts & Retries Java & Ruby