nservicebus,服务器将消息发送回分配器?
我在我的项目中使用nservicebus 1.9版本。我的项目使用的是发布者-订阅者模型。类似发布者将向分发者发送消息,分发者将相同的消息转发给订阅者之一。
但在我的项目中,订阅者将执行一些操作并将数据插入数据库,
我的要求是,如果订阅者无法将数据插入数据库,我需要将其发送回经销商。我怎样才能做到这一点?订阅者可以将消息发送回分发者吗?
nRk
I am using nservicebus 1.9 version in my project. My project we are using publisher- subscriber model. Like publisher will send messages to Distributor and Distributor will forward the same message to one of the subscribed Subscribers.
but in my project subscriber will do some operation and inserts the data into database,
My requirement is if subscribers fails to insert data into the database i need send it backi to distributor. How can I do that one? Can subscriber send Messages back to distributor?
nRk
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
当节点从分发器接收到消息时,如果发生故障,该消息不会返回到分发器,而是会移动到配置的错误队列中。现在,您可以将错误队列设置为分发器的数据队列,但这可能会在系统中留下垃圾,从而堵塞管道。简而言之,您希望将垃圾清除,以便管理员可以查看它并决定做什么 - 将其返回给经销商或执行其他操作。
这能回答你的问题吗?
When a node receives a message from a distributor, that message doesn't return to the distributor in case of failure, it is moved to the configured error queue. Now, you could set the error queue to be the data queue of the distributor, but that could leave garbage in your system which clogs up the pipes. In short, you want to get the garbage out so that an administrator can look at it and decide what to do - return it to the distributor or do something else.
Does that answer your question?