Introduction to Xteriorize

Xteriorize is an HTTP gateway for Xacerbate, written in perl.

Features

Applications

How does it work?

Xteriorize is a perl script that provides an HTTP gateway to Xacerbate. Each request is handled as followed:

  1. An HTTP request is received by Xteriorize
  2. Static content can be served directly
  3. Otherwise Xteriorize converts the request to XML, adds some information of its own and sends the resulting XML to Xacerbate
  4. Xacerbate processes the incoming XML and sends a response to Xteriorize
  5. Xteriorize converts the response into an HTTP response and serves it

The server architecture is provided by the CPAN Net::Server module. Each preforked child establishes a persistent connection to Xacerbate at startup, so there are virtually no overheads when an HTTP request arrives. If a child crashes for any reason, Xacerbate closes the persistent connection and Xteriorize spawns a new child process.

Status

Xteriorize currently handles GET and POST requests. In conjunction with Xcathedra it provides a relatively rich web-oriented environment, including support for cookies, CGI request parsing and XSLT-based scripting. The current plan is to keep Xteriorize as lean as possible, and to use Apache to provide more advanced functionality when necessary.