当前位置:网站首页>Client server model
Client server model
2022-07-03 07:48:00 【Seven demons 71】
Client server model
Most web applications are written assuming a client , One is the server . The server provides specific services for clients . Can be divided into Repetitive type
and And hairstyles
.
Repetitive type :
First step Wait for a client request
The second step Handle client requests
The third step Send a response to the customer who initiated the request
Step four Step one back
advantage | shortcoming |
---|---|
Easy to understand and learn | In the second step, you cannot provide services to other clients , You need to wait for the current client to finish processing and reach the fourth step before accepting the request of the new client |
And hairstyles :
First step Waiting for the arrival of a customer request .
The second step Start a new server to process the client's request . During this time a new process may be generated 、 Mission
Or thread , And rely on the support of the underlying operating system . How this step works depends on the operating system . New server generated
Handle all customer requests . After processing , Terminate this new server .
The third step Step one back .
advantage | shortcoming |
---|---|
Use the method of generating other servers to process customer requests if the operating system allows multitasking , Then you can serve multiple customers at the same time . | Need to support multitasking for the operating system |
Generally speaking, for TCP The server is parallel , about UDP Server is repetitive .
reference :
《TCP-IP Detailed explanation Volume 1 》
边栏推荐
- Go language foundation ----- 08 ----- interface
- Precautions for opensips and TLS SIP trunk docking
- OSPF protocol summary
- When did you find out that youth was over
- 优质博客——
- Go language foundation ----- 06 ----- anonymous fields, fields with the same name
- Go language foundation ----- 07 ----- method
- PAT甲级 1029 Median
- Pat class a 1030 travel plan
- Go language foundation ----- 04 ----- closure, array slice, map, package
猜你喜欢
技术干货|AI框架动静态图统一的思考
The concept of C language pointer
Usage of requests module
HarmonyOS第三次培训笔记
Go language foundation ----- 01 ----- go language features
Go language foundation ------ 14 ------ gotest
【MySQL 12】MySQL 8.0.18 重新初始化
技术干货|昇思MindSpore算子并行+异构并行,使能32卡训练2420亿参数模型
技术干货|昇思MindSpore创新模型EPP-MVSNet-高精高效的三维重建
[MySQL 14] use dbeaver tool to remotely backup and restore MySQL database (Linux Environment)
随机推荐
PHP wechat red packet grabbing algorithm
Redis batch startup and shutdown script
【LeetCode】2. Valid Parentheses·有效的括号
PAT甲级 1032 Sharing
Implementation of breadth first in aggregation in ES
什么是定义?什么是声明?它们有何区别?
技术干货|昇思MindSpore初级课程上线:从基本概念到实操,1小时上手!
[mindspire paper presentation] summary of training skills in AAAI long tail problem
Screenshot tool snipaste
Project experience sharing: Based on mindspore, the acoustic model is realized by using dfcnn and CTC loss function
[at] ABC 258g - triple Reach - violence
Iterm2设置
Harmonyos third training notes
Technical dry goods | thinking about the unification of dynamic and static diagrams of AI framework
Project experience sharing: handwritten Chinese character recognition based on Shengsi mindspire
C2-关于VCF文件合并的几种方法
【LeetCode】3. Merge Two Sorted Lists·合并两个有序链表
Precautions for opensips and TLS SIP trunk docking
项目经验分享:基于昇思MindSpore实现手写汉字识别
Go language foundation ----- 05 ----- structure