3 - Architecture and Patterns Flashcards

1
Q

6 patterns in serverless:

A

Command, Messaging , Priority queue, Fan-out, Compute as glue, Pipes and filters

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

What is Command Pattern?

A

Encapsulates a request as an object, thereby letting you parameterize clients with different req, queue or log req, & support undoable op.
Req is send to the invoker. Invoker pass it to the encapsulated command obj. Obj passes req to the appropriate method of Receiver to perform specific action.

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

What is a Messaging pattern

A

Popular in dist sys because they allow dev to build scalable & robust syst by (1) decoupling fuc & services from direct dep and (2) allowing storage of events/records/req in a queue
Features a msg queue with a sender that can post to the queue & a receiver that can retrieve msg from the queue. In AWS, this pattern can be built on top of SQS

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

What is Priority queue pattern

A

System where there is entirely different workflows for msg of different priority

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

Fan-out pattern

A

Pattern that pushes a msg to all listening/subscribed clients of a particular queue/msg pipeline.
Useful when needed to invoke multiple Lamba func at same time. In AWS, it is usually implemented using SNS topics.

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

Compute as glue architecture

A

Use Lambda function to create powerful execution pipelines & workflows. Lamba is the glue btw services

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