How does TrafficScript work?TrafficScript is the programming language used to create 'rules' in Zeus Traffic Manager. Rules are run when a new request is recieved from a remote client, and when a new response is generated by a back-end server. When you configure a virtual server, you configure which rules are run on the request, and which are run on the response: A request rule is run when a new request is recieved, and some data is read from the connection. The request rule can instruct Zeus Traffic Manager to read more data, it can modify the request, and then select which servers should be used to direct the request to. Once the request rule completes, the request is 'released' and further data from the client is streamed through to the server. When Zeus Traffic Manager receives response data from the server, the response rules are run. They can also instruct Zeus Traffic Manager to read more data, modify the response, or even modify the original request and instruct Zeus Traffic Manager to resubmit it if necessary. Then the response rule completes, the response is released and further server data is streamed back to the client. Persistent protocols such as SMTP or POP3 may send many requests within a single TCP connection. If Zeus Traffic Manager recieves more data from the client as it is streaming server data back, the request-response processing loop restarts. Zeus Traffic Manager will re-run the request rule to process the subsequent request data (unless the 'run-once' setting applies to the rule). Zeus Traffic Manager's TrafficScript language contains a number of helper functions to make it easy to handle different protocols. For example, the ' Finally, TrafficScript contains a complete set of functions to manage and manipulate HTTP traffic, so a developer does not have to worry about the underlying protocol details. Request and response rules are run once all the HTTP headers have been received, and helper functions are available to inspect and set headers, body data and status codes. Here are a few of the more commonly used HTTP helper functions:
Comments:This public messageboard is not a forum for technical support. To report technical support problems, please contact our dedicated Support team using the instructions at the bottom of this page.
Comment from:
John [Visitor]
· http://blog.chausstran.com/
thanks for the solution.
John |
Recently...
Other Resources
|






