Skip to search boxSkip to navigationSkip to main content

The impact of event processing flow on asynchronous server efficiency

  • Shungeng Zhang(corresponding author)
    ,
  • Qingyang Wang
    ,
  • Yasuhiko Kanemasa
    ,
  • Huasong Shan
    ,
  • Liting Hu
*Corresponding author for this work
  • Louisiana State University
    ,
  • Fujitsu
    ,
  • JD.com, Inc.
    ,
  • Florida International University
Scholary Output:
Contribution to journal
Article
Peer-review

Open access

Abstract

Asynchronous event-driven server architecture has been considered as a superior alternative to the thread-based counterpart due to reduced multithreading overhead. In this paper, we conduct empirical research on the efficiency of asynchronous Internet servers, showing that an asynchronous server may perform significantly worse than a thread-based one due to two design deficiencies. The first one is the widely adopted one-event-one-handler event processing model in current asynchronous Internet servers, which could generate frequent unnecessary context switches between event handlers, leading to significant CPU overhead of the server. The second one is a write-spin problem (i.e., repeatedly making unnecessary I/O system calls) in asynchronous servers due to some specific runtime workload and network conditions (e.g., large response size and non-trivial network latency). To address these two design deficiencies, we present a hybrid solution by exploiting the merits of different asynchronous architectures so that the server is able to adapt to dynamic runtime workload and network conditions in the cloud. Concretely, our hybrid solution applies a lightweight runtime request checking and seeks for the most efficient path to process each request from clients. Our results show that the hybrid solution can achieve from 10 to 90 percent higher throughput than all the other types of servers under the various realistic workload and network conditions in the cloud.

Publication Information

Output type

Scholary Output:
Contribution to journal
Article
Peer-review

Original language

English (US)

Article number

8825817

Pages from-to (Number of pages)

Pages 565-579 (15 pages)

Journal (Volume, Issue Number)

IEEE Transactions on Parallel and Distributed Systems (Volume 31, Issue 3)

Publication milestones

  • Published - 03/01/2020

Publication status

Published - 03/01/2020

ISSN

1045-9219

Publication IDs

  • Scopus: 85078296763

Publication metrics

Metrics

Fractional count
1
Fractional count
0.20
Fractional count
4
Fractional count
0.80
Fractional count
1
Fractional count
1
Scopus
citations

PlumX, opens in new tab

Captures
10
Usage
25
Citation count
3

Funding Details

This research has been partially funded by National Science Foundation by CISEs CNS (1566443), Louisiana Board of Regents under grant LEQSF(2015-18)-RD-A-11, and gifts or grants from Fujitsu.
FundersFunding numbers
NSF
1566443
Louisiana Board of Regents
LEQSF(2015-18)-RD-A-11
Fujitsu Laboratories of America
-