nchan.md - slideit€¦ · socket.io (node.js) lightstreamer (java) faye (node.js and ruby)......
TRANSCRIPT
![Page 1: nchan.md - slideit€¦ · socket.io (Node.js) Lightstreamer (Java) Faye (Node.js and Ruby)... NCHAN Restful API hook Websocket, EventSource Long Poll. LOAD BALANCING HTTP. LOAD BALANCING](https://reader036.vdocument.in/reader036/viewer/2022081407/605663018c72d572783e1f30/html5/thumbnails/1.jpg)
NCHAN WEB
Vincent 2017.3.7
![Page 2: nchan.md - slideit€¦ · socket.io (Node.js) Lightstreamer (Java) Faye (Node.js and Ruby)... NCHAN Restful API hook Websocket, EventSource Long Poll. LOAD BALANCING HTTP. LOAD BALANCING](https://reader036.vdocument.in/reader036/viewer/2022081407/605663018c72d572783e1f30/html5/thumbnails/2.jpg)
name = 'Vincent'
real_name = ' '
company = ' - '
title = ' CTO Rubyist'
blog = 'https://xiewenwei.github.io'
github = 'https://github.com/xiewenwei'
ruby_china = 'https://ruby-china.org/vincent'
while true
write_programs
read_books
watch_movies
enjoy
end
![Page 3: nchan.md - slideit€¦ · socket.io (Node.js) Lightstreamer (Java) Faye (Node.js and Ruby)... NCHAN Restful API hook Websocket, EventSource Long Poll. LOAD BALANCING HTTP. LOAD BALANCING](https://reader036.vdocument.in/reader036/viewer/2022081407/605663018c72d572783e1f30/html5/thumbnails/3.jpg)
IM
Nginx Nchan Nginx Nchan
& QA
![Page 4: nchan.md - slideit€¦ · socket.io (Node.js) Lightstreamer (Java) Faye (Node.js and Ruby)... NCHAN Restful API hook Websocket, EventSource Long Poll. LOAD BALANCING HTTP. LOAD BALANCING](https://reader036.vdocument.in/reader036/viewer/2022081407/605663018c72d572783e1f30/html5/thumbnails/4.jpg)
IM IM
IM Client iOS Android Web
![Page 5: nchan.md - slideit€¦ · socket.io (Node.js) Lightstreamer (Java) Faye (Node.js and Ruby)... NCHAN Restful API hook Websocket, EventSource Long Poll. LOAD BALANCING HTTP. LOAD BALANCING](https://reader036.vdocument.in/reader036/viewer/2022081407/605663018c72d572783e1f30/html5/thumbnails/5.jpg)
Web
Http
Socket
Websocket
![Page 6: nchan.md - slideit€¦ · socket.io (Node.js) Lightstreamer (Java) Faye (Node.js and Ruby)... NCHAN Restful API hook Websocket, EventSource Long Poll. LOAD BALANCING HTTP. LOAD BALANCING](https://reader036.vdocument.in/reader036/viewer/2022081407/605663018c72d572783e1f30/html5/thumbnails/6.jpg)
1 HTTP
![Page 7: nchan.md - slideit€¦ · socket.io (Node.js) Lightstreamer (Java) Faye (Node.js and Ruby)... NCHAN Restful API hook Websocket, EventSource Long Poll. LOAD BALANCING HTTP. LOAD BALANCING](https://reader036.vdocument.in/reader036/viewer/2022081407/605663018c72d572783e1f30/html5/thumbnails/7.jpg)
2 IM
![Page 8: nchan.md - slideit€¦ · socket.io (Node.js) Lightstreamer (Java) Faye (Node.js and Ruby)... NCHAN Restful API hook Websocket, EventSource Long Poll. LOAD BALANCING HTTP. LOAD BALANCING](https://reader036.vdocument.in/reader036/viewer/2022081407/605663018c72d572783e1f30/html5/thumbnails/8.jpg)
3 WEBSOCKET - ACTIONCABLE
Rails 5 Rails Rails
![Page 9: nchan.md - slideit€¦ · socket.io (Node.js) Lightstreamer (Java) Faye (Node.js and Ruby)... NCHAN Restful API hook Websocket, EventSource Long Poll. LOAD BALANCING HTTP. LOAD BALANCING](https://reader036.vdocument.in/reader036/viewer/2022081407/605663018c72d572783e1f30/html5/thumbnails/9.jpg)
ACTIONCABLE
ActionCable websocket serverruby
![Page 10: nchan.md - slideit€¦ · socket.io (Node.js) Lightstreamer (Java) Faye (Node.js and Ruby)... NCHAN Restful API hook Websocket, EventSource Long Poll. LOAD BALANCING HTTP. LOAD BALANCING](https://reader036.vdocument.in/reader036/viewer/2022081407/605663018c72d572783e1f30/html5/thumbnails/10.jpg)
4 WEBSOCKET - NGINX NCHAN Nginx / pub/sub
![Page 11: nchan.md - slideit€¦ · socket.io (Node.js) Lightstreamer (Java) Faye (Node.js and Ruby)... NCHAN Restful API hook Websocket, EventSource Long Poll. LOAD BALANCING HTTP. LOAD BALANCING](https://reader036.vdocument.in/reader036/viewer/2022081407/605663018c72d572783e1f30/html5/thumbnails/11.jpg)
NGINX NCHAN
/ pub/sub Web
Nginx Nginx
![Page 12: nchan.md - slideit€¦ · socket.io (Node.js) Lightstreamer (Java) Faye (Node.js and Ruby)... NCHAN Restful API hook Websocket, EventSource Long Poll. LOAD BALANCING HTTP. LOAD BALANCING](https://reader036.vdocument.in/reader036/viewer/2022081407/605663018c72d572783e1f30/html5/thumbnails/12.jpg)
NCHAN
nchan application client websocket
application http pub nchan nchan client
![Page 13: nchan.md - slideit€¦ · socket.io (Node.js) Lightstreamer (Java) Faye (Node.js and Ruby)... NCHAN Restful API hook Websocket, EventSource Long Poll. LOAD BALANCING HTTP. LOAD BALANCING](https://reader036.vdocument.in/reader036/viewer/2022081407/605663018c72d572783e1f30/html5/thumbnails/13.jpg)
WEBSOCKET
ActionCable (Ruby on Rails)socket.io (Node.js)Lightstreamer (Java)Faye (Node.js and Ruby)...
![Page 14: nchan.md - slideit€¦ · socket.io (Node.js) Lightstreamer (Java) Faye (Node.js and Ruby)... NCHAN Restful API hook Websocket, EventSource Long Poll. LOAD BALANCING HTTP. LOAD BALANCING](https://reader036.vdocument.in/reader036/viewer/2022081407/605663018c72d572783e1f30/html5/thumbnails/14.jpg)
NCHAN
Restful API hook Websocket, EventSource Long Poll
![Page 15: nchan.md - slideit€¦ · socket.io (Node.js) Lightstreamer (Java) Faye (Node.js and Ruby)... NCHAN Restful API hook Websocket, EventSource Long Poll. LOAD BALANCING HTTP. LOAD BALANCING](https://reader036.vdocument.in/reader036/viewer/2022081407/605663018c72d572783e1f30/html5/thumbnails/15.jpg)
LOAD BALANCING HTTP
![Page 16: nchan.md - slideit€¦ · socket.io (Node.js) Lightstreamer (Java) Faye (Node.js and Ruby)... NCHAN Restful API hook Websocket, EventSource Long Poll. LOAD BALANCING HTTP. LOAD BALANCING](https://reader036.vdocument.in/reader036/viewer/2022081407/605663018c72d572783e1f30/html5/thumbnails/16.jpg)
LOAD BALANCING WEBSOCKETS
![Page 17: nchan.md - slideit€¦ · socket.io (Node.js) Lightstreamer (Java) Faye (Node.js and Ruby)... NCHAN Restful API hook Websocket, EventSource Long Poll. LOAD BALANCING HTTP. LOAD BALANCING](https://reader036.vdocument.in/reader036/viewer/2022081407/605663018c72d572783e1f30/html5/thumbnails/17.jpg)
NCHAN LOAD BALANCING
![Page 18: nchan.md - slideit€¦ · socket.io (Node.js) Lightstreamer (Java) Faye (Node.js and Ruby)... NCHAN Restful API hook Websocket, EventSource Long Poll. LOAD BALANCING HTTP. LOAD BALANCING](https://reader036.vdocument.in/reader036/viewer/2022081407/605663018c72d572783e1f30/html5/thumbnails/18.jpg)
NCHAN BENCHMARK
Nchan
![Page 19: nchan.md - slideit€¦ · socket.io (Node.js) Lightstreamer (Java) Faye (Node.js and Ruby)... NCHAN Restful API hook Websocket, EventSource Long Poll. LOAD BALANCING HTTP. LOAD BALANCING](https://reader036.vdocument.in/reader036/viewer/2022081407/605663018c72d572783e1f30/html5/thumbnails/19.jpg)
BENCHMARK
ActionCable
![Page 20: nchan.md - slideit€¦ · socket.io (Node.js) Lightstreamer (Java) Faye (Node.js and Ruby)... NCHAN Restful API hook Websocket, EventSource Long Poll. LOAD BALANCING HTTP. LOAD BALANCING](https://reader036.vdocument.in/reader036/viewer/2022081407/605663018c72d572783e1f30/html5/thumbnails/20.jpg)
NCHAN
![Page 21: nchan.md - slideit€¦ · socket.io (Node.js) Lightstreamer (Java) Faye (Node.js and Ruby)... NCHAN Restful API hook Websocket, EventSource Long Poll. LOAD BALANCING HTTP. LOAD BALANCING](https://reader036.vdocument.in/reader036/viewer/2022081407/605663018c72d572783e1f30/html5/thumbnails/21.jpg)
![Page 22: nchan.md - slideit€¦ · socket.io (Node.js) Lightstreamer (Java) Faye (Node.js and Ruby)... NCHAN Restful API hook Websocket, EventSource Long Poll. LOAD BALANCING HTTP. LOAD BALANCING](https://reader036.vdocument.in/reader036/viewer/2022081407/605663018c72d572783e1f30/html5/thumbnails/22.jpg)
Channel ID ID Websocket
location ~ /channels/(\w+)/sub$ { nchan_subscriber; nchan_channel_id "$1"; }
![Page 23: nchan.md - slideit€¦ · socket.io (Node.js) Lightstreamer (Java) Faye (Node.js and Ruby)... NCHAN Restful API hook Websocket, EventSource Long Poll. LOAD BALANCING HTTP. LOAD BALANCING](https://reader036.vdocument.in/reader036/viewer/2022081407/605663018c72d572783e1f30/html5/thumbnails/23.jpg)
ID uuid hook token
location ~ /channels/(\w+)/sub$ { nchan_authorize_request /ws_authorize; #... } location = /ws_authorize { proxy_pass http://hook_demo/websockets/auth; proxy_set_header X-Channel-Id $nchan_channel_id; #... }
![Page 24: nchan.md - slideit€¦ · socket.io (Node.js) Lightstreamer (Java) Faye (Node.js and Ruby)... NCHAN Restful API hook Websocket, EventSource Long Poll. LOAD BALANCING HTTP. LOAD BALANCING](https://reader036.vdocument.in/reader036/viewer/2022081407/605663018c72d572783e1f30/html5/thumbnails/24.jpg)
hook ID Redis Set Redis Set
hook ID Redis Set
![Page 25: nchan.md - slideit€¦ · socket.io (Node.js) Lightstreamer (Java) Faye (Node.js and Ruby)... NCHAN Restful API hook Websocket, EventSource Long Poll. LOAD BALANCING HTTP. LOAD BALANCING](https://reader036.vdocument.in/reader036/viewer/2022081407/605663018c72d572783e1f30/html5/thumbnails/25.jpg)
Http
Websocket
![Page 26: nchan.md - slideit€¦ · socket.io (Node.js) Lightstreamer (Java) Faye (Node.js and Ruby)... NCHAN Restful API hook Websocket, EventSource Long Poll. LOAD BALANCING HTTP. LOAD BALANCING](https://reader036.vdocument.in/reader036/viewer/2022081407/605663018c72d572783e1f30/html5/thumbnails/26.jpg)
Channel ID
![Page 27: nchan.md - slideit€¦ · socket.io (Node.js) Lightstreamer (Java) Faye (Node.js and Ruby)... NCHAN Restful API hook Websocket, EventSource Long Poll. LOAD BALANCING HTTP. LOAD BALANCING](https://reader036.vdocument.in/reader036/viewer/2022081407/605663018c72d572783e1f30/html5/thumbnails/27.jpg)
Redis
...
![Page 28: nchan.md - slideit€¦ · socket.io (Node.js) Lightstreamer (Java) Faye (Node.js and Ruby)... NCHAN Restful API hook Websocket, EventSource Long Poll. LOAD BALANCING HTTP. LOAD BALANCING](https://reader036.vdocument.in/reader036/viewer/2022081407/605663018c72d572783e1f30/html5/thumbnails/28.jpg)
Nchan Ngnix Web
Nchan
![Page 29: nchan.md - slideit€¦ · socket.io (Node.js) Lightstreamer (Java) Faye (Node.js and Ruby)... NCHAN Restful API hook Websocket, EventSource Long Poll. LOAD BALANCING HTTP. LOAD BALANCING](https://reader036.vdocument.in/reader036/viewer/2022081407/605663018c72d572783e1f30/html5/thumbnails/29.jpg)
THANK YOU & QA Ruby
![Page 30: nchan.md - slideit€¦ · socket.io (Node.js) Lightstreamer (Java) Faye (Node.js and Ruby)... NCHAN Restful API hook Websocket, EventSource Long Poll. LOAD BALANCING HTTP. LOAD BALANCING](https://reader036.vdocument.in/reader036/viewer/2022081407/605663018c72d572783e1f30/html5/thumbnails/30.jpg)
Nginx Nchan Rails ActionCable Real-time Web Applications with Ruby on RailsWebsocket Shootout: Clojure, C++, Elixir, Go, NodeJS, andRuby