anuragvohraec commented on issue #3308:
URL: https://github.com/apache/couchdb/issues/3308#issuecomment-943331136


   > Exactly! That's how connection sharing works. After the TCP connection is 
established to a host, port, SSL session is setup, it can be reused for 
multiple requests:
   > The time to connect and do the SSL handshake can be expensive, so instead 
of tearing down the connection and making a new one every time, it can be 
re-used. Some client libraries can do this too, for example with requests is 
may look like: https://docs.python-requests.org/en/master/user/advanced/
   
   After reading your comments, I have been overthinking on this and come to a 
concluson that REST based API is over all bad. A web socket based API layer 
would have been way faster and efficient in handling DB connections. So may be 
couchdb 5.0 can be build on top of websockets. This way a data can be updated 
to ever listner in nearly real time [RethinkDB](https://rethinkdb.com/) is an 
example to this.
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to