Swarm@MoscowJS v2 (en)

Post on 02-Jul-2015

212 Views

Category:

Internet

5 Downloads

Preview:

Click to see full reader

DESCRIPTION

http://www.moscowjs.ru/events/moscowjs-16.html slides (english version)

Transcript

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!! ! }); !! });

ISOMORPHIChttp://ppyr.us

RTT ~140ms

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: swarm.js@gmail.com

top related