当前位置:网站首页>Understand two major web development patterns
Understand two major web development patterns
2022-06-25 21:34:00 【Concision.】
Web Development mode
1. Traditional rendering based on server Web Development mode
Server rendering : The message sent by the server to the client HTML page , Is the splicing of strings in the server , Dynamically generated . The client is only responsible for parsing HTML .
advantage
The front end takes less time. Because the server side is responsible for dynamic generation HTML Content , The browser only needs to render the page directly . Especially the mobile end , More power saving .advantageous to SEO. Because the server-side response is complete HTML The page content , So it's easier for reptiles to get information , Better for SEO.
shortcoming
Occupy server-side resources. That is, server-side completion HTML Splicing of page content , If there are more requests , Will cause certain access pressure to the server .It's not conducive to the separation of front and rear ends , Low development efficiency. Use server-side rendering , be No division of labor , Especially for Projects with high front-end complexity , It is not conducive to the efficient development of the project .
2. A new model based on front and rear end separation Web Development mode
Fore and aft end separation : The back end is only responsible for Provide API Interface ( Handle 、 Store the data ), Front end use Ajax Call interface ( Display the data ). Front end and back-end developers through Interface Exchange of data .
advantage
Good development experience. The front end focuses on UI Page development , The back end focuses on api Development of , And the front end has more selectivity .Good user experience.Ajax The wide application of Technology , Greatly improve the user experience , You can easily achieve local refresh of the page .Reduces the rendering pressure on the server side. Because the page is ultimately generated in each user's browser .
shortcoming
It's not good for SEO. Because the whole HTML The page needs to be dynamically spliced at the client , So the crawler can't crawl the effective information of the page .( Solution : utilize Vue、React Wait for the front-end frame SSR Technology can solve SEO problem !)
3. How to choose Web Development mode
- For example, enterprise websites , The main functions are Presentation without complex interaction , And need good SEO, Then we need to use
Server-side rendering; - But similar Back office management projects , The interaction is relatively strong , There is no need to consider SEO, Then you can use it
Fore and aft end separationDevelopment model .
Be careful : What kind of development mode is used Not absolutely , In order to take into account the rendering speed of the home page and the development efficiency of front and rear end separation at the same time , Some websites use First screen server rendering + The front and back of other pages are separated Development model .
边栏推荐
- "Developer theory" multi system integrated development - rapid nailing of enterprise owned systems
- Working principle and experimental analysis of DHCP
- js (1)
- Using two stacks to realize the function of one queue?
- 数学分析_笔记_第4章:连续函数类和其他函数类
- 1.0-mq getting started and using
- Soft test intermediate simple notes
- The robot framework calls the JS interface and gets the return value
- Get the root directory of the package at compile time from buildreoot
- Installing and configuring redis under Linux
猜你喜欢

数字图像处理知识点总结概述

Canoe learning notes (3)
![[nailing scenario capability package] manage the on-the-job / off-the-job situation of employees](/img/ec/c2f342a54ab69d8b834a8a1c8f8a01.jpg)
[nailing scenario capability package] manage the on-the-job / off-the-job situation of employees

Working principle and experimental analysis of DHCP

Idea implements hot deployment

Docker failed to remotely access 3306 after installing MySQL

Dbeaver offline installation driver

The beginning of manjaro's journey

Write a "standard" macro min, which inputs two parameters and returns the smaller one

Legal mix of settlements (utf8mb4_0900_ai_ci, implicit) and (utf8mb4_general_ci, implicit) error resolution
随机推荐
Working principle and experimental analysis of DHCP
Invalid bound statement (not found): com. qf. mapper. PassengerMapper. findByPassengerId
[nailing scenario capability package] enterprise and public institution intelligent access control
OLED driver learning based on ssd1306 (I): SSD Chinese command table (handling)
js(3)
PHP compressed file
What is a server? (Powercert animated videos)
CANoe. Diva operation guide - establishment of operation environment
Win10 common software
CANoe. Diva operation guide TP layer test
JS__ Inheritance mode, namespace, object enumeration__ Duyi
Type conversion basis
银河证券靠谱吗?开证券账户安全吗?
Code program related problems troubleshooting directory
Support JPEG format in GD Library in php7.4
[nail scenario capability package] hospital visitor verification
Shell scripts: Variables
How to write an infinite loop
Bat script simple command
QT method of exiting application (exe)