当前位置:网站首页>Briefly describe the difference between CGI and fastcgi
Briefly describe the difference between CGI and fastcgi
2022-06-12 13:49:00 【wwzroom】
CGI:Common Gateway Interface Public gateway interface , It's the external extension application and Web A standard interface for server interaction , Mainly web When the server is used to process dynamic resource requests , Call the interface of the network server .
Request flow :
Client – (http agreement ) --> httpd – (cgi agreement ) --> application server (program file) – (mysql agreement ) --> mysql
web According to the content of this request, the server will , And then fork A new process to run external C Procedure or bash,perl Script etc. , This process will return the processed data to web The server , Last web The server content is sent to the user , Just now, fork And the process of getting out . If the next user requests to change the dynamic script , that web The server again fork A new process , Go round and round .
fastcgi:FastCGI(Fast Common Gateway Interface) The full name is “ Fast universal Gateway Interface ”, Is a common gateway interface (CGI) Enhanced version of , from CGI From development and improvement , Mainly used to improve CGI Program performance , Be similar to CGI,FastCGI It is also a way for interactive programs to interact with Web Protocol of server communication .
Request flow :
Client – (http agreement ) --> httpd – (fastcgi agreement ) --> fastcgi The server – (mysql agreement ) --> mysql
fastcgi The way is ,web When the server receives a request , Not again fork A process ( Because the process is web It's on when the server starts , And won't quit ),web The server passes the content directly to the process ( Interprocess communication , but fastcgi In other ways ,tcp Means of communication ), The process processes the request , Return the result to web The server , Finally, I wait for the next request , Instead of quitting
CGI and fastcgi Compare
CGI: Part-time job , A one-time bridge breaking service
FASTCGI: full-time , Full cycle continuous service


边栏推荐
- Real time software source code of COVID-19
- Codeforces 1637 D. yet another minimization problem - Mathematics, DP
- Codeforces 1629 E. grid XOR - simple thinking
- Script import CDN link prompt net:: err_ FILE_ NOT_ Found problem
- 2061: [example 1.2] trapezoidal area
- lua 常用内置函数
- Install RPM package offline using yum
- Informatics Olympiad all in one 2059: [example 3.11] buy a pen
- Data type conversion and conditional control statements
- Pytorch framework
猜你喜欢

章鱼网络进展月报 | 2022.5.1-5.31
![[brush title] probability of winning a draw](/img/f5/7e8dac944876f920db10508ec38e92.png)
[brush title] probability of winning a draw
FFmpeg 学习指南

Formal analysis of Woo Lam protocol with scyther tool

Automatic Generation of Visual-Textual Presentation Layout

Go zero micro Service Practice Series (II. Service splitting)

聊聊MySQL的10大经典错误

xcode 调试openGLES

简历 NFT 平台 TrustRecruit 加入章鱼网络成为候选应用链

Pytorch to onnx, onnxruntime reasoning in mmclas
随机推荐
一种快速创建测试窗口的方法
Seekg, tellg related file operations
Relevant knowledge points of cocoapods
M1 pod install pod lint failure solution
Factory mode of "object creation" mode
2067: [example 2.5] circle
Innovation training (XI) summary of some bugs in the development process
Recursion of subviews of view
Record some settings for visual studio 2019
Behind the unsealing of Shanghai, this group of developers "cloud gathering" built an AI anti epidemic robot
Codeforces 1637 B. mex and array - reading, violence
2062: [example 1.3] movie tickets
Language skills used in development
阿里云开发板HaaS510解析串口JSON数据并发送属性
聊聊MySQL的10大经典错误
xcode 调试openGLES
Convert the string to hexadecimal string and display it
当字节跳动在美国输出中国式 996
AVFoundation
m1 pod install pod lint 失败解决方案