The handler hooks in Apache2 are generally a terrible framework because a module has deal with a callback heavy control flow and needs to use either ap_set_module_config or your own method to persist state and associate it to the right virtual host, connection and request.
The tile module architecture should try hide as much of the hook nastiness as possible. Other goals for the architecture include:
- per worker resources should be initialised on Apache2 start and re-initialised on restart
- configuration should be loaded on Apache2 start and reloaded on Apache2 reload; since configuration of a resource might change, this also means resources need to be re-iitialised
- make it easy to persist state and automatically associate it to the right virtual host, connection and request
- decouple front end the slippy request handling from the back end renderd tile serving or cache fetching
- support a middle step in the pipeline to support filtering & rewrite type processing
- observers for all events in the front, middle and back ends
The handler hooks in Apache2 are generally a terrible framework because a module has deal with a callback heavy control flow and needs to use either ap_set_module_config or your own method to persist state and associate it to the right virtual host, connection and request.
The tile module architecture should try hide as much of the hook nastiness as possible. Other goals for the architecture include: