NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Message processing on XML-based publish/subscribe systems

Yang Cao2012

Abstract: par I'lnternet, preter, distribuer et vendre des theses partout dans le monde, a des fins commerciales ou autres, sur support microforme, papier, electronique et/ou autres formats.

Introduction

In modern distributed computing, the Publish/Subscribe (pub/sub) model is essential for asynchronous communication. However, the widespread adoption of XML as a data exchange format has introduced significant performance challenges. This paper addresses the scalability and latency bottlenecks that occur when processing massive XML data streams against tens of thousands of complex user subscriptions.

The authors identify three primary bottlenecks in existing systems:

  1. Filtering Overhead: The computational cost of matching incoming XML messages against vast numbers of XPath queries.
  2. Inefficient Aggregation: Difficulties in aggregating queries containing the XPath ancestor/descendant operator (//), which typically requires slow recursive tree traversals.
  3. Network Saturation: High latency caused by intermediate brokers performing intensive filtering at every hop in the network.

Methodology

To overcome these challenges, the research proposes a multi-pronged approach involving novel caching, aggregation, and routing strategies.

1. Dual Caching Schemes

The system introduces two software-based caching layers to reduce redundant processing:

  • Complete Message Caching (YF-C-Cache): This scheme hashes the entire XML message. If an identical message is received, the system bypasses filtering and reuses previous results.
  • Structure-based Caching (YF-S-Cache): This hashes only the structural tags of the message. It allows the system to reuse structural match results while deferring specific value checks (predicates) to the network edges.
Table of acronyms and terminology used in the system architecture.

2. Region-Encoded Query Aggregation

Rather than treating XPath queries as trees, the authors utilize a Region Encoding scheme. Each node in a query is assigned a triplet (left, right, level), transforming tree containment problems into simple numerical range checks. This approach utilizes two primary algorithms: Containee (checking if a new query covers existing ones) and Container (checking if existing queries cover the new one).

3. The Peer Model for Routing

The Peer Model shifts intelligence from the network core to the edges. In traditional models, intermediate brokers perform XML filtering at every hop. In the Peer Model, intermediate nodes act as simple IP-layer forwarders, while filtering is restricted to the Publisher Edge (PE) and Customer Edge (CE). This significantly reduces the total number of filtering operations required across the network.

Experimental Evaluation

The research was evaluated using a combination of synthetic data (generated via ToXGene based on book.dtd, nitf.dtd, and bib.dtd) and real-world traces from Weather Underground and Yahoo! Finance.

Key Results

  • Aggregation Efficiency: The region-encoding algorithms outperformed the industry-standard XSearch algorithm by 32.4% to 85.2% for large query populations.
  • Caching Performance: For weather data with high hit ratios (~84%), complete message caching (YF-C-Cache) reduced processing time by nearly 68%.
  • Latency and Scalability: In a 10-node topology, the Peer Model reduced average delay from 316ms to 63ms—a 5x improvement over conventional multicast. Furthermore, it handled up to 6.1 messages/sec, compared to 1.1 messages/sec in traditional models.

Conclusion

The study demonstrates that pushing intelligence to the network edges and utilizing structural similarity in XML data can drastically improve pub/sub performance. Future work will focus on extending region-encoding to support XPath wildcards (*) and integrating these three pillars into a unified prototype to explore their synergistic effects.

Summary updated

BibTeX
@misc{cao2012message,
  author = {Yang Cao},
  title = {{Message processing on XML-based publish/subscribe systems}},
  year = {2012},
  doi = {10.22215/etd/2012-09785},
}

Loading related content...

Figure