Skip to content
copelco edited this page Mar 31, 2011 · 1 revision

Notes to think about:

Registry

Similar to celery's registry, maintain a backend name to backend class pairing to optimize Router creation. This could possibly be used to cache AppBase classes as well. For example:

registry.add_backend('twilio', 'rtwilio.backends.Twilio')

Settings and Configuration

Currently, backends are configured in a manner similar to:

INSTALLED_BACKENDS = {
    "httptester-cache": {
        "ENGINE": "threadless_router.backends.httptester_cache.backend",
        "HANDLER": "threadless_router.celery.handler"
    },
}

And incoming messages are created like so:

from threadless_router.base import incoming
incoming('httptester-cache', identity, text)
Clone this wiki locally