Skip to content

[Good practice] Should I allow (web) clients to have direct access to CouchDB? #3000

Answered by janl
cluxter asked this question in General
Discussion options

You must be logged in to vote

@cluxter good question! CouchDB works fine in a traditional three tier architecture behind an application server that in turn is the only resource that has access to the database. But another option is having an open CouchDB on the internet. This is particularly useful when building offline-capable web-apps with PouchDB. In that case, CouchDB and PouchDB should be talking to each other directly, so you will be relying on the CouchDB authentication system for access control. It was designed for this specific use case.

There are some limitations as @ermouth points out, but for the most important ones (IMHO), rate limiting, you can introduce an otherwise transparent HTTP proxy.

tl;dr: CouchD…

Replies: 4 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by janl
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
4 participants