[Javaweb] Two development models of JavaWeb


Static web pages and dynamic web pages

Static pages

Once created, the content will not change and the displayed content will be the same no matter when and whoever accesses it.

dynamic page

Obtain the content of the page through programs and modify the content of the web page by modifying the source code.


Software architecture and patterns

All are developed based on the network

C/S

Abbreviation of Client/Server, client/server mode
Insert image description here

The server usually uses a high-performance PC, workstation or minicomputer, client

Need to install special client software, such as QQ, WeChat, etc.

advantage

  • The server has little pressure. The server only needs to provide data, and all analysis is handed over to the client (the client is more powerful)

  • It can give full play to the processing capabilities of the client PC. Many tasks can be processed by the client before being submitted to the server. The client responds quickly.

shortcoming

  • Poor real-time performance and cannot achieve real-time updates and synchronization (upgrading is inconvenient)
  • Need to install software

B/S

Abbreviation of Brower/Server, browser/server mode

Insert image description here

B/S is built on the WAN, and only one browser (Browser) is installed on the client computer.

advantage

  • Unified browser, only need to record the URL, no need to install software, easy to upgrade and maintain
  • Synchronize

shortcoming

  • The server is under great pressure, and all processing requests are done on the server.
  • The client function is not powerful enough

Guess you like

Origin blog.csdn.net/m0_50609545/article/details/120273087