-
Notifications
You must be signed in to change notification settings - Fork 566
GetMessageAsync for node #2415
Comments
We are working on a newer service bus library. The current library |
Is there a url for the newer library? |
It is not yet ready. The new library that is being developed is based on amqp protocol. As soon as we have something ready we will share the early bits with you. |
@ArturPrzybysz In the meantime, you can follow the example I built in this pull request: noodlefrenzy/node-amqp10#356 @amarzavery The current node SDK should come with a big blatant warning that it introduces delays of about a minute into retrieving Service Bus messages. |
@tony-gutierrez The current sbus sdk Did you ever get a chance to look at rhea? |
Haven't looked at it. I gave it a quick try but ran into
Also amqp10 is by one of your colleagues! |
Oh! amqp10 is written by one of my colleagues. However there is some history to it. It was written by him when he was actively working on that project, while he was not an MS employee. He and his other colleague have moved on to other projects and the library isn't actively being maintained yet. Some teams in azure took a dependency on amqp10 library and found multiple issues with the way the library manages the states of link, session, connection. As a part of developing an amqp based node.js library for servicebus we are evaluating all the options along the vertical stack w.r.t it's stability, performance and active maintenance. I got rhea working for a simple send receive with sbus. Here is the script.
|
I gave a try to send the sas token to $cbs but I cant even get it to connect to the service bus in anonymous mode. |
@amarzavery Do you by any chance know anything about posting to notification hub with amqp? If I can do that I can get rid of the last vestige of the azure api. We have had a lot of issues with the linux app service network being super slow to reach the http post endpoints for both NH and SB. Times out about 60% of the time sometimes. MS is on that issue, but I'd love to be full AMQP. |
I have not played with notification hubs. I am playing with eventhubs right now. For $cbs, i was able to connect. However, I am getting an error in the end. I am messing up somewhere. I am trying to send For SASL anonymous, only provide the username while connecting, do not provide the password. Then rhea will automatically apply sasl anonymous. you can enable
Hopefully will be able to figure out something by tomorrow for $cbs. |
For amqp10 that token had to be sent as a special type AMQPval. Not sure how you will tell rhea to force it to that type. Add a listener on $cbs and set the replyTo property on your token message to point to $cbs to aid in debugging. Make sure you have you application_properties on that token message too. |
I got the basic
|
@amarzavery Have you gotten any farther in your RHEA implementations? I have to make some changes to SB AQMP code and thought now might be a good time to look at it again. Let me know if you have any newer code samples. |
@amarzavery Any updates on that AMQP based service bus library? Also, could I have any guidance on using amqp10 or that rhea script for receiving messages async from SB topics? |
@ArturPrzybysz , @tony-gutierrez - Sample for the above mentioned usecase can be found here https://github.com/Azure/azure-sdk-for-js/blob/master/sdk/servicebus/service-bus/samples/typescript/gettingStarted/receiveMessagesStreaming.ts#L33 Please file service bus related issues in the new repo https://github.com/Azure/azure-sdk-for-js |
@amarzavery Does this also cover notification hub? |
The sdk reference doesnt seem to be updated? https://docs.microsoft.com/en-us/javascript/api/azure-sb |
The API docs still need to be updated as we are in the process of creating the API docs for the new sdk. Nope it does not cover notification hubs yet. We have new sdks for EventHubs and ServiceBus. |
I am looking for a way to detect new messages in azure queue. I have found in .NET sdk getMessageAsync, which fits perfectly but sadly i cannot find its equivalent in nodes sdk.
Am I missing something and its available, or its simply not implemented?
The text was updated successfully, but these errors were encountered: