当前位置:网站首页>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 1637 D. yet another minimization problem - Mathematics, DP
- Teach you how to create SSM project structure in idea
- Innovation training (x) advanced interface beautification
- Codeforces 1638 A. reverse - simple thinking
- "Non" reliability of TCP
- 章鱼网络进展月报 | 2022.5.1-5.31
- Tinyxml Usage Summary
- 618 entered the second half of the period, apple occupied the high-end market, and the domestic mobile phones finally undercut the price competition
- 播放器屏幕方向方案
- 阿里云开发板HaaS510解析串口JSON数据并发送属性
猜你喜欢

There was an error installing mysql. Follow the link below to CMD

Web3.0,「激发创造」的时代

MySQL 查询 limit 1000,10 和 limit 10 速度一样快吗? 深度分页如何破解

Possible solutions to problems after CodeBlocks installation

编译安装基于fastcgi模式的多虚拟主机的wordpress和discuz的LAMP架构

Innovation training (XI) summary of some bugs in the development process

【视频课】android studio物联网APP设计制作全套教程--国庆期间全掌握

Multi source BFS problem template (with questions)

当字节跳动在美国输出中国式 996
![[brush title] probability of winning a draw](/img/f5/7e8dac944876f920db10508ec38e92.png)
[brush title] probability of winning a draw
随机推荐
Octopus network progress monthly report | may 1-May 31, 2022
1001:Hello,World
C language implementation of string and memory library functions
Codeforces 1629 E. grid XOR - simple thinking
一种快速创建测试窗口的方法
When the byte jumps, the Chinese 996 is output in the United States
Title: Yanghui triangle
2064: [example 2.1] exchange value
高通平台开发系列讲解(协议篇)QMI简单介绍及使用方法
618 entered the second half of the period, apple occupied the high-end market, and the domestic mobile phones finally undercut the price competition
Cdeforces 1638 C. inversion graph - simple thinking
Codeforces 1638 B. odd swap sort - tree array, no, simple thinking
简历 NFT 平台 TrustRecruit 加入章鱼网络成为候选应用链
Application of binary search -- finding the square root sqrt of a number
Factory mode of "object creation" mode
Greed issues - Egypt scores
[WUSTCTF2020]颜值成绩查询-1
Now you must know the pointer
Paw advanced user guide
AVFoundation