Scaling - AWS SWF, Batch, Step Function Flashcards

1
Q

What is SWF?

A

managed status tracker; sequential and parallel processing, tracks state of your workflow

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

What use case does it solve?

A

human-enabled workflows like a order fulfillment or procedural requests; for new apps, step functions over SWF

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

What are the 2 main components of a SWF?

A

activity work: program that uses SWF to get, process, and return tasks

Decider: program that controls coordination of tasks

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

What is a AWS Step function?

A

HA and highly scalable managed workflow and orchestration platform; defines your app as a state machine; uses AWS State Language

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

What are Step Function use cases?

A

object can assume differentiate states throughout a process

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

What is AWS Batch?

A

management tool for batch oriented tasks related EC2 instances

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

What the steps for configuring AWS Batch?

A
  1. Create a Compute Environment
  2. Create a Job Queue with priority and assigned to a compute environment
  3. Create a job definition
  4. Schedule the job
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

When should Step functions be used?

A

out-of-the-box coordination of AWS service components; order processing flow; preferred over SWF for modern development

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

When should SWF be used

A

need to support external processes or specialized execute logic; loan app process with manual review steps

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

When should AWS Batch be used?

A

reoccuring simple task that dont require heavy logic; routine activity at specific times

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

When is SQS used?

A

messaging queue, storage and forward; image resize process

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

What are the function of a worker?

A

programs that work with SWF to get, process and return results for task; can be build in varying programming languages

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

What are the function of a decider?

A

controls the coordination of worker task; this interaction between works and deciders is brokered by SWF

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

Does SWF restrict the use of certain languages for writes and deciders?

A

no, any programming languages to communicate with SWF web service APIs; SDK is currently available in Java, .NET, PHP and Ruby

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