Questions tagged [nservicebus]
NServiceBus is a highly pluggable, reliable, open source Enterprise Service Bus built on .NET.
2,227
questions
0
votes
0
answers
43
views
How to propagate trace context in .Net 6 and OpenTelemetry?
I would like to add tracing to my .Net 6 app using Open Telemetry, but I have an issue with the context.
I have an app that sends NServiceBus messages to another service and then receives a response ...
0
votes
1
answer
30
views
NServiceBus - Handler multiple time execution issue
I am facing some issues with the NServiceBus Handler. The handler is processing messages multiple times. I have added the code.
.UseNServiceBus(context =>
{
var ...
-1
votes
1
answer
32
views
How to control DB schema (varchar length) of generated NServiceBus data tables
By default NServiceBus generates DB-schema based on code (with NHibernate's ConventionModelMapper, I think). Thus string-properties are mapped to NVARCHAR(255) columns. Any chance to change/modify ...
0
votes
0
answers
17
views
Synchronous Message Handling in NServiceBus
I have a use case where I want to publish events where some of the event handlers need to be synchronous (potentially running on the same box as the publisher). Is this possible with using NServiceBus?...
0
votes
0
answers
43
views
Azure Webjob stops reading outgoing service bus messages with error Closing messaging factories
We have an Azure webjob that reads messages from an Azure service bus queue using NServiceBus.
Four years ago we had an issue where the webjob abruptly stopped reading messages from the queue.
This ...
0
votes
1
answer
43
views
The configured execution strategy 'SqlRetryingExecutionStrategy' does not support user-initiated transactions
I have ASP.Net 4.7.2 window service which is processing NServiceBus messages. Currently it is deployed to On-Premise server. It has retry mechanism as well and working fine. Now I am going to ...
0
votes
0
answers
30
views
Window Service Running in Docker container not processing NServiceBus messages
I am running a windows docker container which is running ASP.Net window service based on framework 4.7.2. It is running successfully and supposed to pick NServiceBus messages but it is not picking ...
0
votes
2
answers
36
views
How to map endpoints that get changed by Octopus for different environments in NServiceBus 7?
I'm upgrading NServiceBus to version 7 and the configuration block <UnicastBusconfig> in app.config has been deprecated according to the upgrade guide and should now be configured in-code.
In my ...
0
votes
1
answer
44
views
NSB ScriptBuilderTask cannot resolve assembly of own nuget package
We have a microservice architecture and share some code between our services using a nuget package called "HC.Framework".
When i try to build a solution that is using this nuget package (...
3
votes
0
answers
83
views
How do I keep Particular ServiceControl Audit db (Raven5) from getting larger and larger in size?
We recently upgraded Particular.ServiceControl.Audit to v4.26 and recreated our Audit instance, since from v4.26 and up new audit instances will bump up RavenDB from 3.5 to 5.4.
We did this hoping to ...
0
votes
1
answer
94
views
NServiceBus Outbox pattern with SQL question
Im trying to figure out how exactly outbox is suppose to work with NServicebus but I'm not quite sure I get it. Here is the current scenario that we have:
Service1
Service2
Service3
ServiceN
Each of ...
1
vote
0
answers
53
views
How to ignore x-max-priority when using NServiceBus with RabbitMQTransport
I'm trying to figure out a way to migrate from an existing homegrown wrapper around RabbitMQ to NServiceBus.
The current obstacle is that the wrapper creates queues with the "x-max-priority" ...
4
votes
1
answer
810
views
New SQS subscriptions have "Subscription Principal" that is causing problems
I am working on a project that uses NServicebus to publish messages to AWS SQS queues.
NServicebus has a feature that builds the queues, topics, and subscriptions for you when you run the application. ...
0
votes
1
answer
124
views
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....
0
votes
1
answer
38
views
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 ...
0
votes
1
answer
180
views
Webhook (Push) vs Asynchronous Queue (Push) Architecture [closed]
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 ...
1
vote
1
answer
63
views
NServiceBus IUniformSession does not work with Azure WebJobs SDK
I am having trouble getting IUniformSession to work in an Azure WebJobs SDK project with Generic Host. I am using .NET built-in DI. I have created a compact repro found below.
I am using
NServiceBus ...
0
votes
1
answer
85
views
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 ...
0
votes
1
answer
119
views
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
...
0
votes
1
answer
104
views
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"...
1
vote
1
answer
85
views
Properly shutting down send-only NServiceBus Endpoint in a WCF Application
We are trying to host a send-only endpoint within a WCF service. Due to its fire-and-forget nature, the WCF hosting option here isn't really what we are looking for, since we don't want to wait for ...
0
votes
0
answers
101
views
NServiceBus - Cannot access a disposed object. Object name: 'Transaction'.'
I am getting the Cannot access a disposed object. Object name: 'Transaction'.' error message when I try to call sendlocal method.
In the handler, I am making a cosmos DB call to get the required ...
0
votes
1
answer
60
views
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 ...
1
vote
1
answer
401
views
Hosting nservicebus with .net6
NServiceBus is supported in .net6
According to the hosting docs and .net3.1 WebAPI-sample hosting can be done with
var host = Host.CreateDefaultBuilder()
.UseNServiceBus(context =>
{
...
0
votes
1
answer
109
views
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 ...
0
votes
1
answer
226
views
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 ...
1
vote
1
answer
218
views
NServiceBus SqlServerTransport with .NET 6 Worker Service Issues
I am attempting to use NServiceBus 7.7.3 and its SqlServerTransport with a .NET 6 worker service. The SqlServerTransport is using the NServiceBus.Transport.SqlServer 6.3.3 and Microsoft.Data.SqlClient ...
2
votes
0
answers
81
views
nServiceBus - Stops processing message intermediately
recently we upgraded our nServiceBus version to 7. Post this upgrade we are noticing that this endpoint stops processing messages intermediately.
We checked our logs and noticed below message there
...
0
votes
1
answer
60
views
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 ...
0
votes
1
answer
51
views
Use LearningTransport with nservicebus azure trigger functions (NServiceBusTriggerFunction)
Trying to use the example code snippet:
builder.UseNServiceBus(ctx =>
{
var endpointConfig = new EndpointConfiguration("ConsoleEndpoint");
endpointConfig.UseTransport(new ...
0
votes
1
answer
47
views
NServiceBus - configuring AzureStorageQueueTransport with Router (requires an explicitly defined serializer but I cannot do such)
I'm trying to setup a Router to route messages from an Azure Storage Queue Transport to a RabbitMQ transport. I'm able to configure the RabbitMQ interface & connect just fine. However, when I try ...
0
votes
1
answer
281
views
In NServiceBus how can I prevent multiple messages for the same resource being processed concurrently?
We have an NServiceBus endpoint that currently listens for ProductChanged events and communicates a number of these changes to a third party.
Due to the volume of events we need to process we have ...
0
votes
0
answers
105
views
Setting WebProxy when using NServiceBus + Azure Servicebus
I am currently writing a couple .NET core of applications using NServiceBus with AzureServiceBusTransport, but I cannot find any way of configuring it with a WebProxy. When using Azure Servicebus ...
0
votes
2
answers
51
views
NService bus 'Publish()' base interface not sending concrete child class properties
I am using an interface to send message to a handler using NServicebus. Below is the interface:
interface IDeliveryTarget
{
public DeliveryType DeliveryType { get; }
public string ...
-1
votes
1
answer
111
views
Unable to set default tags for every queues in Amazon SQS using nservice bus
Currently, I have to switch our messaging system to use AmazonSQS and due to pricing policy, we are obliged to put tags. But I do not found any method to add tags.
Below the method which won't work ...
0
votes
1
answer
576
views
NServiceBus with RabbitMQ Simple event
I want to be able to used NServiceBus to add a message on a queue in RabbitMQ. I dont want to handle it yet so just want to see an item on the queue, my code is as follows, but I get this error when I ...
0
votes
2
answers
190
views
Writing nservicebus logs in UTC time format instead of the one that's set on the OS
When messages get written into the nsb logs (nsb_yy-mm-dd_X.txt), they are always written in the time zone that's set on the OS (in this case on a Windows 2019 Enterprise box, Americas/New York). ...
0
votes
1
answer
57
views
NServicebus Saga using Oracle.EntityFrameworkCore
I would like to know if it's possible to use Oracle.EntityFrameworkCore with NServicebus 7.6?
I am using hosted .NET 6 service running NSB 7.6.
Data access are using Oracle.EntityFrameworkCore
From ...
0
votes
0
answers
101
views
Servicebus queue triggered azure function not able to consume messsage sent from .net framework nservicebus client
public async Task Run([ServiceBusTrigger("testqueue",, Connection = "queueConn")]string mySbMsg, ILogger log)
{
try
{
///////////
message is not even hitting the function. however ...
1
vote
1
answer
308
views
Delay in handling message in NServiceBus
This is not about Delayed message delivery. Lately I've noticed my endpoint has a delay in handling a message when looking at when the message is taken from the RabbitMQ queue.
I was wondering if ...
0
votes
1
answer
65
views
Copy custom headers from incoming pipeline to outgoin pipeline using behaviors
I tried to copy a custom headers from the incoming pipeline to de outgoin pipeline with the purpose of spread this headers along all services. This has been implemented using the behaviors pipeline. ...
0
votes
1
answer
670
views
Cannot subscribe to events from an ASP.NET Core 6.0 API NServiceBus endpoint
I want to make my API both publish events (outside any incoming message handlers, e.g. from an action method) and subscribe to events. Publishing events works. I used the older versions of Program and ...
0
votes
2
answers
361
views
NServiceBus UseTransport not working after upgrading to .NET 6
I'm using NserviceBus with the Azure Function project ( NServiceBus.AzureFunctions.InProcess.ServiceBus). Application is using azure service bus as the transport and it is configured in function ...
1
vote
1
answer
199
views
Using NServiceBus in a synchronous API
I'm exposing an API to a vendor where that vendor requires the API to be synchronous. I however would like to use NServiceBus on the backend of it to make good use of our other architecture.
Is there ...
2
votes
1
answer
3k
views
What is the correct format of connectionstring for Azure Service Bus when using Managed Identity for my App Service?
I have this App Service in Azure running as a Web Job. The application is a former Windows Service built using NServiceBus and I have been reconfiguring it to work in Azure.
The application is using ...
-1
votes
2
answers
35
views
NServiceBus .netcore + MySql
I’m trying to configure NServiceBus in a simple .netcore3.1 console application to use MySql.
I have the Persistence set to SqlPersistence with a SqlDialect.MySql and i'm using the SqlServerTransport*....
0
votes
1
answer
174
views
How to correlate two AppInsights resources that communicate through NServiceBus?
Currently, I have dozens of .NET services hosted on various machines that show up as Resources on my AppInsights Application Map, which also shows their dependencies with respect to each other, based ...
1
vote
1
answer
53
views
Collecting messages
I have a flow where some handler publish event. And every 100 events I would like to do some operation. Is there any clever way to achieve that? I know that I could write handler that is running on ...
0
votes
2
answers
130
views
Why does AzureServiceBusTransport keep creating a sql filter for only 1 event? (NServiceBus transport)
NServiceBus version: 7.5.0
.NET Version: 5
I have a .NET API where I have a number of handlers and an NServiceBus saga. This now includes commands and events. The commands aren't a problem and they ...
0
votes
1
answer
97
views
Instances of IHandleMessages created by call/request
I have some doubs about the mechanism that NServiceBus follow to create instances of IHandleMessages:
Does it create one instance per call or could it be reuse?
Is it safe to have private state on ...