140 likes | 305 Views
Publish/Subscribe and Service Discovery. Jesper Holt Nielsen. Overview. Publish/Subscribe Concepts What is pub/sub? Architecture Example Service Discovery. Publish/Subscribe overall. Message pattern No specific recievers Publisher Messages as classes Subscribers
E N D
Publish/Subscribe and Service Discovery Jesper Holt Nielsen
Overview • Publish/Subscribe • Concepts • What is pub/sub? • Architecture • Example • Service Discovery
Publish/Subscribe overall • Messagepattern • Nospecificrecievers • Publisher • Messages as classes • Subscribers • Receivesmessages of interest
Other options/properties • Message passing • No Space, Time and Synchronization decoupling • RPC • No Space and Time decoupling • Notifications • No Space and Time decoupling • Shared Memory • No Synchronization decoupling • Message Queueing (Message Oriented Middleware) • No Synchronization decoupling
Publish/Subscribefiltering • Receive a subset of the total messages published • Topic-based • Identified by topic keywords (Pub/Sub) • Content-based • Classified based on property • Type-based • Filter events according to theirtype • Typically a brokerperform the filtering
Service Discovery • Basic Idea • Provider and user • What and why Service Discovery? • Automatic, multiple devices • Unicast, multicasts and broadcast • Examples • UPnP, DNS-SD
Implementation • Challenges/Issues • Integration with people • User friendly, requires knowledge • Integration with environments
Example • In a home environment, with multiple services • Multimedia • Surveillance • Different house consumption • Etc • Security issues
Project example • Used LCM • CommunicationbetweentwoBeagleBones • Publish/Subscribe • Topic-based • ”VISION” • Part of the messageused