IBM / cloudant-python-sdk

Cloudant SDK for Python
Apache License 2.0
40 stars 21 forks source link

Add `async` support #622

Open maovidal opened 4 months ago

maovidal commented 4 months ago

Is your feature request related to a problem? Please describe.

Sometimes the network traffic affects the response time of the queries to our database. As the DB is blocking, the rest of our app becomes quite unresponsive in those situations.

I wonder if this is something still under consideration: https://github.com/cloudant/python-cloudant/issues/211

Thanks!

ricellis commented 4 months ago

Async support for Python is still under consideration. The HTTP client stack and request/response handling are provided by the IBM Cloud Python SDK core. I am aware of an internal request tracking async support for that and I've asked for an update, but AFAIK it is not planned at this point.

In the meantime if you are an IBM Cloudant customer and have concerns about query performance you can contact support and ask for an engagement with our client architecture team who may be able to help with optimization.

Also, whilst it probably doesn't help if you require a python stack, our Node and Java SDKs do currently support asynchronous requests if you have flexibility in your language choice.

maovidal commented 4 months ago

Thank you for your response. I'll keep an eye on the SDK.

Ousret commented 4 months ago

Hello,

They could, thinking about ibm-cloud-sdk-core, switch from requests to niquests and easily propose an async interface without breaking changes.