DDP is Meteor's real-time wire protocol based on simple JSON messages
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
ddp-sessions/app
debugging-the-server-with-node-inspector/app
introducing-ddp/app
the-ddp-package/app
the-ddp-server/app
what-is-http
README.md

README.md

Class: Introduction to DDP

Meteor


The Distributed Data Protocol (DDP) is Meteor's real-time wire protocol based on simple JSON messages. First you'll learn how a stateful protocol like DDP differs from HTTP. Then you'll get a detailed look at the DDP server using the node-inspector server side debugging tool. Finally we'll create connected sessions using a command line tool and a browser to learn about DDP sessions.

What's in this class?

  • Introducing DDP - In this class you'll explore the DDP package which gives us the DDP wire protocol, and the client and server code to work with DDP messages.

  • What is HTTP? - HTTP is the main protocol used by the Web. It's how Web applications have been built since the beginning. Learn the difference between the stateless HTTP protocol and the stateful DDP protocol.

  • The DDP Package - The ddp package gives us the DDP wire protocol, PubSub, Meteor methods and a lot more. Learn about the client and server parts of the package and where the source code lives.

  • Debugging the Server with Node Inspector - The node-inspector npm module lets us debug server side code. We'll be using it to learn how DDP works on the server. In this video you'll see two ways to use node-inspector in your Meteor applications.

  • The DDP Server - What does the DDP server object look like? In this video we'll use a server-side debugging tool to investigate the DDP server and the state it stores in memory.

  • DDP Sessions - When a client connects to a DDP server, a new DDP session is created. In this video you'll see what a connected client looks like on the server. Then we'll explore the connection object in the browser.