Friday, March 9, 12
WebSockets with                 Atmosphere                 Dan Vulpe                 @dvulpe                 10 mar 2012Fr...
HTTP - Half Duplex                      Request                            Client   ServerFriday, March 9, 12
HTTP - Half Duplex                      Request                                      30-150ms                             ...
HTTP - Half Duplex                      Request                                      30-150ms                             ...
WebSocket Full Duplex                                         Single TCP connection                       Client   ServerF...
WebSocket Full Duplex                            Handshake Request                            WebSocket upgrade           ...
Atmosphere                      • Java Framework provides uniform Comet                        API                      • ...
Components                         MeteorServlet     Http Request                      AtmosphereResource      Broadcaster...
Server: Incoming                      •   Implement                          SubProtocol                      •   handle o...
Server: Outgoing                      •   Request a Broadcaster from Factory                      •   Subscribe resources ...
JS Client APIFriday, March 9, 12
DEMOFriday, March 9, 12
Java Support                      •   Server side                          •   JSR356 - Java API for WebSocket - In Progre...
Resources                      •   https://github.com/Atmosphere/atmosphere                      •   http://www.websocket....
Thank you!                      Please fill out the evaluation form!Friday, March 9, 12
Upcoming SlideShare
Loading in...5
×

CodeCamp Iasi 10 march 2012 - websockets-with-atmosphere

772

Published on

Published in: Technology
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total Views
772
On Slideshare
0
From Embeds
0
Number of Embeds
0
Actions
Shares
0
Downloads
9
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

CodeCamp Iasi 10 march 2012 - websockets-with-atmosphere

  1. 1. Friday, March 9, 12
  2. 2. WebSockets with Atmosphere Dan Vulpe @dvulpe 10 mar 2012Friday, March 9, 12
  3. 3. HTTP - Half Duplex Request Client ServerFriday, March 9, 12
  4. 4. HTTP - Half Duplex Request 30-150ms Response Request Connection 2 Response Client ServerFriday, March 9, 12
  5. 5. HTTP - Half Duplex Request 30-150ms Response HttpSession Request Connection 2 Response Client ServerFriday, March 9, 12
  6. 6. WebSocket Full Duplex Single TCP connection Client ServerFriday, March 9, 12
  7. 7. WebSocket Full Duplex Handshake Request WebSocket upgrade Single TCP connection Client ServerFriday, March 9, 12
  8. 8. Atmosphere • Java Framework provides uniform Comet API • Supports: WebLogic, Tomcat, Jetty, Glassfish, JBoss, Grizzly, Servlet 3.0 Async • Fallback to blocking-IO (one thread per channel) • jQuery plugin • WebSocket façadeFriday, March 9, 12
  9. 9. Components MeteorServlet Http Request AtmosphereResource BroadcasterFriday, March 9, 12
  10. 10. Server: Incoming • Implement SubProtocol • handle onMessage eventsFriday, March 9, 12
  11. 11. Server: Outgoing • Request a Broadcaster from Factory • Subscribe resources to Broadcaster • Publish messages through BroadcasterFriday, March 9, 12
  12. 12. JS Client APIFriday, March 9, 12
  13. 13. DEMOFriday, March 9, 12
  14. 14. Java Support • Server side • JSR356 - Java API for WebSocket - In Progress • Containers: Jetty(7, 8), Grizzly/Glassfish, Resin • Client • async-http-clientFriday, March 9, 12
  15. 15. Resources • https://github.com/Atmosphere/atmosphere • http://www.websocket.org/ • http://www.w3.org/TR/websockets/ • http://wiki.eclipse.org/Jetty/Feature/WebSocketsFriday, March 9, 12
  16. 16. Thank you! Please fill out the evaluation form!Friday, March 9, 12
  1. A particular slide catching your eye?

    Clipping is a handy way to collect important slides you want to go back to later.

×