Composite Subscriptions in Content-based Pub/Sub Systems

Slides:



Advertisements
Similar presentations
Crucial Patterns in Service- Oriented Architecture Jaroslav Král, Michal Žemlička Charles University, Prague.
Advertisements

Efficient Event-based Resource Discovery Wei Yan*, Songlin Hu*, Vinod Muthusamy +, Hans-Arno Jacobsen +, Li Zha* * Chinese Academy of Sciences, Beijing.
Pontus Boström and Marina Waldén Åbo Akademi University/ TUCS Development of Fault Tolerant Grid Applications Using Distributed B.
Management of Uncertainty in Publish/Subscribe Systems Haifeng Liu Department of Computer Sceince University of Toronto.
GLOBUS PLUG-IN FOR WINGS WOKFLOW ENGINE Elizabeth Martí ITACA Universidad Politécnica de Valencia
1 A Scalable Approach for the Secure and Authorized Tracking of the Availability of Entities in Distributed Systems Shrideep Pallickara, Jaliya Ekanayake.
CUSTOMER FOCUS COMMITMENT QUALITY PLATINUM PARTNER 1 Click to edit Master title style rewferwfff CUSTOMER FOCUS COMMITMENT QUALITY PLATINUM PARTNER 1 Oracle.
Extensible Networking Platform IWAN 2005 Extensible Network Configuration and Communication Framework Todd Sproull and John Lockwood
Transactional Mobility in Distributed Content-Based Publish/Subscribe Systems Songlin Hu*, Vinod Muthusamy +, Guoli Li +, Hans-Arno Jacobsen + * Chinese.
©NEC Laboratories America 1 Hui Zhang Samrat Ganguly Sudeept Bhatnagar Rauf Izmailov NEC Labs America Abhishek Sharma University of Southern California.
Camilo Lara KIP HLT Production Readiness Review 1 HLT Cluster Management.
Peter R. Pietzuch, Brian Shand, and Jean Bacon A Framework for Distributed Event Composition Middleware’03, Rio de Janeiro,
1 Introduction to Load Balancing: l Definition of Distributed systems. Collection of independent loosely coupled computing resources. l Load Balancing.
Hermes: A Distributed Event- Based Middleware Architecture Peter Pietzuch and Jean Bacon 1st DEBS Workshop, Vienna,
A Framework for Object-Based Event Composition in Distributed Systems Peter Pietzuch and Brian Shand June 2002.
Background Notification services in LAN Provides Notification Selection Notification Delivery Done on a centralized server (hence not scalable) Challenge.
Distributed Publish/Subscribe Network Presented by: Yu-Ling Chang.
IBM Research – Thomas J Watson Research Center | March 2006 © 2006 IBM Corporation Events and workflow – BPM Systems Event Application symposium Parallel.
Effects of Routing Computations in Content-Based Routing Networks with Mobile Data Sources Vinod Muthusamy, Milenko Petrovic, Hans-Arno Jacobsen University.
Katanosh Morovat.   This concept is a formal approach for identifying the rules that encapsulate the structure, constraint, and control of the operation.
Publisher Mobility in Distributed Publish/Subscribe Systems Vinod Muthusamy, Milenko Petrovic, Dapeng Gao, Hans-Arno Jacobsen University of Toronto June.
MIDDLEWARE SYSTEMS RESEARCH GROUP Denial of Service in Content-based Publish/Subscribe Systems M.A.Sc. Candidate: Alex Wun Thesis Supervisor: Hans-Arno.
Supporting Disconnected Operations in Publish/Subscribe Systems Vinod Muthusamy Joint work with Milenko Petrovic, Ioana Burcea, H.-Arno Jacobsen, Eyal.
A Transport Framework for Distributed Brokering Systems Shrideep Pallickara, Geoffrey Fox, John Yin, Gurhan Gunduz, Hongbin Liu, Ahmet Uyar, Mustafa Varank.
Data Distribution Dynamic Data Distribution. Outline Introductory Comments Dynamic (Value based) Data Distribution: HLA Data Distribution Management –Routing.
MIDDLEWARE SYSTEMS RESEARCH GROUP Middleware A Policy Management Framework for Content-based Publish/Subscribe Middleware Hans-Arno Jacobsen Department.
Event Processing A Perspective From Oracle Dieter Gawlick, Shailendra Mishra Oracle Corporation March,
MIDDLEWARE SYSTEMS RESEARCH GROUP MSRG.ORG Total Order in Content-based Publish/Subscribe Systems Joint work with: Vinod Muthusamy, Hans-Arno Jacobsen.
Distributed Automatic Service Composition in Large-Scale Systems Songlin Hu*, Vinod Muthusamy +, Guoli Li +, Hans-Arno Jacobsen + * Chinese Academy of.
Historic Data Access in Publish/Subscribe Middleware System Research Group University of Toronto.
MIDDLEWARE SYSTEMS RESEARCH GROUP Adaptive Content-based Routing In General Overlay Topologies Guoli Li, Vinod Muthusamy Hans-Arno Jacobsen Middleware.
Minimal Broker Overlay Design for Content-Based Publish/Subscribe Systems Naweed Tajuddin Balasubramaneyam Maniymaran Hans-Arno Jacobsen University of.
ICDCS Beijing China Routing of XML and XPath Queries in Data Dissemination Networks Guoli Li, Shuang Hou Hans-Arno Jacobsen Middleware Systems Research.
Information-Centric Networks10b-1 Week 10 / Paper 2 Hermes: a distributed event-based middleware architecture –P.R. Pietzuch, J.M. Bacon –ICDCS 2002 Workshops.
Course: COMS-E6125 Professor: Gail E. Kaiser Student: Shanghao Li (sl2967)
Information-Centric Networks Section # 10.2: Publish/Subscribe Instructor: George Xylomenos Department: Informatics.
Data Distribution. Outline Fundamental concepts –Name space –Description expressions –Interest expressions Static Data Distribution: HLA Declaration Management.
Peter R Pietzuch and Jean Bacon Peer-to-Peer Overlay Networks in an Event-Based Middleware DEBS’03, San Diego, CA, USA,
Distributed Automatic Service Composition in Large-Scale Systems Songlin Hu*, Vinod Muthusamy +, Guoli Li +, Hans-Arno Jacobsen + * Chinese Academy of.
Community Clustering in Distributed Publish/Subscribe System Wei Li 1,2,Songlin Hu 1, Jintao Li 1, Hans-Arno Jacobsen 3 1 Institute of Computing Technology,
1 Towards Scalable Pub/Sub Systems Shuping Ji 1, Chunyang Ye 2, Jun Wei 1 and Arno Jacobsen 3 1 Chinese Academy of Sciences 2 Hainan University 3 Middleware.
1 Distributed Systems Architectures Distributed object architectures Reference: ©Ian Sommerville 2000 Software Engineering, 6th edition.
Miklós Zoltán Technical University of Vienna Distributed Systems Group
Confluent vs. Splittable Flows
Chapter 1: Introduction to Systems Analysis and Design
Introduction to Load Balancing:
TIM 58: Systems Analysis and Design Winter Quarter 2017 Tuesday/Thursday 1:30 – 3:05 pm, Classroom Unit 1.
A Framework for Object-Based Event Composition in Distributed Systems
Web Ontology Language for Service (OWL-S)
Navneet Kumar Pandey1 Stéphane Weiss1 Roman Vitenberg1
Model-Driven Analysis Frameworks for Embedded Systems
Project Demo Mehdi Sadri Jamshid Esmaelnezhad Spring 2012
CS5412: Using Gossip to Build Overlay Networks
Specialized Cloud Mechanisms
Towards an Internet-Scale XML Dissemination Service
A Software-Defined Storage for Workflow Applications
Distributed Publish/Subscribe Network
Siddarth Ganesan, Young Yoon, Hans-Arno Jacobsen
Foundations for Highly-Available Content-based Publish/Subscribe Overlays Young Yoon, Vinod Muthusamy and Hans-Arno Jacobsen.
Chapter 1: Introduction to Systems Analysis and Design
Message Queuing.
Small-Scale Peer-to-Peer Publish/Subscribe
Indirect Communication Paradigms (or Messaging Methods)
Indirect Communication Paradigms (or Messaging Methods)
Chained Negotiation for Distributed Notification Services
SIENA: Wide-Area Event Notification Service
Load Balancing in BAD Project
Cross-layer monitoring and adaptation
Chapter 1: Introduction to Systems Analysis and Design
Presentation transcript:

Composite Subscriptions in Content-based Pub/Sub Systems Guoli Li

Middleware 2005 Grenoble France Agenda Motivation PADRES System Composite Subscriptions Case Study: Workflow Management Evaluations Conclusions and Future Work Middleware 2005 Grenoble France 2019/1/15

Middleware 2005 Grenoble France Motivation A large number of atomic events Lack of event correlation Potential Applications: Workflow processing and business process execution Network management … Middleware 2005 Grenoble France 2019/1/15

Middleware 2005 Grenoble France The PADRES System PADRES: Publish/Subscribe Applied to Distributed REsource Scheduling Features: Predicate-based subscription language (attribute, op, value) pair Extended to supporting composite subscriptions Rule-based publication/subscription matching Publications are mapped to facts Subscriptions are mapped to rules Advertisement-based routing Content-based, it uses predicate-based subscription language Middleware 2005 Grenoble France 2019/1/15

Content-based Routing Advertising Advertisement Distributed Overlay Broker Network Broker network Clients are connected as publisher/subscribers … … PADRES Middleware 2005 Grenoble France 2019/1/15

Content-based Routing Subscribing Subscription Distributed Overlay Broker Network … … PADRES Middleware 2005 Grenoble France 2019/1/15

Content-based Routing Publishing Publication Distributed Overlay Broker Network … … PADRES Middleware 2005 Grenoble France 2019/1/15

Middleware 2005 Grenoble France Several Concepts Message Advertisement Subscription Publication Event Atomic event: publication in pub/sub literature Composite event: a pattern of events Subscriptions Atomic subscription: atomic event Composite subscription: composite event Middleware 2005 Grenoble France 2019/1/15

Composite Subscriptions Composite subscription consists of primitive subscriptions Provide a higher level view for subscribers Save network bandwidth Subscription language features Operators: AND (&), OR (||) Variables: ($x) Advanced event patterns & || S1 S2 S3 S4 S5 {} is used to specify the priority of operators CS={{S1 OR S2} AND{S3 OR S4} AND S5} Middleware 2005 Grenoble France 2019/1/15

Composite Subscriptions Parallelization pattern: s1 & s2 Alternation pattern: s1 || s2 Sequence pattern: (s1;[timespan:ts]s2)[within:wi] Repetition pattern: Repetition(S, n, attr, v) e.g. {rule ((job (appl = $X) (name = A) (state = succ)) & (job (appl = $X) (name = B) (state = succ))) => (forward a notification to proper destination)} Middleware 2005 Grenoble France 2019/1/15

Composite Subscriptions Parallelization pattern: s1 & s2 Alternation pattern: s1 || s2 Sequence pattern: (s1;[timespan:ts]s2)[within:wi] Repetition pattern: Repetition(S, n, attr, v) e.g. {rule ((job …. (name = A) (time = $Y)) & (job …. (name = B) (time > $Y+ts) (time < $Y+wi))) => (forward a notification to proper destination)} e.g. {rule ((job …. (name = A) (attr = $Z)) & (job …. (name = A) (attr = $Z+v)) & … & (job …. (name = A) (attr = $Z+(n-1)v)) ) => (forward a notification to proper destination)} Middleware 2005 Grenoble France 2019/1/15

Composite Subscription Routing CS={{S1 AND S2} ANDS3} P Publishers & || S1 S2 S3 S Subscribers CS’={S1 AND S2} P1 Distributed Overlay Broker Network B1 B5 CS S S1 B3 CS’ B4 S2 S3 B2 B6 P2 P3 Middleware 2005 Grenoble France 2019/1/15

Composite Event Detection CS={{S1 AND S2} ANDS3} P Publishers AND S1 S2 S3 S Subscribers CS’={S1 AND S2} P1 P1 Distributed Overlay Broker Network S1 CS B1 B5 S CS’ CS B3 P12 B4 P123 B2 P2 S2 B6 P2 S3 P3 P3 Middleware 2005 Grenoble France 2019/1/15

Middleware 2005 Grenoble France Advantages Rule-based approach naturally enables the composite subscription Event detection results can be shared Network traffic is reduced Composite subscription is forwarded into the network as far as possible before it is split Composite events are detected close to the data source and not widely disseminated Middleware 2005 Grenoble France 2019/1/15

Case Study: Workflow Management Decentralized Workflow Management based on Pub/Sub Functions Workflow transform Workflow deployment Workflow execution Workflow control and monitoring Middleware 2005 Grenoble France 2019/1/15

Middleware 2005 Grenoble France Architecture Middleware 2005 Grenoble France 2019/1/15

Workflow Descriptions Workflows are described using XML-based languages, such as BPEL Activities defined in a workflow have dependencies among each other A workflow instance is generated by a trigger Failures can be handled in the workflow description trigger A E F B C D Middleware 2005 Grenoble France 2019/1/15

Middleware 2005 Grenoble France Workflow Transform The first job(s) subscribe to trigger messages e.g. Job A subscribes to trigger publication: {[class,eq,trigger],[workflow,eq,payroll], [instanceID,=,$x]} Job dependencies are implied by subscriptions e.g. Job E subscribes to job A failed: {[class,eq,job_info],[workflow,eq,payroll], [nstanceID,=,$x], [job,eq,A], [status,eq,fail]} e.g. Job D subscribes to B and C finished, which is a composite subscription Advertisements are generated from a workflow specification file Middleware 2005 Grenoble France 2019/1/15

Distributed Overlay Broker Network Workflow Deployment A B C D BPEL sub/advs Job D sub/advs Job C sub/advs Job B sub/advs Job A Deployer sub/advs Job D Distributed Overlay Broker Network Job D Agent B1 B5 B3 B4 sub/advs Job A B2 Job A Agent B6 sub/advs Job C sub/advs Job B Job C Agent Job B Agent Middleware 2005 Grenoble France 2019/1/15

Workflow Execution (Success) A B C D BPEL trigger Workflow Manager END Distributed Overlay Broker Network Job D Agent B1 B5 BC B3 A B4 A sub/advs Job D B2 Job A Agent B6 A sub/advs Job A Job C Agent Job B Agent sub/advs Job C B C sub/advs Job B Middleware 2005 Grenoble France 2019/1/15

Workflow Execution (Failure) B C D BPEL E F trigger Workflow Manager sub/advs Job D Distributed Overlay Broker Network Job D Agent B1 B5 Workflow deployment and execution are performed in the Pub/Sub layer Workflow execution is event-driven B3 B4 END B2 Job A Agent B6 Job F Agent A sub/advs Job A Job C Agent sub/advs Job F Job B Agent Job E Agent E sub/advs Job E sub/advs Job C sub/advs Job B Middleware 2005 Grenoble France 2019/1/15

Middleware 2005 Grenoble France Workflow Monitoring Monitor is a Pub/Sub client Monitor/control workflow execution status Workflow level Activity level Support dynamic workflow modification Visualize topology of broker overlay network Visualize message routing Middleware 2005 Grenoble France 2019/1/15

Middleware 2005 Grenoble France Evaluations Environment Intel Xeon 3GHz, 1GB RAM JDK 1.4.2 Workload description Predicates based on 20 attributes with random operators Values are uniformly distributed in the value range Two workflows with different number of jobs Metrics Matching time Routing delay per composite subscription Network traffic zipf Middleware 2005 Grenoble France 2019/1/15

Publication Matching Time Evaluate the performance of the rule-based matching engine in PADRES. X-axis is the number of subscriptions. Y-axis is the matching time of publications in logarithmic scale. Each data point is obtained by averaging the time taken to route 5000 publications. We compared our PADRES matching engine with Naive Matching algorithm and Counting algorithm Middleware 2005 Grenoble France 2019/1/15

Composite Event Detection We measure the composite event detection time. X-axis is the number of atomic subscriptions per CS. Y-axis is the detection time. We show the detection time of injecting 100, 5000, and 10000 publications. The detection time includes: mapping the cs to a rule, and matching the rule against publication facts. Each data point is an average of 200 composite subscriptions. Middleware 2005 Grenoble France 2019/1/15

Middleware 2005 Grenoble France Routing Delay We measure the routing delay of composite subscriptions. X-axis is the number of atomic subscriptions per CS. Y-axis is the routing delay per broker. At each broker we need to split the CS according to the destinations. The complexity is O(N), where N is the number of atomic subscriptions per CS. Middleware 2005 Grenoble France 2019/1/15

Number of Notifications Composite subscriptions can reduce the number of notifications delivered to clients. X-axis is the number of issued publications. Y-axis is the number of notifications that the client received. We issue 200 composite subscriptions (each has 5 atomic subscriptions) in the first case (blue line). And issue 1000 atomic subscriptions which consist the 200 CSs in the second case (red line) Middleware 2005 Grenoble France 2019/1/15

Middleware 2005 Grenoble France Workflow Traffic The network traffic in the execution phase Workflow A has 4 jobs Workflow B has 8 jobs The network traffic is generated by 10 generations of the workflow. Middleware 2005 Grenoble France 2019/1/15

Middleware 2005 Grenoble France Related Work P.R. Pietzuch, B. Shand, and J. Bacon. Composite event detection as a generic middleware extension. IEEE Network Magazine, Special Issue on Middleware Technologies for Future Communication Networks, Jan 2004 SIENA REBECA Middleware 2005 Grenoble France 2019/1/15

Middleware 2005 Grenoble France Conclusions An expressive subscription language A rule-based approach of message matching and composite event detection Case study: a decentralized workflow management system based on PADRES Future Works Support BPEL4WS QoS based workflow execution Middleware 2005 Grenoble France 2019/1/15

Middleware 2005 Grenoble France Questions? Middleware 2005 Grenoble France 2019/1/15