示例#1
0
from django_kombu.client import publish
print 'begin emit message'
publish('test.abc', {'a':1})
publish('test.bcd', {'b':2})
示例#2
0
def home1(request):
    for x in xrange(100000):
        publish("test.home1", {"home1": x})
    return HttpResponse("home1")