Successfully reported this slideshow.

Comet, Simplified, with Jabbify Comet Service

972 views

Published on

Published in: Technology, Education
  • Be the first to comment

  • Be the first to like this

Comet, Simplified, with Jabbify Comet Service

  1. 1. Comet, Simplified, with the Jabbify Comet Service Brian Moschel Jupiter IT
  2. 2. Overview Why Why How It Showcase Demo Comet? Jabbify? Works
  3. 3. Why Comet? • Web 2.0 Trends 1. Time Spent on a Page
  4. 4. Why Comet? • Web 2.0 Trends 2. Half life of a Page’s Content
  5. 5. Why Comet? • Demand for Comet is growing • Desktop apps moving to the web • Chat • Real time updates • Don’t like to reload • Ajax:2003::Comet:2009
  6. 6. What is Jabbify? • Comet, simplified • No server • No setup • JavaScript API and GET requests
  7. 7. Why Jabbify? Simple to use Scale easily Rapid setup
  8. 8. Simple to use synchronized (_continuations) { for(Iterator<Map.Entry <String, ArrayList<Continuation>>> iter = _continuations.entrySet().iterator(); iter.hasNext();){ Map.Entry<String, ArrayList<Continuation>> entry = iter.next(); ArrayList<Continuation> continuations = entry.getValue(); for(Continuation c : continuations){ c.resume(); } } _continuations.clear(); } vs Jabbify.connect({name: this.username}, this.continue_to('after_connect')) after_connect: function(){ Jabbify.send('vote','submit', {result: this.result}) }
  9. 9. Scale easily • Scaling comet >> Scaling traditional web applications • Resource intensive • Jabbify is built to scale as usage grows
  10. 10. Rapid Setup <New id=quot;cfquot; class=quot;org.mortbay.jetty.plus.naming.Resourcequot;> <Arg>jms/connectionFactory</Arg> <Arg> <New class=quot;org.apache.activemq.ActiveMQConnectionFactoryquot;> <Arg>failover:(tcp://localhost:61616)?initialReconnectDelay=20&amp;maxReconnectDe lay=900</Arg> </New> </Arg> </New> vs <script language=quot;javascriptquot; type=quot;text/javascriptquot; src=quot;jabbify.jsquot;></script>
  11. 11. Comet is complex • Client – Transports (JSONP, Window.name, Flash, XHR, iframe) • Server – Special server – Setup time – Learning curve • Scaling – Resource consumption – Threading issues
  12. 12. Jabbify is simple • Client to Client Comet – JavaScript API • Jabbify.send(“message”,”create”,{message: “hi there”}); • Server to Client Comet – GET requests • https://jabbify.com/message_push?key=123&type=message...
  13. 13. How It Works
  14. 14. Demo
  15. 15. Take Home Points Comet is coming Jabbify = easy Comet
  16. 16. Showcase • Jabbify Simple Chat Client • Keyboard Demo • Chat.unwrongest.com

×