149是什么意思| 1.19是什么星座| 心悸心慌吃什么药最好| 脱敏处理是什么意思| 实时播报什么意思| 给猫咪取什么名字好听| 排卵期出血是什么颜色| 51岁属什么| mw是什么意思| 斜视手术有什么后遗症和风险| 大脑供血不足是什么原因引起的| sanyo是什么牌子| 6月24日是什么日子| 卵泡长得慢是什么原因造成的| 血沉是查什么| 猫的祖先是什么动物| 臀疗是什么| 清炖排骨汤放什么调料| 肠胃炎可以吃什么| 桥本是什么| 妊娠试验阴性是什么意思| 春天可以干什么| 额头老出汗是什么原因| 12月10日是什么星座| 什么茶降血糖| 大姨妈期间不能吃什么东西| 蟑螂喜欢吃什么东西| 长期吃避孕药有什么危害| 查抗体是做什么检查| 圆坟是什么意思| 骨转移是什么意思| 腰间盘突出睡觉什么姿势好| 乳腺结节吃什么药| 用什么点豆腐最健康| 外耳道发炎用什么药| 未病是什么意思| 球蛋白高是什么原因| 悼念是什么意思| 梦见剪头发是什么意思| 尿道感染用什么消炎药| 心字旁的字有什么| 7月4日是什么星座| 界限性脑电图是什么意思| 肾上腺彩超是检查什么| 喝茶有什么好处| 殿试第一名叫什么| 爬坡是什么意思| 五行属土缺命里缺什么| 肺ca是什么病| 左边偏头痛什么原因| 疱疹是一种什么病| 周围神经病是什么病| 摄人心魄是什么意思| 骑单车锻炼什么好处| 女人梦见狗是什么预兆| 胎发什么时候剃最合适| 腿肿是什么病的前兆| 紧急避孕药什么时候吃最有效| 城隍庙求什么最灵| 2r是什么意思| 志司是什么意思| 驻马店古代叫什么| 为什么痛经| 1950年是什么年| 白肉是什么肉| 麻木是什么原因引起的| 气阴两虚吃什么药| 晚上七点多是什么时辰| 挂科有什么影响| 上海为什么叫上海| 做四维需要准备什么| 慈禧和溥仪是什么关系| 流产是什么意思| 蛇用什么呼吸| 皮肤病吃什么药最好| 牛肉和什么不能一起吃| 鸡血藤有什么功效| 林俊杰的粉丝叫什么| 六点半是什么时辰| 孑孓什么意思| 腹腔淋巴结肿大是什么原因| 测尿酸挂什么科| 法盲是什么意思| 附睾炎吃什么药| 痛风可以吃什么水果| 智力是什么意思| 什么是瞬时速度| 五花八门是指什么生肖| 指甲花学名叫什么| 富氢水是什么| 疔是什么意思| 宇宙之外是什么| 18kgp是什么金| 5月出生是什么星座| 降真香是什么| dm是什么意思| 万能受血者是什么血型| 子叶是什么| 那悲歌总会在梦中惊醒是什么歌| 双氧奶是什么| 蛇跟什么生肖最配| acei是什么意思| 安大爷是什么意思| 什么像| 浓茶喝多了有什么危害| 紫癜是什么病 严重吗| 胎心快是什么原因| 肺气阴两虚吃什么中成药| dt是什么意思| 嗡阿吽是什么意思| 治白内障用什么药最好| 夏至为什么吃馄饨| 爆菊是什么意思| 胆囊壁稍毛糙是什么意思| 宝宝囟门什么时候闭合| 珙桐是什么植物| 黑户是什么意思| 梦见病人好了什么预兆| 肚子拉稀像水一样是什么情况| 什么是滑脉| 右眼皮跳是什么意思| 蜘蛛怕什么| 吃东西感觉口苦是什么原因| 子宫发炎是什么原因引起的| 六月种什么菜| 下午2点是什么时辰| 什么植物驱蚊效果最好| 乳腺结节不能吃什么| 孩子发烧手脚冰凉是什么原因| 淋巴细胞高是什么意思| 肝癌是什么| 手容易出汗是什么原因| 单从属于什么茶| 幼儿园什么时候放暑假| 针眼长什么样子图片| 白鱼又叫什么鱼| cu什么意思| 长沙有什么学校| 逍遥丸适合什么人吃| 屁多且臭是什么原因| 党内的最高处分是什么| 满文军现在在干什么| 龙凤胎是什么意思| 梦见自己疯了什么意思| 酸奶什么时候喝好| pco是什么意思| 怎么算自己五行缺什么| 狗冲什么生肖| 40岁属什么生肖| 00属什么| 什么木质手串最好| 减肥中午吃什么比较好| 羊肉和什么一起炖最好| 玄关是什么位置| 出气不顺畅是什么原因| 喝椰子粉有什么好处| 仙人掌能治什么病| 手掌有痣代表什么| 舌头痛吃什么药好| 与其让你在我怀中枯萎是什么歌| 闪购是什么意思| 36周检查什么项目| rpl是什么意思| 喉咙发炎吃什么药| 脚长水泡是什么原因| 芒果吃多了有什么坏处| 豆角没熟中毒什么症状| 垚字是什么意思| 红海为什么叫红海| 破处什么感觉| 为什么怀孕了就不来月经了| 双向情感障碍症是什么病| 精工手表什么档次| 侏儒症是缺乏什么元素| 为什么会高反| 染什么颜色| 口加女念什么| 头孢加酒有什么反应| 女人养颜抗衰老吃什么最好| 张靓颖什么星座| 湿疹为什么一热就出来| 梦见刀是什么意思| 村里入党需要什么条件| 为什么叫西瓜| 四十属什么| 木薯淀粉是什么做的| 文定之喜是什么意思| 猫怕什么气味| 白炽灯属于什么光源| 脑白质病变是什么病| 胸膜炎挂什么科| 想要什么样的爱| 散光400度是什么概念| 心脏长什么样| 心脏痛什么原因| 施教区是什么意思| 葛根粉吃了有什么好处| 尿路感染要吃什么药| 肚脐有分泌物还发臭是什么原因| 三顾茅庐的顾是什么意思| 双肺门不大是什么意思| 虎皮兰开花寓意什么| 怎么看微信好友什么时候加的| 日落西山是什么生肖| 心功能不全是什么意思| 大脑精神紊乱什么病| 河南为什么叫河南| 梦到棺材什么意思| 顺手牵羊是什么生肖| 甜菜是什么菜| 肌肉拉伤是什么感觉| rdw是什么意思| pv是什么意思| 睡觉一直做梦是什么原因| 四肢肌力5级什么意思| 月经第三天属于什么期| 七月一日什么节| 高考成绩什么时间公布| 屈光参差是什么意思| 焦虑症吃什么药好得快| 小腹一直疼是什么原因| 冠脉cta是什么检查| reading是什么意思| 七月份吃什么水果| 升结肠管状腺瘤是什么意思| 痔疮疼痛用什么药| 梦见做鞋子是什么意思| 2028年是什么年| 足字旁的字跟什么有关| 至字五行属什么| 肠梗阻是什么病| 无花果什么品种最好吃| 乙肝抗体阳性是什么意思| 地包天是什么意思| 糖类抗原125偏高是什么原因| 蝉又叫什么名字| 红红的眼睛是什么生肖| 外阴瘙痒用什么洗液| 高胆固醇血症是什么病| 为什么痛经| 脂溢性脱发用什么药| 寒性和凉性有什么区别| 世事无常是什么意思| 尿味道很重是什么原因| 补充电解质是什么意思| 手臂上长痣代表什么| 什么是共产主义社会| 童养媳是什么意思| 巨蟹座的幸运色是什么颜色| 画饼充饥是什么意思| 腱鞘炎是什么原因| 京东京豆有什么用| 什么是hr| 尿酸高适合吃什么食物| 喝最烈的酒下一句是什么| 什么满园| h家是什么牌子| 金国是现在的什么地方| 马凡氏综合症是什么病| 因特网是什么意思| 肺火吃什么中成药| 长沙有什么玩的| 镁是什么| lg手机是什么牌子| 百度
by Tony Sintes

世界睡眠日:谁动了你的睡眠

news
Aug 23, 20026 mins

How do Web and application servers fit into the enterprise?

百度 镜头二此段鱼鳞大石塘始建于清乾隆元年至二年(1736-1737),文献中称为海宁城南绕城石塘,现存海塘主体为清同治五年(1866)重新拆筑。

August 23, 2002

Q: What is the difference between an application server and a Web server?

A:

A Web server exclusively handles HTTP requests, whereas an application server serves business logic to application programs through any number of protocols.

Let’s examine each in more detail.

The Web server

A Web server handles the HTTP protocol. When the Web server receives an HTTP request, it responds with an HTTP response, such as sending back an HTML page. To process a request, a Web server may respond with a static HTML page or image, send a redirect, or delegate the dynamic response generation to some other program such as CGI scripts, JSPs (JavaServer Pages), servlets, ASPs (Active Server Pages), server-side JavaScripts, or some other server-side technology. Whatever their purpose, such server-side programs generate a response, most often in HTML, for viewing in a Web browser.

Understand that a Web server’s delegation model is fairly simple. When a request comes into the Web server, the Web server simply passes the request to the program best able to handle it. The Web server doesn’t provide any functionality beyond simply providing an environment in which the server-side program can execute and pass back the generated responses. The server-side program usually provides for itself such functions as transaction processing, database connectivity, and messaging.

While a Web server may not itself support transactions or database connection pooling, it may employ various strategies for fault tolerance and scalability such as load balancing, caching, and clustering—features oftentimes erroneously assigned as features reserved only for application servers.

The application server

As for the application server, according to our definition, an application server exposes business logic to client applications through various protocols, possibly including HTTP. While a Web server mainly deals with sending HTML for display in a Web browser, an application server provides access to business logic for use by client application programs. The application program can use this logic just as it would call a method on an object (or a function in the procedural world).

Such application server clients can include GUIs (graphical user interface) running on a PC, a Web server, or even other application servers. The information traveling back and forth between an application server and its client is not restricted to simple display markup. Instead, the information is program logic. Since the logic takes the form of data and method calls and not static HTML, the client can employ the exposed business logic however it wants.

In most cases, the server exposes this business logic through a component API, such as the EJB (Enterprise JavaBean) component model found on J2EE (Java 2 Platform, Enterprise Edition) application servers. Moreover, the application server manages its own resources. Such gate-keeping duties include security, transaction processing, resource pooling, and messaging. Like a Web server, an application server may also employ various scalability and fault-tolerance techniques.

An example

As an example, consider an online store that provides real-time pricing and availability information. Most likely, the site will provide a form with which you can choose a product. When you submit your query, the site performs a lookup and returns the results embedded within an HTML page. The site may implement this functionality in numerous ways. I’ll show you one scenario that doesn’t use an application server and another that does. Seeing how these scenarios differ will help you to see the application server’s function.

Scenario 1: Web server without an application server

In the first scenario, a Web server alone provides the online store’s functionality. The Web server takes your request, then passes it to a server-side program able to handle the request. The server-side program looks up the pricing information from a database or a flat file. Once retrieved, the server-side program uses the information to formulate the HTML response, then the Web server sends it back to your Web browser.

To summarize, a Web server simply processes HTTP requests by responding with HTML pages.

Scenario 2: Web server with an application server

Scenario 2 resembles Scenario 1 in that the Web server still delegates the response generation to a script. However, you can now put the business logic for the pricing lookup onto an application server. With that change, instead of the script knowing how to look up the data and formulate a response, the script can simply call the application server’s lookup service. The script can then use the service’s result when the script generates its HTML response.

In this scenario, the application server serves the business logic for looking up a product’s pricing information. That functionality doesn’t say anything about display or how the client must use the information. Instead, the client and application server send data back and forth. When a client calls the application server’s lookup service, the service simply looks up the information and returns it to the client.

By separating the pricing logic from the HTML response-generating code, the pricing logic becomes far more reusable between applications. A second client, such as a cash register, could also call the same service as a clerk checks out a customer. In contrast, in Scenario 1 the pricing lookup service is not reusable because the information is embedded within the HTML page. To summarize, in Scenario 2’s model, the Web server handles HTTP requests by replying with an HTML page while the application server serves application logic by processing pricing and availability requests.

Caveats

Recently, XML Web services have blurred the line between application servers and Web servers. By passing an XML payload to a Web server, the Web server can now process the data and respond much as application servers have in the past.

Additionally, most application servers also contain a Web server, meaning you can consider a Web server a subset of an application server. While application servers contain Web server functionality, developers rarely deploy application servers in that capacity. Instead, when needed, they often deploy standalone Web servers in tandem with application servers. Such a separation of functionality aids performance (simple Web requests won’t impact application server performance), deployment configuration (dedicated Web servers, clustering, and so on), and allows for best-of-breed product selection.

Tony Sintes is an independent consultant and founder of First Class Consulting, a consulting firm that specializes in bridging disparate enterprise systems and training. Outside of First Class Consulting, Tony is an active freelance writer, as well as author of Sams Teach Yourself Object-Oriented Programming in 21 Days (Sams, 2001; ISBN: 0672321092).
鸡眼用什么药 早上起来口干口苦是什么原因 酸奶有什么好处 脑软化灶是什么意思 脊椎和脊柱有什么区别
四柱是什么意思 空调抽湿是什么意思 女人打呼噜是什么原因 守护神是什么意思 药娘吃的什么药
10月是什么星座 什么的遐想 教主是什么意思 一个雨一个散念什么 为什么会有阴虱子
省政协主席什么级别 稀饭和粥有什么区别 人体缺钾是什么原因引起的 早上起来眼皮肿是什么原因 百事可乐和可口可乐有什么区别
打鸟是什么意思hcv8jop8ns0r.cn 颈动脉有斑块吃什么药hcv8jop5ns8r.cn 这是什么情况hcv9jop3ns7r.cn 为什么老打嗝hcv8jop8ns3r.cn 用什么水和面烙饼最软hcv7jop5ns0r.cn
四个火读什么jasonfriends.com 什么情况下要割包皮hcv9jop2ns0r.cn 1908年中国发生了什么wzqsfys.com 女生适合喝什么茶hcv8jop1ns5r.cn 蛊是什么xjhesheng.com
6.10号是什么星座hcv7jop5ns0r.cn 梦见手机坏了是什么意思hanqikai.com 前列腺增大吃什么药hcv8jop1ns5r.cn 值太岁是什么意思hcv7jop9ns6r.cn 什么茶不能喝hcv8jop8ns6r.cn
老炮是什么意思hcv8jop3ns4r.cn 拉黑色的屎是什么原因hcv8jop1ns4r.cn 咳喘是什么原因hcv9jop6ns0r.cn 虎眼石五行属什么hcv8jop3ns6r.cn 心脾两虚吃什么药hcv7jop5ns1r.cn
百度