~/talk

CouchDB, PouchDB and Offline-Tolerant Apps

Talkat Dutch PHP Conference 2017 · 2017-06-29..07-01· [databases, pwa]
slides:none on file

CouchDB is presented as a fault-tolerant JSON document store with an HTTP API, changes feed for replication, and MapReduce/Javascript views; Mango provides ad-hoc queries but needs indexes to avoid full scans. A browser-side PouchDB shopping list demo shows a local DB that does two-way sync with CouchDB, survives being offline, and reconciles simultaneous edits using deterministic conflict resolution (loser revisions remain queryable). The demo runs end-to-end (with expected live-demo delays) and recommends per-database access control and background syncing.

AI-written summary · about

  1. 0:00Intro
  2. 2:08Document Databases Store collections of schemaless documents
  3. 4:20CouchDB Cluster Of Unreliable Commodity Hardware
  4. 7:42CouchDB HTTP API
  5. 8:44Curl and Not-Curl • love curl? ( haxx.se/)
  6. 11:04Try http-console
  7. 17:43Changes Feed A feed containing all database changes. GET /_changes
  8. 21:11Conflicts
  9. 25:11Mango: CouchDB Queries
  10. 25:56Mango: Example Query
  11. 27:46Mango: Indexes
  12. 29:35MapReduce Primer: Map
  13. 34:01MapReduce Primer: Reduce
  14. 35:40Views Example
  15. 42:22PouchDB: Replication
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.