开发者

NServiceBus Dynamic End Points

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜