CouchDB to the Edge ApacheCon EU

Loading...

Flash Player 9 (or above) is needed to view presentations.
We have detected that you do not have it on your computer. To install it, go here.

0 comments

Post a comment

    Post a comment
    Embed Video
    Edit your comment Cancel

    1 Favorite

    CouchDB to the Edge ApacheCon EU - Presentation Transcript

    1. Deploying to the Edge Apache CouchDB Friday, 27 March 2009
    2. Relax Friday, 27 March 2009
    3. Who’s Talking? • J Chris Anderson / jchris@apache.org / @jchris • PHP -> Rails -> JSON -> CouchDB • Director, couch.io Friday, 27 March 2009
    4. And You? • Web developers? • JavaScript coders? • CouchDB users? Friday, 27 March 2009
    5. CouchDB at the Edge • CouchDB Basics • Design Documents • View Source ➙ Open Source • Deployment • Application Constraints Friday, 27 March 2009
    6. Damien Katz Wassat? Friday, 27 March 2009 What’s CouchDB?
    7. Schema Free (JSON) • CouchDB • Document Oriented, Not Relational • Highly Concurrent • RESTful HTTP API • JavaScript Powered Map/Reduce • N-Master Replication • Robust Storage Friday, 27 March 2009
    8. RESTful HTTP • Binary attachments • JSON is ideal for Ajax • Web Native • Standalone Applications Friday, 27 March 2009
    9. Design Documents • Application Code • JSON Documents • Share • couchapp clone • Replication Friday, 27 March 2009
    10. Design Documents • Application Code • JSON Documents • Share • couchapp clone • Replication Friday, 27 March 2009
    11. Design Documents • Application Code • JSON Documents • Share • couchapp clone • Replication Friday, 27 March 2009
    12. Design Documents • Application Code • JSON Documents • Share • couchapp clone • Replication Friday, 27 March 2009
    13. View Source ➙ Open Source • “Running at the Edge” when users run local CouchDB nodes. • Applications are data. • Give control to users. CC-BY-SA http://www.flickr.com/photos/kelleys/492253912/ Friday, 27 March 2009
    14. Easy to Share • Design Docs are replicated. • If you can see an application, you can have the code. Friday, 27 March 2009
    15. Oooh... Replication Friday, 27 March 2009
    16. Friday, 27 March 2009
    17. Friday, 27 March 2009
    18. Friday, 27 March 2009
    19. Friday, 27 March 2009
    20. Friday, 27 March 2009
    21. Friday, 27 March 2009
    22. Friday, 27 March 2009 periodic, notifier system
    23. Friday, 27 March 2009
    24. Friday, 27 March 2009 P2P apps
    25. Deployment • Traditional Server • couchapp push • Replicated to User • offline-mode • Peer to Peer • Ad hoc sharing Friday, 27 March 2009
    26. Traditional Server • We’re familiar with the application model. • We know we can scale CouchDB. • Centralized servers are hard to run. • Users expect low latency responses. • Peak traffic events are interesting. Friday, 27 March 2009
    27. Offline Mode • Application model is more like a desktop. • Code runs primarily at the client. • Replication keeps the edge in sync with the cloud. • Latency is less important than throughput. Friday, 27 March 2009
    28. Peer to Peer • Needs no primary service provider. • Users can mashup apps and data. • Generative because people own the code. • We’re still learning application models. Friday, 27 March 2009
    29. Friday, 27 March 2009 P2P apps
    30. Programming at the Edge Friday, 27 March 2009
    31. More than Ajax Friday, 27 March 2009 • Side Effect Free JavaScript Function • Converts from a single document into a response with any Content-Type • CouchApp makes it easy to use http://embeddedjs.com templates in your _show functions. • Cacheable with Etags
    32. Render JSON Docs as HTML shows/post.js /drl/_show/sofa/post/Hello-World-For-Real-This-Time Friday, 27 March 2009 • Side Effect Free JavaScript Function • Converts from a single document into a response with any Content-Type • CouchApp makes it easy to use http://embeddedjs.com templates in your _show functions. • Cacheable with Etags
    33. Render Views as HTML lists/index.js /drl/_list/sofa/index/recent-posts?descending=true&limit=8 Friday, 27 March 2009 • Side effect free and cacheable, like _show • Run with different parameters for the head, tail, and each individual row of the view.
    34. Context is Expensive • Validate one document. • Render requests have no side effects. • Limited to a single document or view. • Document updates trigger asynchronous processing. Friday, 27 March 2009
    35. Identity • Can we trust intermediate servers? • Key-Based Identity • Signed Messages • Canonical JSON • Web of Trust Friday, 27 March 2009
    36. Where do I start? • @CouchDB on Twitter • http://couchdb.org/ • http://planet.couchdb.org/ • http://books.couchdb.org/relax/ • http://groups.google.com/group/couchapp Friday, 27 March 2009
    37. couch.io Berlin – London – Portland Friday, 27 March 2009
    38. anks! Friday, 27 March 2009
    39. Friday, 27 March 2009
    SlideShare Zeitgeist 2009

    + Chris AndersonChris Anderson Nominate

    custom

    476 views, 1 favs, 0 embeds more stats

    More info about this document

    © All Rights Reserved

    Go to text version

    • Total Views 476
      • 476 on SlideShare
      • 0 from embeds
    • Comments 0
    • Favorites 1
    • Downloads 9
    Most viewed embeds

    more

    All embeds

    less

    Flagged as inappropriate Flag as inappropriate
    Flag as inappropriate

    Select your reason for flagging this presentation as inappropriate. If needed, use the feedback form to let us know more details.

    Cancel
    File a copyright complaint
    Having problems? Go to our helpdesk?

    Categories