SlideShare a Scribd company logo
Comet and WebSocket Web Applications Simone Bordet [email_address] How to Scale Server-Side  Event-Driven Scenarios
Agenda What are Comet web applications ?
Impacts of Comet web applications
WebSocket web applications
The CometD project
Questions & Answers
What are Comet & WebSocket Web Applications ?
Web 1.0 Applications Web Classic Interaction Request Pattern Bursts of requests for HTML, images, CSS, JS Navigation Mode Full page based Interaction with Server Reactive, changes happen on user click
Resources download
Ajax Web Applications Web Classic +  XMLHttpRequest (XHR) Request Pattern:  changed Bursts (for classic) + Concurrent (for XHR)
Requires synchronization  in server code Navigation Mode:  radically changed Sometimes full page, most often single page with partial changes Interaction with Server:  changed Reactive as before
Data download
Comet Web Applications Web Classic + Ajax +  WebSocket Request Pattern, Navigation Mode, Interaction with Server Same as with XHR More Efficient Now messages can be server-initiated
Messages do not require a response Uses JavaScript Same as with XHR
Rich User Interfaces Traditional Web sacrificed Rich UI for: Ubiquitous access
Zero Install Heavy usage of client-side JavaScript and XHR changed the way we create and develop webapps They become  rich , and raise expectations Server side events are needed  To meet user raised expectations
To implement new types of web applications
Comet Examples
Polling for Server Side Events Polling Strategy for Server-side Events Notification Simple to implement (“I can do that !”)
Sensible latency Can look like a denial of service (DoS) attack to the poor server When poll interval is short
When the number of clients is large
Long Polling for Server-side events Comet Strategy More difficult to implement correctly
Minimal latency The “long poll” request is held by the server until: A server-side event arrives
A timeout expires
The client disconnects
Websocket for Server-side events WebSocket strategy More efficient than long poll
True bidirectional web communication WebSocket Messages No more Request & Response Not widely deployed yet
Messages can be initiated by the server
WebSocket From HTML 5 API & Protocol
Two way communication Developed by WHATWG Browser vendors
Little server side input In IETF WG  Developing standard
Slow progress Experimentally Deployed Chrome, Opera, Firefox interface WebSocket  { attribute Function onopen; attribute Function onmessage; attribute Function onerror; attribute Function onclose; boolean send(in String data); void close(); };
Impacts on the Server
Scaling Polling Scaling Polling 1000 clients, each polling every 5 seconds
Request Rate: 200 requests/s

More Related Content

PPTX
Taking a Quantum Leap with Html 5 WebSocket
PDF
wa-cometjava-pdf
PPTX
Fight empire-html5
PDF
Lec 7(HTTP Protocol)
PPTX
Webinar slides "Building Real-Time Collaborative Web Applications"
PPTX
HTTP request and response
KEY
What's up with HTTP?
Taking a Quantum Leap with Html 5 WebSocket
wa-cometjava-pdf
Fight empire-html5
Lec 7(HTTP Protocol)
Webinar slides "Building Real-Time Collaborative Web Applications"
HTTP request and response
What's up with HTTP?

What's hot (20)

PPTX
PDF
Http methods
PPTX
HTTP fundamentals for developers
PPTX
Http request and http response
PPTX
Http basics by-joshi_29_4_15-ppt
PPTX
Http - All you need to know
PPTX
Http-protocol
PPTX
Http protocol
PPTX
Web technology Unit-I Part D - message format
PPTX
PDF
Using Communication and Messaging API in the HTML5 World
ODP
Server Sent Events, Async Servlet, Web Sockets and JSON; born to work together!
PPTX
HyperText Transfer Protocol (HTTP)
PPT
Scalable Web Architectures and Infrastructure
PDF
Getting Started with WebSockets and Server-Sent Events
PPTX
Web server and web-hosting
PPTX
HTTP Protocol Basic
PPT
The experiences of migrating a large scale, high performance healthcare network
PPTX
PDF
Http methods
HTTP fundamentals for developers
Http request and http response
Http basics by-joshi_29_4_15-ppt
Http - All you need to know
Http-protocol
Http protocol
Web technology Unit-I Part D - message format
Using Communication and Messaging API in the HTML5 World
Server Sent Events, Async Servlet, Web Sockets and JSON; born to work together!
HyperText Transfer Protocol (HTTP)
Scalable Web Architectures and Infrastructure
Getting Started with WebSockets and Server-Sent Events
Web server and web-hosting
HTTP Protocol Basic
The experiences of migrating a large scale, high performance healthcare network
Ad

Similar to Comet / WebSocket Web Applications (20)

PDF
Going Live! with Comet
PPT
PDF
Decoding real time web communication
PPTX
Reverse ajax in 2014
PPT
HTTP Server Push Techniques
PPT
Comet: by pushing server data, we push the web forward
PDF
Developing Revolutionary Web Applications using Comet and Ajax Push
PDF
Real time web apps
ODP
Implementing Comet using PHP
PPTX
The Atmosphere Framework
PDF
Time for Comet?
PDF
Real-Time with Flowdock
PDF
Intro to WebSockets and Comet
PDF
Nodejs and WebSockets
PDF
Comet with node.js and V8
PPTX
Codecamp iasi-26 nov 2011-web sockets
PPTX
Codecamp Iasi-26 nov 2011 - Html 5 WebSockets
PPTX
Comet: an Overview and a New Solution Called Jabbify
PPTX
Web Real-time Communications
PPTX
Websocket vs SSE - Paris.js - 24/06/15
Going Live! with Comet
Decoding real time web communication
Reverse ajax in 2014
HTTP Server Push Techniques
Comet: by pushing server data, we push the web forward
Developing Revolutionary Web Applications using Comet and Ajax Push
Real time web apps
Implementing Comet using PHP
The Atmosphere Framework
Time for Comet?
Real-Time with Flowdock
Intro to WebSockets and Comet
Nodejs and WebSockets
Comet with node.js and V8
Codecamp iasi-26 nov 2011-web sockets
Codecamp Iasi-26 nov 2011 - Html 5 WebSockets
Comet: an Overview and a New Solution Called Jabbify
Web Real-time Communications
Websocket vs SSE - Paris.js - 24/06/15
Ad

More from Codemotion (20)

PDF
Fuzz-testing: A hacker's approach to making your code more secure | Pascal Ze...
PDF
Pompili - From hero to_zero: The FatalNoise neverending story
PPTX
Pastore - Commodore 65 - La storia
PPTX
Pennisi - Essere Richard Altwasser
PPTX
Michel Schudel - Let's build a blockchain... in 40 minutes! - Codemotion Amst...
PPTX
Richard Süselbeck - Building your own ride share app - Codemotion Amsterdam 2019
PPTX
Eward Driehuis - What we learned from 20.000 attacks - Codemotion Amsterdam 2019
PPTX
Francesco Baldassarri - Deliver Data at Scale - Codemotion Amsterdam 2019 -
PDF
Martin Förtsch, Thomas Endres - Stereoscopic Style Transfer AI - Codemotion A...
PDF
Melanie Rieback, Klaus Kursawe - Blockchain Security: Melting the "Silver Bul...
PDF
Angelo van der Sijpt - How well do you know your network stack? - Codemotion ...
PDF
Lars Wolff - Performance Testing for DevOps in the Cloud - Codemotion Amsterd...
PDF
Sascha Wolter - Conversational AI Demystified - Codemotion Amsterdam 2019
PDF
Michele Tonutti - Scaling is caring - Codemotion Amsterdam 2019
PPTX
Pat Hermens - From 100 to 1,000+ deployments a day - Codemotion Amsterdam 2019
PPTX
James Birnie - Using Many Worlds of Compute Power with Quantum - Codemotion A...
PDF
Don Goodman-Wilson - Chinese food, motor scooters, and open source developmen...
PDF
Pieter Omvlee - The story behind Sketch - Codemotion Amsterdam 2019
PDF
Dave Farley - Taking Back “Software Engineering” - Codemotion Amsterdam 2019
PDF
Joshua Hoffman - Should the CTO be Coding? - Codemotion Amsterdam 2019
Fuzz-testing: A hacker's approach to making your code more secure | Pascal Ze...
Pompili - From hero to_zero: The FatalNoise neverending story
Pastore - Commodore 65 - La storia
Pennisi - Essere Richard Altwasser
Michel Schudel - Let's build a blockchain... in 40 minutes! - Codemotion Amst...
Richard Süselbeck - Building your own ride share app - Codemotion Amsterdam 2019
Eward Driehuis - What we learned from 20.000 attacks - Codemotion Amsterdam 2019
Francesco Baldassarri - Deliver Data at Scale - Codemotion Amsterdam 2019 -
Martin Förtsch, Thomas Endres - Stereoscopic Style Transfer AI - Codemotion A...
Melanie Rieback, Klaus Kursawe - Blockchain Security: Melting the "Silver Bul...
Angelo van der Sijpt - How well do you know your network stack? - Codemotion ...
Lars Wolff - Performance Testing for DevOps in the Cloud - Codemotion Amsterd...
Sascha Wolter - Conversational AI Demystified - Codemotion Amsterdam 2019
Michele Tonutti - Scaling is caring - Codemotion Amsterdam 2019
Pat Hermens - From 100 to 1,000+ deployments a day - Codemotion Amsterdam 2019
James Birnie - Using Many Worlds of Compute Power with Quantum - Codemotion A...
Don Goodman-Wilson - Chinese food, motor scooters, and open source developmen...
Pieter Omvlee - The story behind Sketch - Codemotion Amsterdam 2019
Dave Farley - Taking Back “Software Engineering” - Codemotion Amsterdam 2019
Joshua Hoffman - Should the CTO be Coding? - Codemotion Amsterdam 2019

Recently uploaded (20)

PDF
Encapsulation theory and applications.pdf
PDF
Agricultural_Statistics_at_a_Glance_2022_0.pdf
PPTX
Spectroscopy.pptx food analysis technology
PDF
How UI/UX Design Impacts User Retention in Mobile Apps.pdf
PPTX
20250228 LYD VKU AI Blended-Learning.pptx
PDF
Advanced methodologies resolving dimensionality complications for autism neur...
PDF
Reach Out and Touch Someone: Haptics and Empathic Computing
PPTX
VMware vSphere Foundation How to Sell Presentation-Ver1.4-2-14-2024.pptx
PDF
NewMind AI Weekly Chronicles - August'25 Week I
PDF
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
PDF
KodekX | Application Modernization Development
PPTX
Programs and apps: productivity, graphics, security and other tools
PDF
Encapsulation_ Review paper, used for researhc scholars
PDF
cuic standard and advanced reporting.pdf
PPTX
ACSFv1EN-58255 AWS Academy Cloud Security Foundations.pptx
PDF
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
PPTX
MYSQL Presentation for SQL database connectivity
PDF
Peak of Data & AI Encore- AI for Metadata and Smarter Workflows
PDF
Machine learning based COVID-19 study performance prediction
PDF
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
Encapsulation theory and applications.pdf
Agricultural_Statistics_at_a_Glance_2022_0.pdf
Spectroscopy.pptx food analysis technology
How UI/UX Design Impacts User Retention in Mobile Apps.pdf
20250228 LYD VKU AI Blended-Learning.pptx
Advanced methodologies resolving dimensionality complications for autism neur...
Reach Out and Touch Someone: Haptics and Empathic Computing
VMware vSphere Foundation How to Sell Presentation-Ver1.4-2-14-2024.pptx
NewMind AI Weekly Chronicles - August'25 Week I
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
KodekX | Application Modernization Development
Programs and apps: productivity, graphics, security and other tools
Encapsulation_ Review paper, used for researhc scholars
cuic standard and advanced reporting.pdf
ACSFv1EN-58255 AWS Academy Cloud Security Foundations.pptx
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
MYSQL Presentation for SQL database connectivity
Peak of Data & AI Encore- AI for Metadata and Smarter Workflows
Machine learning based COVID-19 study performance prediction
Build a system with the filesystem maintained by OSTree @ COSCUP 2025

Comet / WebSocket Web Applications