JSON Patch & Puppet future

Tomek Wytrębowicz

@tomalecpl

tomalec

Starcounter Tech Day 2016, 14 December, Stockholm, Sweden

fast-json-patch

RFC6902

@tomalecpl

Faster JSON-Patch duplex

  • Remove browser dependencies (listeners, events, document)
  • Dirty-checking -> Proxy
@tomalecpl

Benefits

  • Performance
  • More sync., simpler, flow
  • x-platform
  • Node.js/server-side compatible
    • Starcounter x Node.js
    • shared code on both ends
    • wider community
  • Easier tests
  • Easier bug reports & tracking
  • Server-side Puppet.js
@tomalecpl

PuppetJS

  1. Separate browser-related features
  2. More symmetric peer-to-peer
  3. n-to-n connections
@tomalecpl

Separate browser-related features

Benefits

  • Simplified flow
  • Performance
  • Modularity
  • Maintenance
  • x-platform
  • Node.js/server-side compatible
    • wider community
  • Easier tests
  • Easier bug reports & tracking
  • More symmetric peer-to-peer
@tomalecpl

More symmetric peer-to-peer

Benefits

  • Shared code on both ends
  • Starcounter x Node.js
  • Better test-coverage
  • Easier maintenance
  • n-to-n connections
@tomalecpl

n-to-n connections

experiment

Benefits

  • Collaborating
  • Sharing view-model on multiple devices
  • Wider non-Starcounter adoption
  • ..?..
@tomalecpl

New name for PuppetJS

as a protocol / communication library

  • It does not have to be JS specific
  • JSON is the thing common for many implementations
  • conflict with Puppet - configuration menagement tool
  • conflict with Marionettejs (Backbone)
  • Does not adhere to p2p (w/o master & slave)
  • Does not adhere to n-to-n flow
@tomalecpl

New name for PuppetJS

as a protocol / communication library

PuppetJs/PuppetJs#83

  • PuppetJSON
  • JSONPuppeteer
  • JSONPatcher
  • JSONMirror / JSONMirrors
  • ?
@tomalecpl

Thanks!

Tomek Wytrębowicz

tomalec

@tomalecpl

Repos:

This & other talks: