Signal r azurepresentation
Upcoming SlideShare
Loading in...5

Signal r azurepresentation






Total Views
Views on SlideShare
Embed Views



2 Embeds 13 11 2



Upload Details

Uploaded via as Microsoft PowerPoint

Usage Rights

© All Rights Reserved

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
Post Comment
Edit your comment

Signal r azurepresentation Signal r azurepresentation Presentation Transcript

  • The Real-Time Web with SignalRand Azure Service BusJustin WendlandtSenior Consultant – Magenic Technologies on Twitter
  • OverviewReal Time WebImplementationsExamplesSignal RHorizontal Scaling with AzureDemoQuestions and Answers
  • Real-Time Web Overview• Content on Demand vs. Published• UX Similar to DesktopApplications• More Social and Interactive
  • Forced Video Feed Switching• Scott Hanselman for DotNetConf• Problem – Google Hangouts required users to refresh browser to see nextvideo• Solution – Have SignalR and Azure Service bus switch out the videos whenan administrator published them
  • Real-time Deals on• Real time deals based onpurchased data• More social and interactiveexperience for users
  • Real-Time Map API Hooks• Use Bing Api• Provide Locations of Users WhenDiscovered
  • 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 okPOST•Browser asks server to remove a document•Server replies with 200 ok and deletesdocumentDELETE•Browser takes previous response•Browser sends only merged data to server•Server replies with 200 okMERGE
  • Publish Subscriber PatternPublisherSubscribersService Busor HubDevices
  • Publish Subscriber Pattern on the Web• Implemented using Web Sockets– RFC 6455– Google
  • Introduction to SignalR•• Most popular implementations– Jabbr -
  • Failover Methods if Web Sockets FailWeb SocketsServer Sent Events (EventSource)Forever FrameAjax Long Polling
  • Why Azure?• Highly Scalable• Unlimited Bandwidth (for a cost)• Easy Deployment andConfiguration models
  • Continuous Integration and AzureWrite CodeCheck In tocloudA Build isKicked offDeploymentSent toAzure
  • SignalR Demonstration• Hosted on Azure with TFS (• Requirements to run Demo– Windows Azure SDK– SignalR NuGet package– ASP.NET MVC 4
  • Horizontal Scaling Concepts• Server hardware is expensive• Configuring more instances iscomplex
  • Azure Service Bus• Queues– Holds Messages– Pushes to Subscribers• Topics– Contract– Specific Messages / Connections
  • Demo of Azure Service Bus• Simple demo of Azure Service Bus
  • Scale out using Azure Service Bus• Integrated in 1.1 beta for SignalR• One line of code that does so much
  • Performance Configurations for IISIncrease number of concurrent requests perapplicationIncrease number of concurrent requests per CPUIncrease the request queue limitScale out more instances if on Azure or another ServiceBus like Redis
  • References• SignalR––––––• Azure Service Bus–––• Web Sockets––
  • Questions?@jwendl on Twitterjwendl@hotmail.com