webserverprotocolsuwsgiscgi

What's the main difference between uWSGI protocol and SCGI?


I'm currently writing a server that needs to talk to a webserver. I'm not sure what should I use to bridge the gap between my server and the webserver, SCGI or the uWSGI Protocol. At some point I'd swear I read somewhere in the uwsgi documentation that the uWSGI protocol descends from SCGI but I can't find the line any more.

How do they differ?


Solution

  • They both serialize a simple list of key-value items. SCGI uses a text format for it while uwsgi (lowercase for the protocol) uses a binary encoding where each string is prefixed with a 16bit size: http://uwsgi-docs.readthedocs.org/en/latest/Protocol.html