简体   繁体   English

Microsoft Signalr 架构及其工作原理

[英]Microsoft Signalr architecture and how it's working

I'm trying to understand how Signalr works.我试图了解 Signalr 的工作原理。 I have read a lot of documentation but I still don't get it completely.我已经阅读了很多文档,但我仍然没有完全理解。

I want to start by explaining my case.我想先解释一下我的情况。 I have a react front application that communicate with a Nodejs Azure function.我有一个与 Nodejs Azure function 通信的反应前端应用程序。 I want to add realtime to it by using Signalr.我想通过使用 Signalr 为其添加实时。

In documentation I see that all tutorials are using ASP.NET to create Hubs on server side.在文档中,我看到所有教程都使用 ASP.NET 在服务器端创建集线器。

As I don't have any experiences in ASP.NET or C# I would like to know if there is a solution to use Signalr witout C# but NodeJS ( Javascript ) on server side? As I don't have any experiences in ASP.NET or C# I would like to know if there is a solution to use Signalr witout C# but NodeJS ( Javascript ) on server side?

I would also know what is the difference between ASP.NET Core SignalR and ASP.NET SignalR?我也想知道 ASP.NET Core SignalR 和 ASP.NET Z358E3E185C26A6A339BZE30FDZ 有什么区别? ( this post is not clear enough for me) 这篇文章对我来说不够清楚)

SignalR is part of the .NET framework. SignalR 是 .NET 框架的一部分。 It should be used server side on ASP.NET or ASP.NET Core.它应该在 ASP.NET 或 ASP.NET 内核上使用服务器端。

The difference between the two frameworks is that .NET is kinda the legacy Framework.这两个框架之间的区别在于 .NET 有点像旧版框架。 .NET Core is a full rewrite that on the surface looks a like but is cross-platform, lighter and has best performances. .NET Core 是一个完全重写的内核,表面上看起来很像,但它是跨平台的,更轻巧,性能最好。

The goal of SignalR is to offer developers an easy library to use real time communication. SignalR 的目标是为开发人员提供一个使用实时通信的简单库。 Depending on the server or client capacities, it will open a channel with the best protocol possible between them to realize real time operations.根据服务器或客户端的能力,它将在它们之间打开一条具有最佳协议的通道,以实现实时操作。

NOW, what you need is a technology like SignalR (but not it) for NodeJS: https://socket.io/现在,您需要的是像 SignalR(但不是它)这样的技术,用于NodeJS:https://socket.io/

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 绑定类型“signalR”未注册 - The binding type(s) 'signalR' are not registered NodeJs体系结构有何不同? - How different is NodeJs Architecture? Microsoft Bot 框架未按预期工作 - Microsoft Bot framework not working as expected 如何解耦实时游戏架构 - How to decouple a realtime game architecture 如何在nodejs中开发微服务架构 - How to develop microservice architecture in nodejs 应该如何构建应用程序架构? - how should construct application architecture? 如何使用javascript(node.js)从Microsoft Dynamics CRM接收Webhooks? - How to receive webhooks from Microsoft's dynamics CRM using javascript(node.js)? 如何使用 Microsoft-Graph 和 NodeJS 按日历名称获取日历的事件? - How to get calender's events by calendar name, with Microsoft-Graph and NodeJS? 如何使用Google存储中的图像在Microsoft Azure的计算机视觉中修复InvalidImageFormat? - How to fix InvalidImageFormat in Microsoft Azure's Computer Vision using image from google storage? How do I form an SAS token for Microsoft Azure API Management's REST API in Node.js? - How do I form an SAS token for Microsoft Azure API Management's REST API in Node.js?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM