Suche senden
Hochladen
Router と WebSocket
•
Als KEY, PDF herunterladen
•
4 gefällt mir
•
2,532 views
Kensaku Komatsu
Folgen
第2回CloudFoundry輪読会講演資料 cloud foundryのrouterとかを弄って、WebSocket動くようにしてみましたよ!!というお話
Weniger lesen
Mehr lesen
Technologie
Melden
Teilen
Melden
Teilen
1 von 26
Jetzt herunterladen
Empfohlen
111214 node conf
111214 node conf
Kensaku Komatsu
Nginx Internals
Nginx Internals
Joshua Zhu
Installation Openstack Swift
Installation Openstack Swift
ymtech
Apache httpd 2.4 Reverse Proxy
Apache httpd 2.4 Reverse Proxy
Jim Jagielski
OWASP ZAP Workshop for QA Testers
OWASP ZAP Workshop for QA Testers
Javan Rasokat
Php push notifications
Php push notifications
Mohammed Shurrab
Apache httpd reverse proxy and Tomcat
Apache httpd reverse proxy and Tomcat
Jean-Frederic Clere
Choosing A Proxy Server - Apachecon 2014
Choosing A Proxy Server - Apachecon 2014
bryan_call
Empfohlen
111214 node conf
111214 node conf
Kensaku Komatsu
Nginx Internals
Nginx Internals
Joshua Zhu
Installation Openstack Swift
Installation Openstack Swift
ymtech
Apache httpd 2.4 Reverse Proxy
Apache httpd 2.4 Reverse Proxy
Jim Jagielski
OWASP ZAP Workshop for QA Testers
OWASP ZAP Workshop for QA Testers
Javan Rasokat
Php push notifications
Php push notifications
Mohammed Shurrab
Apache httpd reverse proxy and Tomcat
Apache httpd reverse proxy and Tomcat
Jean-Frederic Clere
Choosing A Proxy Server - Apachecon 2014
Choosing A Proxy Server - Apachecon 2014
bryan_call
Apache Camel: Jetty Component With Example
Apache Camel: Jetty Component With Example
Amit Aggarwal
Apache httpd 2.4: The Cloud Killer App
Apache httpd 2.4: The Cloud Killer App
Jim Jagielski
Web sockets in Java
Web sockets in Java
Pance Cavkovski
Ws
Ws
Sunghan Kim
GWT Web Socket and data serialization
GWT Web Socket and data serialization
GWTcon
Usenix LISA 2012 - Choosing a Proxy
Usenix LISA 2012 - Choosing a Proxy
Leif Hedstrom
青云CoreOS虚拟机部署kubernetes
青云CoreOS虚拟机部署kubernetes
Zhichao Liang
Websocket protocol overview
Websocket protocol overview
allenmeng
NGINX: High Performance Load Balancing
NGINX: High Performance Load Balancing
NGINX, Inc.
Content Caching with NGINX and NGINX Plus
Content Caching with NGINX and NGINX Plus
Kevin Jones
실시간 서비스 플랫폼 개발 사례
실시간 서비스 플랫폼 개발 사례
John Kim
Nuts and Bolts of WebSocket Devoxx 2014
Nuts and Bolts of WebSocket Devoxx 2014
Arun Gupta
ReplacingSquidWithATS
ReplacingSquidWithATS
Chiranjeevi Jaladi
Ansible
Ansible
Vladimír Smitka
DEVIEW - 오픈소스를 활용한 분산아키텍처 구현기술
DEVIEW - 오픈소스를 활용한 분산아키텍처 구현기술
John Kim
cache concepts and varnish-cache
cache concepts and varnish-cache
Marc Cortinas Val
WebSockets in JEE 7
WebSockets in JEE 7
Shahzad Badar
[Hello world 오픈세미나]varnish로 웹서버성능 향상시키기
[Hello world 오픈세미나]varnish로 웹서버성능 향상시키기
NAVER D2
How to create multiprocess server on windows with ruby - rubykaigi2016 Ritta ...
How to create multiprocess server on windows with ruby - rubykaigi2016 Ritta ...
Ritta Narita
Pushing the web — WebSockets
Pushing the web — WebSockets
Roland M
Realtime web application with java
Realtime web application with java
JeongHun Byeon
WebSockets and Java
WebSockets and Java
Bozhidar Bozhanov
Weitere ähnliche Inhalte
Was ist angesagt?
Apache Camel: Jetty Component With Example
Apache Camel: Jetty Component With Example
Amit Aggarwal
Apache httpd 2.4: The Cloud Killer App
Apache httpd 2.4: The Cloud Killer App
Jim Jagielski
Web sockets in Java
Web sockets in Java
Pance Cavkovski
Ws
Ws
Sunghan Kim
GWT Web Socket and data serialization
GWT Web Socket and data serialization
GWTcon
Usenix LISA 2012 - Choosing a Proxy
Usenix LISA 2012 - Choosing a Proxy
Leif Hedstrom
青云CoreOS虚拟机部署kubernetes
青云CoreOS虚拟机部署kubernetes
Zhichao Liang
Websocket protocol overview
Websocket protocol overview
allenmeng
NGINX: High Performance Load Balancing
NGINX: High Performance Load Balancing
NGINX, Inc.
Content Caching with NGINX and NGINX Plus
Content Caching with NGINX and NGINX Plus
Kevin Jones
실시간 서비스 플랫폼 개발 사례
실시간 서비스 플랫폼 개발 사례
John Kim
Nuts and Bolts of WebSocket Devoxx 2014
Nuts and Bolts of WebSocket Devoxx 2014
Arun Gupta
ReplacingSquidWithATS
ReplacingSquidWithATS
Chiranjeevi Jaladi
Ansible
Ansible
Vladimír Smitka
DEVIEW - 오픈소스를 활용한 분산아키텍처 구현기술
DEVIEW - 오픈소스를 활용한 분산아키텍처 구현기술
John Kim
cache concepts and varnish-cache
cache concepts and varnish-cache
Marc Cortinas Val
WebSockets in JEE 7
WebSockets in JEE 7
Shahzad Badar
[Hello world 오픈세미나]varnish로 웹서버성능 향상시키기
[Hello world 오픈세미나]varnish로 웹서버성능 향상시키기
NAVER D2
How to create multiprocess server on windows with ruby - rubykaigi2016 Ritta ...
How to create multiprocess server on windows with ruby - rubykaigi2016 Ritta ...
Ritta Narita
Pushing the web — WebSockets
Pushing the web — WebSockets
Roland M
Was ist angesagt?
(20)
Apache Camel: Jetty Component With Example
Apache Camel: Jetty Component With Example
Apache httpd 2.4: The Cloud Killer App
Apache httpd 2.4: The Cloud Killer App
Web sockets in Java
Web sockets in Java
Ws
Ws
GWT Web Socket and data serialization
GWT Web Socket and data serialization
Usenix LISA 2012 - Choosing a Proxy
Usenix LISA 2012 - Choosing a Proxy
青云CoreOS虚拟机部署kubernetes
青云CoreOS虚拟机部署kubernetes
Websocket protocol overview
Websocket protocol overview
NGINX: High Performance Load Balancing
NGINX: High Performance Load Balancing
Content Caching with NGINX and NGINX Plus
Content Caching with NGINX and NGINX Plus
실시간 서비스 플랫폼 개발 사례
실시간 서비스 플랫폼 개발 사례
Nuts and Bolts of WebSocket Devoxx 2014
Nuts and Bolts of WebSocket Devoxx 2014
ReplacingSquidWithATS
ReplacingSquidWithATS
Ansible
Ansible
DEVIEW - 오픈소스를 활용한 분산아키텍처 구현기술
DEVIEW - 오픈소스를 활용한 분산아키텍처 구현기술
cache concepts and varnish-cache
cache concepts and varnish-cache
WebSockets in JEE 7
WebSockets in JEE 7
[Hello world 오픈세미나]varnish로 웹서버성능 향상시키기
[Hello world 오픈세미나]varnish로 웹서버성능 향상시키기
How to create multiprocess server on windows with ruby - rubykaigi2016 Ritta ...
How to create multiprocess server on windows with ruby - rubykaigi2016 Ritta ...
Pushing the web — WebSockets
Pushing the web — WebSockets
Andere mochten auch
Realtime web application with java
Realtime web application with java
JeongHun Byeon
WebSockets and Java
WebSockets and Java
Bozhidar Bozhanov
Building Next Generation Real-Time Web Applications using Websockets
Building Next Generation Real-Time Web Applications using Websockets
Naresh Chintalcheru
WebWorker and Atomics
WebWorker and Atomics
Taketoshi 青野健利
先入観とバイアスを考慮したWebサイトパフォーマンス改善
先入観とバイアスを考慮したWebサイトパフォーマンス改善
Yoichiro Takehora
WebSocket MicroService vs. REST Microservice
WebSocket MicroService vs. REST Microservice
Rick Hightower
Erlangご紹介 websocket編
Erlangご紹介 websocket編
Masatoshi Itoh
WebSockets with Spring 4
WebSockets with Spring 4
Sergi Almar i Graupera
Andere mochten auch
(8)
Realtime web application with java
Realtime web application with java
WebSockets and Java
WebSockets and Java
Building Next Generation Real-Time Web Applications using Websockets
Building Next Generation Real-Time Web Applications using Websockets
WebWorker and Atomics
WebWorker and Atomics
先入観とバイアスを考慮したWebサイトパフォーマンス改善
先入観とバイアスを考慮したWebサイトパフォーマンス改善
WebSocket MicroService vs. REST Microservice
WebSocket MicroService vs. REST Microservice
Erlangご紹介 websocket編
Erlangご紹介 websocket編
WebSockets with Spring 4
WebSockets with Spring 4
Ähnlich wie Router と WebSocket
An Introduction to Twisted
An Introduction to Twisted
sdsern
OSCON 2011 - Node.js Tutorial
OSCON 2011 - Node.js Tutorial
Tom Croucher
The HTML5 WebSocket API
The HTML5 WebSocket API
David Lindkvist
HTTP/2 Comes to Java: Servlet 4.0 and what it means for the Java/Jakarta EE e...
HTTP/2 Comes to Java: Servlet 4.0 and what it means for the Java/Jakarta EE e...
Edward Burns
DCUS17 : Docker networking deep dive
DCUS17 : Docker networking deep dive
Madhu Venugopal
Realtime web experience with signal r
Realtime web experience with signal r
Ran Wahle
WebSockets Everywhere: the Future Transport Protocol for Everything (Almost)
WebSockets Everywhere: the Future Transport Protocol for Everything (Almost)
Ericom Software
Groovy & Grails eXchange 2012 vert.x presentation
Groovy & Grails eXchange 2012 vert.x presentation
Stuart (Pid) Williams
introduction to node.js
introduction to node.js
orkaplan
Nodejs and WebSockets
Nodejs and WebSockets
Gonzalo Ayuso
Realtime Messaging und verteilte Systeme mit SharePoint und Windows Azure Ser...
Realtime Messaging und verteilte Systeme mit SharePoint und Windows Azure Ser...
Damir Dobric
Real World Lessons on the Pain Points of Node.JS Application
Real World Lessons on the Pain Points of Node.JS Application
Ben Hall
Websockets and SockJS, Real time chatting
Websockets and SockJS, Real time chatting
University of Alabama at Birmingham
Web-Socket
Web-Socket
Pankaj Kumar Sharma
The Challenges of Becoming Cloud Native
The Challenges of Becoming Cloud Native
Ben Hall
Harmonia open iris_basic_v0.1
Harmonia open iris_basic_v0.1
Yongyoon Shin
WebSockets: The Current State of the Most Valuable HTML5 API for Java Developers
WebSockets: The Current State of the Most Valuable HTML5 API for Java Developers
Viktor Gamov
Memonic Architecture
Memonic Architecture
Patrice Neff
T2
T2
Mo Ch
JUDCon 2013- JBoss Data Grid and WebSockets: Delivering Real Time Push at Scale
JUDCon 2013- JBoss Data Grid and WebSockets: Delivering Real Time Push at Scale
C2B2 Consulting
Ähnlich wie Router と WebSocket
(20)
An Introduction to Twisted
An Introduction to Twisted
OSCON 2011 - Node.js Tutorial
OSCON 2011 - Node.js Tutorial
The HTML5 WebSocket API
The HTML5 WebSocket API
HTTP/2 Comes to Java: Servlet 4.0 and what it means for the Java/Jakarta EE e...
HTTP/2 Comes to Java: Servlet 4.0 and what it means for the Java/Jakarta EE e...
DCUS17 : Docker networking deep dive
DCUS17 : Docker networking deep dive
Realtime web experience with signal r
Realtime web experience with signal r
WebSockets Everywhere: the Future Transport Protocol for Everything (Almost)
WebSockets Everywhere: the Future Transport Protocol for Everything (Almost)
Groovy & Grails eXchange 2012 vert.x presentation
Groovy & Grails eXchange 2012 vert.x presentation
introduction to node.js
introduction to node.js
Nodejs and WebSockets
Nodejs and WebSockets
Realtime Messaging und verteilte Systeme mit SharePoint und Windows Azure Ser...
Realtime Messaging und verteilte Systeme mit SharePoint und Windows Azure Ser...
Real World Lessons on the Pain Points of Node.JS Application
Real World Lessons on the Pain Points of Node.JS Application
Websockets and SockJS, Real time chatting
Websockets and SockJS, Real time chatting
Web-Socket
Web-Socket
The Challenges of Becoming Cloud Native
The Challenges of Becoming Cloud Native
Harmonia open iris_basic_v0.1
Harmonia open iris_basic_v0.1
WebSockets: The Current State of the Most Valuable HTML5 API for Java Developers
WebSockets: The Current State of the Most Valuable HTML5 API for Java Developers
Memonic Architecture
Memonic Architecture
T2
T2
JUDCon 2013- JBoss Data Grid and WebSockets: Delivering Real Time Push at Scale
JUDCon 2013- JBoss Data Grid and WebSockets: Delivering Real Time Push at Scale
Mehr von Kensaku Komatsu
Media processing with serverless architecture
Media processing with serverless architecture
Kensaku Komatsu
Boxdev lt-09082016
Boxdev lt-09082016
Kensaku Komatsu
a pattern for PWA, PRPL
a pattern for PWA, PRPL
Kensaku Komatsu
Full Matrix Auto Test Framework for WebRTC
Full Matrix Auto Test Framework for WebRTC
Kensaku Komatsu
WebRTC 101
WebRTC 101
Kensaku Komatsu
04122016 web rtc_globalsummit
04122016 web rtc_globalsummit
Kensaku Komatsu
02172016 web rtc_conf_komasshu
02172016 web rtc_conf_komasshu
Kensaku Komatsu
SkyWay国内唯一のCPaaS
SkyWay国内唯一のCPaaS
Kensaku Komatsu
ラズパイでWebRTC ヾ(*´∀`*)ノキャッキャ uv4l-webrtc 軽くハックしてみたよ!
ラズパイでWebRTC ヾ(*´∀`*)ノキャッキャ uv4l-webrtc 軽くハックしてみたよ!
Kensaku Komatsu
ビデオ通話・P2Pがコモディティ化する世界 WebRTCによるこれからを探る
ビデオ通話・P2Pがコモディティ化する世界 WebRTCによるこれからを探る
Kensaku Komatsu
最新Web 通信系API総まくり!WebRTC, Streams, Push api etc.
最新Web 通信系API総まくり!WebRTC, Streams, Push api etc.
Kensaku Komatsu
FirefoxでgetStats()
FirefoxでgetStats()
Kensaku Komatsu
14th apr2015 リックテレコ勉強会
14th apr2015 リックテレコ勉強会
Kensaku Komatsu
WebRTCが拓く新たなWebビジネスの世界
WebRTCが拓く新たなWebビジネスの世界
Kensaku Komatsu
Web of Thingsの現状とWebRTC活用の可能性
Web of Thingsの現状とWebRTC活用の可能性
Kensaku Komatsu
25th nov2014 52thhtml5j
25th nov2014 52thhtml5j
Kensaku Komatsu
知ってると得するかもしれないConstraintsたち
知ってると得するかもしれないConstraintsたち
Kensaku Komatsu
WebRTCにより可視化されるリアルタイムクラウド。求められるAPI
WebRTCにより可視化されるリアルタイムクラウド。求められるAPI
Kensaku Komatsu
エフサミ2014 web rtcの傾向と対策
エフサミ2014 web rtcの傾向と対策
Kensaku Komatsu
HTML5 Night 2014 Web x Network Technology ( WebRTC )
HTML5 Night 2014 Web x Network Technology ( WebRTC )
Kensaku Komatsu
Mehr von Kensaku Komatsu
(20)
Media processing with serverless architecture
Media processing with serverless architecture
Boxdev lt-09082016
Boxdev lt-09082016
a pattern for PWA, PRPL
a pattern for PWA, PRPL
Full Matrix Auto Test Framework for WebRTC
Full Matrix Auto Test Framework for WebRTC
WebRTC 101
WebRTC 101
04122016 web rtc_globalsummit
04122016 web rtc_globalsummit
02172016 web rtc_conf_komasshu
02172016 web rtc_conf_komasshu
SkyWay国内唯一のCPaaS
SkyWay国内唯一のCPaaS
ラズパイでWebRTC ヾ(*´∀`*)ノキャッキャ uv4l-webrtc 軽くハックしてみたよ!
ラズパイでWebRTC ヾ(*´∀`*)ノキャッキャ uv4l-webrtc 軽くハックしてみたよ!
ビデオ通話・P2Pがコモディティ化する世界 WebRTCによるこれからを探る
ビデオ通話・P2Pがコモディティ化する世界 WebRTCによるこれからを探る
最新Web 通信系API総まくり!WebRTC, Streams, Push api etc.
最新Web 通信系API総まくり!WebRTC, Streams, Push api etc.
FirefoxでgetStats()
FirefoxでgetStats()
14th apr2015 リックテレコ勉強会
14th apr2015 リックテレコ勉強会
WebRTCが拓く新たなWebビジネスの世界
WebRTCが拓く新たなWebビジネスの世界
Web of Thingsの現状とWebRTC活用の可能性
Web of Thingsの現状とWebRTC活用の可能性
25th nov2014 52thhtml5j
25th nov2014 52thhtml5j
知ってると得するかもしれないConstraintsたち
知ってると得するかもしれないConstraintsたち
WebRTCにより可視化されるリアルタイムクラウド。求められるAPI
WebRTCにより可視化されるリアルタイムクラウド。求められるAPI
エフサミ2014 web rtcの傾向と対策
エフサミ2014 web rtcの傾向と対策
HTML5 Night 2014 Web x Network Technology ( WebRTC )
HTML5 Night 2014 Web x Network Technology ( WebRTC )
Kürzlich hochgeladen
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
Zilliz
Platformless Horizons for Digital Adaptability
Platformless Horizons for Digital Adaptability
WSO2
Six Myths about Ontologies: The Basics of Formal Ontology
Six Myths about Ontologies: The Basics of Formal Ontology
johnbeverley2021
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Juan lago vázquez
Architecting Cloud Native Applications
Architecting Cloud Native Applications
WSO2
CNIC Information System with Pakdata Cf In Pakistan
CNIC Information System with Pakdata Cf In Pakistan
danishmna97
WSO2's API Vision: Unifying Control, Empowering Developers
WSO2's API Vision: Unifying Control, Empowering Developers
WSO2
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
ThousandEyes
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
apidays
AWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of Terraform
Andrey Devyatkin
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
Orbitshub
DBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor Presentation
Dropbox
Vector Search -An Introduction in Oracle Database 23ai.pptx
Vector Search -An Introduction in Oracle Database 23ai.pptx
Remote DBA Services
MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024
MIND CTI
Corporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptx
Rustici Software
MS Copilot expands with MS Graph connectors
MS Copilot expands with MS Graph connectors
Nanddeep Nachan
Introduction to Multilingual Retrieval Augmented Generation (RAG)
Introduction to Multilingual Retrieval Augmented Generation (RAG)
Zilliz
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
apidays
presentation ICT roal in 21st century education
presentation ICT roal in 21st century education
jfdjdjcjdnsjd
Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...
Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...
Angeliki Cooney
Kürzlich hochgeladen
(20)
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
Platformless Horizons for Digital Adaptability
Platformless Horizons for Digital Adaptability
Six Myths about Ontologies: The Basics of Formal Ontology
Six Myths about Ontologies: The Basics of Formal Ontology
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Architecting Cloud Native Applications
Architecting Cloud Native Applications
CNIC Information System with Pakdata Cf In Pakistan
CNIC Information System with Pakdata Cf In Pakistan
WSO2's API Vision: Unifying Control, Empowering Developers
WSO2's API Vision: Unifying Control, Empowering Developers
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
AWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of Terraform
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
DBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor Presentation
Vector Search -An Introduction in Oracle Database 23ai.pptx
Vector Search -An Introduction in Oracle Database 23ai.pptx
MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024
Corporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptx
MS Copilot expands with MS Graph connectors
MS Copilot expands with MS Graph connectors
Introduction to Multilingual Retrieval Augmented Generation (RAG)
Introduction to Multilingual Retrieval Augmented Generation (RAG)
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
presentation ICT roal in 21st century education
presentation ICT roal in 21st century education
Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...
Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...
Router と WebSocket
1.
Router WebSocket
2011/11/17(thu) 2 CloudFoundry
2.
•
(@komasshu) • WebSocket • Google API Expert (HTML5) • Microsoft Valuable Professional (IE)
3.
CloudFoundry WebSocket
...
4.
WebSocket • HTML5
API/Protocol • Web •
5.
• Web(port=80)
VPN • SSL-VPN
6.
7.
8.
9.
Handshake
10.
Handshake
11.
Handshake Frames
12.
point : Upgrade Request
Header (client => server) GET /chat HTTP/1.1 Host: server.example.com Upgrade: websocket Response Header (server => client) HTTP/1.1 101 Switching Protocols Upgrade: websocket Connection: Upgrade Upgrade HTTP WebSocket
13.
HTTP Compatible •
VPN • FW, Proxy • HTTP/1.1 • • Web VPN
14.
http://www.ericom.com/html5_client_vmware_view.asp
http://www.publickey1.jp/blog/11/webhtml5.html
15.
CloudFoundry WebSocket
orz • why? • nginx 2 • router HTTP/1.1 rails sinatra nginx router node.js DEA
16.
• nginx •
zip Access log HTTPS • router • URL routing URL routing unix domain tcp socket socket rails (tcp socket ) 80/443 sinatra nginx router node.js DEA
17.
WebSocket
nginx • Request HTTP (502) • tcp_proxy Patch • https://github.com/yaoweibin/nginx_tcp_proxy_module
18.
nginx.conf tcp {
upstream vcap_router { server unix:/tmp/router.sock; # server 127.0.0.1:2222; # check interval=3000 rise=2 fall=5 timeout=1000; } tcp_nodelay off; server { listen 80; server_name _; proxy_read_timeout 200000; proxy_send_timeout 200000; proxy_pass vcap_router; } }
19.
WebSocket
router • HTTP Request/Response HTTP • WebSocket Frames • HTTP
20.
dialog of router.rb
request Header router request/sec Router on_headers _complete() unix module module node.js nginx domain TCP socket socket ClientConnection AppConnection on_headers _complete() response Header response latency
21.
WebSocket Upgrade: websocket
proof of concept WebsocketConnection router module TCP socket node.js on_headers AppConnection _complete() on_headers unix module _complete() nginx domain socket ClientConnection module WebsocketConne TCP socket node.js ction WS
22.
client_connection.rb def on_headers_complete(headers)
.... # [kom] Check connection mode(websocket or not) @is_websocket = (headers[UPGRADE_HEADER] == WEBSOCKET) ? true : false Router.log.info "@is_websocket : #{@is_websocket}" .... if (@is_websocket) host, port = @droplet[:host], @droplet[:port] @bound_app_conn = EM.connect(host, port, WebsocketConnection, self, @headers, @droplet) return end .... end
23.
websocket_connection.rb module WebsocketConnection def
initialize client, header, droplet @client, @header, @droplet = client, header, droplet end def connection_completed send_data(@header) end def receive_data(data) @client.send_data(data) end def terminate end orz end
24.
Demo (echo server)
25.
•
proof of concept • production • zip, ssl NG • WebSocketConnection • :)
26.
Thank you!! http://twitter.com/komasshu
Hinweis der Redaktion
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
\n
Jetzt herunterladen