当前位置:网站首页>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
边栏推荐
- Codeforces 1629 E. grid XOR - simple thinking
- 当字节跳动在美国输出中国式 996
- C language structure
- Codeforces 1634 F. Fibonacci additions - Fibonacci sequence addition, ideas
- xcode 调试openGLES
- Byte order data read / write
- Codeforces 1638 B. odd swap sort - tree array, no, simple thinking
- 2021-05-28
- Implementing tensorflow deep learning framework similarflow with numpy
- Formal analysis of Woo Lam protocol with scyther tool
猜你喜欢
阿里云开发板HaaS510响应UART串口指令
编译安装基于fastcgi模式的多虚拟主机的wordpress和discuz的LAMP架构
[Title brushing] Super washing machine
Application of binary search -- finding the square root sqrt of a number
Understanding recursion
Innovation training (x) advanced interface beautification
上海解封背后,这群开发者“云聚会”造了个AI抗疫机器人
Codeforces 1629 F2. Game on sum (hard version) - Yang Hui's triangle, violence, finding rules
A method of quickly creating test window
618 entered the second half of the period, apple occupied the high-end market, and the domestic mobile phones finally undercut the price competition
随机推荐
GPUImage链式纹理的简单实现
Player screen orientation scheme
Explanation of static and extern keywords
C language implementation of string and memory library functions
阿里云开发板HaaS510将串口获取数据发送到物联网平台
Computational hierarchy -- the problem of large numbers multiplying decimals
Implementing pytorch style deep learning framework similartorch with numpy
[Title brushing] Super washing machine
Return value of WaitForSingleObject
Pytorch to onnx, onnxruntime reasoning in mmclas
FFmpeg 学习指南
【mysql进阶】索引分类及索引优化方案(五)
JSP jump problem, unable to display database data, and unable to jump
Codeforces 1629 F2. Game on sum (hard version) - Yang Hui's triangle, violence, finding rules
Innovation training (XII) project summary
List of common ACM knowledge points (to be continued)
2066: [example 2.3] buying books
Qualcomm platform development series (Protocol) QMI brief introduction and usage
Backtracking: Prime Rings
Codeforces 1629 C. Mexico array - simple greed