Questions tagged [azureservicebus]

Microsoft Azure Service Bus provides a hosted, secure, and widely available infrastructure for widespread communication, large-scale event distribution, naming, and service publishing. Endpoints can be located behind network address translation (NAT) boundaries, or bound to frequently-changing, dynamically-assigned IP addresses, or both. Service Bus comes with a 99.9% uptime SLA.

Microsoft Azure Service Bus provides a hosted, secure, and widely available infrastructure for widespread communication, large-scale event distribution, naming, and service publishing. Service Bus provides connectivity options for Windows Communication Foundation (WCF) and other service endpoints – including REST endpoints -- that would otherwise be difficult or impossible to reach. Endpoints can be located behind network address translation (NAT) boundaries, or bound to frequently-changing, dynamically-assigned IP addresses, or both.

Service Bus provides both “relayed” and “brokered” messaging capabilities. In the relayed messaging pattern, the relay service supports direct one-way messaging, request/response messaging, and peer-to-peer messaging. Brokered messaging provides durable, asynchronous messaging components such as Queues, Topics, and Subscriptions, with features that support publish-subscribe and temporal decoupling: senders and receivers do not have to be online at the same time; the messaging infrastructure reliably stores messages until the receiving party is ready to receive them.

Runs anywhere, connects nearly anything

Azure Service Bus is a generic, cloud-based messaging system for connecting just about anything—applications, services, and devices—wherever they are. Connect apps running on Azure, on-premises—or both. You can even use Service Bus to connect household appliances, sensors, and other devices like tablets or phones to a central application or to each other.

Build robust cloud solutions that scale to meet demand

Asynchronous messaging patterns are the architectural cornerstone of reliable and scalable applications. Integrating cloud resources like SQL Azure, Azure Storage, and Azure Websites with Service Bus messaging ensures smooth operation under heavy and variable load with the durability to survive intermittent failures.

Manage message delivery in the cloud

Queues offer simple first in, first out guaranteed message delivery and supports a range of standard protocols (REST, AMQP, WS*) and APIs. Topics deliver messages to multiple subscriptions and fan out message delivery at scale to downstream systems.

Connect on-premises applications to the cloud

Service Bus Relay solves the challenges of communicating between on-premises applications and the outside world by allowing on-premises web services to project public endpoints. Systems can then access these web services, which continue to run on-premises from anywhere on the planet.

3572 questions
13
votes
2 answers

Unit Testing ServiceBus.Message. How to set value for SystemProperties.LockToken?

I want to test a message handler callback that I have registered with a QueueClient using queueClient.RegisterMessageHandler(MyCallBack, messageHandlerOptions). public Task MyCallBack(Message msg, CancellationToken token) { // Read msg. Do…
GiriB
  • 1,244
  • 2
  • 13
  • 28
13
votes
4 answers

Azure functions local.settings.json represented in appsettings.json for a ServiceBusTrigger

I currently have an azure function using the ServiceBusTrigger binding [ServiceBusTrigger("%TopicName%", "%SubscripionName%", Connection = "MyConnection")] string catclogueEventMsgs, ILogger log, ExecutionContext context) which uses this…
O'Neil Tomlinson
  • 702
  • 1
  • 6
  • 28
13
votes
2 answers

Azure Service Bus Message Queue User Errors Metric

I am helping investigate and diagnose some issues we have and have noticed that the User Errors metrics on a service bus queue is changing. I'd like to know exactly what this metric means as the documentation at…
Carl
  • 131
  • 1
  • 1
  • 6
13
votes
3 answers

How to debug ServiceBus-triggered Azure Function locally?

My function will be triggered from an existing ServiceBus topic. I have created the function using the new tooling in VS2017 (15.3) preview, as a compiled function. How can I test this function locally?
13
votes
3 answers

Difference between Lease-Based and Lock-Based exclusive access in Azure Queues

I know (reading the msdn documentation here) that Windows Azure Storage Queues use a lease-based exclusive access strategy to the messages and Azure Service Bus Queues use a lock-based one. In both I can set the maximum duration of lock/lease. So,…
13
votes
2 answers

Azure Service Bus Operations Raising TimeoutException instead of UnauthorizedAccessException using ACS

I am using Access Control Service to authorize access to specific Service Bus Subscriptions for specific Service Identities. When receiving sessions or messages from the subscription, the Service Identity is authorized and can receive and complete…
GaryJL
  • 901
  • 1
  • 11
  • 24
12
votes
6 answers

Starting Azure Service Bus Trigger Function throws InvalidOperationException for "Host not yet started"

I have a v.2 Service Bus Trigger function which, when I attempt to start, throws the following exception: System.InvalidOperationException HResult=0x80131509 Message=The host has not yet started. Source=Microsoft.Azure.WebJobs.Host …
RobC
  • 1,303
  • 3
  • 15
  • 32
12
votes
1 answer

Lock duration significance on azure service bus topic subscriptions

I have been looking at lockdurations and renewlock mechanisms for service bus queue and topics. However it is not clear about what exactly does lock duration mean for topic subscriptions. For example: If i have a topic GameScoreUpdate and it has…
Mandar Jogalekar
  • 3,199
  • 7
  • 44
  • 85
12
votes
4 answers

Create ServiceBus topic if it doesn't already exist

Microsoft has updated their .NET ServiceBus client library, and their documentation is currently split between the old WindowsAzure.ServiceBus package and the new Microsoft.Azure.ServiceBus package. I like the new package, as its a lot cleaner and…
Andrew Williamson
  • 8,299
  • 3
  • 34
  • 62
12
votes
5 answers

Azure Service Bus: Best way to implement exponential retry policy for failed to process messages

I am continuously receiving messages in peek mode and abandoning them if processing fails (Not the delivery). However, the message immediately becomes available again and is received for processing again. It fails quickly again and after max…
12
votes
1 answer

Redis vs Service Bus for pub/sub scenario

I have several services in Azure and i would like to sync changes between them using some kind of pub/sub service. I am looking into Redis and Azure Service Bus. The data to be synced is very simple - mostly strings up to 100 characters I would like…
Haim Turjeman
  • 139
  • 1
  • 4
12
votes
2 answers

Azure WebJob ServiceBusTrigger for Sessions

I know it's possible to recieve messages from a service bus queue like: public static void ProcessQueueMessage([ServiceBusTrigger("inputqueue")] string message, TextWriter logger) But is there also a way to to receive a session via a trigger…
12
votes
4 answers

Azure Service Bus queue messages got stuck

I recently created some partitioned queues from where I send and receive all the time. They've run as non-partitioned in the past without any of my current issues. The problem is, I have a constant number of messages in the queue that I can not…
user2413912
  • 579
  • 6
  • 19
12
votes
3 answers

Service Bus Brokered VS Relayed Messaging

I have a question that is confusing me what are the differences between the types of service bus, the brokered messaging and the relayed messaging? I am not looking for it from the development perspective but I want to understand more the concept…
hhaggan
  • 619
  • 4
  • 11
12
votes
2 answers

Azure Service Bus and Messaging Sessions

I've been looking into Azure Service Bus Queues (NOT Azure Storage Queues). All of the details that I have read indicate that it supports FIFO semantics, but only in the context of a "Messaging Session". The problem is that I can't seem to find any…
Erick T
  • 7,009
  • 9
  • 50
  • 85