Many web applications will have several layers. The layers can often be summarized into three common patterns:
- A presentation layer might run on a mobile device or a website. This is the visible, external view.
- An application layer is often implemented as web services. This layer does the processing for the web or mobile presentation.
- A persistence layer handles retention of data and transaction state over a single session as well as across multiple sessions from a single user. This will support the application layer.
A Python-based website or web services application will adhere to the Web Services Gateway Interface (WSGI) standard. This provides a uniform way for a frontend web server such as Apache HTTPD, NGINX, or GUnicorn to use Python to provide the dynamic content.
Python has a wide variety of RESTful API frameworks. In the Using the...