The Greatest Introduction to SharePoint Framework (SPFx) on earth!
Signal r azurepresentation
1. The Real-Time Web with SignalR
and Azure Service Bus
Justin Wendlandt
Senior Consultant – Magenic Technologies
http://jwendl.net/
@jwendl on Twitter
3. Real-Time Web Overview
• Content on Demand vs. Published
• UX Similar to Desktop
Applications
• More Social and Interactive
4. Forced Video Feed Switching
• Scott Hanselman for DotNetConf
• Problem – Google Hangouts required users to refresh browser to see next
video
• Solution – Have SignalR and Azure Service bus switch out the videos when
an administrator published them
5. Real-time Deals on Amazon.com
• Real time deals based on
purchased data
• More social and interactive
experience for users
6. Real-Time Map API Hooks
• Use Bing Api
• Provide Locations of Users When
Discovered
7. The Web and HTTP
•Browser asks for document
•Server replies with 200 ok and bodyGET
•Browser uploads a document
•Server replies with 200 okPUT
•Browser takes previous response
•Sends modified data to server
•Server replies with 200 ok
POST
•Browser asks server to remove a document
•Server replies with 200 ok and deletes
document
DELETE
•Browser takes previous response
•Browser sends only merged data to server
•Server replies with 200 ok
MERGE
9. Publish Subscriber Pattern on the Web
• Implemented using Web Sockets
– RFC 6455
– Google
http://www.rfc-editor.org/rfc/rfc6455.txt
10. Introduction to SignalR
• https://github.com/SignalR
• Most popular implementations
– Jabbr - https://jabbr.net/
11. Failover Methods if Web Sockets Fail
Web Sockets
Server Sent Events (EventSource)
Forever Frame
Ajax Long Polling
12. Why Azure?
• Highly Scalable
• Unlimited Bandwidth (for a cost)
• Easy Deployment and
Configuration models
13. Continuous Integration and Azure
Write Code
Check In to
cloud
A Build is
Kicked off
Deployment
Sent to
Azure
14. SignalR Demonstration
• Hosted on Azure with TFS (http://tfs.visualstudio.com/)
• Requirements to run Demo
– Windows Azure SDK
– SignalR NuGet package
– ASP.NET MVC 4
16. Azure Service Bus
• Queues
– Holds Messages
– Pushes to Subscribers
• Topics
– Contract
– Specific Messages / Connections
17. Demo of Azure Service Bus
• Simple demo of Azure Service Bus
18. Scale out using Azure Service Bus
• Integrated in 1.1 beta for SignalR
• One line of code that does so much
19. Performance Configurations for IIS
Increase number of concurrent requests per
application
Increase number of concurrent requests per CPU
Increase the request queue limit
Scale out more instances if on Azure or another Service
Bus like Redis