开发者

NServiceBus Dynamic End Points

开发者 https://www.devze.com 2023-02-22 22:14 出处:网络
Is it possible to create end points dynamically at runtime.E.g. 开发者_如何学运维 Send a message to a known endpoint with details of a new endpoint so that a network node can learn of new nodes on the

Is it possible to create end points dynamically at runtime. E.g. 开发者_如何学运维 Send a message to a known endpoint with details of a new endpoint so that a network node can learn of new nodes on the fly.


NServiceBus does not support this out of the box, but if you really really want it (and you are sure that it is the right way to go), you are free to implement your own message routing and send messages explicitly to an endpoint with bus.Send(endpoint, message).

In a project I am currently involved with, we do this with great success, because it allows us to seamlessly sign services in and out of the system while it is running, resulting in zero downtime during upgrades.

It took a bit of work to get it working though, so I would only recommend this if you are certain that your requirements demand it.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号