Github user kxepal commented on the pull request:

    https://github.com/apache/couchdb-couch/pull/138#issuecomment-184776941
  
    I'm all +1 for this, except that I'm not sure if this is correct 
design-wise solution. Because we actually bring bits from cluster httpd 
interface to the backdoor one. And since chttpd uses couch_httpd internally, 
this makes circular dependency between them. 
    
    What I think would be correct is to move common httpd bits into own 
package. We already have couch-httpd repository as empty and it name sounds to 
be good place for such kind of things. And then we can have
    ```
         couch-httpd
         ^         ^
         |         |
      chttpd couch_httpd
    ```
    
    model instead of 
    ```
    chttpd <--> couch_httpd
    ```
    
    In mid/long term couch-httpd app can help to isolate mochiweb from rest 
CouchDB and simplify migration to some else web framework: webmachine, cowboy, 
whatever it'll be.
    
    What do you think about this? 


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---

Reply via email to