SNS - Simple WorkFlow Service Flashcards

1
Q

What is SWF?

A

Web service that makes it easy to coordinate work across distributed components.

Enables variety of use cases: media processing, business process workflows.

Coordinates tasks - steps in an application that can be done by human actions, code, scripts, etc.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What are workers?

A

programs that interact with SWF to get tasks, process received tasks, return results

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What is the decider?

A

program that controls coordination of tasks: ordering, scheduling, etc. according to program logic

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Describe overview of workers and decider

A

Workers and deciders run on the cloud, or machines behind firewalls

SWF brokers interactions between workers and decider. Allows decider to get consistent views into progress of tasks and initiate new ones

SWF stores tasks, assigns them to workers.

SWF ensures tasks are assigned only once, never duplicated

SWF allows scaling since workers & deciders don’t have to track the execution state

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

SWF vs SQS key differences

A

SWF - task only assigned once, never duplicated
SQS - task could be duplicated

SWF - task-oriented API
SQS - message oriented API

SWF process can last a year
SQS can last a few days

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What is the maximum workflow time?

A

Up to 1 year

Always measured in seconds

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Compare tracking in SWF and SQS

A

SWF tracks all tasks and events in application

SQS requires you to implement your own tracking

How well did you know this?
1
Not at all
2
3
4
5
Perfectly