【正文】
d scholar ink guest to shake flag self cry out , advertisement flies all over the sky , may be called benevolent to see kernel, sage sees wisdom C/S configures inferior position and the advantage of software ( 1 ) Application server operation data load is light paratively. The database application of the most simple architecture of C/S is bee by two partial groups, customer applies program and database server program. Both can be called as proscenium program and the program of backstage supporter respectively. The machine of operation database server program is also called as application server. Once server program had been started , waits the request concerning responding customer program hair at any time。 If need differently only, server connection specially , realize longrange maintenance and upgrading and share. So client puter more and more thin , and server more and more fat is the direction of main stream of future informative development. In the future, software upgrading and maintenance will be more and more easy , and use can more and more simple, this is for user manpower , material resources, time and cost save is obvious , it is astonishing. Therefore defend and escalate revolutionary way is the client puter it is thin , is fat server. ( 2 ) Cost reduction, it is more to select. All know windows in the puter of top of a table on nearly one Tong world, browser has bee standard disposition, but on server operating system, windows is in absolute dominance position not. Current tendency is the application management software that uses the configuration of B/S all , need to install only in Linux server on , and safety is high. The so server option of operating system is many, no matter choosing those operating system, can let the most of ones use windows in order to the puter of top of a table of operating system does not get influence, this for make most popular free Linux operating system develop fast, Linux except operating ASP 外文翻譯 +原文 xinxiasd 10 system is free besides, it is also free to link database, this kind of option is very pupular. Say, many persons on daily, Sina website s , so long as having installed browser for can , and what need not know the server of Sina website to use is that what operating system, and in fact the most of websites do not use windows operating system really, but the puter of user is most of as installing to be windows operating system. ( 3 ) Application server operation data load value paratively. Since B/S configures management, software installation in server end ( Server ) on, it is been all right that work administrator need to manage server only, the user interface major logic of general affairs in server ( Server ) end pass through WWW browser pletely realization, lose the logic of general affairs very much in front( Browser) realization, all customer ends has only browser, work administrator need to do hardware maintenance only. But application server operation data load is heavier, once occuring server collapse to wait for problem, consequence is unimaginable. Therefore a lot of units have database to stock server , are ready for any eventuality. 原文翻譯 : 利用 ASP 開發(fā) Web 應(yīng)用程序首先必須確立 Web 應(yīng)用的體系結(jié)構(gòu)。 C/S 體系結(jié)構(gòu)即 client/server, 客戶端 /服務(wù)器端。 客戶 /服務(wù)器( Client/Server)模型是一種良好的軟件體系結(jié)構(gòu),是網(wǎng)絡(luò)的最佳應(yīng)用模式之一。網(wǎng)絡(luò)各站點主機上資源(硬件、軟件、數(shù)據(jù))分步不均衡,在客戶 /服務(wù)器結(jié)構(gòu)下,無資源的客戶機通過向有資源的服務(wù)器發(fā)出請求,并得到資源請求,從而適應(yīng)網(wǎng)絡(luò)中資源分布的不均衡性。如下圖: ASP 外文翻譯 +原文 xinxiasd 11 從技術(shù)角度講,“客戶機”和“服務(wù)器”都是邏輯的概念,其含義是:將計算機網(wǎng)絡(luò)應(yīng)用分成兩大部分,其中一部分支持多個用戶共享的功能與資源,它由服務(wù)器來實現(xiàn);另一部分是面向每個用戶的,由客戶機來實現(xiàn),也就是說,客戶機通常執(zhí)行前臺功能,通過用戶界面實現(xiàn)人機對話,或是執(zhí)行用戶特定的應(yīng)用程序。對于一臺計算機來說,它可以具有雙重功能,在某一時刻充當服務(wù)器,而在另一時刻又成為客戶機。為了能夠提供服務(wù),服務(wù)器一方必須具有一定的硬件和相應(yīng)的服務(wù)器軟件;同樣,客戶一方也必須具有一定的硬件和相應(yīng)的客戶軟件。 將客戶 /服務(wù)器模型應(yīng)用于 Inter 服務(wù), 客戶與服務(wù)器之間的關(guān)系并不是一成不變的。如在進行文件傳輸時,如果把提供文件的一方稱為服務(wù)器,把獲取文件的一方稱為客戶,則在使用get 或 mget 命令從另一個節(jié)點取文件時,可以認為自己使用的及其是客戶機,在使用 put 或 mput命令向另一個節(jié)點發(fā)送文件時又可以認為自己使用的機器是服務(wù)器??蛻魬?yīng)用是原來客戶應(yīng)用的一部分,另一部 分被移入服務(wù)器應(yīng)用中。因此其結(jié)構(gòu)就變成了新的( Client 應(yīng)用 +Server 應(yīng)用) /Server 結(jié)構(gòu)。同時,由于把許多業(yè)務(wù)邏輯集中到了 單一的應(yīng)用服務(wù)器上,應(yīng)用系統(tǒng)的維護工作也被集中到了一起,消除了傳統(tǒng) Client/Server結(jié)構(gòu)中軟件分發(fā)的問題。 B/S 體系結(jié)構(gòu)即 Browser/Server,瀏覽器 /服務(wù)器端。 在 Browser/Server 的系統(tǒng)中,用戶可以通過瀏覽器向分布在網(wǎng)絡(luò)上的許多服務(wù)器發(fā)出請求。 在 Browser/Server 三層體系結(jié)構(gòu)下,表示層 (Presentatioon)、功能層 (Business Logic)、數(shù)據(jù)層 (Data Service)被割成三個相對獨立的單元: 第一層 表示層: Web 瀏覽器 。它的任務(wù)是由 Web 瀏覽器向網(wǎng)絡(luò)上的某一 Web 服務(wù)器提出服務(wù)請求, Web 服務(wù)器對用戶身份進行驗證后用HTTP 協(xié)議把所需的主頁傳送給客戶端,客戶機接受傳來的主頁文件,并把它顯示在 Web 瀏覽器上。 在功能層中包含系統(tǒng)的事務(wù)處理邏輯,位于 Web 服務(wù)器端。 第三層 數(shù)據(jù)層:數(shù)據(jù)庫服務(wù)器 。它的任務(wù)是接受 Web 服務(wù)器對數(shù)據(jù)庫操縱的請求,實現(xiàn)對數(shù)據(jù)庫查詢、修改、更新等功能,把運行結(jié)果提交給 Web 服務(wù)器。這種三層體系結(jié)構(gòu)如下圖所示。由于客戶機把事務(wù)處理邏輯部分分給了功能服務(wù)器,使客戶機一下子 “ 苗條 ” 了許多,不再負責(zé)處理復(fù)雜計算和數(shù)據(jù)訪問等關(guān)鍵事務(wù),只負責(zé)顯示部分,所以維護人員不再為程序的維護工作奔波于每個客戶機之間,而把主要精力放在功能服務(wù)器上程序的更新工作。它從根本上改變了傳統(tǒng)的二層 Client/Server 體系結(jié)構(gòu)的缺陷,它是應(yīng)用系統(tǒng)體系結(jié)構(gòu)中一次深刻的變革。 Browser/Server 所采用的標準都是開放的、非專用的,是經(jīng)過標準化組織所確定的而非單一廠商所制定,保證了其應(yīng)用的通用性和跨平臺性。 Browser/Server 的應(yīng)用只需在客戶端裝有通用的瀏覽器即可,維護和升級工作都在服務(wù)器端進行,不需對客戶端進行任何改變,故而大大降低了開發(fā)和維護的成本。 Browser/Server 用戶的界面都統(tǒng)一在瀏覽器上,瀏覽器 易于使用、界面友好,不須再學(xué)習(xí)使用其它的軟件,一勞永逸的解決了用戶的使用問題。 Browser/Server 的客戶端不再負責(zé)數(shù)據(jù)庫的存取和復(fù)雜數(shù)據(jù)計算的等任務(wù),只需要其進行顯示,充分發(fā)揮了服務(wù)器的強大作用,這樣就大大的降低了對客戶端的要求,客戶端變得非常 “ 瘦 ” 。 Browser/Server 系統(tǒng)的三部分模塊各自相對獨立,其中一部分模塊改變時其它模塊不受影響,系統(tǒng)改進變得非常容易,且可以用不同廠家的產(chǎn)品來組成性能更佳的系統(tǒng)。Browser/Server 系統(tǒng)在客戶機與數(shù)據(jù)庫服務(wù)器之間增加了一層 Web 服務(wù)器,使兩者不再直接相連,客戶機無法直接對數(shù)據(jù)庫操縱,有效地防止用戶的非法入侵。 由此我們選擇 B/S 架構(gòu)作為系統(tǒng)開發(fā)的體系結(jié)構(gòu) 。 (1) 什么是 C/S 結(jié)構(gòu)。它是軟件系統(tǒng)體系結(jié)構(gòu),通過它可以充分利用兩端硬件環(huán)境的優(yōu)勢,將任務(wù)合理分配到Client 端和 Server 端來 實現(xiàn),降低了系統(tǒng)的通訊開銷。這也就是目前應(yīng)用系統(tǒng)的發(fā)展方向。由于沒能提供用戶真正期望的開放環(huán)境, C/S 結(jié)構(gòu)的軟件需要針對不同的操作系統(tǒng)系統(tǒng)開發(fā)不同版本的軟件, 加之產(chǎn)品的更新?lián)Q代十分快,已經(jīng)很難適應(yīng)百臺電腦以上局域網(wǎng)用戶同時使用。如我院使用的上海超蘭公司“案件統(tǒng)計”管理軟件就是典型的 C/ S 體系結(jié)構(gòu)管理軟件。 B/S( Browser/Server)結(jié)構(gòu)即瀏覽器和服務(wù)器結(jié)構(gòu)。在這種結(jié)構(gòu)下,用戶工作界面是通過 WWW 瀏覽器來實現(xiàn),極少部分事務(wù) 邏輯在前端( Browser)實現(xiàn),但是主要事務(wù)邏輯在服務(wù)器端( Server)實現(xiàn),形成所謂三層 3tier 結(jié)構(gòu)。以目前的技術(shù)看,局域網(wǎng)建立 B/S 結(jié)構(gòu)的網(wǎng)絡(luò)應(yīng)用,并通過 Inter/Intra 模式下數(shù)據(jù)庫應(yīng)用,相對易于把握、成本也是較低的。目前我院內(nèi)網(wǎng)( Intra)、外網(wǎng)( Inter)和北京東方清大公司“案件、辦公管理軟件”就是 B/S 結(jié)構(gòu)管理軟件,干警在局域網(wǎng)各工作站通過 WWW 瀏覽器就能實現(xiàn)工作業(yè)務(wù)。 (3) 管理軟件主流技術(shù)。首先,界面技術(shù)從上世紀 DOS 字符界面到 Windows 圖形界面(或圖形用戶界面 GUI),直至 Browser 瀏 覽器界面 三 個不同的