2013年9月12日 星期四

ASP.NET SignalR – Outline

Couse Outline

image

OWIN: Open Web Interface for .NET

 

Problem space, Real-time

image

image

image

In general: Real-time feedback, real-time notifications

For example: 選課系統,訂票系統

 

Developers’ World

image

image

image

Key Point: A Push Service

 

image

 

Push Services Pattern

image

image

Consumer: client, different OS

Push Service: Web Service, Window Service, Azure Cloud Service

External Event: Web Service, Twitter, Facebook, Stock, Weather Data

image

 

HTTP is the Protocol

image

 

Technical Approaches for Push

image

Polling means: do you have something…, do you have something…, do you have something…

 

Long Polling:

image

 

ASP.NET Platform

image

 

image

Persistent Connection 持續不斷連結

Volatile: 短暫的

No-durable: 非持久的

 

image

image

 

image

 

SignalR Sample

image

Intall-Package Microsoft.AspNet.SignalR.Sample

image

imageimage

 

Summary

image

 

References

image

沒有留言:

張貼留言