WHIM Presentation Topic : Comet and Jetty 6 Yu Song April 17 2007.

Slides:



Advertisements
Similar presentations
Games, chat, and finance Toward a truly interactive web with Comet, BAM, and HMTP Emil Ong Chief Evangelist.
Advertisements

Members: Twinkle Agarwal Anjana Bhirde Ravi Madaiah David Hodgson Instructor: Dr. Perez Davila Mentor: Mr. Todd Guillory.
MS CRM Integration WhosOn Service Integration Presentation MS CRM User Group.
Online Educational Game of Snakes and Ladders -Shalini Pradhan -Manali Joshi -Uttara Paingankar -Seema Joshi.
Introduction to push technology © 2009 Research In Motion Limited.
Web 2.0 for AtGentive A Brief Introduction to Web 2.0 Ye DENG
Location based Streaming Topics for our 1 st presentation  Thesis Description  Positioning System  Streaming over positioning  Questions Session.
Retrieving compound pages This work is licensed under a Creative Commons Attribution-Noncommercial- Share Alike 3.0 License. Skills: none IT concepts:
© 2009 Research In Motion Limited Methods of application development for mobile devices.
1 Cleaning up the Internet Using AJAX, SOAP and Comet CS526 Mike Gerschefske Justin Gray James Yoo 02 May 2006.
INTRODUCTION The Group WEB BROWSER FOR RELATION Goals.
WHAT IS AJAX? Zack Sheppard [zts2101] WHIM April 19, 2011.
Does Ajax suck? CS575 Spring 2007 Chanwit Suebsureekul.
Understanding Factors That Influence Performance of a Web Server Presentation CS535 Project By Thiru.
Web Cache. Introduction what is web cache?  Introducing proxy servers at certain points in the network that serve in caching Web documents for faster.
Christopher M. Pascucci Basic Structural Concepts of.NET Browser – Server Interaction.
For more notes and topics visit:
Lightning Talk Fred Rodriguez Aakash Juneja CPSC 473 March 16, 2012.
Databases and the Internet. Lecture Objectives Databases and the Internet Characteristics and Benefits of Internet Server-Side vs. Client-Side Special.
DIRAC Web User Interface A.Casajus (Universitat de Barcelona) M.Sapunov (CPPM Marseille) On behalf of the LHCb DIRAC Team.
About Dynamic Sites (Front End / Back End Implementations) by Janssen & Associates Affordable Website Solutions for Individuals and Small Businesses.
Copyright © 2006 by The McGraw-Hill Companies, Inc. All rights reserved. McGraw-Hill Technology Education Copyright © 2006 by The McGraw-Hill Companies,
Chapter 6 The World Wide Web. Web Pages Each page is an interactive multimedia publication It can include: text, graphics, music and videos Pages are.
Computer Measurement Group, India Optimal Design Principles for better Performance of Next generation Systems Balachandar Gurusamy,
COMP 321 Week 7. Overview HTML and HTTP Basics Dynamic Web Content ServletsMVC Tomcat in Eclipse Demonstration Lab 7-1 Introduction.
HOW WEB SERVER WORKS? By- PUSHPENDU MONDAL RAJAT CHAUHAN RAHUL YADAV RANJIT MEENA RAHUL TYAGI.
Orbited Scaling Bi-directional web applications A presentation by Michael Carter
Live Demo Augmented reality – lets see some pictures flying…Augmented reality – lets see some pictures flying… Facebook -Facebook -
NETWORK HARDWARE AND SOFTWARE MR ROSS UNIT 3 IT APPLICATIONS.
Proxy Servers.
Overview Web Session 3 Matakuliah: Web Database Tahun: 2008.
Copyright Jim Martin The World Wide Web Dr. Jim Martin
HTML5 Websockets Norman White Websockets The HTTP protocol is not designed for a continuous connection between the client and the server, but rather.
Schedule Introduction to Web & Database Integration Tools and Resources HTML and Styles Forms and Client-Side Scripts DB Engines Forms Processing and Server-Side.
World Wide Web “WWW”, "Web" or "W3". World Wide Web “WWW”, "Web" or "W3"
Quick overview of ASP.NET Ajax Ajax deep-dive Cover some key real-world problems Discuss solutions, patterns, opportunities Lots of demos And more of.

FCM Workflow using GCM.
Web Technologies Lecture 1 The Internet and HTTP.
ASP.NET SignalR SoftUni Team Technical Trainers Software University
Ajax VS Flex A comparison based on shopping cart implementation PoHsu Yeh py2157.
Internet Applications (Cont’d) Basic Internet Applications – World Wide Web (WWW) Browser Architecture Static Documents Dynamic Documents Active Documents.
Lesson No:12 Introduction to Internet CHBT-01 Basic Micro process & Computer Operatio.
Java Message Service (JMS) Web Apps and Services.
Tutorial 11 Solutions. Question 1 Q1. What is meant by interactivity for streaming stored audio/video? What is meant by interactivity for real-time interactive.
How Web Database Architectures Work CPS181s April 8, 2003.
File Transfer And Access (FTP, TFTP, NFS). Remote File Access, Transfer and Storage Networks For different goals variety of approaches to remote file.
Display Page (HTML/CSS)
Rich Internet Applications: Better Practices for Financial Services Stephen Turbek, Avenue A | Razorfish.
The Internet What is the Internet? The Internet is a lot of computers over the whole world connected together so that they can share information. It.
ASP.Net ICallback Vijayalakshmi G M Senior Trainer Binary Spectrum.
CRUCIAL INFORMATION DISSEMINATION ON MODERN VEHICLES Wei Yan, Thomas Edwards Griffith.
Keith Telle Lead Software Engineer Bit Wizards Behind the Magic: SignalR Demystified.
CSE541: Web Applications Special Thanks to M. Abdur Rahman.
Cookies Tutorial Cavisson Systems Inc..
Web Systems & Technologies
Websocket Application
Nope OS Prepared by, Project Guides: Ms. Divya K V Ms. Jucy Vareed
Mobile Navigation Control for Planetary Web Portals Team Members: John Calilung, Miguel Martinez, Frank Navarrete, Kevin Parton, Max Ru, Catherine Suh.
Lesson 11: Web Services & API's
Some bits on how it works
AJAX.
File Transfer Protocol
Pub/sub-based Web Applications
The Internet An Overview.
CS323 Android Topics Network Basics for an Android App
Module P3 Practical: Building a webapp in nodejs and
HTTP and Abstraction on the Internet / The Need for DNS
Python and REST Kevin Hibma.
WJEC GCSE Computer Science
Presentation transcript:

WHIM Presentation Topic : Comet and Jetty 6 Yu Song April

Before Introduction Usual Client ~ Server interaction When an Internet Application needs to be updated, the only possible choice is to use polling. Clients send requests over HTTP protocol and Server sends back data and then close the session.

Before Introduction contd. The HTTP protocol makes it impossible to have the server "push" data to the client. The faster the client needs to be updated, the faster the poll must be. Of course, there are limits, for example due to the network speed, the load, etc. Web chat application was impractical due to it’s huge amount of pollings.

Introduction What's COMET? Like Ajax, COMET, rather than a new program or a protocol, is a concept or implementation of a way to manage the HTTP connection.COMET

So, what’s new? Clients send HTTP requests. Server side doesn’t send back responses right away. Server side keeps these connections. When the server was “kicked”, it sends data back to all clients using the those connections.

Comet vs. Ajax Ajax is a technology which separates browser display and browser~server interaction. (ex. Google Map) Comet is a technology separates clients polling and browser~server interaction. (ex. Gmail, GTalk, and Renkoo)

Comet vs. Ajax contd. implementation Figure from

Comet vs. Ajax contd. “Comet application fight lag by avoiding HTTP and TCP/IP set-up and tear-down and a single connection is re-used. But the big kicker for AJAX is polling latency which Comet avoids. The big takeaway: transfer only the necessary data, exactly when it’s most relevant.” [cited] Comet: Beyond Ajax – by Dr. Phil Windley

Example Demo Lingr … Web-browser Chat System You can paste not just smiley but also real pictures and even YouTube videos. w/cu_home_aerial_winter.jpghttp:// w/cu_home_aerial_winter.jpg S5c4Uhttp:// S5c4U

Demo Screenshot

Lingr Web server (kicks Chat server) Chat server Jetty 6 (thread solution) JSONP (cross-domain Problem solution)

Lingr Contd. Merits Lightness … don’t need install Chat room … real-time social network Anonymous access … don’t need log-in Image, Viedo support … jpg, YouTube Chat log … can be used as database Hot tag … can search chat room by tag API … create your own Web-chat app

Issues with Comet Appache server allocates one thread to each HTTP connection Server has to keep all these threads till it returns response. Consuming server resources when idle. May crash server when there are lots of clients even no HTTP interactions.

Solution Use Jetty 6 server. This new-mainstream-server supports Continuations functionality. It manage thread separately from HTTP connection.

Conclusion Ajax will be used with Comet. Comet will be used with Jetty 6 Jetty 6 will be used with JSONP From now on more and more web applications will take advantage of these combinations of new technologies.

Thank you !