Skip to content

Comment on RestBus – Call ASP.Net Core, WebAPI and ServiceStack Endpoints Over RabbitMQparent

Comments

Yes, you can have multiple queues on the RabbitMQ instance and a server can also publish messages.

There isn't any performance issues with the scenario you described. The publisher will need to use two or more clients (one for each service) and instead of calling

  await clientA.GetAsync()
it will call
  var resA = clientA.GetAsync();
  var resB = clientB.GetAsync(); 
  ...
  var resAll = Task.WaitAll/Task.WaitAny(new Task[]{resA, resB});
to wait for all clients to complete.
AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.