Your SlideShare is downloading. ×
Meteor ddp
Upcoming SlideShare
Loading in...5
×

Thanks for flagging this SlideShare!

Oops! An error has occurred.

×
Saving this for later? Get the SlideShare app to save on your phone or tablet. Read anywhere, anytime – even offline.
Text the download link to your phone
Standard text messaging rates apply

Meteor ddp

385

Published on

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

No Downloads
Views
Total Views
385
On Slideshare
0
From Embeds
0
Number of Embeds
1
Actions
Shares
0
Downloads
10
Comments
0
Likes
2
Embeds 0
No embeds

Report content
Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
No notes for slide

Transcript

  • 1. Meteor/DDP 김경렬
  • 2. Why the Future 
 is not RESTful http://z.caudate.me/why-the-future-is-not-restful/
  • 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. presentations
 (templates, binding) javascript code (client/server) node.js / database (mongodb) DDP
 (EJSON)
  • 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. Document • http://docs.meteor.com/ (english)
 http://docs-ko.meteor.com/ (번역)
  • 7. Sample - LeaderBoard
  • 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. Establishing
 Managing Data
 Remote Procedure Calls EJSON 
 (msg type, other field) SockJS / WebSockets
 Native Socket
  • 10. Establishing connect client server session
 version
 support
  • 11. Establishing connected client server session
  • 12. Establishing failed client server version
  • 13. Managing Data sub unsub client id
 (name
 params) server
  • 14. C(R)UD client added
 changed removed collection id (fields, cleared) server
  • 15. Ordered Collection C(R)UD addedBefore
 movedBefore client server collection id fields, before
  • 16. RPC method client server method
 params
 id
  • 17. RPC result client id error result server
  • 18. RPC update client server methods
  • 19. The futures of RESTful Data storage of the client RealTime

×