let's explore the DB APIs some...
What can I do with this?
...but that can't possibly scale, right?
“CouchDB is made of the web.”
– Jacob Kaplan-Moss
Couchbase
jQuery and You
“jQuery is a fast and concise JavaScript Library that simplifies HTML document traversing, event handling, animating, and Ajax interactions for rapid web development.”
Dustin Sallings
@dlsspy
Complement
- web server == DB
- browser language == server language
- read, write, REST
Shed Tiers
[demo]
jQuery: Awesome DB Client
jQuery
couch
Responsibilities
create, retrieve, update
"favoriting" items
map function with reduce (server-side)
map function (server-side)
use built-in reduce: _count
map request
grouped map request
slightly fancier:
update the UI when
the server finishes
watch changes in realtime
basic change tracking
ungrouped
- periodic poll
- long polling
- pause/resume
- filter items
- for tools, too!
Just about anything.