AZURE SIGNALR
Another tool in the tool belt
WHO AM I
David@zalosolutions.com
@SharePointDavid
www.spdavid.com
What Is SignalR
• Real-time apps
• Server -> Client
• Client -> Server
• Hubs
• The bridge between clients and server
• Takes the complexity out of Web Sockets and fallback methods
• Near instant
• Limits?
• Does not really scale well without (Redis backplane or Azure SignalR Service)
What Is Azure
SignalR
• Is an Azure Service: You
dont have to have your
own server
• Up and going in minutes
• Modes
• Default – ASP.net
Core
• Serverless – Azure
Functions
• Classic -> Mixed -
Not Recommended
What can SignalR Do
• Broadcast to all Clients
• Collect users in groups to send mesage
• Send mesage to a specific user
• What is a message  just text aka json
• Can implement your own authentication – middleware
Scenarios to use SignalR
• HelpDesk and Chat based systems
• Online HTML Games
• Anytime you want a user to get real time updates
• Instead of polling
• Live Dashboards – Think Flight status page with live updates
• Charts
• The limit is your imagination
Lessons Learned
• Objects instead of single
values – Does not break
on change
• Some times its good to
pay for stuff (Use
Standard more stable)
• One Service per
developer. Things get
mixed up
DEMO
HTTPS://SPSNYCSIGNALR.AZUREWEBSITES.NET
AUTHENTICATION ASP.NET
Add [Authorize Tag] on the Hub Class
Override the OnConnectedAsync Method for custom actions
AUTHENTICATION ASP.NET
services.AddSingleton<IUserIdProvider,
CustomUserIdProvider>();
Good Links
• https://docs.microsoft.com/sv-se/azure/azure-functions/functions-bindings-signalr-
service
• https://docs.microsoft.com/en-us/aspnet/core/signalr/introduction
• https://github.com/Azure-Samples/signalr-service-quickstart-serverless-chat
• https://docs.microsoft.com/en-us/azure/azure-signalr/signalr-quickstart-dotnet-core
BINGO CARDS
• WEBCON – has the bingo cards, visit them to play
• Bingo Cards = how you win prizes at the end of the event.
• The cards must be stamped by ALL the Sponsors in order to be eligible to win.
• For the grand prizes you must have opted-in when registering.
• Must be here to win at the end of the day.
Another Surface Go Xbox One S
Tons of prizes .. Socks, buttons, bags, echo dots, gift cards, plural sight, gaming monitor, Bluetooth
EVALUATIONS
• Speaker Evaluations
• located at the front of the room
• Will be read by the org and then sent to speakers
• Be honest and constructive
• Turn in 6th floor info desk
• Event Evaluations
• Visit the 6th floor info desk
• Give us your honest feedback – we can take it
• Turn in 6th floor info desk
THANK YOU
EVENT SPONSORS
We appreciated you supporting the
New York SharePoint Community!
• Diamond, Platinum, Gold, & Silver have
tables scattered throughout
• Please visit them and inquire about their
products & services
• To be eligible for prizes make sure to get
your bingo card stamped by ALL sponsors
• Raffle at the end of the day and you must
be present to win!
Beer Authority
300 W 40h St
[across the street]
Join us for a round of drinks
http://www.beerauthoritynyc.com

Azure SignalR - Another tool in the toolbeld

  • 1.
  • 2.
  • 3.
    What Is SignalR •Real-time apps • Server -> Client • Client -> Server • Hubs • The bridge between clients and server • Takes the complexity out of Web Sockets and fallback methods • Near instant • Limits? • Does not really scale well without (Redis backplane or Azure SignalR Service)
  • 4.
    What Is Azure SignalR •Is an Azure Service: You dont have to have your own server • Up and going in minutes • Modes • Default – ASP.net Core • Serverless – Azure Functions • Classic -> Mixed - Not Recommended
  • 5.
    What can SignalRDo • Broadcast to all Clients • Collect users in groups to send mesage • Send mesage to a specific user • What is a message  just text aka json • Can implement your own authentication – middleware
  • 6.
    Scenarios to useSignalR • HelpDesk and Chat based systems • Online HTML Games • Anytime you want a user to get real time updates • Instead of polling • Live Dashboards – Think Flight status page with live updates • Charts • The limit is your imagination
  • 7.
    Lessons Learned • Objectsinstead of single values – Does not break on change • Some times its good to pay for stuff (Use Standard more stable) • One Service per developer. Things get mixed up
  • 8.
  • 9.
  • 10.
    AUTHENTICATION ASP.NET Add [AuthorizeTag] on the Hub Class Override the OnConnectedAsync Method for custom actions
  • 11.
  • 12.
    Good Links • https://docs.microsoft.com/sv-se/azure/azure-functions/functions-bindings-signalr- service •https://docs.microsoft.com/en-us/aspnet/core/signalr/introduction • https://github.com/Azure-Samples/signalr-service-quickstart-serverless-chat • https://docs.microsoft.com/en-us/azure/azure-signalr/signalr-quickstart-dotnet-core
  • 13.
    BINGO CARDS • WEBCON– has the bingo cards, visit them to play • Bingo Cards = how you win prizes at the end of the event. • The cards must be stamped by ALL the Sponsors in order to be eligible to win. • For the grand prizes you must have opted-in when registering. • Must be here to win at the end of the day. Another Surface Go Xbox One S Tons of prizes .. Socks, buttons, bags, echo dots, gift cards, plural sight, gaming monitor, Bluetooth
  • 14.
    EVALUATIONS • Speaker Evaluations •located at the front of the room • Will be read by the org and then sent to speakers • Be honest and constructive • Turn in 6th floor info desk • Event Evaluations • Visit the 6th floor info desk • Give us your honest feedback – we can take it • Turn in 6th floor info desk
  • 15.
    THANK YOU EVENT SPONSORS Weappreciated you supporting the New York SharePoint Community! • Diamond, Platinum, Gold, & Silver have tables scattered throughout • Please visit them and inquire about their products & services • To be eligible for prizes make sure to get your bingo card stamped by ALL sponsors • Raffle at the end of the day and you must be present to win!
  • 16.
    Beer Authority 300 W40h St [across the street] Join us for a round of drinks http://www.beerauthoritynyc.com

Editor's Notes

  • #5 https://github.com/Azure/azure-signalr/blob/dev/docs/faq.md#service-mode