Posts

Showing posts with the label uWSGI

What is WSGI and Why is it necessary?

Image
WSGI is a specification for how a server and application communicate. Both the server interface, as well as the application interface, are specified in PEP 3333. A WSGI application (or framework or toolkit) can be stacked on any server that conforms to the WSGI specification. These applications are compatible with each other. A middleware piece must implement both sides of the WSGI interface: the application on top, and the application below. For a middleware piece to be a middleware piece, it must implement both sides of the WSGI interface, application, and server. WSGI Overview: There were about 14 million users on the web in 1993, and 100 websites. Pages were static at the time, but dynamic content, such as news and data, was already necessary. Rob McCool and others implemented the Common Gateway Interface (CGI) for the HTTPd web server of the National Center for Supercomputing Applications (NCSA). Since then, the number of Internet users has exploded, and dynamic webs...