Amazon RabbitMQ

0

Hello Experts, Need your assistance to integrate Amazon RabbitMQ. I followed below links to integrate the same, and all works fine at my end. I am able to post the message and read it in lambda function. All this is in Python code. But my requirement is create .Net clr that I can call it from our on-premises SQL Server to sent the message amazon rabbit mq directly.

https://aws.amazon.com/blogs/compute/using-amazon-mq-for-rabbitmq-as-an-event-source-for-lambda/ https://nipunsampath.medium.com/rabbitmq-work-queues-using-python-d7663e3a2635

For .Net CLR, I followed below link, first of all appreciate and thanks to Niels Berglund. Facing challenge to use this set of code with AWS rabbit mq, specifically with SSL connection.

https://github.com/nberglund/RabbitMQ-SqlServer/tree/master

Trying below with unsuccessful attempts. sometime my code fail on _connFactory.Uri = _connString FYI in my case _connString = "amqps://<rabbitmq_user_name>:<rabbitmq_password>@<rabbitmq_broker_id>.mq.<Region>.amazonaws.com:5671/" Here I get the broker_id from Amazon MQ ARN: arn:aws:mq:region:820152426211:broker:queue_name-rabbitmq:broker_id

Please let me now where I am going wrong. links and any other method most welcome.

            _connFactory = new ConnectionFactory();
            _connFactory.Uri = _connString;
            _connFactory.AutomaticRecoveryEnabled = true;
            _connFactory.TopologyRecoveryEnabled = true;
            _connFactory.Ssl.Version = SslProtocols.Tls12;
            _connFactory.Ssl.CertPassphrase = "ECDHE+AESGCM:!ECDSA";
            _connFactory.Ssl.Enabled = true;
            RabbitConn = _connFactory.CreateConnection();
    

Rahul

gefragt vor 8 Monaten117 Aufrufe
Keine Antworten

Du bist nicht angemeldet. Anmelden um eine Antwort zu veröffentlichen.

Eine gute Antwort beantwortet die Frage klar, gibt konstruktives Feedback und fördert die berufliche Weiterentwicklung des Fragenstellers.

Richtlinien für die Beantwortung von Fragen