什么是服务代理? [英] What is Service Broker?

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

问题描述

什么是服务代理在SQL Server和它是有意义的,使其能够在一个简单的数据库,而不是在一个分布式数据库?

What is Service Broker in SQL Server and is it meaningful to enable it in a simple database, not in a distributed database?

(请不要关闭这个问题,我看到了其他类似的问题,但他们没有回答我的问题。)

(Please do not close this question, I saw other similar questions but none of them answered my question.)

推荐答案

SQL服务代理是一种扩展机制,可以让你排队的异步处理的事件。

SQL Service broker is an extension mechanism that allows you to queue events for asynchronous processing.

有在使券商没有内在的伤害,如果不使用它的它只是被闲置。

there is no intrinsic harm in enabling the broker, if its not used it will just be idle.

它的工作既简单和分布式数据块。一个简单的例子将是一个日志队列。我们用它在客户端排队异步处理XML消息。因此,我们推一个XML到InitatorQueue,然后有一个服务从队列中拉他们,通过提取XPath的一些必要的属性,并将其插入到一个持久性的表中我们的数据库。

It works in both simple and distributed DBs. A simple use case would be a logging queue. We used it at a client to queue xml messages to be processed asynchronously. So we push an xml to a InitatorQueue, and then had a service pull them from the queue, extract some necessary attributes via xpath, and insert them into a persistence table in our database.

这里是

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

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