question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

kombu 4.0 is slower than kombu 3.0.37 when pulish messaging

See original GitHub issue

It’s my code:

    conn = Connection('amqp://admin:passw0rd@172.23.23.113')
    channel = conn.channel()
    exchange = Exchange('pengdong', 'direct', channel=channel, durable=True)
    producer = conn.Producer(channel=channel, exchange=exchange)
    while True:
        producer.publish("abc", routing_key="fang",delivery_mode=2)

when I run my code in kombu 4.0 ,I find the rate is only 80/s from the rabbitmq management site. But if I use the kombu 3.0.37 , I find the rate is up to 4000/s.

Why are there so huge difference between the two version of kombu ?

I use pyamqp as the amqplib in both case.

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:9 (6 by maintainers)

github_iconTop GitHub Comments

7reactions
askcommented, Dec 8, 2016
   def publish(self, body, routing_key=None, delivery_mode=None,
                mandatory=False, immediate=False, priority=0,
                content_type=None, content_encoding=None, serializer=None,
                headers=None, compression=None, exchange=None, retry=False,
                retry_policy=None, declare=[], expiration=None, **properties):

It’s funny, because I have been arguing at work that it’s fine for grown ups to use mutable default arguments, then I walk right into this wall.

0reactions
askcommented, Dec 7, 2016

Hah, I see what’s going on now…

The list of entities to declare is growing for every publish call 😃

Read more comments on GitHub >

github_iconTop Results From Across the Web

Kombu Documentation - Read the Docs
Kombu is a messaging library for Python. The aim of Kombu is to make messaging in Python as easy as possible by providing...
Read more >
Kombu 3.0.37 documentation - Celery
kombu - Messaging library for Python · Features · Transport Comparison · Installation · Terminology · Getting Help · Bug tracker · Contributing...
Read more >
kombu - PyPI
`Kombu` is a messaging library for Python. The aim of `Kombu` is to make messaging in Python as easy as possible by providing...
Read more >
GNU Guix & GuixSD 0.12.0 released
We are pleased to announce the release of GNU Guix & GuixSD 0.12.0, representing 3,572 commits by 76 people over a little more...
Read more >
NEWS · wip-ppc · Efraim Flashner / guix · GitLab
Updated translations of messages This version of Guix is fully translated in French, ... python-jellyfish-0.5.6, python-joblib-0.10.3, python-kombu-3.0.37, ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found