NServiceBus 限制消费者(端点) [英] NServiceBus limitations consumers (endpoints)

查看:60
本文介绍了NServiceBus 限制消费者(端点)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我目前正在将 NServiceBus 作为我的架构中的候选者,并且非常清楚它是什么以及可以做什么.我确实很难找到一个我仍然存在的问题的直接答案.我知道它是在 .NET 中构建的.我不清楚 .NET 是否是对出版商的限制.消费者(端点?)也是如此.

I am currently looking at NServiceBus as a candidate within my architecture and have a pretty good idea what it is and can do. I do have trouble finding a direct answer to one question that I still have. I know that it is build in .NET. It is unclear to me if .NET is a limitation to the publishers & consumers (endpoint?) as well.

简单地说,使用(例如)Azure ServiceBus 我可以使用 nodejs 应用程序在队列上发布消息,而消费者可以是一个用 Java 编写的 Azure 函数(触发).或者用 Python 编写的应用程序/服务.使用 NServiceBus 是否会限制编写发布者/消费者的技术?(到目前为止,对我来说,似乎是这样).

Simply put, using (for example) Azure ServiceBus I can post a message on a queue with a nodejs application, and a consumer could be an Azure Function (triggered) written in say Java. Or an application/service written in Python. Does using NServiceBus put a limit on the technology in which publisher/consumer is written ? (so far, to me, it seems so).

谢谢你澄清我脑子里的云;-)

Thanks for clarifying this cloud in my brain ;-)

干杯!

推荐答案

使用 NServiceBus 是否会限制编写发布者/消费者的技术?

Does using NServiceBus put a limit on the technology in which publisher/consumer is written?

简短的回答 - 不是.您可以在系统的一部分中使用 NServiceBus,而其他部分在不同平台上运行并以其他语言创建.NServiceBus 将这种集成视为原生"集成.

Short answer - it is not. You can use NServiceBus in part of your systems where other parts are running on different platforms and created in other languages. NServiceBus treats this kind of integrations as "native" integrations.

正如您提到的 Azure 服务总线作为您的底层通信技术,您可以查看 与 Azure 服务总线传输示例的本机集成 演示了如何将非 NServiceBus 代码与 NServiceBus 端点连接.虽然示例中的发送方是 .NET 代码,但它可以替换为 Java 或您用来发送/接收消息的任何其他语言.

As you have mentioned Azure Service Bus as your underlying communication technology, you could look at the Native Integration with Azure Service Bus Transport sample that demostrates how to connect non-NServiceBus code with NServiceBus endpoint. While the sender in the sample is a .NET code, it could be swapped out with Java or any other language you're using to send/receive messages.

这篇关于NServiceBus 限制消费者(端点)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆