InterviewSolution
| 1. |
What Are The Other Alternatives Include? |
|
Answer» Multi-process Pattern: Each request is handled by its own Python process. Here, performance and stability of the server can be considered as better. Asynchronous Pattern: Here, accepting new connections and sending the data back to the client is done asynchronously from the request process. This technique is known for its EFFICIENCY. URL Dispatching: The CherryPy community wants to be more flexible and that other solutions for dispatchers would be appreciated. CherryPy 3 provides other built-in dispatchers and offers a simple way to write and use your own dispatchers.
HTTP Method Dispatcher In some applications, URIs are independent of the action, which is to be performed by the server on the resource. For example,http://xyz.com/album/delete/10 The URI contains the operation the client wishes to carry out. By default, CherryPy dispatcher would map in the following way album.delete(12) Here is a list of the parameters for the method required in dispatching −
Multi-process Pattern: Each request is handled by its own Python process. Here, performance and stability of the server can be considered as better. Asynchronous Pattern: Here, accepting new connections and sending the data back to the client is done asynchronously from the request process. This technique is known for its efficiency. URL Dispatching: The CherryPy community wants to be more flexible and that other solutions for dispatchers would be appreciated. CherryPy 3 provides other built-in dispatchers and offers a simple way to write and use your own dispatchers. HTTP Method Dispatcher In some applications, URIs are independent of the action, which is to be performed by the server on the resource. For example,http://xyz.com/album/delete/10 The URI contains the operation the client wishes to carry out. By default, CherryPy dispatcher would map in the following way album.delete(12) Here is a list of the parameters for the method required in dispatching − |
|