-
Notifications
You must be signed in to change notification settings - Fork 5
Design Decisions
copelco edited this page Mar 31, 2011
·
1 revision
Notes to think about:
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')
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)