Pub/Sub systems Flashcards

1
Q

When discussing system characteristics of pub/sub systems, what is meant by heterogenous?

A

Heterogenous: Components in a distributed system that are not designed to interoperate can be made to work together.

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

When discussing system characteristics of pub/sub systems, what is meant by asynchronous?

A

Notifications are sent asynchronously by event-generating publishers to subsrcibers who have expressed interest in them.

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

Coupling and coupled check notes

A

Coupling and coupled check notes

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

What are the three categories of subscription models?

A

Channel-based, topic-based and content-based

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

What is a centralised model?

A

A centralised server acts as an event broker. A broker is an entity that is responsible for the matching. Matching entails 3 phases:

  • -Subscription processing: Indexing and storing subscriptions.
  • -Event processing: upon event arrival, access subscription indices and identify all matched subscriptions
  • -Event delivery: deliver event to clients with matched subsciptions
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What is a distributed model?

A

Distributed pub/sub systems consist of a network of brokers. Each local broker has a matching engine. see notes for diagram

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

Content-based Routing: An event e is said to match a subscription s…

A
  • -if and only if all attribute-value predicates in s are satisfied by the values carried by e
  • -done through an event-subscription matching engine
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

What is event flooding?

A

Each event is broadcast from the publisher in the whole system.
The implementation is straightforward but very expensive. This solution has the highest message overhead with no memory overhead.

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

What is subscription flooding?

A

Each subscription is copied on every broker for building locally complete subscription tables.
This approach suffers from a large memory overhead, but event diffusion is optimal. It is impractical in applications where subscriptions change frequently.

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

What is filtering?

A

Brokers forward notifications through the network only where there is a path to a valid subscriber. More complex routing algorithms. More memory efficient.

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