Upload
emerson-macedo
View
6.371
Download
1
Embed Size (px)
DESCRIPTION
Palestra sobre aplicações em tempo real no BrazilJS - Conferência Brasileira sobre Javascript.
Citation preview
Realtime Web Applications
#whoami
#conceitos
The real-time web is a set of technologies and practices that
enable users to receive information as soon as it is published by its
authors, rather than requiring that they or their software check a source
periodically for updates.
The real-time web is a set of technologies and practices that
enable users to receive information as soon as it is published by its
authors, rather than requiring that they or their software check a source
periodically for updates.
#AjaxPooling
#FirstTry
#FirstTry
#FirstTry #SecondTry
#FirstTry #SecondTry
#Success
#Success
#AjaxPooling
#LongPooling
#Realtime
Realtime na prática
Realtime!=
Ajax
#exemplos
#ComoFaz
Comet
HTTP Server Push
Comet
HTTP Server Push Reverse Ajax
Comet
HTTP Server Push
HTTP Streaming
Reverse Ajax
Comet
HTTP Server Push
HTTP Streaming
Reverse Ajax
Comet
Log Pooling
Comet é um saco de gato. Se refere a todas
as tentativas deRealtime Web
A idéia de fazer Realtime Web não é
nova
Content-type: multipart/x-mixed-replace; boundary=separador
XMLHttpRequest multipart = true
Netscape 1995
Content-type: multipart/x-mixed-replace; boundary=separador
XMLHttpRequest multipart = true
Netscape 1995
#IEFail
#Alternativa
Forever Iframe
Forever Iframe
Connection: keep-alive
Transfer-Encoding: chunked
Forever Iframe
#SpinnerFail#DelinitadorFail
Connection: keep-alive
Transfer-Encoding: chunked
Gambiarras para todo lado. A web não foi
feita inicialmente para Realtime
Sockets
Websocket
Sockets
Websocket
FlashSocket
Sockets
Websocket e FlashSocket são uma espécie de
TCP para Web
Websocket
WebsocketFaz parte da
especificação HTML5
WebsocketFaz parte da
especificação HTML5
É a solução ideal para o problema
WebsocketFaz parte da
especificação HTML5
É a solução ideal para o problema
Suportado por poucos browsers
FlashSocket
FlashSocketFaz a mesma coisa que o Websocket
FlashSocketFaz a mesma coisa que o Websocket
99% dos computadores tem flash
FlashSocketFaz a mesma coisa que o Websocket
99% dos computadores tem flash
Mais lento para estabelecer a conexão
Não é qualquer servidor que aguenta fazer
Realtime Web
Uma das opções para Realtime
#LIVE
Obrigado !!!
Emerson Macedo@emerleite
http://nodecasts.orghttp://codificando.com