CGI was abandoned because of the slowness of process forking, but with modern kernels, new compiled languages, and better reverse proxy servers, I believe that the speed difference is trivial in regards to the advantages:
- Deployment can be done by simple file upload.
- Process isolation adds security and reliability.
- CGI scripts/binaries are vendor agnostic and can be run/tested locally
- CGI scripts can use any language, are stateless, promote hyper modular design (aka functions) and are generally minimalistic in nature.
[1] https://bigcgi.com/ [2] https://github.com/bmsauer/bigcgi