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.

Support for AMQ Protocol

See original GitHub issue

💡 The Idea Add support for AMQ protocol, more information about the protocol available here.

AMQ is heavily used by systems integrated via ActiveMQ, RabbitMQ

The most recommended library is Pika, there’s also aio-pika with Async Support.

Example publisher using aio-pika:

import asyncio
import aio_pika


async def main(loop):
    connection = await aio_pika.connect_robust(
        "amqp://guest:guest@127.0.0.1/", loop=loop
    )

    routing_key = "test_queue"

    channel = await connection.channel()    # type: aio_pika.Channel

    await channel.default_exchange.publish(
        aio_pika.Message(
            body='Hello {}'.format(routing_key).encode()
        ),
        routing_key=routing_key
    )

    await connection.close()


if __name__ == "__main__":
    loop = asyncio.get_event_loop()
    loop.run_until_complete(main(loop))
    loop.close()

Issue Analytics

  • State:open
  • Created 2 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
caronccommented, Sep 29, 2021

We’ll keep this in the queue 🙂 . For this request, i presume it would be similar to MQTT where a 3rd party library becomes a dependant?

Currently all of the Apprise plugins work with all versions of Python (back to v2.7). This implementation would be restricted to v3.4+ (as per limitations of dependant third party). IT would also limit the AMQP protocol to only version 0.9 (which i believe is still widely used, but v1.0+ has been out for some time now as well).

Thoughts?

0reactions
gabycommented, Sep 6, 2022

No worries, I will try to take a look 😃

Read more comments on GitHub >

github_iconTop Results From Across the Web

Protocols - ActiveMQ - The Apache Software Foundation!
Apache ActiveMQ is a message broker which supports multiple wire level protocols for maximum interoperability. AMQP · AUTO · MQTT · OpenWire ·...
Read more >
Red Hat AMQ Broker 7 Supported Configurations
Message wire-protocol conversion support · AMQP 1.0 is the message protocol of the AMQ JMS, AMQ C++, AMQ JavaScript, AMQ Python, and AMQ...
Read more >
ActiveMQ Protocol - Definition & How it Works - ExtraHop
ActiveMQ is an open source protocol developed by Apache which functions as an implementation of message-oriented middleware (MOM).
Read more >
ruby-amqp/amq-protocol - GitHub
Supported Ruby Versions. amq-protocol 2.3. · Installation. gem install amq-protocol · Development. Make sure you have Python, pip and the mako templating package ......
Read more >
AWS Marketplace: Apache ActiveMQ + Support
Integrate your multi-platform applications using the ubiquitous AMQP protocol. Exchange messages between your web applications using STOMP over websockets.
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