Meteor ddp

933 views

Published on

Published in: Technology
0 Comments
3 Likes
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total views
933
On SlideShare
0
From Embeds
0
Number of Embeds
5
Actions
Shares
0
Downloads
13
Comments
0
Likes
3
Embeds 0
No embeds

No notes for slide

Meteor ddp

  1. 1. Meteor/DDP 김경렬
  2. 2. Why the Future 
 is not RESTful http://z.caudate.me/why-the-future-is-not-restful/
  3. 3. • Open source platform for building Modern Web Apps. • EJSON instead of HTML • Run most of their code inside the browser. • Single language. • Reactivity, Pub/Sub, Latency Compensation http://www.meteor.com/screencast
  4. 4. presentations
 (templates, binding) javascript code (client/server) node.js / database (mongodb) DDP
 (EJSON)
  5. 5. install • $ curl https://install.meteor.com | /bin/sh • $ meteor create myapp • $ cd myapp
 $ meteor
 => Meteor server running on: http://localhost:3000/ • $ meteor deploy myapp.meteor.com
  6. 6. Document • http://docs.meteor.com/ (english)
 http://docs-ko.meteor.com/ (번역)
  7. 7. Sample - LeaderBoard
  8. 8. DDP 
 (Distributed Data Protocol) • Remote procedure calls by the client to the server. • The client subscribing to a set of documents, and the server keeping the client informed about the contents of those documents as they change over time. https://github.com/meteor/meteor/blob/master/packages/livedata/DDP.md
  9. 9. Establishing
 Managing Data
 Remote Procedure Calls EJSON 
 (msg type, other field) SockJS / WebSockets
 Native Socket
  10. 10. Establishing connect client server session
 version
 support
  11. 11. Establishing connected client server session
  12. 12. Establishing failed client server version
  13. 13. Managing Data sub unsub client id
 (name
 params) server
  14. 14. C(R)UD client added
 changed removed collection id (fields, cleared) server
  15. 15. Ordered Collection C(R)UD addedBefore
 movedBefore client server collection id fields, before
  16. 16. RPC method client server method
 params
 id
  17. 17. RPC result client id error result server
  18. 18. RPC update client server methods
  19. 19. The futures of RESTful Data storage of the client RealTime

×