Gateway receiving messages slowly


(Adam Michaleski) #1

We’re sending messages through Gateway, and we’re averaging about 1 second per received message, so it leads to our outbound queues on the external service building up when they have large amounts of data to send. Is there any way to improve this performance? For context, our gateway is sitting inside an Azure Service Fabric stateless service, and our sender is running in a Windows Service.

Any insight is greatly appreciated.


(Daniel Marbach) #2

Hi Adam,

The Gateway extension method allows you to specify the concurrency with a parameter on the AddReceiveChannel method.

var gatewayConfig = endpointConfiguration.Gateway();
gatewayConfig.AddReceiveChannel("http://localhost:25899/RemoteSite/", maxConcurrency = WhatEverYouLike);

Regards
Daniel