QoS-enabled e-commerce web application

Ping Li2002

TL;DR

This paper presents a framework for providing end-to-end Quality of Service (QoS) in e-commerce applications by leveraging multi-tiered resource management. By implementing differentiated scheduling priorities across web server and CORBA middleware tiers, the authors demonstrate how to protect high-value "Gold" customers from performance degradation and use dynamic state-based prioritization to reduce customer "balking" (abandonment) during critical transaction phases.

What Problem Does This Paper Address?

In the early 2000s e-commerce boom, most web servers and middleware were "best-effort" systems that treated every request equally. This "one-size-fits-all" approach is problematic for business: a casual browser and a high-spending "Gold" member compete for the same CPU cycles. Under heavy load, slow response times lead to "balking"—where frustrated users abandon their shopping carts.

The challenge addressed here is how to provide differentiated performance in a standard three-tier architecture (Client -> Web Server -> Back-end) without requiring a specialized real-time operating system. The goal is to ensure that important customers get faster service and that users nearing a purchase are prioritized to maximize completed transactions.

Methods

The authors built a performance prototype using the Apache web server, CGI (Common Gateway Interface), and omniORB (a CORBA-compliant Object Request Broker) running on Linux.

They introduced three primary techniques for QoS preservation:

  1. Middle-Tier Prioritization: Using the Linux nice() system call to set different scheduling priorities for CGI processes based on the customer's service level (Gold, Silver, or Bronze).
  2. Back-End Tier Prioritization: Adjusting thread priorities within the CORBA servers to handle requests from different customer classes with varying urgency.
  3. Dynamic State-Based Control: A novel approach where a customer's priority is temporarily boosted when they enter a "key state," such as the "Confirm Purchase" screen, to ensure they don't abandon the site at the finish line.

To test this, they developed a custom workload generation tool based on Customer Behavior Model Graphs (CBMG). This tool simulates realistic user sessions, including "think time" and the probability of a user leaving the site if response times exceed a specific threshold (the "eight-second rule").

Datasets

The study relies on synthetic workloads rather than static datasets. The authors used:

  • Poisson distributions to model request arrival rates.
  • CBMG-RB (Random Behavior): Models users navigating between Login, Select, Confirm, and Pay states based on transition probabilities.
  • CBMG-RBB (Random and Balk Behavior): An extension that incorporates "Balk Time"—if the system response is slower than the threshold, the simulated user exits the system.

Key Insights and Ideas

  • The "Confirm" State is Critical: The most significant insight is that prioritizing users based on their intent (shopping state) can be as important as prioritizing them based on their identity (membership level). Boosting priority at the "Confirm" state significantly reduced the "Total Lost Rate" of transactions.
  • End-to-End is Mandatory: Providing QoS at only the web server or only the back-end is insufficient. Contention at any tier can bottleneck the entire transaction, necessitating a coordinated priority mapping across all layers.
  • The Overhead of "Niceness": While using nice() to differentiate CGI processes worked, it introduced slight overhead. The authors found that while it improved discrimination between classes, it could slightly increase the overall end-to-end time for all users compared to a system with no priority enhancement.
  • Middleware as a QoS Proxy: Since standard web servers (like Apache 1.3) didn't natively support QoS, the application-level CGI and CORBA layers can effectively act as proxies to enforce resource management policies.

Key Results

  • Response Time Differentiation: Under high load (1.2 requests/sec), "Gold" customers maintained request times under 10 seconds, while "Bronze" customers saw spikes exceeding 60 seconds.
  • Revenue Protection: Implementing state-based dynamic priority led to a 9.8% improvement in the total number of items bought at moderate arrival rates.
  • Balking Mitigation: The "Total Lost Rate" (the ratio of abandoned items to clicked items) was significantly lower when state-based switching was turned on, effectively "saving" sales that would have otherwise been lost to system latency.

Limitations and Future Work

  • Uniform Arrival Rates: The study assumed Gold, Silver, and Bronze customers arrived at the same rate. In reality, high-value customers might have different usage patterns, which warrants further study.
  • Resource Starvation: The authors acknowledge that strict class-based priority can lead to "starvation" of lower-class users. They suggest "aging" techniques (gradually increasing the priority of waiting requests) as a future solution.
  • Static Priority Values: The priority levels (e.g., 3, 10, 17) were chosen empirically. Future work could involve dynamic tuning of these values based on real-time system load.
  • Architecture Evolution: The prototype used Apache 1.3 (process-based). The authors noted that moving to a hybrid thread/process model (like Apache 2.0) would be a logical next step for better scalability.

Summary updated

BibTeX
@misc{li2002qos,
  author = {Ping Li},
  title = {{QoS-enabled e-commerce web application}},
  year = {2002},
  doi = {10.22215/etd/2002-05078},
}
Figure