Building real-time apps                  with node.js, socket.io                      and knockout.js                     ...
you want real-time apps?         get the fastest tools!Monday, March 12, 2012
node.js            high performance javascript library for intensive I/O            operations. (like HTTP)            sin...
websockets              bi-directional, full duplex over a single tcp socket.              connection remains open = no tc...
socket.io              websockets for the rest of us.              fallback transports (yes, it also works in IE!!)       ...
knockout.js              rich, responsive display with a clean underlying data              model.                    decl...
... and a fast database!              open source, high performance, in-memory, key-value              data store         ...
real-time web apps          node.js + redis + socket.io + knockout.js                         real-time... or close enough...
let’s build a really simple real-time game...        code: https://github.com/iloire/math-race        demo: http://letsnod...
Upcoming SlideShare
Loading in …5
×

Building real time apps with node.js, socket.io, knockout.js

1,957 views

Published on

0 Comments
2 Likes
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total views
1,957
On SlideShare
0
From Embeds
0
Number of Embeds
25
Actions
Shares
0
Downloads
23
Comments
0
Likes
2
Embeds 0
No embeds

No notes for slide

Building real time apps with node.js, socket.io, knockout.js

  1. 1. Building real-time apps with node.js, socket.io and knockout.js Betabeers Zaragoza, 09/03/2012 Iván Loire twitter: @ivanloire email: ivan@iloire.comMonday, March 12, 2012
  2. 2. you want real-time apps? get the fastest tools!Monday, March 12, 2012
  3. 3. node.js high performance javascript library for intensive I/O operations. (like HTTP) single threaded, event oriented. built on Chrome’s Javascript runtime (V8) lightweight, efficient, really fast. .. insanely fast.Monday, March 12, 2012
  4. 4. websockets bi-directional, full duplex over a single tcp socket. connection remains open = no tcp handshake lightweight protocol = no http headers, 2 byte overhead supported chrome 16, FF 11, IE 10, Opera 10 reducing latency from 150 (http) to 50 ms (sockets)Monday, March 12, 2012
  5. 5. socket.io websockets for the rest of us. fallback transports (yes, it also works in IE!!) websockets flash sockets ajax long polling ajax streaming iframe json polling..Monday, March 12, 2012
  6. 6. knockout.js rich, responsive display with a clean underlying data model. declarative bindinds automatic UI refresh dependency tracking templatingMonday, March 12, 2012
  7. 7. ... and a fast database! open source, high performance, in-memory, key-value data store support master-slave replication really fast! if durability is not needed... insanely fast!Monday, March 12, 2012
  8. 8. real-time web apps node.js + redis + socket.io + knockout.js real-time... or close enough?Monday, March 12, 2012
  9. 9. let’s build a really simple real-time game... code: https://github.com/iloire/math-race demo: http://letsnode.com:8090/ thanks to @gimenete for getting me into node.js! ... and thanks to @jmendiara for the node.js sticker! Thanks! Iván Loire (twitter: @ivanloire)Monday, March 12, 2012

×