Supporting synchronous and asynchronous communications in event-based communication framework for client-server applications
Journal: International Journal of Advanced Computer Research (IJACR) (Vol.9, No. 40)Publication Date: 2019-01-24
Authors : Mingyu Lim;
Page : 11-19
Keywords : Synchronous/asynchronous communication; Event-based communication framework; Blocking/non-blocking socket channel; Client-server system.;
Abstract
This paper proposes a communication framework (CM) that supports both of synchronous and asynchronous communication between a client and a server. Original CM is an event-based asynchronous communication framework and provided applications with communication services only in the asynchronous manner. The extended CM provides synchronous communication mechanism using a blocking socket channel and a non-blocking socket channel. By explicitly providing blocking socket channels to applications, CM allows a client to organize its own synchronous communication protocol with a server. With the non-blocking socket channel, CM can change the original asynchronous communication services to synchronous services using the synchronization technique between the main thread and the processing thread. Because applications can use both the asynchronous and synchronous communications, they can apply communication services to broader contexts. For performance analysis, the proponent compared the asynchronous and synchronous methods with the qualitative analysis and the quantitative experiment. The qualitative analysis verifies that developers can design an application logic more intuitively with the synchronous communication. The quantitative experiment shows that the server-response delay of the synchronous communication is shorter than that of the asynchronous case.
Other Latest Articles
- A technical study of remote backup center performance using public virtual private network
- On the Problem of Corporate Strategies of Development for Human Resources
- Western Ukraine in the Context of Disintegration and Integration Processes During the 1930s-1940s (historical and legal aspect)
- Tax Control in the System of Taxes Administration
- Essential Strategic Management Accounting Tools Used for Making Investment Decisions at Enterprises in EU
Last modified: 2019-01-28 20:46:31