Jump to content

Web application: Difference between revisions

From Wikipedia, the free encyclopedia
Content deleted Content added
m added internal links
(13 intermediate revisions by 11 users not shown)
Line 6: Line 6:
{{Cleanup rewrite|reason=quality standards|date=May 2022}}
{{Cleanup rewrite|reason=quality standards|date=May 2022}}
}}
}}
[[File:Horde-portal.png|thumb|Horde groupware is an open-source web application.]]
[[File:Horde-portal.png|thumb|Screenshot from 2007 of [[Horde (software)|Horde]], a groupware and open-source web application]]
A '''web application''' (or '''web app''') is [[application software]] that is accessed using a [[web browser]]. Web applications are delivered on the [[World Wide Web]] to users with an active network connection.<ref>{{cite web
A '''web application''' (or '''web app''') is [[application software]] that is accessed using a [[web browser]]. Web applications are delivered on the [[World Wide Web]] to users with an active network connection.<ref>{{cite web
|url=https://www.stackpath.com/edge-academy/what-is-a-web-application/
|url=https://www.stackpath.com/edge-academy/what-is-a-web-application/
Line 15: Line 15:
|publisher=Stack Path
|publisher=Stack Path
|access-date=2022-08-15
|access-date=2022-08-15
|quote=A web application is a computer program that utilizes web browsers and web technology to perform tasks over the Internet.}}</ref>
|quote=A web application is a computer program that utilizes web browsers and web technology to perform tasks over the Internet.
|archive-date=2022-08-15
|archive-url=https://web.archive.org/web/20220815132706/https://www.stackpath.com/edge-academy/what-is-a-web-application/
|url-status=live
}}</ref>

[[Single-page application|Single-page]] and [[progressive web app|progressive]] are two approaches for a [[website]] to [[user experience|seem]] more like a [[Native (computing)|native]] app.


==History==
==History==
In earlier computing models like client-server, the processing load for the application was shared between code on the server and code installed on each client locally. In other words, an application had its own pre-compiled client program which served as its [[user interface]] and had to be separately installed on each user's [[personal computer]]. An upgrade to the server-side code of the application would typically also require an upgrade to the client-side code installed on each user workstation, adding to the [[technical support|support]] cost and decreasing [[productivity]]. In addition, both the client and server components of the application were usually tightly bound to a particular [[computer architecture]] and [[operating system]] and [[porting]] them to others was often prohibitively expensive for all but the largest applications (Nowadays,{{when|date=February 2023}} [[native app]]s for mobile devices are also hobbled by some or all of the foregoing issues).{{Dubious|reason=This paragraph appears to be an (incorrect) original research as the mainframe applications used terminal access before PC-era client-server architecture ever appeared.|date=November 2022}}
In earlier computing models like client-server, the processing load for the application was shared between code on the server and code installed on each client locally. In other words, an application had its own pre-compiled client program which served as its [[user interface]] and had to be separately installed on each user's [[personal computer]]. An upgrade to the server-side code of the application would typically also require an upgrade to the client-side code installed on each user workstation, adding to the [[technical support|support]] cost and decreasing [[productivity]]. In addition, both the client and server components of the application were usually tightly bound to a particular [[computer architecture]] and [[operating system]] and [[porting]] them to others was often prohibitively expensive for all but the largest applications (Nowadays,{{when|date=February 2023}} [[native app]]s for mobile devices are also hobbled by some or all of the foregoing issues).{{Dubious|reason=This paragraph appears to be an (incorrect) original research as the mainframe applications used terminal access before PC-era client-server architecture ever appeared.|date=November 2022}}


In 1995, [[Netscape]] introduced a [[client-side scripting]] language called [[JavaScript]] allowing programmers to add some [[Dynamic HTML|dynamic elements]] to the user interface that ran on the client side. So instead of sending data to the server in order to generate an entire web page, the embedded scripts of the downloaded page can perform various tasks such as input validation or showing/hiding parts of the page.<ref>{{Cite web|url=https://www.zdnet.com/article/javascript-creator-eich-my-take-on-20-years-of-the-worlds-top-programming-language/|title=JavaScript creator Eich: My take on 20 years of the world's top programming language|last=Liam Tung|website=[[ZDNet]]|date=2020-06-15}}</ref>
In 1995, [[Netscape]] introduced a [[client-side scripting]] language called [[JavaScript]], allowing programmers to add some [[Dynamic HTML|dynamic elements]] to the user interface that ran on the client side. So instead of sending data to the server in order to generate an entire web page, the embedded scripts of the downloaded page can perform various tasks such as input validation or showing/hiding parts of the page.<ref>{{Cite web|url=https://www.zdnet.com/article/javascript-creator-eich-my-take-on-20-years-of-the-worlds-top-programming-language/|title=JavaScript creator Eich: My take on 20 years of the world's top programming language|last=Liam Tung|website=[[ZDNet]]|date=2020-06-15|access-date=2021-10-18|archive-date=2023-09-26|archive-url=https://web.archive.org/web/20230926113150/https://www.zdnet.com/article/javascript-creator-eich-my-take-on-20-years-of-the-worlds-top-programming-language/|url-status=live}}</ref>


In 1999, the "web application" concept was introduced in the Java language in the Servlet Specification version 2.2. [2.1?].<ref>{{Cite book |last1=Davidson |first1=James Duncan |url=http://java.sun.com/products/servlet/download.html |title=Java Servlet Specification ("Specification") Version: 2.2 Final Release |last2=Coward |first2=Danny |date=1999-12-17 |publisher=[[Sun Microsystems]] |pages=43–46 |access-date=2008-07-27}}</ref>{{Primary source inline|date=November 2022}} At that time both JavaScript and [[XML]] had already been developed, but [[Ajax (programming)|Ajax]] had still not yet been coined and the [[XMLHttpRequest]] object had only been recently introduced on Internet Explorer 5 as an [[ActiveX]] object.{{Citation needed|date=November 2022|reason=Historical role of Java, ActiveX and later XMLHTTPRequest (which doesn't really have to do anything with XML) should be described using a source. Existing original research is misleading to a point of being useless for someone unfamiliar with the subject.}}
In 1999, the "web application" concept was introduced in the [[Java language]] in the Servlet Specification version 2.2. [2.1?].<ref>{{Cite book |last1=Davidson |first1=James Duncan |url=http://java.sun.com/products/servlet/download.html |title=Java Servlet Specification ("Specification") Version: 2.2 Final Release |last2=Coward |first2=Danny |date=1999-12-17 |publisher=[[Sun Microsystems]] |pages=43–46 |access-date=2008-07-27 |archive-date=2010-01-07 |archive-url=https://web.archive.org/web/20100107143001/http://java.sun.com/products/servlet/download.html |url-status=dead }}</ref>{{Primary source inline|date=November 2022}} At that time both JavaScript and [[XML]] had already been developed, but [[Ajax (programming)|Ajax]] had still not yet been coined and the [[XMLHttpRequest]] object had only been recently introduced on [[Internet Explorer 5]] as an [[ActiveX]] object.{{Citation needed|date=November 2022|reason=Historical role of Java, ActiveX and later XMLHTTPRequest (which doesn't really have to do anything with XML) should be described using a source. Existing original research is misleading to a point of being useless for someone unfamiliar with the subject.}}


Applications like [[Gmail]] started to make their client sides more and more interactive since early 2000s. A web page script is able to contact the server for storing/retrieving data without downloading an entire web page. The practice became known as Ajax in 2005.<ref>{{Cite web |url=https://thehistoryoftheweb.com/what-does-ajax-even-stand-for/ |title=What Does AJAX Even Stand For? |last=Jay Hoffmann |date=2019-03-04 |access-date=2021-10-18}}</ref>
Applications like [[Gmail]] started to make their client sides more and more interactive since early 2000s. A web page script is able to contact the server for storing/retrieving data without downloading an entire web page. The practice became known as [[Ajax_(programming)|Ajax]] in 2005.<ref>{{Cite web |url=https://thehistoryoftheweb.com/what-does-ajax-even-stand-for/ |title=What Does AJAX Even Stand For? |last=Jay Hoffmann |date=2019-03-04 |access-date=2021-10-18 |archive-date=2021-10-18 |archive-url=https://web.archive.org/web/20211018034604/https://thehistoryoftheweb.com/what-does-ajax-even-stand-for/ |url-status=live }}</ref>


"[[Progressive web app]]s", the term coined by designer Frances Berriman and [[Google Chrome]] engineer Alex Russell in 2015,<ref name="infrequently.org">{{cite web|last1=Russell|first1=Alex|title=Progressive Web Apps: Escaping Tabs Without Losing Our Soul|url=https://infrequently.org/2015/06/progressive-apps-escaping-tabs-without-losing-our-soul/|access-date=June 15, 2015|ref=4|archive-date=January 29, 2016}}</ref> refers to apps taking advantage of new features supported by modern browsers, which initially run inside a web browser tab but later can run completely offline and can be launched without entering app URL in the browser.
"[[Progressive web app]]s", the term coined by designer Frances Berriman and [[Google Chrome]] engineer Alex Russell in 2015,<ref name="infrequently.org">{{cite web|last1=Russell|first1=Alex|title=Progressive Web Apps: Escaping Tabs Without Losing Our Soul|url=https://infrequently.org/2015/06/progressive-apps-escaping-tabs-without-losing-our-soul/|access-date=June 15, 2015|ref=4|archive-date=March 24, 2021|archive-url=https://web.archive.org/web/20210324104534/https://infrequently.org/2015/06/progressive-apps-escaping-tabs-without-losing-our-soul/|url-status=live}}</ref> refers to apps taking advantage of new features supported by modern browsers, which initially run inside a web browser tab but later can run completely offline and can be launched without entering the app URL in the browser.


==Structure==
==Structure==
{{Primary sources|section|date=November 2022}}
{{Primary sources|section|date=November 2022}}
Traditional PC applications consist only of 1 tier, which resides on the client machine, but web applications lend themselves to a multi-tiered approach by nature.<ref name="ntiered" /> Though many variations are possible, the most common structure is the [[Three-tier (computing)|three-tiered]] application.<ref name="ntiered" /> In its most common form, the three tiers are called ''presentation'', ''application'' and ''storage''. A web browser is the first tier (presentation), an engine using some dynamic [[Web content]] technology (such as [[Active Server Pages|ASP]], [[Common Gateway Interface|CGI]], [[ColdFusion]], [[Dart (programming language)|Dart]], [[Java Servlet|JSP/Java]], [[Node.js]], [[PHP]], [[Python (programming language)|Python]] or [[Ruby on Rails]]) is the middle tier (application logic), and a database is the third tier (storage).<ref name="ntiered" /> The web browser sends requests to the middle tier, which services them by making queries and updates against the database and generates a user interface.
Traditional PC applications are typically single-tiered, residing solely on the client machine. In contrast, web applications inherently facilitate a multi-tiered architecture.<ref name="ntiered" /> Though many variations are possible, the most common structure is the [[Three-tier (computing)|three-tiered]] application.<ref name="ntiered" /> In its most common form, the three tiers are called ''presentation'', ''application'' and ''storage''. A web browser is the first tier (presentation), an engine using some dynamic [[Web content]] technology (such as [[Active Server Pages|ASP]], [[Common Gateway Interface|CGI]], [[ColdFusion]], [[Dart (programming language)|Dart]], [[Java Servlet|JSP/Java]], [[Node.js]], [[PHP]], [[Python (programming language)|Python]] or [[Ruby on Rails]]) is the middle tier (application logic), and a database is the third tier (storage).<ref name="ntiered" /> The web browser sends requests to the middle tier, which services them by making queries and updates against the database and generates a user interface.


For more complex applications, a 3-tier solution may fall short, and it may be beneficial to use an n-tiered approach, where the greatest benefit is breaking the business logic, which resides on the application tier, into a more fine-grained model.<ref name="ntiered" /> Another benefit may be adding an integration tier that separates the data tier from the rest of tiers by providing an easy-to-use interface to access the data.<ref name="ntiered" /> For example, the client data would be accessed by calling a "list_clients()" function instead of making an [[SQL]] query directly against the client table on the database. This allows the underlying database to be replaced without making any change to the other tiers.<ref name="ntiered" />
For more complex applications, a 3-tier solution may fall short, and it may be beneficial to use an n-tiered approach, where the greatest benefit is breaking the business logic, which resides on the application tier, into a more fine-grained model.<ref name="ntiered" /> Another benefit may be adding an integration tier that separates the data tier from the rest of tiers by providing an easy-to-use interface to access the data.<ref name="ntiered" /> For example, the client data would be accessed by calling a "list_clients()" function instead of making an [[SQL]] query directly against the client table on the database. This allows the underlying database to be replaced without making any change to the other tiers.<ref name="ntiered" />


There are some who view a web application as a two-tier architecture. This can be a "smart" client that performs all the work and queries a "dumb" server, or a "dumb" client that relies on a "smart" server.<ref name="ntiered" /> The client would handle the presentation tier, the server would have the database (storage tier), and the business logic (application tier) would be on one of them or on both.<ref name="ntiered" /> While this increases the scalability of the applications and separates the display and the database, it still does not allow for true specialization of layers, so most applications will outgrow this model.<ref name="ntiered">{{Cite web |url=http://krunal-ajax-javascript.blogspot.bg/2008/09/benefits-of-using-n-tiered-approach-for.html |title=Benefits of using the n-tiered approach for web applications |last=Petersen |first=Jeremy|date=4 September 2008 }}</ref>
There are some who view a web application as a two-tier architecture. This can be a "smart" client that performs all the work and queries a "dumb" server, or a "dumb" client that relies on a "smart" server.<ref name="ntiered" /> The client would handle the presentation tier, the server would have the database (storage tier), and the business logic (application tier) would be on one of them or on both.<ref name="ntiered" /> While this increases the scalability of the applications and separates the display and the database, it still does not allow for true specialization of layers, so most applications will outgrow this model.<ref name="ntiered">{{Cite web |url=http://krunal-ajax-javascript.blogspot.bg/2008/09/benefits-of-using-n-tiered-approach-for.html |title=Benefits of using the n-tiered approach for web applications |last=Petersen |first=Jeremy |date=4 September 2008 |access-date=24 November 2017 |archive-date=1 December 2017 |archive-url=https://web.archive.org/web/20171201080946/http://krunal-ajax-javascript.blogspot.bg/2008/09/benefits-of-using-n-tiered-approach-for.html |url-status=live }}</ref>


==Security==
==Security==
Line 45: Line 51:
Writing web applications is simplified with the use of [[web application frameworks]]. These frameworks facilitate [[rapid application development]] by allowing a development team to focus on the parts of their application which are unique to their goals without having to resolve common development issues such as user management.<ref>{{cite web | url=http://docforge.com/wiki/Web_application_framework | title=Web application framework | author=Multiple (wiki) | work=Docforge | access-date=2010-03-06 | archive-date=2020-06-20 | archive-url=https://web.archive.org/web/20200620213429/http://www.docforge.com/wiki/Web_application_framework | url-status=dead }}</ref> Many of the frameworks in use are [[open-source software]].
Writing web applications is simplified with the use of [[web application frameworks]]. These frameworks facilitate [[rapid application development]] by allowing a development team to focus on the parts of their application which are unique to their goals without having to resolve common development issues such as user management.<ref>{{cite web | url=http://docforge.com/wiki/Web_application_framework | title=Web application framework | author=Multiple (wiki) | work=Docforge | access-date=2010-03-06 | archive-date=2020-06-20 | archive-url=https://web.archive.org/web/20200620213429/http://www.docforge.com/wiki/Web_application_framework | url-status=dead }}</ref> Many of the frameworks in use are [[open-source software]].


In addition, there is potential for the development of applications on [[Internet operating system]]s, although currently there are not many viable platforms that fit this model.{{cn|date=November 2022|reason=Possibly undue, a source establishing weight of this in web application development overall is needed.}}
In addition, there is potential for the development of applications on [[Internet operating system]]s, although currently there are not many [[viable]] platforms that fit this model.{{cn|date=November 2022|reason=Possibly undue, a source establishing weight of this in web application development overall is needed.}}


==See also==
==See also==
Line 64: Line 70:
==External links==
==External links==
*[http://www.whatwg.org/specs/web-apps/current-work/multipage/ HTML5 Draft recommendation], changes to HTML and related APIs to ease authoring of web-based applications.
*[http://www.whatwg.org/specs/web-apps/current-work/multipage/ HTML5 Draft recommendation], changes to HTML and related APIs to ease authoring of web-based applications.
*{{Curlie|Computers/Internet/On_the_Web/Web_Applications|Web Applications}}
*[http://www.w3.org/2008/webapps/ Web Applications Working Group] at the [http://www.w3.org/ World Wide Web Consortium] (W3C)
*[http://www.w3.org/2008/webapps/ Web Applications Working Group] at the [http://www.w3.org/ World Wide Web Consortium] (W3C)
*[https://web.dev/progressive-web-apps/ PWAs on Web.dev] by [[Google Developers]].
*[https://web.dev/progressive-web-apps/ PWAs on Web.dev] by [[Google Developers]].

Revision as of 09:24, 27 June 2024

Screenshot from 2007 of Horde, a groupware and open-source web application

A web application (or web app) is application software that is accessed using a web browser. Web applications are delivered on the World Wide Web to users with an active network connection.[1]

Single-page and progressive are two approaches for a website to seem more like a native app.

History

In earlier computing models like client-server, the processing load for the application was shared between code on the server and code installed on each client locally. In other words, an application had its own pre-compiled client program which served as its user interface and had to be separately installed on each user's personal computer. An upgrade to the server-side code of the application would typically also require an upgrade to the client-side code installed on each user workstation, adding to the support cost and decreasing productivity. In addition, both the client and server components of the application were usually tightly bound to a particular computer architecture and operating system and porting them to others was often prohibitively expensive for all but the largest applications (Nowadays,[when?] native apps for mobile devices are also hobbled by some or all of the foregoing issues).[dubiousdiscuss]

In 1995, Netscape introduced a client-side scripting language called JavaScript, allowing programmers to add some dynamic elements to the user interface that ran on the client side. So instead of sending data to the server in order to generate an entire web page, the embedded scripts of the downloaded page can perform various tasks such as input validation or showing/hiding parts of the page.[2]

In 1999, the "web application" concept was introduced in the Java language in the Servlet Specification version 2.2. [2.1?].[3][non-primary source needed] At that time both JavaScript and XML had already been developed, but Ajax had still not yet been coined and the XMLHttpRequest object had only been recently introduced on Internet Explorer 5 as an ActiveX object.[citation needed]

Applications like Gmail started to make their client sides more and more interactive since early 2000s. A web page script is able to contact the server for storing/retrieving data without downloading an entire web page. The practice became known as Ajax in 2005.[4]

"Progressive web apps", the term coined by designer Frances Berriman and Google Chrome engineer Alex Russell in 2015,[5] refers to apps taking advantage of new features supported by modern browsers, which initially run inside a web browser tab but later can run completely offline and can be launched without entering the app URL in the browser.

Structure

Traditional PC applications are typically single-tiered, residing solely on the client machine. In contrast, web applications inherently facilitate a multi-tiered architecture.[6] Though many variations are possible, the most common structure is the three-tiered application.[6] In its most common form, the three tiers are called presentation, application and storage. A web browser is the first tier (presentation), an engine using some dynamic Web content technology (such as ASP, CGI, ColdFusion, Dart, JSP/Java, Node.js, PHP, Python or Ruby on Rails) is the middle tier (application logic), and a database is the third tier (storage).[6] The web browser sends requests to the middle tier, which services them by making queries and updates against the database and generates a user interface.

For more complex applications, a 3-tier solution may fall short, and it may be beneficial to use an n-tiered approach, where the greatest benefit is breaking the business logic, which resides on the application tier, into a more fine-grained model.[6] Another benefit may be adding an integration tier that separates the data tier from the rest of tiers by providing an easy-to-use interface to access the data.[6] For example, the client data would be accessed by calling a "list_clients()" function instead of making an SQL query directly against the client table on the database. This allows the underlying database to be replaced without making any change to the other tiers.[6]

There are some who view a web application as a two-tier architecture. This can be a "smart" client that performs all the work and queries a "dumb" server, or a "dumb" client that relies on a "smart" server.[6] The client would handle the presentation tier, the server would have the database (storage tier), and the business logic (application tier) would be on one of them or on both.[6] While this increases the scalability of the applications and separates the display and the database, it still does not allow for true specialization of layers, so most applications will outgrow this model.[6]

Security

Security breaches on these kinds of applications are a major concern because it can involve both enterprise information and private customer data. Protecting these assets is an important part of any web application and there are some key operational areas that must be included in the development process.[7] This includes processes for authentication, authorization, asset handling, input, and logging and auditing. Building security into the applications from the beginning can be more effective and less disruptive in the long run.

Development

Writing web applications is simplified with the use of web application frameworks. These frameworks facilitate rapid application development by allowing a development team to focus on the parts of their application which are unique to their goals without having to resolve common development issues such as user management.[8] Many of the frameworks in use are open-source software.

In addition, there is potential for the development of applications on Internet operating systems, although currently there are not many viable platforms that fit this model.[citation needed]

See also

References

  1. ^ "What Is A Web Application?". stackpath.com. Stack Path. Archived from the original on 2022-08-15. Retrieved 2022-08-15. A web application is a computer program that utilizes web browsers and web technology to perform tasks over the Internet.
  2. ^ Liam Tung (2020-06-15). "JavaScript creator Eich: My take on 20 years of the world's top programming language". ZDNet. Archived from the original on 2023-09-26. Retrieved 2021-10-18.
  3. ^ Davidson, James Duncan; Coward, Danny (1999-12-17). Java Servlet Specification ("Specification") Version: 2.2 Final Release. Sun Microsystems. pp. 43–46. Archived from the original on 2010-01-07. Retrieved 2008-07-27.
  4. ^ Jay Hoffmann (2019-03-04). "What Does AJAX Even Stand For?". Archived from the original on 2021-10-18. Retrieved 2021-10-18.
  5. ^ Russell, Alex. "Progressive Web Apps: Escaping Tabs Without Losing Our Soul". Archived from the original on March 24, 2021. Retrieved June 15, 2015.
  6. ^ a b c d e f g h i Petersen, Jeremy (4 September 2008). "Benefits of using the n-tiered approach for web applications". Archived from the original on 1 December 2017. Retrieved 24 November 2017.
  7. ^ "Top Tips for Secure App Development". Dell.com. Archived from the original on 2012-05-22. Retrieved 2012-06-22.
  8. ^ Multiple (wiki). "Web application framework". Docforge. Archived from the original on 2020-06-20. Retrieved 2010-03-06.