Introduction
ASP.NET Core SignalR is an open-source library that simplifies adding real-time web functionality to apps. Real-time web functionality enables server-side code to push events to connected clients as they fire on the server. With SignalR, clients can also send messages to the server for duplex communications.
Example scenario
Imagine you're part of a development team tasked with updating the live map feature of an existing website. The live map is part of an ordering system that lets Contoso Pizza customers track the progress of their orders.
The current solution is implemented through client-side polling for order status change updates. This method is less than ideal, because it has the potential to flood the server with requests. Contoso Pizza has been receiving reports of orders that fail to be processed, resulting in a loss of sales and, potentially, loss of repeat customers.
The failures that are reported in the logs occur during peak hours of the sales day. When too many customers view the live order map at the same time, the server is overwhelmed with requests and the process fails. In this module, you use SignalR to address these concerns.
What are you going to do?
In this module, you learn the common terminology associated with SignalR, what it is, and how it works. You learn when SignalR is appropriate to use and when it's not the best solution. Finally, you check your knowledge of SignalR by answering a few key questions.
What is the main goal?
By the end of this module, you're familiar with SignalR terminology and have a fundamental understanding of its capabilities and limitations. With this knowledge, you're able to help decide whether SignalR is a viable option for your team.