什么是服务总线,何时需要? [英] What is a servicebus and when do I need one?

查看:77
本文介绍了什么是服务总线,何时需要?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我听说过有关 NServiceBus 的话题,但是我并没有真正理解它的含义.他们声称自己是".net最受欢迎的开源服务总线".

I have heard talk about the NServiceBus, but I haven't really understood what it is. They claim to be "The most popular open-source service bus for .net".

所以;什么是服务总线",何时需要?

So; what is a "service bus", and when do I need one?

推荐答案

您可以将服务总线视为SOA的以太网.

You can think of a service bus as the Ethernet of SOA.

首先,它引入了一种识别事物的语言,例如以太网中的IP地址.这个名字本质上不是物理上的.

First and foremost, it introduces a language of identifying things, like an IP address in Ethernet. This name isn't something inherently physical.

接下来,您在每个节点上都涉及一些物理问题,例如在支持半连接通信的总线上是一个队列,或者在隐喻中是一个以太网卡.

Next, you have something physical involved on each node, like a queue in the case of a bus for supporting semi-connected communication, or an Ethernet card in the metaphor.

除了物理之外,还有通信的协议"部分,例如用于以太网的OSI堆栈.对于总线,这是应用程序代码使用的客户端库.

Beyond just the physical, there is the "protocol" part of the communication, like the OSI stack for Ethernet. With the bus, this is the client libraries used by application code.

最终,您可以将服务总线视为构建分布式系统的下一个更高级别的抽象.您还可以将其用于客户端与服务器之间的通信,从而为您提供持久的单向消息传递,以及服务器将通知推送回客户端.

Ultimately, you can view a service bus as providing the next higher level of abstraction for building distributed systems. You can use it also for client-server communication to give you durable one-way messaging as well as for the server to push notifications back to the client.

特别是,一旦您使用NServiceBus排队技术使自己安心,您会发现NServiceBus相当轻巧且易于使用-您可以选择RabbitMQ,MSMQ,常规SQL表,Amazon SQS,Azure存储队列和Azure服务公共汽车.

Specifically, you'll find NServiceBus to be quite lightweight and easy to use once you make peace with its use of queuing technology - your choice of RabbitMQ, MSMQ, Regular SQL Tables, Amazon SQS, Azure Storage Queues, and Azure Service Bus.

这篇关于什么是服务总线,何时需要?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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