ASP.NET网络挂接和信号-R的区别 [英] Difference between ASP.NET WebHooks and Signal-R

查看:250
本文介绍了ASP.NET网络挂接和信号-R的区别的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

之间有什么新发布<一个区别href=\"http://blogs.msdn.com/b/webdev/archive/2015/09/15/sending-webhooks-with-asp-net-webhooks-$p$pview.aspx\">ASP.NET网络挂接和信号-R?有哪些优势和劣势?什么是用例每种技术?

What is the difference between the newly release ASP.NET WebHooks and Signal-R? What are the advantages or disadvantages? What are the use cases for each technology?

推荐答案

使用的的WebSockets SignalR是通知的ASP.NET应用程序中。您可以通过交换的WebSockets事件通知,但它需要持续的网络连接。

SignalR is for notification within an ASP.NET app using WebSockets. You can exchange event notifications through WebSockets, however it requires a constant network connection.

网络挂接是在其他Web应用程序和其他外部服务事件通知。 (想想B2B通信)。例如,你可以当有人向您钱,您的PayPal帐户收到网络挂接。贝宝POST请求触发了您predefined URL处理程序,然后你的应用程序如何处理该通知的东西。您$ P $第一p配置的PayPal方的一切。您还可以设置一个应用程序来处理传入POST请求。事件通报(近)的实时推给你。无需举行公开的网络连接,同时等待事件。

WebHooks are for event notification across other web applications and other external services. (Think B2B communication). For instance, you can receive a WebHook when someone sends you money to your PayPal account. PayPal fires off a POST request to your predefined URL handler and then your app does something with that notification. You pre-configure everything on the PayPal side first. You also set up an application to handle the incoming POST request. The event notification is "pushed" to you in (near) real-time. No need to hold open a network connection while waiting for events.

这两个可以互补。例如,当您收到来自PayPal网络挂接,可以通知登录的用户在你的webapp(使用SignalR /的WebSockets),钱已成功接收。

The two can be complementary. For example, when you receive the WebHook from PayPal, you can notify a logged in user on your webapp (using SignalR/WebSockets) that money has been received successfully.

TLDR:在不同的Web应用程序事件通知

TLDR: Event notification across different web applications

这篇关于ASP.NET网络挂接和信号-R的区别的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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