NServiceBus distributor configuration

Technical notes from figuring out how to deploy NServiceBus in a distributed environment, beyond the simple development setups:

1. In a pub-sub scenario, distributors do not need any configuration specific to the publisher they are distributing for, or the subscribers they are distributing to. The configuration they do need is to mainly to define unique queue names for the queues that the distributor owns:

NServiceBus.Distributor.dll.config:
  <add key="DataInputQueue" value="MyDistributorDataInputQueue" />
<add key="ControlInputQueue" value="MyDistributorControlQueue" />
<add key="ErrorQueue" value="MyEnterpriseErrorQueue@machine" />
<add key="StorageQueue" value="MyDistributorStorageQueue" />
At runtime, the subscriber contacts the distributor, sending it a subscription message that includes the publisher's address and the subscription message type. This makes the distributor quite generic, with only the queue names (and possibly the number of threads, though I can't envision my distributors needing more than one thread.)

Comments

Popular posts from this blog

Web Deployment Projects targeting x64

Unintuitive error in msi log when DTF is misconfigured