Your SlideShare is downloading. ×
0
J web socket
J web socket
J web socket
J web socket
J web socket
J web socket
J web socket
J web socket
J web socket
J web socket
J web socket
J web socket
J web socket
J web socket
J web socket
J web socket
J web socket
J web socket
J web socket
J web socket
J web socket
J web socket
Upcoming SlideShare
Loading in...5
×

Thanks for flagging this SlideShare!

Oops! An error has occurred.

×
Saving this for later? Get the SlideShare app to save on your phone or tablet. Read anywhere, anytime – even offline.
Text the download link to your phone
Standard text messaging rates apply

J web socket

2,132

Published on

Published in: Technology, Education
0 Comments
1 Like
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total Views
2,132
On Slideshare
0
From Embeds
0
Number of Embeds
0
Actions
Shares
0
Downloads
42
Comments
0
Likes
1
Embeds 0
No embeds

Report content
Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
No notes for slide

Transcript

  • 1. Boosting Web Communication with WebSockets jWebSocket – The Open Source Solution for Real-Time Web Developers SDC 2011 April 04-05, 2011 Göteborg Convention Centre Göteborg, Sweden Alexander Schulze & Claudia Gillrath Innotrade GmbH, Germany
  • 2. <ul><li>Follow the presentation at... </li></ul><ul><li>http://jwebsocket.org/sdc </li></ul><ul><li>Enjoy the slides in realtime driven by WebSockets </li></ul>Realtime Presentation Boosting Web Communication with WebSockets 05.04.2011
  • 3. <ul><li>Agenda </li></ul><ul><ul><li>Introduction: Status, Technology, Targets </li></ul></ul><ul><ul><li>Use and Benefits vs. http </li></ul></ul><ul><ul><li>Models, Migration and Implementation </li></ul></ul><ul><ul><li>Solutions, Aspects and Prospects </li></ul></ul><ul><ul><li>Discussion </li></ul></ul>Today's Session Boosting Web Communication with WebSockets 05.04.2011
  • 4. <ul><li>The Web becomes more and more </li></ul><ul><ul><ul><li>Necessity of evolution to a platform for real-time data exchange </li></ul></ul></ul><ul><ul><ul><li>WebSocket technology is the fundament </li></ul></ul></ul>Boosting Web Communication with WebSockets 05.04.2011 Introduction pervasive interactive social mobile
  • 5. Status of Web Communication <ul><li>The HTTP Protocol </li></ul><ul><li>Designed for document transmission </li></ul><ul><li>Cumbersome, nearly real-time tricks </li></ul><ul><ul><ul><li>Polling, Long-Polling </li></ul></ul></ul><ul><ul><ul><li>Reverse-AJAX, Comet etc. </li></ul></ul></ul><ul><li>Ultimately non-standardized hacks </li></ul><ul><li>Remains a Request/Response mechanism </li></ul>Boosting Web Communication with WebSockets 05.04.2011
  • 6. <ul><li>What are WebSockets? </li></ul><ul><li>Bidirectional, f ull-duplex, permanent TCP connections 400 times less overhead ⅓ of latency </li></ul><ul><li>Standardized in HTML5 by W3C & IETF protects investments </li></ul><ul><li>Single TCP port saves 50% server resources </li></ul>Boosting Web Communication with WebSockets 05.04.2011 WebSockets – Technology
  • 7. <ul><li>What else? </li></ul><ul><ul><li>Designed for interactive Web Applications </li></ul></ul><ul><ul><li>Open for all kind of stationary and mobile browser based and native apps </li></ul></ul><ul><ul><li>Not just a protocol, but a new paradigm Request/Response Real-Time Communication </li></ul></ul>Boosting Web Communication with WebSockets 05.04.2011 WebSockets – Technology
  • 8. <ul><li>Demand from Developers, Providers and Users </li></ul><ul><ul><li>Compatibility Interoperability </li></ul></ul><ul><ul><li>Independency Integratability </li></ul></ul><ul><ul><li>Reliability Security </li></ul></ul>Boosting Web Communication with WebSockets 05.04.2011 WebSockets – Targets
  • 9. <ul><li>Demand from Developers, Providers and Users </li></ul><ul><ul><li>Availability Scalability </li></ul></ul><ul><ul><li>Extendability Flexibility </li></ul></ul><ul><ul><li>Simplicity Maintainability </li></ul></ul>Boosting Web Communication with WebSockets 05.04.2011 WebSockets – Targets
  • 10. <ul><li>The Concept </li></ul><ul><ul><li>Framework vs. Client/Server </li></ul></ul><ul><ul><li>3 rd Party Engines and Servers </li></ul></ul><ul><ul><li>Message Routing, Stream, Send, Broadcast, Events, Channels </li></ul></ul><ul><ul><li>Tokens and Plug-ins </li></ul></ul><ul><ul><li>Listeners and Apps </li></ul></ul><ul><ul><li>Filters and Encryption </li></ul></ul>Boosting Web Communication with WebSockets 05.04.2011 WebSockets – Concept
  • 11. Boosting Web Communication with WebSockets 05.04.2011 WebSockets – Models jWebSocket Framework TCP NIO JBoss Netty Glass- Fish Eclipse Jetty System Plug-in Custom App 3 rd -Party App Custom Plug-in <ul><li>jWebSocket Framework </li></ul><ul><ul><li>Replacible Engines </li></ul></ul><ul><ul><li>Stand-Alone or Embedded Operation </li></ul></ul><ul><ul><li>Plug-ins and WebSocket Apps </li></ul></ul><ul><ul><li>Completely open </li></ul></ul>Engines Plug-ins Apps
  • 12. Boosting Web Communication with WebSockets 05.04.2011 WebSockets – Models XML JSON <ul><li>jWebSocket Tokens </li></ul><ul><ul><li>WebSocket nodes are stupid </li></ul></ul><ul><ul><li>Need for a common language to understand incoming packets </li></ul></ul><ul><ul><li>Dataformats JSON, XML or CSV </li></ul></ul><ul><ul><li>Solution: Abstract Data objects, so called „Tokens“ </li></ul></ul>jWebSocket Framework Token-Processor Native Client Browser Client
  • 13. Boosting Web Communication with WebSockets 05.04.2011 WebSockets – Interoperability jWebSocket Framework WebSocket Services WebSocket Apps <ul><li>X-Browser-Compatibility </li></ul><ul><ul><li>Native Support in Chrome 4+, FF 4, Safari 5, Opera 11 </li></ul></ul><ul><ul><li>Flash-Fallback for IE and older Browsers </li></ul></ul><ul><ul><li>Long-Polling or Comet Fallback </li></ul></ul>
  • 14. jWebSocket Framework WebSocket Services WebSocket Apps Boosting Web Communication with WebSockets 05.04.2011 WebSockets – Interoperability <ul><li>X-Platform-Compatibility </li></ul><ul><ul><li>Android (Dalvik VM) </li></ul></ul><ul><ul><li>iPad/iPhone (iOS) </li></ul></ul><ul><ul><li>Symbian/BlackBerry (Java ME) </li></ul></ul><ul><ul><li>Windows Phone and Samsung Bada pending </li></ul></ul>
  • 15. <ul><li>jWebSocket Security </li></ul><ul><ul><li>SSL-Encryption </li></ul></ul><ul><ul><li>wss://[host][:port][/path]... </li></ul></ul><ul><ul><li>Authentication & Authorization </li></ul></ul><ul><ul><li>Filter & Validation </li></ul></ul><ul><ul><li>Virus-Scanning </li></ul></ul><ul><ul><li>Spam-Filter & Banning </li></ul></ul>Boosting Web Communication with WebSockets 05.04.2011 WebSockets – Models wss:// jWebSocket Framework In System-Filter Out Client In Custom-Filter Out Filterchain
  • 16. Boosting Web Communication with WebSockets 05.04.2011 WebSockets – Models jWebSocket Framework Collaboration Suite Online-Game Channel 2 „ WorkTogether“ Channel 1 „ PlayTheGame“ Player 1 Player 2 Collab. Memb1 Collab. Memb2 <ul><li>jWebSocket Channels </li></ul><ul><ul><li>Publish/Subscribe Mechanism </li></ul></ul><ul><ul><li>Private and Public Channels </li></ul></ul><ul><ul><li>Authentication </li></ul></ul><ul><ul><li>Separate Applications </li></ul></ul>
  • 17. <ul><li>jWebSocket Events </li></ul><ul><li>Event-Driven Programming using the Observable Pattern </li></ul><ul><li>Objects are „observable“ </li></ul><ul><li>Clients or other instances observe objects and are notified by events </li></ul><ul><li>Easy, flexible and effective </li></ul>WebSocket –Models Boosting Web Communication with WebSockets 05.04.2011 Observe Observer 1 ( Client ) Observer 2 ( Client ) ws:// or wss:// Observable (Server)
  • 18. Boosting Web Communication with WebSockets 05.04.2011 WebSockets – Models Synchronization Backbone Client Node 3 Node 2 Node 1 Re-director Load Bal. Client <ul><li>jWebSocket Clusters </li></ul><ul><ul><li>Load-Balancer </li></ul></ul><ul><ul><li>Redirector </li></ul></ul><ul><ul><li>Backbone simply WebSocket based </li></ul></ul><ul><ul><li>External Service Nodes </li></ul></ul>Ext.Serv. Node
  • 19. <ul><li>jWebSocket Plug-ins </li></ul><ul><ul><li>JDBC, SMTP, XMPP </li></ul></ul><ul><ul><li>Remote Procedure Calls C2S-, S2C-, C2C-RPCs </li></ul></ul><ul><ul><li>Object-, Filesharing </li></ul></ul><ul><ul><li>Logging, Stats, Admin </li></ul></ul><ul><ul><li>Chat, Stream, Twitter </li></ul></ul>WebSocket – Plug-ins Boosting Web Communication with WebSockets 05.04.2011 JDBC SMTP XMPP RPC ... Brows. Client Deskt. Client Custom Client Stream Sharing Chat Twitter ... Mobile Client jWebSocket Framework
  • 20. <ul><li>Where to use WebSockets? </li></ul><ul><ul><li>Chats, Messaging and Mail </li></ul></ul><ul><ul><li>Remote Control and Monitoring </li></ul></ul><ul><ul><li>Push and Streaming Services, Financial Ticker, Weather, News, Video </li></ul></ul><ul><ul><li>Bidirectional Remote Procedure Calls </li></ul></ul><ul><ul><li>Sharing Objects, Databases, Files </li></ul></ul><ul><ul><li>Uniting Stationary and Mobile Applications </li></ul></ul>Boosting Web Communication with WebSockets 05.04.2011 WebSockets – Application Areas
  • 21. <ul><li>What is the future of WebSockets? </li></ul><ul><ul><li>New Dimension of Online-Collaboration </li></ul></ul><ul><ul><li>New Level of Online-Entertainment </li></ul></ul><ul><ul><li>New Opportunities for Online-Education </li></ul></ul><ul><ul><li>New Social Participation and Contribution </li></ul></ul><ul><li>What comes to your mind? </li></ul>Boosting Web Communication with WebSockets 05.04.2011 WebSockets – Prospects
  • 22. <ul><li>Questions & Answers </li></ul><ul><li>Alexander Schulze [email_address] </li></ul><ul><li>Forum & Download: http://jwebsocket.org, @jWebSocket </li></ul>Boosting Web Communication with WebSockets 05.04.2011 Thank you for your attention!

×