Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Meteor In a Nutshell - EgyptJS

Sponsored · Ship Features Fearlessly Turn features on and off without deploys. Used by thousands of Ruby developers. →
Avatar for Harry Harry
March 04, 2020

Meteor In a Nutshell - EgyptJS

Avatar for Harry

Harry

March 04, 2020

Other Decks in Programming

Transcript

  1. DDP • Distributed Data Protocol • An abstraction on top

    of WebSockets or long polling • Built on top of SockJS, which is a WebSocket emulation transport
  2. Publications & Subscriptions Minimongo is essentially an in-memory, non-persistent implementation

    of Mongo in pure JavaScript. It serves as a local cache that stores just the subset of the database that this client is working with.
  3. Publications & Subscriptions The DDP protocol has three types of

    notification: “added”, “changed” and “removed”. After all messages are sent out by the server, DDP will send special message called “ready” that indicates that you are good to go.
  4. Methods Latency compensation On the client, Meteor prefetches data and

    simulates models to make it look like server method calls return instantly