Questions tagged [nservicebus]

NServiceBus is a highly pluggable, reliable, open source Enterprise Service Bus built on .NET.

The most popular Service Bus for .NET

Simple and easy publish/subscribe communication over any transport, on premise and in the cloud. Get enterprise-grade scalability and reliability for your workflows and integrations without any messy XML configuration - just pure-code bliss. Runs on MSMQ, RabbitMQ, Azure, and more – optimally configured out of the box so you can focus on your business logic.

Resources

Installation

NServiceBus can most easily be installed through its NuGet package.

Install-Package NServiceBus
2232 questions
0
votes
1 answer

Get Azure service bus queue status using NServiceBus

https://stackoverflow.com/a/50267687/2063755 provides the following code to get the queue status: string connectionString = "connection string"; var namespaceManager = NamespaceManager.CreateFromConnectionString(connectionString); var…
David Klempfner
  • 8,700
  • 20
  • 73
  • 153
0
votes
1 answer

Can a saga has multiple timeout handlers

We have implemented a saga that has a timeout method and worked as expected. Later we wanted to add one more timeout method. So, I have added it to the same saga but the second timeout is not getting called. These two messages will be called at a…
0
votes
1 answer

Webhook (Push) vs Asynchronous Queue (Push) Architecture

When building webhooks, it's a best practice for the consumer of the webhook (e.g. the receiver of the webhook) to immediately drop any messages received into a queue to prevent it from "backing up" the delivery of subsequent messages. This seems to…
user1431072
  • 1,272
  • 2
  • 13
  • 32
0
votes
1 answer

http interface for long operation

I have a running system that process short and long running operations with a Request-Response interface based on Agatha-RRSL. Now we want to change a little in order to be able to send requests via website in Json format so i'm trying many REST…
Mauro Destro
  • 746
  • 12
  • 34
0
votes
2 answers

Recommended message bus architecture for publishing client events

What's the recommended messaging architecture for the following scenario: Multiple workstations running a WinForms client Clients must reliably notify two (or more) Windows Services of an event Initially we wanted to avoid configuring MSMQ on the…
TrueWill
  • 25,132
  • 10
  • 101
  • 150
0
votes
1 answer

NServiceBus: Can I limit the endpoints to which an Event is send

I have a doubt about sending/publishing NServicebus events and commands. Commands seem pretty straightforward. According to the documentation they "They should be sent direct to their logical owner." So I guess the destination is decided either by…
Art
  • 163
  • 1
  • 8
0
votes
1 answer

Nservicebus in production setup

I just came across a business case where Nservicebus would fit really well. What I can't find is any advice on how to set it up in a production environment. Is it just the choice of profile or are there other things to consider. The scenario is…
Johan Zell
  • 263
  • 1
  • 4
  • 12
0
votes
1 answer

NServicebus and multiple message types on same SQS Queue

I am fairly new to NServicebus and have run into a problem that I am thinking may have to do with my architecture. I have one SQS queue with three SNS topics. So let's say: Queue1 MessageType1 MessageType2 MessageType3 I have created…
Mr. Spock
  • 315
  • 1
  • 9
0
votes
1 answer

NServicebus receive messages without all the NServicebus specific stuff

I am new to NServicebus and have struggled to find an answer in the documentation. I am trying to receive a message that is posted to Amazon SQS in a simple JSON format like this: "MyMessage": { "Id": 1, "Name": "Name", "Field1":…
Mr. Spock
  • 315
  • 1
  • 9
0
votes
1 answer

NServiceBus delayed delivery with while loop

My scenario is, that when a service order is created the NServiceBus saga should keep on looking for daily pending dues. If dues are available it should sendlocal message to the payment handler. I am continuously using a while loop to check the dues…
0
votes
1 answer

NServiceBus: accessing RabbitMQ IBasicProperties when sending message

I'm using RabbitMQ with NServiceBus. I send message to some queue where a third party service reads it. It turned out that service requires encoding_type property set to utf-8 which I cannot set through NServiceBus (or can I?). I wonder if there is…
0
votes
1 answer

How to use interface as events in CommonDomain and NEventStore?

I'm conducting a test using JOlivers CommonDomain and EventStore with NServiceBus. I need to raise an event in my Aggregate like this: RaiseEvent(bus.CreateInstance(m => { m.Number = number; })); And then later i have this…
Werner
  • 1,229
  • 1
  • 10
  • 24
0
votes
1 answer

NServiceBus sending message to one endpoint and waiting for reply in another

I'm using NServiceBus with RabbitMQ in my project. I have two services that don't know about each other and don't share anything. service1 publishes request messages to endpoint1 (queue1) and service2 listens to endpoint1 and publishes responses to…
0
votes
1 answer

Instance Mapping - nServiceBus

We can use “Instance Mapping” to route message to same instance hosted on multiple physical servers. What would be the impact if one of the physical machine goes down due to any reason? Will nServiceBus framework will start routing message to…
Brijesh
  • 369
  • 2
  • 10
0
votes
1 answer

Javascript messagehandler for NServicebus

I'm trying to create a javascript event subscriber for NServicebus and I would like to know if my thoughts are valid and if there are any common pitfalls in this design. I'm purposing the following components: ASP.NET MVC BusController…
Rik
  • 483
  • 3
  • 12