amqpnetlite | AMQP 1.0 .NET Library | DevOps library
kandi X-RAY | amqpnetlite Summary
kandi X-RAY | amqpnetlite Summary
AMQP 1.0 .NET Library
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of amqpnetlite
amqpnetlite Key Features
amqpnetlite Examples and Code Snippets
static float[][] generatePerlinNoise(
int width, int height, int octaveCount, float persistence, long seed) {
final float[][] base = new float[width][height];
final float[][] perlinNoise = new float[width][height];
static float[][] generatePerlinNoiseLayer(float[][] base, int width, int height, int octave) {
float[][] perlinNoiseLayer = new float[width][height];
// calculate period (wavelength) for different shapes
int period = 1 <&l
Community Discussions
Trending Discussions on amqpnetlite
QUESTION
I am finding it very difficult to work with RabbitMQ and AMQP 1.0, particularly as it pertains to topic exchanges using AMQPNetLite. I am unable to send a message using a topic exchange to a specific queue. I'm not even using wildcards.
My situation is super simple too. I have one topic exchange. I have one queue that the topic exchange sends to. When I send to the topic exchange, the queue never receives the message.
...ANSWER
Answered 2021-Nov-10 at 12:12i think you mix two ways of doing it. Either you publish to address "/topic/test" -where test is your routingkey OR you publish to "/exchange/test.exchange" and set the Subject-property to "test".
Both works. if you use the "/topic/"-prefix in your address you are going through the default "amq.topic"-exchange and not your own "test-exchange".
made sense? more information in the "Routing and Addressing"-secion here: https://github.com/rabbitmq/rabbitmq-amqp1.0
QUESTION
I have a application in which I want to have 1 durable and 1 non-durable queue in Active MQ Artemis. For connecting to this message bus I use amqpnetlite.
...ANSWER
Answered 2021-Jun-18 at 15:50The Artemis source carries an example in .NET that creates a durable topic subscription and also shows how to later recover it using AmqpNetLite.
One key thing many folks miss is that your client needs to use a unique container ID analogous to the JMS Client ID concept.
For Queue specific subscriptions the client should indicate in the link capabilities that it wants a Queue based address created as the default is a multicast Queue which won't behave the same.
QUESTION
I'm trying to delete a scheduled job in ActiveMQ, and so far no luck.
Schedule is created among with the message using either NMS API or Amqpnetlite (except openwire lib as that one is not updated and can't be used on netstandard/netcore)
Sample code used to create the schedule with NMS, same thing done with AMQP lib:
...ANSWER
Answered 2020-Sep-10 at 18:59You can manage scheduled jobs in ActiveMQ over STOMP, AMQP or simply from a JMS client. I've written about this before showing how to do it using the ActiveMQ Java client but the principle is the same. You can send messages with specific headers set that will operate on the scheduled messages.
To browse the collection of scheduled message you'd do something like the following:
QUESTION
My client .NET Core application uses AMQP.Net Lite library to work with Azure Service Bus. When the topic in the service bus namespace is NOT partitioned (Enable Partitioning
is turned OFF), everything works fine - I'm able to connect and create ReceiverLink
object to receive messages.
However, as soon as the topic is partitioned (Enable Partitioning
is turned ON), I get the following error immediately after ReceiverLink
object creation.
The error description is: "Cannot open a Topic client for entity type Subscriber."
The error code translates to the AMQP map as amqp:not-allowed
. According to the docs, it means "The peer tried to use a frame in a manner that is inconsistent with the semantics defined in the specification." To be honest, I can hardly understand what it means in terms of Azure Service Bus abstractions, but it sounds depressing and similar to "not possible" to me...
On the other hand, the MS docs state that AMQP can be used to send and receive messages:
AMQP is now supported for sending and receiving messages to and from a partitioned entity.
So, the question is whether it is at all possible to use AMQP.NET Lite library to receive messages from a partitioned topic in Azure Service Bus?
...ANSWER
Answered 2020-Aug-07 at 03:36On the other hand, the MS docs state that AMQP can be used to send and receive messages:
AMQP is now supported for sending and receiving messages to and from a partitioned entity
This article from Microsoft docs is published in 23rdJun, 2020:
But last update on AMQP.Net Lite library is 5 Months ago, so it's unlikely that support is present right now and is yet to be added to open source library:
You can either raise a pull request or issue for the support in Github repo
QUESTION
I tried searching the web up and down - and either they point me towards RabbitMQ which is out of the question because the customer specifically asked for ActiveMQ / Amazon MQ which is basically ActiveMQ in the amazon cloud. Other results suggest using a different protocol (STOMP) - which I cant do because again the customer allows only the access via AMQP
So I'm at a loss .. can you help me get going ? I tried with PHPamqplib but I get errors accessing the already running activeMQ broker "Invalid frame type 65 in ....AbstractConnection.php:571" during connection build up.
...ANSWER
Answered 2020-Jul-04 at 01:46According to the README.md php-amqplib supports AMQP 0.9.1. However, ActiveMQ supports AMQP 1.0. Unfortunately the two protocols are not compatible. You'll need to find a PHP AMQP client which supports 1.0 if you want to communicate with ActiveMQ or Amazon MQ. According to this thread there are no plans to support AMQP 1.0 in php-amqplib.
The amqpnetlite client supports AMQP 1.0 which is why it works with ActiveMQ.
QUESTION
Regarding the question above: Is there a Java library for AMQP 1.0 which fully supports peer-to-peer (point-to-point, brokerless) functionality?
The part that I am missing is the functionality for opening a local port for messages incoming directly without going through a broker.
So far I have used the SwiftMQ AMQP 1.0 Client library which is fine for sending and receiving through a broker (used RabbitMQ server here without any flaws) and also for sending directly to another endpoint.
The other endpoint is written in C#, using the AMQPNetLite library. I found out that the AMQPNetLite lib provided the mentioned functionality through the ContainerHost
class (see also here).
My best guess is that the QPID Proton-J somehow supports what I am looking for, but documentation and examples are rare. The Python variant of the QPID Proton library also shows the Container
class in this example. However, neither the Container
class nor something that seems similar is not contained in the QPID Proton-J (Java) lib.
Yes, I also saw this question, which makes me doubt that what I search for exists at all...
Any help would be greatly appreciated.
...ANSWER
Answered 2020-Apr-25 at 22:30Don’t mess with the AMQP 1.0 protocol. It‘s just too complicated. The SwiftMQ AMQP 1.0 Client works flawlessly because everybody used it for testing their implementation.
An embedded broker that you launch intravm is what you need. Which one you use doesn’t matter but it should be Java I guess. So go for Artemis or even SwiftMQ CE which is open source as well.
Then connect your client to the local embedded broker and configure it to open the AMQP port.
QUESTION
I am currently building a system following the "competing consumer pattern" in .Net Core. Thus, I put a JobRequest-Message on a queue on which multiple consumers (workers) are subscribed to. One of the consumer receives the message an does the actual processing of the job.
I also have the requirement to build the system "vendor independent". Meaning that I need to implement the system in a way, that allows me to easily switch between message broker vendors, for instance: RabbitMq, Azure Service Bus, Amazon SQS, (Kafka).
We are currently discussing the best option to archieve that and came up with following alternatives:
- Interfaces and different implementations for each vendor
I create interfaces for the various features I need for my system and use the client libraries of the vendors to implement that interfaces. The drawback is of course, that I need to write an implementation for each vendor.
- using AMQP 1.0 Standard Client Libraries
I stick to the AMQP standard and use AMQP standard libraries (https://github.com/Azure/amqpnetlite) for my implemenation. All AMQP based message brokers should then work with just one implementation. Drawback is, that I am dependent on AMQP and also the AMQP version (RabbitMQ currently using 0.9, Kafka is not using AMQP).
- using a service bus on top that already supports different brokers
Like NServiceBus or MassTransit (open source). That would add an additional dependency to my system and increases its footprint. NServiceBus is also not free and it would somehow just shift the "vendor depencency" to the service bus.
Number one quality goal is to build a reliable and resilient system (> 100.000 Jobrequests per day).
Please share your thoughts :)
...ANSWER
Answered 2020-Feb-07 at 08:58I must admit that I am biased, because I am the author of Rebus. Nevertheless, here's my recommendation:
Go with option 3!
All of the mentioned service bus libraries are fairly un-intrusive, meaning that the bulk of the code you end up writing will take a form that looks like this (examples taken from Rebus, but the other two mentioned libraries are very similar):
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install amqpnetlite
Examples Please take a minute to look at the examples.
.Net Core If you are looking for information about using amqpnetlite on .Net Core (coreclr, dnxcore50, etc.), your can find the code and a Hello AMQP! example here.
Interested in the code? Clone and build the projects.
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page