Upload
victor-grishchenko
View
233
Download
5
Embed Size (px)
DESCRIPTION
http://www.moscowjs.ru/events/moscowjs-16.html slides (english version)
Citation preview
SWARM @ MOSCOWJS 2.0reactive data sync
for web and mobile apps
Moscow, #tceh 27 Oct 2014
SYNC: USE CASES
SWARM
SYNCHRONIZATION
• caching
• offline
• real-time
CAPasynchrony
CRDT• Convergent…
• Commutative…
• Cloud…
… ReplicatedData
Types
P O LogVe
ctor
LWW
Set
Text
Rich
Text
Inc
SWARM (CODE)var host = new Swarm.Host('user~ssn');!!
host.connect(‘ws://localhost:8000');!!
var mickey = host.get(‘/Mouse#Mickey’,!! function(s, v, mickey){!! ! mickey.set({! x:100,! y:100!! ! }); !! });
SERVER-SIDE RENDER
REAL-TIME SYNC
CONNECT
OFFLINE
MANIFEST & CACHE
LINKS
Demo: http://ppyr.us Code: https://github.com/gritzko/todomvc-swarmSwarm.js: https://github.com/gritzko/swarm Blog: http://swarmjs.github.io Twitter : http://twitter.com/swarm_js Habr (ru): http://habrahabr.ru/company/swarm/ Slideshare: http://www.slideshare.net/gritzko/ !Email: [email protected]