5 ms·
I'm in the early stages of a FaaS platform that uses CGI for the functions. As such, I have been collecting articles about general CGI development, and have the
by fuball63 9y ago
I'm in the early stages of a FaaS platform that uses CGI for the functions. As such, I have been collecting articles about general CGI development, and have them listed in my docs. If anyone is interested in writing large scale CGI apps (CGI is popping up a lot around here lately), these are some good resources: https://bigcgi.com/docs https://bigcgi.com/docs
- ddorian43 9y agoIsn't cgi slow ? Don't you need something like fast-cgi (which lambda does I think) ?
- fuball63 9y agoCGI is slow because of the spin up time for individual processes for each request. FastCGI is fast because they run as one long running process that handles multiple requests. While plain CGI is a slower, the advantage is that you don't have long running and potentially idle processes for low traffic periods, and process isolation is a little security boost. I chose to have a slightly slower startup time, which hopefully remain constant in a load balanced cluster, to gain the advantages above.
- dfox 9y agoAlso the spinup time is considerably larger problem for various interpreters and virtual machines than for native code binary. I would even expect that you can write non-trivial CGI application whose startup time is smaller than the additional overhead from parsing of the FastCGI protocol.