BreizhCamp 2015

#BzhCmp

Réduis ton empreinte carbone avec du Push et JSON-Patch

@StreamdataIO #BzhCmp

BreizhCamp 2015

#BzhCmp

Cédric Tran-Xuan

@StreamdataIO #BzhCmp

Les nouvelles technologies

100 centrales nucléaires en 2015 

@StreamdataIO #BzhCmp

Appareils

39 GW

Réseaux

37 GW

Data centers

37 GW

Des applications de plus en plus « temps-réel »

@StreamdataIO #BzhCmp

  • Bourse / Paris en ligne

  • Prix

  • Réseaux sociaux

  • Chat / doc collaboratifs

  • Tableaux de bord

  • Moteurs de recherche

  • Infos

  • Jeux en ligne

  • ...

Question : peut-on sauver les pandas ?

@StreamdataIO #BzhCmp

Développement efficace

@StreamdataIO #BzhCmp

push, don't poll

Un crément, Hal ? (*)

(*) Nicolas Babel at streamdata.io

Incrémental : JSON-Patch

rfc 6902

@StreamdataIO #BzhCmp

{
  "baz": "qux",
  "foo": "bar"
}
[
  { "op": "replace", "path": "/baz", "value": "boo" },
  { "op": "add", "path": "/hello", "value": ["world"] },
  { "op": "remove", "path": "/foo"}
]
{
   "baz": "boo",
   "hello": ["world"]
}

Document d'origine

Patch

Résultat

http://jsonpatch.com

6 opérations

@StreamdataIO #BzhCmp

  • add

  • copy

  • remove

  • test

  • move

  • replace

Implémentée dans de nombreux languages

@StreamdataIO #BzhCmp

...

Push

@StreamdataIO #BzhCmp

Push is the Hollywood principle for the APIs

Push

@StreamdataIO #BzhCmp

Cometd, Long polling

Websockets

Server-Sent Events (SSE)

Push

@StreamdataIO #BzhCmp

Des mots

@StreamdataIO #BzhCmp

Des maux

D'émaux

Démo ?

Questions?

@StreamdataIO #BzhCmp

Merci à Gregory Houllier pour l'utilisation du thème BreizhCamp avec revealjs

Réduis ton empreinte carbone avec du Push et JSON-Patch

By Streamdata.io

Réduis ton empreinte carbone avec du Push et JSON-Patch

  • 594