Developer Data Modeling Mistakes: From Postgres to NoSQL
Realtime Messaging und verteilte Systeme mit SharePoint und Windows Azure Service Bus
1. Realtime Messaging und Verteilte
Systeme mit Sharepoint und Windows
Azure Service Bus
Technology Advisor in Business Platform
Dipl.-Ing. Damir Dobric Division – Microsoft Corp.
Microsoft Most Valuable Professional
Lead Architect
daenet Email: damir.dobric@daenet.com
Blog: http://developers.de
WINDAYS12 TECHNOLOGY OBRAZOVNI PARTNER
2. Agenda
CONNECTING
ISSUES IN WEB
WebSockets
Server Sent Events
SIGNAL-R Forever Frames
WINDOWS AZURE
MESSAGING
RELAYING EXPANDO CONTRACT
3. Infrastructure for Web
http Request/Response
X
http Request/Response
http polling
http Request/Response
Full-Duplex
4. Polling and Duplex Approach
while(true){
var response = httpClient.SendRequest(“http://...”);
processResponse(response.Data);
Thread.Sleep(T);
}
tcpClient.TimeOut = 999999..;
var netStream = tcpClient.SendHttpRequest(“http://...”);
while(true){
var data1 = netStream.Read();
var data2 = processData(data1);
netStream.Write(data2);
}
}
WINDAYS12 TECHNOLOGY OBRAZOVNI PARTNER
5. SIGNAL-R
CONNECTING SERVER SENT
ISSUES IN WEB EVENTS
WebSockets
Server Sent Events
SIGNAL-R Forever Frames
WINDOWS AZURE
RELAYING MESSAGING
8. Server Sent Events
• Push from a server to a browser
• Part of HTML5 spec
• http://dev.w3.org/html5/eventsource
• Header: text/event-stream
• Implemented natively in Browser
• Long polling without closing connection
http://dsheiko.com/weblog/websockets-vs-sse-vs-long-polling
10. SignalR
• Permanent Connection support for none HTML5 browsers.
• Use it when infrastructure does not support any other push
technology
• Two Part Library
– jQuery PlugIn for Client
– .NET Library for Server
• Supported Transports:
– Long polling
– WebSockets
– Forever Frame streaming
– Server Sent events
11. DEMO
CONNECTING SERVER SENT
ISSUES IN WEB EVENTS
Server Sent
Events
SIGNAL-R Forever Frames
WINDOWS AZURE
RELAYING MESSAGING
12. RELAYING
CONNECTING SERVER SENT
ISSUES IN WEB EVENTS
Server Sent
Events
SIGNAL-R Forever Frames
WINDOWS AZURE
RELAYING MESSAGING
13. Service Bus Connectivity
Service
Bus
1. Outbound, bi-
Forwarder directional TCP
socket
2. Outbound, bi- connection
directional TCP
socket
connection
3. Route and relay the
message, and send it
to the service.
Client Service
17. Q&A
• Connecting Issues in Web
• Missing Callback
• Cannot initiate Connection from Server
• HTML5 Way
• WebSocket specification
• Still no server support
• Still no client support
• IIS8/Windows8/http.sys vNext
• SignalR
• No need for HTTP.Sys vNext
• No need for HTML5
• Full Cross Browser Support
• Service Bus
• Point to Point Connection through firewall
WINDAYS12 TECHNOLOGY OBRAZOVNI PARTNER
18. Consumer Service
Consumer BROCKER Service
WINDAYS12 TECHNOLOGY OBRAZOVNI PARTNER
19. • HTML5
• Push Notifications
• Long polling
• Server Sent Events
Q&A •
•
Forever Frame
WebSockets
Web Development with • SignalR
WebSockets and SignalR
Damir Dobric
blog: http://developers.de
http://twitter.com/#!/ddobric