You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi team (@grs),
We're sending around 3000 messages in the queue in a very short period of time and we're getting some issues.
For every message that we send, we're creating a new senderLink and listen for sendable event on it.
Once sendable event is fired we send the message and close that senderLink.
Now after certain amount of messages are sent, this sendable event is not fired. I suppose the reason could be the lack of credits. Could you explain from the code snippet below what could be the issue?
Also, does it depend on the broker on how many credits to send(I suppose YES) & how can we request more credits.
The text was updated successfully, but these errors were encountered:
iam-baju
changed the title
sendable() event not fired after certain amount of messagessendable event not fired after certain amount of messages
Apr 18, 2023
There is no way to request credit. It is the broker's responsibility to issue it when it runs out (assuming it has the capacity to accept more messages).
If you are using a sender per message, I would recommend closing the senders once the message is accepted. However if you are only creating a new link in order to be able to vary the target for each message, you can use the Connection.send() method, and set the to field on the message.
Hi team (@grs),
We're sending around 3000 messages in the queue in a very short period of time and we're getting some issues.
For every message that we send, we're creating a new
senderLink
and listen forsendable
event on it.Once
sendable
event is fired we send the message and close thatsenderLink
.Now after certain amount of messages are sent, this
sendable
event is not fired. I suppose the reason could be the lack of credits. Could you explain from the code snippet below what could be the issue?Also, does it depend on the broker on how many credits to send(I suppose YES) & how can we request more credits.
The text was updated successfully, but these errors were encountered: