servicebus

What is a servicebus and when do I need one?

偶尔善良 提交于 2019-12-02 13:58:28
I have heard talk about the NServiceBus , but I haven't really understood what it is. They claim to be "The most popular open-source service bus for .net". So; what is a "service bus", and when do I need one? You can think of a service bus as the Ethernet of SOA. First and foremost, it introduces a language of identifying things, like an IP address in Ethernet. This name isn't something inherently physical. Next, you have something physical involved on each node, like a queue in the case of a bus for supporting semi-connected communication, or an Ethernet card in the metaphor. Beyond just the

nServiceBus vs Mass Transit vs Rhino Service Bus vs other?

大兔子大兔子 提交于 2019-12-02 13:58:22
Just doing some quick spikes into possibly using a messaging system to process files that are in a nicely decoupled work flow system. What are the pro's and cons that people have found of using each of the above frameworks? What are the advantages of using these versus a hand-rolled MSMQ system with the WCF bindings and/or non-MSMQ solutions?? I'd recommend staying away from hand-rolled solutions as there is a bunch of somewhat difficult stuff that needs to be gotten just right - like how transactions are handled, how exceptions cause rollbacks, how to stop rolling back endlessly (poison

Sending a message to a azure service bus queue in .Net Core Core using the REST API

北战南征 提交于 2019-12-02 13:39:56
问题 I want to send a message to my Azure Service Bus Queue in .Net Core but the WindowsAzure.ServiceBus Package is not compatible with .Net Core. Can anyone show me how to send a message to the queue using the REST API? 回答1: While the current client is not .NET Core compatible, the new client, that is a work in progress, is 100% compatible. The pre-release package will be available on April 3rd and the status can be tracked here. You could pull down the course code and compile it already today

When I use topic/subscription in Azure Service Bus, is it possible to call an web api to inform me to get the message? Like AWS SNS

本秂侑毒 提交于 2019-12-02 11:48:53
问题 As I know, in AWS, if there's a new message in queue, AWS SNS can call my web API to inform me to get the message, so I don't need to get message by polling the queue to check if there is new message. Does Azure Service Bus topic/subscription has this similar function? Or I only can get the message by polling the subscription to check if there are new messages? Thanks 回答1: Not via Web API, but via .NET client library. This is named there the "Event Driven Programming model". And is in .NET

When I use topic/subscription in Azure Service Bus, is it possible to call an web api to inform me to get the message? Like AWS SNS

廉价感情. 提交于 2019-12-02 05:11:22
As I know, in AWS, if there's a new message in queue, AWS SNS can call my web API to inform me to get the message, so I don't need to get message by polling the queue to check if there is new message. Does Azure Service Bus topic/subscription has this similar function? Or I only can get the message by polling the subscription to check if there are new messages? Thanks Not via Web API, but via .NET client library. This is named there the "Event Driven Programming model". And is in .NET Client library since April'2013. You can read more here: http://msdn.microsoft.com/en-us/library/azure

Detect and Delete Orphaned Queues, Topics, or Subscriptions on Azure Service Bus

我怕爱的太早我们不能终老 提交于 2019-12-01 08:02:18
If there are no longer any publishers or subscribers reading nor writing to a Queue, Topic, or Subscription, because of crashes or other abnormal terminations (instance restart, etc.), is that Queue/Topic/Subscription effectively orphaned? I tested this by creating a few Queues, and then terminating the applications. Those Queues were still on the Service Bus a long time later. It seems that they will just stay there forever. That would be wonderful if we WANTED that behavior, but in this case, we do not. How can we detect and delete these Queues, Topics, and Subscriptions? They will count

Detect and Delete Orphaned Queues, Topics, or Subscriptions on Azure Service Bus

让人想犯罪 __ 提交于 2019-12-01 05:35:10
问题 If there are no longer any publishers or subscribers reading nor writing to a Queue, Topic, or Subscription, because of crashes or other abnormal terminations (instance restart, etc.), is that Queue/Topic/Subscription effectively orphaned? I tested this by creating a few Queues, and then terminating the applications. Those Queues were still on the Service Bus a long time later. It seems that they will just stay there forever. That would be wonderful if we WANTED that behavior, but in this

Auto-expire orphaned Subscription (Azure ServiceBus Messaging SubscriptionClient)

Deadly 提交于 2019-12-01 03:54:50
The scenario I have in mind is this: Service Bus is used for instance-to-instance communication, so a Subscription is unique per service instance. The end result is that if an instance does not shut down gracefully, its subscription does not get deleted. When a service instance "dies" and restarts, previous contents of the subscription are irrelevant and can be discarded. So, is there a way to set a "time to live" for Service Bus Subscription or simulate something similar, without having to resort to some custom orphan detection mechanism? that exact feature is on the backlog for one of the

How to use the MessageReceiver.Receive method by sequenceNumber on ServiceBus

大兔子大兔子 提交于 2019-12-01 03:27:36
问题 I'm trying to resubmit a message from a deadletter queue. I am can replay a message on a dead letter queue, thats fine. The problem is when I want to now delete this from the deadletter queue. Here is what I am trying to do: var subscription = "mySubscription"; var topic = "myTopic"; var connectionString = "connectionStringOnAzure"; var messagingFactory = MessagingFactory.CreateFromConnectionString(connectionString); var messageReceiver = messagingFactory.CreateMessageReceiver

Auto-expire orphaned Subscription (Azure ServiceBus Messaging SubscriptionClient)

与世无争的帅哥 提交于 2019-11-30 23:54:25
问题 The scenario I have in mind is this: Service Bus is used for instance-to-instance communication, so a Subscription is unique per service instance. The end result is that if an instance does not shut down gracefully, its subscription does not get deleted. When a service instance "dies" and restarts, previous contents of the subscription are irrelevant and can be discarded. So, is there a way to set a "time to live" for Service Bus Subscription or simulate something similar, without having to