Skip to content

Commit

Permalink
Update Service Bus Readme for preview.2 (Azure#8666)
Browse files Browse the repository at this point in the history
- Update links to point to preview.2 of the docs (and the heading that refers to the package)
- Updating changelog to include information about the new send() overload
- sessionRoundRobin sample wasn't included in the list of samples for JS

Co-authored-by: Ramya Achutha Rao <ramyar@microsoft.com>
  • Loading branch information
richardpark-msft and ramya-rao-a authored May 4, 2020
1 parent 893bfc9 commit bc299ab
Show file tree
Hide file tree
Showing 3 changed files with 40 additions and 31 deletions.
9 changes: 8 additions & 1 deletion sdk/servicebus/service-bus/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Release History

## 7.0.0-preview.2 (Unreleased)
## 7.0.0-preview.2 (2020-05-05)

- Fixes reconnection issues by creating a new connection object rather than re-using the existing one.
[PR 8580](https://github.com/Azure/azure-sdk-for-js/pull/8580)
Expand All @@ -9,6 +9,13 @@
Please note that if using sessions, this behavior doesn't change with this release.
- Provided down-leveled type declaration files to support older TypeScript versions 3.1 to 3.6.
[PR 8619](https://github.com/Azure/azure-sdk-for-js/pull/8619)
- The `ServiceBusSender.send()` method now has an overload that takes an array of events.
If you know beforehand that your messages would fit under the message size restrictions, this is an easier way to send events instead of creating an `ServiceBusMessageBatch` and filling it one by one.
- New sample to demonstrate how to receive messages from multiple sessions in a queue or subscription using session receivers.

### Breaking Changes

- The `createSender` and `createSessionReceiver` methods are now async. The promise returned by them are resolved after the link is successfully established with the service. The same will be done to the `createReceiver` method in the next preview.
- Remove rule operations from `ServiceBusClient` in favor of having similar operations via the management apis
which would apply to queues, topics, subscriptions and rules in the upcoming previews.
[PR 8660](https://github.com/Azure/azure-sdk-for-js/pull/8660)
Expand Down
30 changes: 15 additions & 15 deletions sdk/servicebus/service-bus/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ Use the client library `@azure/service-bus` in your application to
- Send messages to an Azure Service Bus Queue or Topic
- Receive messages from an Azure Service Bus Queue or Subscription

Resources for the v7.0.0-preview.1 of `@azure/service-bus`:
Resources for the v7.0.0-preview.2 of `@azure/service-bus`:

[Source code](https://github.com/Azure/azure-sdk-for-js/tree/master/sdk/servicebus/service-bus) |
[Package (npm)](https://www.npmjs.com/package/@azure/service-bus) |
Expand Down Expand Up @@ -301,20 +301,20 @@ If you'd like to contribute to this library, please read the [contributing guide
![Impressions](https://azure-sdk-impressions.azurewebsites.net/api/impressions/azure-sdk-for-js%2Fsdk%2Fservicebus%2Fservice-bus%2FREADME.png)
[apiref]: https://azuresdkdocs.blob.core.windows.net/$web/javascript/azure-service-bus/7.0.0-preview.1/index.html
[sbclient]: https://azuresdkdocs.blob.core.windows.net/$web/javascript/azure-service-bus/7.0.0-preview.1/classes/servicebusclient.html
[sbclient_constructor]: https://azuresdkdocs.blob.core.windows.net/$web/javascript/azure-service-bus/7.0.0-preview.1/classes/servicebusclient.html#constructor
[sbclient_createsender]: https://azuresdkdocs.blob.core.windows.net/$web/javascript/azure-service-bus/7.0.0-preview.1/classes/servicebusclient.html#createsender
[sbclient_createreceiver]: https://azuresdkdocs.blob.core.windows.net/$web/javascript/azure-service-bus/7.0.0-preview.1/classes/servicebusclient.html#createreceiver
[sbclient_createsessionreceiver]: https://azuresdkdocs.blob.core.windows.net/$web/javascript/azure-service-bus/7.0.0-preview.1/classes/servicebusclient.html#createsessionreceiver
[sender]: https://azuresdkdocs.blob.core.windows.net/$web/javascript/azure-service-bus/7.0.0-preview.1/interfaces/sender.html
[sender_send]: https://azuresdkdocs.blob.core.windows.net/$web/javascript/azure-service-bus/7.0.0-preview.1/interfaces/sender.html#send
[receiver]: https://azuresdkdocs.blob.core.windows.net/$web/javascript/azure-service-bus/7.0.0-preview.1/interfaces/receiver.html
[receiverreceivebatch]: https://azuresdkdocs.blob.core.windows.net/$web/javascript/azure-service-bus/7.0.0-preview.1/interfaces/receiver.html#receivebatch
[receiver_subscribe]: https://azuresdkdocs.blob.core.windows.net/$web/javascript/azure-service-bus/7.0.0-preview.1/interfaces/receiver.html#subscribe
[receiver_getmessageiterator]: https://azuresdkdocs.blob.core.windows.net/$web/javascript/azure-service-bus/7.0.0-preview.1/interfaces/receiver.html#getmessageiterator
[sessionreceiver]: https://azuresdkdocs.blob.core.windows.net/$web/javascript/azure-service-bus/7.0.0-preview.1/interfaces/sessionreceiver.html
[migrationguide]: https://github.com/Azure/azure-sdk-for-js/blob/%40azure/service-bus_7.0.0-preview.1/sdk/servicebus/service-bus/migrationguide.md
[apiref]: https://azuresdkdocs.blob.core.windows.net/$web/javascript/azure-service-bus/7.0.0-preview.2/index.html
[sbclient]: https://azuresdkdocs.blob.core.windows.net/$web/javascript/azure-service-bus/7.0.0-preview.2/classes/servicebusclient.html
[sbclient_constructor]: https://azuresdkdocs.blob.core.windows.net/$web/javascript/azure-service-bus/7.0.0-preview.2/classes/servicebusclient.html#constructor
[sbclient_createsender]: https://azuresdkdocs.blob.core.windows.net/$web/javascript/azure-service-bus/7.0.0-preview.2/classes/servicebusclient.html#createsender
[sbclient_createreceiver]: https://azuresdkdocs.blob.core.windows.net/$web/javascript/azure-service-bus/7.0.0-preview.2/classes/servicebusclient.html#createreceiver
[sbclient_createsessionreceiver]: https://azuresdkdocs.blob.core.windows.net/$web/javascript/azure-service-bus/7.0.0-preview.2/classes/servicebusclient.html#createsessionreceiver
[sender]: https://azuresdkdocs.blob.core.windows.net/$web/javascript/azure-service-bus/7.0.0-preview.2/interfaces/sender.html
[sender_send]: https://azuresdkdocs.blob.core.windows.net/$web/javascript/azure-service-bus/7.0.0-preview.2/interfaces/sender.html#send
[receiver]: https://azuresdkdocs.blob.core.windows.net/$web/javascript/azure-service-bus/7.0.0-preview.2/interfaces/receiver.html
[receiverreceivebatch]: https://azuresdkdocs.blob.core.windows.net/$web/javascript/azure-service-bus/7.0.0-preview.2/interfaces/receiver.html#receivebatch
[receiver_subscribe]: https://azuresdkdocs.blob.core.windows.net/$web/javascript/azure-service-bus/7.0.0-preview.2/interfaces/receiver.html#subscribe
[receiver_getmessageiterator]: https://azuresdkdocs.blob.core.windows.net/$web/javascript/azure-service-bus/7.0.0-preview.2/interfaces/receiver.html#getmessageiterator
[sessionreceiver]: https://azuresdkdocs.blob.core.windows.net/$web/javascript/azure-service-bus/7.0.0-preview.2/interfaces/sessionreceiver.html
[migrationguide]: https://github.com/Azure/azure-sdk-for-js/blob/%40azure/service-bus_7.0.0-preview.2/sdk/servicebus/service-bus/migrationguide.md
[docsms_messagesessions]: https://docs.microsoft.com/en-us/azure/service-bus-messaging/message-sessions
[docsms_messagesessions_fifo]: https://docs.microsoft.com/en-us/azure/service-bus-messaging/message-sessions#first-in-first-out-fifo-pattern
[queue_concept]: https://docs.microsoft.com/en-us/azure/service-bus-messaging/service-bus-messaging-overview#queues
Expand Down
32 changes: 17 additions & 15 deletions sdk/servicebus/service-bus/samples/javascript/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,20 +4,21 @@

These sample programs show how to use the JavaScript client libraries for Azure Service Bus in some common scenarios.

| **File Name** | **Description** |
| ------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------- |
| [sendMessages.js][sendmessages] | uses the send() function to send messages to Service Bus Queue/Topic |
| [receiveMessagesStreaming.js][receivemessagesstreaming] | uses the receive() function to receive Service Bus messages in a stream |
| [receiveMessagesLoop.js][receivemessagesloop] | uses the receiveMessages() function to receive Service Bus messages in a loop |
| [scheduledMessages.js][scheduledmessages] | uses the scheduleMessage() function to schedule messages to appear on a Service Bus Queue/Subscription at a later time |
| [session.js][session] | sends/receives messages to/from session enabled queues/subscriptions in Service Bus |
| [browseMessages.js][browsemessages] | uses the browseMessages() function to browse a Service Bus |
| [usingAadAuth.js][usingaadauth] | creates a ServiceBusClient that authenticates using AAD credentials |
| [useProxy.js][useproxy] | creates a ServiceBusClient that uses an HTTP(S) proxy server to make requests |
| [advanced/movingMessagesToDLQ.js][advanced-movingmessagestodlq] | moves a message explicitly to the dead-letter queue |
| [advanced/deferral.js][advanced-deferral] | uses the defer() function to defer a message for later processing |
| [advanced/processMessageFromDLQ.js][advanced-processmessagefromdlq] | retrieves a message from a dead-letter queue, edits it, and sends it back to the main queue |
| [advanced/sessionState.js][advanced-sessionstate] | uses a "shopping cart" example to demonstrate how SessionState information can be read and maintained in an application |
| **File Name** | **Description** |
| ------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------ |
| [sendMessages.js][sendmessages] | uses the send() function to send messages to Service Bus Queue/Topic |
| [receiveMessagesStreaming.js][receivemessagesstreaming] | uses the receive() function to receive Service Bus messages in a stream |
| [receiveMessagesLoop.js][receivemessagesloop] | uses the receiveMessages() function to receive Service Bus messages in a loop |
| [scheduledMessages.js][scheduledmessages] | uses the scheduleMessage() function to schedule messages to appear on a Service Bus Queue/Subscription at a later time |
| [session.js][session] | sends/receives messages to/from session enabled queues/subscriptions in Service Bus |
| [browseMessages.js][browsemessages] | uses the browseMessages() function to browse a Service Bus |
| [usingAadAuth.js][usingaadauth] | creates a ServiceBusClient that authenticates using AAD credentials |
| [useProxy.js][useproxy] | creates a ServiceBusClient that uses an HTTP(S) proxy server to make requests |
| [advanced/movingMessagesToDLQ.js][advanced-movingmessagestodlq] | moves a message explicitly to the dead-letter queue |
| [advanced/deferral.js][advanced-deferral] | uses the defer() function to defer a message for later processing |
| [advanced/processMessageFromDLQ.js][advanced-processmessagefromdlq] | retrieves a message from a dead-letter queue, edits it, and sends it back to the main queue |
| [advanced/sessionRoundRobin.js][advanced-session-round-robin] | uses `SessionReceiver`'s ability to get the next available session to round-robin through all sessions in a Queue/Subscription |
| [advanced/sessionState.js][advanced-sessionstate] | uses a "shopping cart" example to demonstrate how SessionState information can be read and maintained in an application |

## Prerequisites

Expand Down Expand Up @@ -65,11 +66,12 @@ Take a look at our [API Documentation][apiref] for more information about the AP
[advanced-movingmessagestodlq]: https://github.com/Azure/azure-sdk-for-js/tree/master/sdk/servicebus/service-bus/samples/javascript/advanced/movingMessagesToDLQ.js
[advanced-deferral]: https://github.com/Azure/azure-sdk-for-js/tree/master/sdk/servicebus/service-bus/samples/javascript/advanced/deferral.js
[advanced-processmessagefromdlq]: https://github.com/Azure/azure-sdk-for-js/tree/master/sdk/servicebus/service-bus/samples/javascript/advanced/processMessageFromDLQ.js
[advanced-session-round-robin]: https://github.com/Azure/azure-sdk-for-js/tree/master/sdk/servicebus/service-bus/samples/javascript/advanced/sessionRoundRobin.js
[advanced-sessionstate]: https://github.com/Azure/azure-sdk-for-js/tree/master/sdk/servicebus/service-bus/samples/javascript/advanced/sessionState.js
[sendmessages]: https://github.com/Azure/azure-sdk-for-js/tree/master/sdk/servicebus/service-bus/samples/javascript/sendMessages.js
[serviceprincipallogin]: https://github.com/Azure/azure-sdk-for-js/tree/master/sdk/servicebus/service-bus/samples/javascript/servicePrincipalLogin.js
[apiref]: https://docs.microsoft.com/javascript/api/@azure/service-bus
[azsvcbus]: https://docs.microsoft.com/azure/service-bus-messaging/service-bus-create-namespace-portal
[freesub]: https://azure.microsoft.com/free/
[package]: https://github.com/Azure/azure-sdk-for-js/tree/master/sdk/servicebus/service-bus/README.md
[usingaadauth]:https://github.com/Azure/azure-sdk-for-js/blob/master/sdk/servicebus/service-bus/samples/javascript/usingAadAuth.js
[usingaadauth]: https://github.com/Azure/azure-sdk-for-js/blob/master/sdk/servicebus/service-bus/samples/javascript/usingAadAuth.js

0 comments on commit bc299ab

Please sign in to comment.