5 - Pub Sub Flashcards
Advantages of client server
Easy
Thin clients
Drawbacks of client server
Interaction one to one
Each entitty must know how to address partner
Both must be available
Inherently synchronous
Only pull based
Pub Sub
Distributed Event based systems
Stores subscriptions and correctly delivers event notifs
Publishers (producers)
publish structured events to a service
Subscribers (consumers)
Register interest in particular events through subscriptions
Examples of Pub Sub
Live data broadcasting
Monitoring
Cooperation
Ubiquitous Computing
Characteristics of Pub/Sub system
Heterogeneous (distinct components can be made to work together)
Asynchronous
Space coupled
Comms directed to receiver
Space uncoupled
Sender does not need to know receiver identity
Time coupled
Receiver must exit at that time
Time uncoupled
Sender and receiver can have independent lifetimes
Channel based subscriptions
Subscribe to entire channel
Simple
No interplay between channels
Topic based subscriptions
(think about how the topics are laid out)
Topics organised hierarchically in subtree
Subscribing means receiving all messages to this node and below
Content based subscriptions
Subscribers define predicates (constraints) on attribute values of events
Event Schema
Un-typed set of typed attributes.
<attr-name, attr-type, attr-value>