![]() Maybe I made a mistake in the configuration, suggestions are welcome. I expected to incoming rates to be in the same range. The RabbitMQ dashboard shows the following rates: Var body = (JsonConvert.SerializeObject(bericht)) Ĭhannel.BasicPublish("RabbitMqService", "", messageProperties, body) Var messageProperties = channel.CreateBasicProperties() Ĭhannel.ExchangeDeclare("PerformanceConsole:ShowRabbitMqMessage", "fanout", true, false, null) Ĭhannel.ExchangeDeclare("RabbitMqService", "fanout", true, false, null) Ĭhannel.QueueDeclare("RabbitMqService", true, false, false, null) Ĭhannel.ExchangeBind("RabbitMqService", "PerformanceConsole:ShowRabbitMqMessage", "", null) Ĭhannel.QueueBind("RabbitMqService", "RabbitMqService", "", null) įor (var i = 0 i < numberOfMessages i++) Using (var channel = connection.CreateModel()) RabbitMQ code: public RabbitMqMessageSender(string user, string password, string rabbitMqHost) ![]() Var task = busControl.GetSendEndpoint(new Uri(this.rabbitMqHost + "/MasstransitService")) Public Task SendCommands(int numberOfMessages) Port = (myUri.Port > 0 ? myUri.Port : -1), Public RabbitMqMessageSender(string user, string password, string rabbitMqHost) Masstransit code: public MasstransitMessageSender(string user, string password, string rabbitMqHost) In order to get a fair comparison a defined the same topology for the RabbitMQ case as is used in the Masstransit case. The PublishConfirm flag of Masstransit has some effect but not that much. RabbitMQ is running in a Docker container in a HyperV machine. The RabbitMQ client library can send 10 times more message than the Masstransit library. This application runs in parallel a thread sending messages to RabbitMQ using the RabbitMQ client library and a thread using the Masstransit library sending the same message to RabbitMQ. I started to investigate this problem with a simple test application. When using Masstransit with RabbitMQ I see a disappointing performance.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |