Zotonic's fork of Basho's webmachine
Erlang JavaScript Shell
Switch branches/tags
Nothing to show
Pull request Compare This branch is 68 commits behind zotonic:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
demo
deps
docs
ebin
include
priv
scripts
src
test
trace
www
.gitignore
Emakefile
LICENSE
Makefile
README.md
THANKS
rebar
rebar.config
start-dev.sh
start.sh

README.md

NOTE this repository is under heavy editing and unstable.

webmachine

Zotonic's Variation

This is a fork of Basho's Webmachine. This fork is done for supporting content management systems with large amounts of dispatch rules and many virtual hosts.

Differences with Basho Webmachine

The main differences with Basho's Webmachine are:

  • Pluggable dispatch handler
  • Support for the HTTP Upgrade
  • Caching of resource callbacks results
  • Dispatch handler can redirect requests
  • Use of process dictionary has been removed
  • webmachine_request is now a normal (not parametrized) module
  • Extra logging

Together this gave a significant speed boost to Webmachine.

In the specific case of Zotonic the difference was 5 milliseconds (or more) per request (on a 2GHz Core 2 Duo). Without these optimizations we were not able to use Webmachine.