Patterns Flashcards

(10 cards)

1
Q

Define saga pattern.

A

A design pattern for managing distributed transactions by breaking them into smaller, manageable steps.

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

True or false: Rate limiting prevents too many requests from overwhelming a service.

A

TRUE

It helps maintain service availability and performance.

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

What is fan-out/fan-in?

A

A pattern where a single task is distributed to multiple workers and results are aggregated.

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

Fill in the blank: Cache-first strategy retrieves data from _______ before checking the source.

A

the cache

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

What does multi-synchronous refer to?

A

A design pattern where multiple tasks are processed simultaneously, improving performance.

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

Define rate limiting.

A

A technique to control the number of requests a user can make to a service in a given time.

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

True or false: Saga pattern can only be used for synchronous operations.

A

FALSE

It can manage both synchronous and asynchronous transactions.

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

What is the purpose of cache-first strategy?

A

To enhance performance by prioritizing cached data over fetching from the original source.

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

Fill in the blank: In fan-out, tasks are distributed to _______ workers.

A

multiple

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

What is a key benefit of multi-synchronous processing?

A

It reduces overall processing time by executing tasks concurrently.

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