Your SlideShare is downloading. ×
CodeCamp Iasi 10 march 2012 - websockets-with-atmosphere
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

CodeCamp Iasi 10 march 2012 - websockets-with-atmosphere

735
views

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
735
On Slideshare
0
From Embeds
0
Number of Embeds
0
Actions
Shares
0
Downloads
8
Comments
0
Likes
0
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. Friday, March 9, 12
  • 2. WebSockets with Atmosphere Dan Vulpe @dvulpe 10 mar 2012Friday, March 9, 12
  • 3. HTTP - Half Duplex Request Client ServerFriday, March 9, 12
  • 4. HTTP - Half Duplex Request 30-150ms Response Request Connection 2 Response Client ServerFriday, March 9, 12
  • 5. HTTP - Half Duplex Request 30-150ms Response HttpSession Request Connection 2 Response Client ServerFriday, March 9, 12
  • 6. WebSocket Full Duplex Single TCP connection Client ServerFriday, March 9, 12
  • 7. WebSocket Full Duplex Handshake Request WebSocket upgrade Single TCP connection Client ServerFriday, March 9, 12
  • 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. Components MeteorServlet Http Request AtmosphereResource BroadcasterFriday, March 9, 12
  • 10. Server: Incoming • Implement SubProtocol • handle onMessage eventsFriday, March 9, 12
  • 11. Server: Outgoing • Request a Broadcaster from Factory • Subscribe resources to Broadcaster • Publish messages through BroadcasterFriday, March 9, 12
  • 12. JS Client APIFriday, March 9, 12
  • 13. DEMOFriday, March 9, 12
  • 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. 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. Thank you! Please fill out the evaluation form!Friday, March 9, 12