2021-10-05

how to use the scgi server interface with guile

like fastcgi, scgi is a protocol that connects web servers with other applications. compared to fastcgi, scgi's full specification is far simpler and it is easier to implement. compared to cgi, where each request creates a new process and runs application code from the beginning, scgi allows for a server application to initialize once and keep running, saving overhead

  • nginx, apache and lighttpd support scgi and i have tested it with all of them
  • a scheme implementation is part of sph-lib (sph scgi)

    • (sph scgi) can use the thread-pool based (sph server) or the guile-fibers based (sph server fibers)
  • guile's (web server) seems http-centric and not suitable to build an scgi server.