couchdb: replicated data store for distributed proxy server
TRANSCRIPT
![Page 1: CouchDB: replicated data store for distributed proxy server](https://reader035.vdocuments.us/reader035/viewer/2022080211/558e122d1a28ab5d128b46cd/html5/thumbnails/1.jpg)
CouchDB
(replicated data store for distributed proxy server)
@tkramar
![Page 2: CouchDB: replicated data store for distributed proxy server](https://reader035.vdocuments.us/reader035/viewer/2022080211/558e122d1a28ab5d128b46cd/html5/thumbnails/2.jpg)
Distributed proxy server
● Manipulates● request/response headers/bodies
● Recommend new pages based on browsing patterns
● Insert new search results based on what similar users found relevant
● Your next idea..
![Page 3: CouchDB: replicated data store for distributed proxy server](https://reader035.vdocuments.us/reader035/viewer/2022080211/558e122d1a28ab5d128b46cd/html5/thumbnails/3.jpg)
We want..
● .. to have multiple proxies● localization services● high availability
![Page 4: CouchDB: replicated data store for distributed proxy server](https://reader035.vdocuments.us/reader035/viewer/2022080211/558e122d1a28ab5d128b46cd/html5/thumbnails/4.jpg)
![Page 5: CouchDB: replicated data store for distributed proxy server](https://reader035.vdocuments.us/reader035/viewer/2022080211/558e122d1a28ab5d128b46cd/html5/thumbnails/5.jpg)
CouchDB
● Document database● JSON● _id● _rev
![Page 6: CouchDB: replicated data store for distributed proxy server](https://reader035.vdocuments.us/reader035/viewer/2022080211/558e122d1a28ab5d128b46cd/html5/thumbnails/6.jpg)
![Page 7: CouchDB: replicated data store for distributed proxy server](https://reader035.vdocuments.us/reader035/viewer/2022080211/558e122d1a28ab5d128b46cd/html5/thumbnails/7.jpg)
Views
● JavaScript MapReduce● “SELECT”, “JOIN”● B-tree● persistent
![Page 8: CouchDB: replicated data store for distributed proxy server](https://reader035.vdocuments.us/reader035/viewer/2022080211/558e122d1a28ab5d128b46cd/html5/thumbnails/8.jpg)
Pagination
● Slow● skip, limit● http://127.0.0.1:5984/proxy/_design/access_logs/_vi
ew/by-user-and-timestamp?limit=5&skip=5
● Fast● startdoc, limit● http://127.0.0.1:5984/proxy/_design/access_logs/_vi
ew/by-user-and-timestamp?startkey=3456&skip=5
![Page 9: CouchDB: replicated data store for distributed proxy server](https://reader035.vdocuments.us/reader035/viewer/2022080211/558e122d1a28ab5d128b46cd/html5/thumbnails/9.jpg)
● http://guide.couchdb.org/index.html