无忧论文网 · 始于1999 · 学术论文辅导与论文发表推荐服务

一种自适应框架的Web应用程序 An Adaptive Programming Framework for Web Applications

栏目
论文
具体类型
文献翻译
语言
中文
用途
范文参考
更新
关键词
自适应框架Web应用程序WEB
分类标签
翻译相关英语论文翻译
原站著录信息
原编号
lw200906261516558362
原文字数
12,893 字
原文件格式
DOC
原库登记日期
2009-06-26

摘要

Abstract:Web applications service a gamut of users with a mix of static and dynamic resources: requests come from different devices running different Web agents (typically, Web browsers) with different capabilities. In a majority of such interactions, services…

Abstract:Web applications service a gamut of users with a mix of static and dynamic resources: requests come from different devices running different Web agents (typically, Web browsers) with different capabilities. In a majority of such interactions, services are embedded in an HTML page and displayed on a Web browser. Consequently, Web application development has been tightly coupled with the platforms that a particular site intends to support; application developers have been asked to decide “where to run what” at design time to develop services using locationspecific technologies and interweave them with static resources. Such difficulties stem from lack of adequate infrastructural support for platform-agnostic development and deployment framework. This paper presents the design and implementation of a framework for Web application development which hides the heterogeneity of the Internet and the underlying interaction model. It has been meticulously designed such that it is non-intrusive and requires little change to the existingWeb infrastructure. The framework is built on top of a programming model that provides a uniform view across different patforms and thus hides the heterogeneity and distributivity of the Internet. Adaptive deployment involves placement specification and compiler translation. The uniformity gives rise to rapid prototyping and development, thereby reducing costs and improving productivity. The adaptiveness enables QoS aware service provisioning.

1. Introduction

After a decade of evolution the Web has become a “living organism,” feeding on fresh data, producing new information and services, and shedding obsolete ones. We observe two important results of the evolution. First, Web servers increasingly serve as an information and service conduit for organizations. More and more raw data are generated from geographically distributed dynamic sources (e.g., network monitoring tools, a network of sensors, etc). Web applications process such raw data (i.e., dynamic contents) and combine them with static elements to compose an HTML/XML page on the way to users (i.e., dynamic page generation). Some applications sprinkle HTML pages with codelets to harness computational resources at client side for shorter response time and less communication traffic. Second, the simple client-server model of the Web gave way to a deep infrastructure where multiple intermediaries (e.g., edge servers [11, 6, 10], proxy caches [1, 4]) are transparently located in between clients and servers. Typically, client, intermediary and server platforms carry different technologies (e.g., VBScript, JavaScript). Given such a highly non-uniform execution environment it is clear that a monolithic approach to Web application development cannot fulfill equally well different quality-of-service (QoS) requirements of diverse users.

Instead of addressing the problem from the root, theWeb community chose an easy solution of making Web application development platform-dependent. For example, a Web site built with PHP may want to service a request from Microsoft Internet Explorer 6.0 which supports VBScript over a broadband connection, and the response may be cached in Akamai’s edge servers. We call this combination of platforms and technologies a request context. Given a request context developers are asked to answer the question of “where to run which codelet” at design time and then implement each codelet using the particular technology supported at the platform on which the codelet will be executed. In practice, most Web sites do not support all possible platforms and technologies. Rather, they settle with dominant technologies, alienating “non-conformist” users with the sign of ‘this page is best viewed with Browser X’ [14]. For those Web sites the reasoning is purely economical: to keep up with technology advances and to provide a certain level of QoS guarantee, they can afford to support only a few dominant request contexts. The difficulties stem from lack of appropriate infrastructural support.
We argue that platform-agnostic development and adaptive deployment may serve as a cost-effective alternative to today’s Web application development practice. Platformindependent application development and deployment offers other benefits. First, it enables portable application development which reduces development and maintenance cost. Applications become immune to external environment changes, such as upgrade of interconnection networks and introduction of a new information appliance. Second, different users are guaranteed a certain QoS level. Those who access a site from a less capable platform are not overly penalized. Nevertheless, the sheer volume of the Web and its laissez-faire nature present unique challenges for platformindependent programming. A naive design may require substantial changes to the existing Web infrastructure. We all know well that Java’s attempt to create a uniform execution environment on the Web has enjoyed only a limited success.
We present a framework for platform-agnostic development and adaptive deployment of Web applications 1 and describe its design and implementation. The framework consists of four components: a programming model, a scripting language, a placement specification language, and a retargetable translator. We designed the framework with great care such that it is non-intrusive and easily plugged in with little change to the existing Web infrastructure.
The platform independence comes from separating placement concerns from application logic [7, 8] and using an object-based programming model to describe the latter. Abstractions in the programming model create a uniform view (at the conceptual level) over different platforms and hide the heterogeneity and geographical distribution of the Internet below it. The uniformity gives rise to rapid prototyping and development, thereby reducing development costs and improving productivity. Adaptive deployment involves separate placement specification. The translator takes a platform-independent application implementation and generates a customized version according to a given placement specification. The explicit translation with the separate placement specification exposes platform specifics rather than hides them, enabling platform-specific optimizations and QoS aware service provisioning.

2  Motivation
Two most critical decisions that Web application developers have to make at design time are “where to run” and “when to load.” The desire to find the best answers to the questions motivated our work reported in the paper. In a traditional distributed environment where certain uniformity is taken for granted (e.g., Java Virtual Machines), the decision making can be put off till deployment time with little adverse implication. By contrast, Web application developers should make right decisions early in the design phase since reverting them later would cost dearly. In this section we examine these issues in detail.
Location matters. Dynamic page generation is the most essential functionality of almost all Web applications. For one thing, it enables personalized browsing. Before the advent of DOM-enabled browsers the dynamic page generation has been done exclusively at server side. For a DOMenabled browser, however, a Web server may harness the browser’s dynamic content modification capability to delegate the responsibility to the browser by sending a page generation script along with raw data. Client-side page generation is preferred in terms of network bandwidth when a final HTML or XML document is much larger than the raw data in size. Also, it may help reduce server load when the page generation is time consuming. On the other hand, processing classified data and executing a sensitive processing logic should remain within the server boundary. Input validation is another example. User inputs can be validated local