Abstract: In modern Software as a Service (SaaS) environments, real-time service intelligence—such as dynamic scaling and personalized recommendations—is critical. However, the distributed nature of these services leads to fragmented and asynchronous data streams. This paper presents the Data Stream based Service Intelligence System (DSSIS), which utilizes a Small Window Array (SWA) mechanism and queuing theory to effectively integrate these disparate streams. Evaluation shows that DSSIS significantly improves integration completeness and provides highly accurate performance predictions.
The Challenge: Dispersity and Asynchronism
Modern web services are increasingly complex and distributed. A single user request often triggers a cascade of sub-services across multiple servers. As illustrated in the figure below, this results in two primary challenges for monitoring and intelligence systems: dispersity, where data for a single instance is scattered across multiple streams, and asynchronism, where related events arrive at different times.
Traditional stream processing engines typically use global sliding windows. However, these are often ineffective; small windows fail to capture late-arriving data, while large windows consume excessive memory and introduce significant latency.
The DSSIS Framework
To address these issues, researchers from Tsinghua University developed the Data Stream based Service Intelligence System (DSSIS). This framework is organized into a multi-layered architecture that manages the flow from raw data collection to high-level service models.
Small Window Array (SWA)
The core innovation of DSSIS is the Small Window Array (SWA) mechanism. Instead of a single, global window, SWA maintains a map of instance-specific windows. A window is opened upon the arrival of a new instance key and closes only when the instance is complete or a timeout is reached. This approach is deterministic and significantly more resilient to out-of-order data than traditional methods.
Performance Modeling and Tuning
The system leverages mathematical modeling to optimize its operations:
- CDF-based Tuning: The Cumulative Distribution Function (CDF) of service response times is used to mathematically determine optimal window sizes and timeouts.
- Queuing Theory: Stream operators (such as UNION and AGGREGATE) are modeled using Phase-type (PH) distributions and Markovian Arrival Processes (MAP). This allows engineers to predict system performance metrics, like residence time and queue length, with high precision.
Evaluation and Key Results
The framework was evaluated using traces from Amazon and English Wikipedia. The results demonstrate the superiority of the SWA approach:
- Integration Completeness: SWA achieved a completeness rate of ~80.5% (precise) and up to ~94% (approximate). In comparison, traditional sliding windows of similar size achieved only ~13% completeness.
- Performance Prediction Accuracy: The queuing models proved highly accurate. For the UNION operator, the error rate between predicted and actual processing time was a mere 0.33%.
- Resource Efficiency: SWA is more memory-efficient than standard sliding windows because it only allocates resources for active, incomplete service instances.
Conclusion
The DSSIS framework offers a robust solution for the challenges of distributed data stream integration. By treating service data as stateful entities and applying rigorous mathematical modeling, it enables high-accuracy service intelligence in complex, distributed environments. Future work will focus on extending these models to more complex operators like JOIN and further optimizing for network-level load shielding.
Summary updated