【文章內(nèi)容簡(jiǎn)介】
kend for development purposes ? GhettoQ provides database backend for carrot where a database serves as the queue storage ? The broker is a simple Django application that monitors the queue in DB ? Inefficient, therefore only suitable for development environments CARROT_BACKEND = ‘’ Ease a future MQ implementation Isolate functionality into reusable ponents. Recycle Existing Code Django, HTTP Requests MQ ? Most functionalities provided throughDjangoapplications are tightly coupled with HTTP requests . form data processing ? In order to asynchronously execute a task, Celery (any task management platform) must serialize store parameters ? HTTP requests are usually large and not easily serializable. . WSGI requests ThePickleableHTTPRequestObject UsingPickleableHttpRequest if (‘download’): try: result = ( PickleableHttpRequest( request, attributes=\ [‘user’, ‘a(chǎn)dmin_current_anization’] ) ) Making Message Queue Tasks It is fast and easy to add a decorator to specific functions to create Message Queue