Finishing up MOM

0.0(0)
studied byStudied by 0 people
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
Card Sorting

1/22

flashcard set

Earn XP

Description and Tags

EVEN more on MOM... ugh

Study Analytics
Name
Mastery
Learn
Test
Matching
Spaced

No study sessions yet.

23 Terms

1
New cards

why is temporal decoupling (queuing) useful

there doesn’t have to be a consumer running when the event is produced as long as one turns up eventually

2
New cards

issues with queues

how large is a queue? how can this change? what happens in the extremes?

3
New cards

extreme 1: one event queue

channel can hold one event at most. first producer deposits event and blocks until its been consumed. second producer blocks until the first producer unblocks

4
New cards

extreme 2: grow the queue

the queue expands as events arrive, producers never block and consumers only block when there are no events

5
New cards

pro of growing the queue

simple straightforward model

6
New cards

cons of growing the queue

can generate memory overflows - we need to guarantee a maximum size the queue can grow to

7
New cards

bounded queue

fix the maximum size of the queue somewhere greater than one

8
New cards

allow events to drop

drop events from the queue when it is nearly full or full

9
New cards

note on dropping events

whether or not this is a good idea depends critically on what events mean to the system

10
New cards

event delivery QoS 1

guaranteed delivery - no matter what, the event will be delivered

11
New cards

event delivery QoS 2

at least once delivery - the event will be delivered, potentially several times

12
New cards

event delivery QoS 3

at most once delivery - the event will be dropped or delivered exactly once

13
New cards

event delivery QoS 4

best effort delivery - we try to deliver the event but you must be ready for the possibility of it not arriving

14
New cards

routing of event options

duplicate all events on all channels, send each event to a single channel or route based on the event’s content

15
New cards

duplication

events get duplicated for robustness but this means they may be delivered several times

16
New cards

duplication solutions

single path, unique stamps on events, idempotent events

17
New cards

message system

guarantees exactly once delivery

18
New cards

challenges of message systems

making sure messages are transferred reliably, surviving network partitions and machine failures

19
New cards

solution to message system challenges

using stable storage in the message queue

20
New cards

heuristic solutions to out of order results

timestamps, vector clocks

21
New cards

benefits of MOM having a larger framework 1

defines an architecture for a system

22
New cards

benefits of MOM having a larger framework 2

allows programmers to focus on business logic

23
New cards

benefits of MOM having a larger framework 3

less diversity and complexity for the component programmers