You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@couchdb.apache.org by GitBox <gi...@apache.org> on 2018/08/12 08:05:50 UTC
[GitHub] giowild commented on issue #1534: proposed 1.x deprecations
giowild commented on issue #1534: proposed 1.x deprecations
URL: https://github.com/apache/couchdb/issues/1534#issuecomment-412326103
Thanks @johs and @ermouth for mention.
> There is kind of misunderstanding. We use couchapps, but not in the way you think.
> All those features just work. They might be faster, and some improvements are low hanging fruits, but they already work in acceptable way. They only need very minor repair time to time.
I strongly agree with ermouth words.
I think there is a substantial lack of comprehension on what these features can already give out of the box, as they are now, and how they can be used to achieve what today is thought impossible to achieve with couchdb, if not using a proxy.
I already tried to explain (unfortunately in vain) in the past on the ML, how vhosts and rewrites can substantially be used as sorts of firewalls and routers to implement fine access control and routing(to other design docs rewrites, show,list,updates and so on) even before reading documents from database. This opens up endless possibilities for app developers. Just to make an example: the long-time asked "document-level acl" is already possible, withouth security flaws, simply by using correctly all rewrites, shows, list, views and updates features. This is in place, as example, to deliver smileupps website, cloud panel and billing!!! Other big plus are the possibility to perform hot-swap when upgrading a website from version 1.0 to 2.0 (by updating the first routing document in the chain), or possibility to work on a draft version of a website, different from what the user is watching (by simply using a vhost pointing to a different design doc/rewrites in the same database).
These are features app developers want and these are only few examples of what can ALREADY be achieved with existing couchdb features!
After that, only adding few minor enhancements, can give tremendous benefits to app developers improving overall ease of use, flexibility and security. We tried to discuss them in the ML in vain, then we ended up implementing them in our personal Couchdb-fork.
I'm referring to the possibility of pushing more details inside rewrites documents, such as acl details. What said above, becomes trivial in this way:
```
[
{"to":"ABC","from":"XYZ","logged":"true"},
{"to":"ABC","from":"XYZ","user":"joe"},
{"to":"ABC","from":"XYZ","role":"author"}
]
```
- or the possibility to replace special keywords in rewrites rules, such as :actualuser,:actualrole,:actualdb and :actualvhost
- or the possibility to use absolute paths instead of relative paths, which greatly improves simplicity from an app developer perspective
- or the possibility to use current database instead of _users database for user authentication
and much more...
It is sad to say that what is missing in CouchDB today, is not a specific feature, but the VISION and WILL of DIFFERENTIATING from other database products.
@joan said:
> I can't think of another database engine that allows you to rewrite its API
and this IS AN ADVANTAGE for CouchDB!!! :-) These are exactly the kind of features where couchdb CAN and SHOULD differentiate, otherwise it will forever remain another NoSQL database, differentiating only for the fact that its API is native and not a plugin.
I would like a database meant FOR the APP DEVELOPER and not for a db or system administrator. If no app developers will ever write apps with couchdb, no db or system administrators will be ever required to mantain its databases!
IMHO app developers tends to value the following features in this order:
1. expressiveness, flexibility and ease of use (impacting on development time) + app-level features (authentication, authorization, website+app inside database, in-browser development, etc.)
2. security: no information must leak from the database (rewrites are great for this)
3. performance
4. system-level features (clustering is here :-)
In the end, FWIW this is my invaluable set of features:
* _rewrites
* vhosts
* _show
* _list
* OS daemons
* Couch proxy stuff (Couch proxying other services - couch_httpd_proxy
* Update functions
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
With regards,
Apache Git Services