Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.
Real-time web/mobile app. 
Real-time systems 
Presented by Bunlong VAN 
https://geekhmer.github.io
The Disclaimer
Real-time application? 
• Make the web/mobile 'The live web/mobile' 
• Update info. on web/mobile without delay & page ref...
Tech Stack
Websocket? 
• Websocket is a new standard for realtime communication 
the web & mobile app. 
• Websocket enables the serve...
Websocket? (Con.) 
• On web, Websocket support in browser ssuucchh aass CChhrroommee,, 
FFiirreeffooxx,, OOppeerraa.. 
• O...
Websocket? (Con.) 
• On server, Websocket ssuuppppoorrtt iinn::
Websocket? (Con.)
Front-end MVC Framework
You got ur Erlang in my Ruby
Companies using Erlang
Erlang 
• SSccaallaabbllee 
• CCoonnccuurrrreennccyy 
• DDiissttrriibbuutteedd 
• NNeettwwoorrkkiinngg 
• UUnnffaammiillii...
Ruby 
• RRaappiidd ddeevveellooppmmeenntt 
• FFaammiilliiaarr ssyynnttaaxx 
• HHuummaann rreeaaddaabbllee ccooddee 
• NNii...
What if we can combine the best of both? 
• MMeessssaaggiinngg 
• NNeettwwoorrkkiinngg 
• SSccaallaabbiilliittyy 
• DDiiss...
Erlang 
Web server 
Agent Agent Agent 
Agent Agent Agent 
Agent Agent Agent 
Agent Agent Agent 
Agent Agent Agent 
Agent A...
How many connections? 
No 
No 
No 
No 
No 
No
Overflow connections 
Erlang 
Web server 
Agent Agent Agent 
Agent Agent Agent 
Agent Agent Agent 
Agent Agent Agent 
Agen...
Have solution? 
PPrrooxxyy sseerrvveerr 
WWeebb sseerrvveerr 
WWeebb sseerrvveerr 
WWeebb sseerrvveerr 
WWeebb sseerrvveer...
Chat System – Registration 
Chat Room [ 0.01, 0.02, 0.03, 0.04 , 0.05] 
Bunlong Linda Dara Nita Ah Vy 
0.01 0.02 0.03 0.04...
Chat System – Sending Message 
Chat Room 
[ 0.01, 0.02, 0.03, 0.04 , 0.05] 
“Hello” “Hello” “Hello” 
“Hello” “Hello” 
Bunl...
Question?
Thank you
Upcoming SlideShare
Loading in …5
×

Real time web and mobile application with Erlang & Ruby programming language

1,305 views

Published on

Real time web and mobile application with Erlang & Ruby programming language

Published in: Technology
  • Be the first to comment

Real time web and mobile application with Erlang & Ruby programming language

  1. 1. Real-time web/mobile app. Real-time systems Presented by Bunlong VAN https://geekhmer.github.io
  2. 2. The Disclaimer
  3. 3. Real-time application? • Make the web/mobile 'The live web/mobile' • Update info. on web/mobile without delay & page refreshes • Enable users to receive info. As soon as it is published
  4. 4. Tech Stack
  5. 5. Websocket? • Websocket is a new standard for realtime communication the web & mobile app. • Websocket enables the server to push data to the connected clients. • MMuullttii--uusseerr aapppp.. • RReeaall--ttiimmee aapppp.. • AApppp wwhheerree lliivvee ddaattaa iiss nneeeeddeedd,, lliikkee ssttoocckk mmaarrkkeett aapppp......
  6. 6. Websocket? (Con.) • On web, Websocket support in browser ssuucchh aass CChhrroommee,, FFiirreeffooxx,, OOppeerraa.. • OOnn mmoobbiillee,, WWeebbssoocckkeett ssuuppppoorrtt iinn iiOOSS & AAnnddrrooiidd.. • WWeebbssoocckkeett cclliieenntt oonn WWeebb uussee jjaavvaassccrriippoott ffoorr rreeqquueessttiinngg ttoo wweebbssoocckkeett sseerrvveerr..
  7. 7. Websocket? (Con.) • On server, Websocket ssuuppppoorrtt iinn::
  8. 8. Websocket? (Con.)
  9. 9. Front-end MVC Framework
  10. 10. You got ur Erlang in my Ruby
  11. 11. Companies using Erlang
  12. 12. Erlang • SSccaallaabbllee • CCoonnccuurrrreennccyy • DDiissttrriibbuutteedd • NNeettwwoorrkkiinngg • UUnnffaammiilliiaarr ssyynnttaaxx • HHaarrdd ttoo lleeaarrnn • LLeessss ddooccuummeenntt • MMuucchh hhaarrddeerr ttoo ffiinndd ddeevveellooppeerrss
  13. 13. Ruby • RRaappiidd ddeevveellooppmmeenntt • FFaammiilliiaarr ssyynnttaaxx • HHuummaann rreeaaddaabbllee ccooddee • NNiiccee ccooddee • FFlleexxiibbllee • EEaassyy ttoo ffiinndd ddeevveellooppeerrss • NNoo MMuullttii--CCoorree • NNoo nnaattiivvee tthhrreeaaddss • IInntteerrpprreetteedd ssccrriipptt
  14. 14. What if we can combine the best of both? • MMeessssaaggiinngg • NNeettwwoorrkkiinngg • SSccaallaabbiilliittyy • DDiissttrriibbuuttiioonn • RRaappiidd ddeevveellooppmmeenntt • DDSSLL//ccoonncciissee ssyynnttaaxx • EEaassee ooff uussee//iinnssttaallllaattiioonn
  15. 15. Erlang Web server Agent Agent Agent Agent Agent Agent Agent Agent Agent Agent Agent Agent Agent Agent Agent Agent Agent Agent Agent Agent Agent Mapping Ruby/Rails Processing
  16. 16. How many connections? No No No No No No
  17. 17. Overflow connections Erlang Web server Agent Agent Agent Agent Agent Agent Agent Agent Agent Agent Agent Agent Agent Agent Agent Agent Agent Agent Agent Agent Agent Mapping Ruby/Rails
  18. 18. Have solution? PPrrooxxyy sseerrvveerr WWeebb sseerrvveerr WWeebb sseerrvveerr WWeebb sseerrvveerr WWeebb sseerrvveerr
  19. 19. Chat System – Registration Chat Room [ 0.01, 0.02, 0.03, 0.04 , 0.05] Bunlong Linda Dara Nita Ah Vy 0.01 0.02 0.03 0.04 0.05
  20. 20. Chat System – Sending Message Chat Room [ 0.01, 0.02, 0.03, 0.04 , 0.05] “Hello” “Hello” “Hello” “Hello” “Hello” Bunlong Linda Dara Nita Ah Vy 0.01 0.02 0.03 0.04 0.05
  21. 21. Question?
  22. 22. Thank you

×