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
86
votes
4 answers

Message bus vs. Service bus vs. Event hub vs Event grid

I'm learning the messaging system and got confused by those terminology. All the messaging system below provides loose coupling between services with different sets of features. queue - FIFO, pulling mechanism, 1 consumer each queue but any number…
60
votes
5 answers

The lock supplied is invalid. Either the lock expired, or the message has already been removed from the queue

I'm using a Microsoft azure service bus queue to process calculations and my program runs fine for a few hours but then I start to get this exception for every message that I process from then on. I have no clue where to start since everything runs…
DarthVegan
  • 1,719
  • 7
  • 25
  • 42
44
votes
2 answers

Test Azure Service Bus locally without any subscription or login

Is there a way to play with and discover Azure Service Bus on the local emulator without registering to the real Azure Services? I was following a tutorial on the use of the Azure Service Bus but at a certain point a Namespace and an Issuer Name and…
Alex
  • 1,237
  • 3
  • 18
  • 29
43
votes
4 answers

Looking for clarity on Event Hubs vs Topics in Azure Service Bus

I've been learning about Event Hubs and just want to get confirmation or correction on my perspective on Event Hubs? I’m used to leveraging retries, poison messages, at least once delivery and so on for normal enterprise messaging solutions, which…
JBO
  • 563
  • 1
  • 4
  • 8
42
votes
1 answer

Azure Service Bus vs RabbitMQ for Enterprise applications

I need to decide between Azure Service Bus and RabbitMQ (Deployed on Azure) for an enterprise level application and my major use will be of topics (with durable storage). I see that service bus has more features as compared to RabbitMQ like Retries…
Muhammad Faizan
  • 863
  • 1
  • 7
  • 16
37
votes
5 answers

Can the Azure Service Bus be delayed before retrying a message?

The Azure Service Bus supports a built-in retry mechanism which makes an abandoned message immediately visible for another read attempt. I'm trying to use this mechanism to handle some transient errors, but the message is made available immediately…
Paul Turner
  • 38,949
  • 15
  • 102
  • 166
35
votes
3 answers

with azure brokeredmessage get the body without knowing the type

When you are using the brokered message in the Azure Service Bus, you can retrieve the body of the message with the call .GetBody. The code is simple: var msg = subscription.Receive(); MyPayload payload = msg.GetBody(); However, is…
yamspog
  • 18,173
  • 17
  • 63
  • 95
32
votes
6 answers

What's the proper way to abandon an Azure SB Message so that it becomes visible again in the future in a way I can control?

So the scenario is that I'm using an SB queue to throttle outgoing callbacks to other services. One of the standard problems with calling back to other services is that they may be down for uncontrollable amounts of time. Assuming I detect that the…
Drew Marsh
  • 33,111
  • 3
  • 82
  • 100
32
votes
10 answers

Determining how many messages are on the Azure Service Bus Queue

I know there is a way to determine the number of messages (or approximate number) in the Azure Queue (Store Account); however is there a way to query for the number of pending messages on an Azure Service Bus queue?
aceinthehole
  • 5,122
  • 11
  • 38
  • 54
31
votes
9 answers

Clearing azure service bus queue in one go

We are using a service bus queue in our project. We are in need of a functionality to remove all the messages from the queue when the administrator chooses to clear the queue. I searched on the net but could not find any function which does this…
bhavesh lad
  • 1,242
  • 1
  • 13
  • 23
29
votes
7 answers

Azure WebJobs ServiceBus returns Exception: found 2 DNS claims in authorization context

I'm trying to read a message from an Azure ServiceBus queue using an Azure WebJob but it's throwing and exception: Unhandled Exception: System.InvalidOperationException: Found 2 DNS claims in authorization context. I've set the correct connection…
26
votes
3 answers

Azure ServiceBus Message Serialization/Deserialization

I am using a .NET Core application to send an object through an Azure Service Bus Queue and have it received by a Web Job (.NET Core as well.) My question is how to serialize/deserialize to send/receive the object? I found lots of references to the…
Username Not Exist
  • 491
  • 2
  • 5
  • 13
26
votes
2 answers

What is causing Azure Event Hubs ReceiverDisconnectedException/LeaseLostException?

I'm receiving events from an EventHub using EventProcessorHost and an IEventProcessor class (call it: MyEventProcessor). I scale this out to two servers by running my EPH on both servers, and having them connect to the Hub using the same…
plukich
  • 635
  • 1
  • 6
  • 14
25
votes
1 answer

Microsoft.ServiceBus.Messaging vs Microsoft.Azure.ServiceBus

MS has recently introduced the Microsoft.Azure.ServiceBus namespace. https://github.com/Azure/azure-service-bus/blob/master/samples/readme.md It is geared for the new .net standard framework (as if MS doesn't have enough semi-redundant code bases)…
I Stand With Russia
  • 6,254
  • 8
  • 39
  • 67
24
votes
3 answers

Programmatically create service bus subscription using .net standard

My scenario: Website hosted on the cloud, where each instance creates a subscription to a Service Bus Topic for itself to listen for messages. My question: How do I programmatically create subscriptions?
Josh
  • 2,958
  • 3
  • 16
  • 27
1
2 3
99 100