Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/TextBack/vertx-azure-servicebus
https://github.com/TextBack/vertx-azure-servicebus
Last synced: 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/TextBack/vertx-azure-servicebus
- Owner: TextBack
- License: apache-2.0
- Created: 2016-07-11T10:11:54.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2023-12-15T02:31:43.000Z (about 1 year ago)
- Last Synced: 2024-08-04T01:07:00.862Z (6 months ago)
- Language: Java
- Size: 83 KB
- Stars: 0
- Watchers: 1
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- vertx-awesome - Azure ServiceBus - Azure [ServiceBus](https://azure.microsoft.com/en-us/products/service-bus/) producer and consumer (fully async, doesn't use Microsoft Azure SDK). (Integration)
README
vertx-azure-servicebus
======================Consumer and producer for Azure ServiceBus. Written from scratch using Azure REST API.
How to use
==========Deploy verticle as usual.
```
vertx.deployVerticle("textback.servicebus.SbApi", [
"instances": 1, // number of vericles, usualy 1 is enough
"config" : [
"AZURE_SB_LISTEN_QUEUE_NAME": ..., // name of Azure queue or subscription that should be listened by verticle
"AZURE_SB_SEND_QUEUE_NAME" : ..., // name of queue where to send outgoing messages
"EB_RECEIVE_ADDRESS" : ..., // vertx EventBus address what should be listened by verticle
"EB_SEND_ADDRESS" : ..., // vertx EventBus address where to send incoming messages
]
]) {
if (it.failed()) {
... // action to execute if verticle failed to deploy
} else {
...
}
}
```Verticle polls configured ServiceBus queue or subscription and when message arrives sends it to vertx EventBus.
Also verticle listens configured address on vertx EventBus and when message arrives sends it to Azure ServiceBus.