One way of using Ajax components to realize asynchronous communication in web service
IlNam Ri1,lowast;, SongIl Choe2, Hun Kim1
1 College of Information Science, Kim Il Sung University, Pyongyang, Democratic Peoplersquo;s Republic
of Korea
2 Department of Information Science, HuiChon Industry University, HuiChon, Democratic Peoplersquo;s
Republic of Korea
Corresponding author. * E-mail address: ring15822944219@163.com
Abstract- Ajax (Asynchronos Javascript And XML), one of the worlds most widely used Web 2.0 technologies, is devoid of the traditional Web page approach.(1) This technology is becoming an indispensable element in Web apps as it supports asynchronous communication that allows the user to proceed with the conversation.(3,4)
Today s reality is getting closer to the virtual reality by the dissemination of intelligent devices, the new Internet of Things, cloud computing and the development of information society.
In the field of business services, we also need to improve the size and service quality of our web apps, and Ajax technology is constantly expanding.(5)
In the fields of stocks, finance, auctions, etc. that deal with large-scale, real-time data, it is important for business service providers to transmit information to users as soon as possible.
This Paper describes one way of using Ajax components to realize asynchronous communication of Web service providers on the Internet.
Ajax components consist of an Ajax core that supports Epoll and an Ajax library that supports asynchronous communication, and provides an application interface to define and implement various push functions.(2)
Web service applications developed using Ajax components can provide various push services by using asynchronous communication with client by using Epoll method.
.Keywords- Ajax, Ajax component, Web service, Server Push
- Introduction
Since the introduction of Web 2.0, Web application development has evolved from a static Web site into a tInteractive Web service program based on a interaction. (3)
One of the most popular technologies for creating interactive web service applications is Ajax (Asynchronous Javascript and XML), which appeared in 2005 (Garrett 2005) and now runs a number of Web sites supporting Ajax technology.(1)
Ajax allows asynchronous requests after the page is loaded so that the JavaScript code can update some of the pages in the browser, effectively updating the data without having to reopen the entire page..
Today, as the demand for fast and accurate information such as the economy, construction, commerce, technology dissemination, and new news is increasing, the environment where information is actively provided on time is important without the request of the user..
Polling in the previous period is a representative technology for realizing the service push in the client / service model. It is a method that allows the client to send the request implicitly to the
service provider so that the information of the service provider is obtained in a timely manner when the service information is modified .
Polling has been widely used because it is easy to implement in general HTTP based applications.It is not efficient due to frequent requests to exchange network with continuous liveness of service resources..
However, with the introduction of Ajax technology, Push technology such as Long Polling (6) and HTTP Streaming (7)are being used to improve the problem of polling and to realize effective service push.
Typically, there are Pushlet, Adobes BlazeDS (9), and Weelyas APE (Ajax Push Engine).
Although these frameworks provide various functions and high performance, they do not provide a convenient environment for the developers or they do not support the development of a wide range of Web service applications due to the dependency on the execution environment.
In the paper to solve these shortcomings, we will discuss how to use Ajax components to support the development of push services for Web services.
The Ajax component consists of an Ajax core for developing a Push service that supports Epoll and an Ajax library for a push request to perform Ajax-based asynchronous communication.
The Ajax core part uses the non-blocking I / O (JavaNIO) to support Epoll, and at the same time it runs independently without being dependent on the execution environment.(8)
It also supports the infrastructure for convenient management of channels and user information for pushing information.
The Ajax library is bundled with the Push service and provides a variety of application interfaces to take advantage of Push service.
Ajax component based web service application programs can efficiently manage many referrals based on Epoll, and can provide push service with Ajax - based asynchronous communication.
The composition of the paper follows the introduction, and in Section 2 deals with the techniques and use of the previous period to realize the service push.
Section 3 describes the design and development of the Ajax core and Ajax library, and deals with protocols for effective communication.
Section 4 describes the conclusion.
-
Analysis of Prior Research
- Server push technology
Server push is a communication technology in which the service provider actively provides information without the exact request of the client.
Table 1 shows representative methods for realizing server push technology in the Internet.
method |
Characteristic |
|||||||||||||||
Long Polling |
|
课题毕业论文、文献综述、任务书、外文翻译、程序设计、图纸设计等资料可联系客服协助查找。