Giter VIP home page Giter VIP logo

Comments (13)

kjdelisle avatar kjdelisle commented on September 25, 2024 2

It seems like this issue is actually about not supporting plugin configuration in the connector; we're not passing through an options object that allows configuration of the nodejs-cloudant module.
https://github.com/strongloop/loopback-connector-cloudant/blob/master/lib/cloudant.js#L56
cc @superkhau @jannyHou

from loopback-connector-cloudant.

xpqz avatar xpqz commented on September 25, 2024 1

It would be great if StrongLoop's Cloudant connector could wrap Cloudant's nodejs library. The Shared plan has been deprecated in favour of the new rate-capped Lite & Standard plans, and at the moment SL dies when used against the Lite plan. The Lite plan is intended to serve as a free-forever taster/development tier but applications using that need to be mindful of the caps. Cloudant's library has configurable backoff&retry handling through its retry plugin.

Stefan Kruger, IBM Cloudant.

from loopback-connector-cloudant.

superkhau avatar superkhau commented on September 25, 2024 1

@xpqz Thanks for the feedback, this is definitely something we should take into consideration (using the native nodejs library that supports rate-capped lite and standard plans).

@jannyHou We should add this to your connector's roadmap doc -- high priority too because this is obviously a barrier to entry for this project.

from loopback-connector-cloudant.

ibm-garage-nice avatar ibm-garage-nice commented on September 25, 2024 1

Hi, do we have an idea when the 3.0.0 will be released?

from loopback-connector-cloudant.

kjdelisle avatar kjdelisle commented on September 25, 2024 1

@patsvc I'll add this to our backlog. It's not a breaking change, so I imagine it wouldn't be too much work.

from loopback-connector-cloudant.

l2fprod avatar l2fprod commented on September 25, 2024

I tried a local fix l2fprod@f342236 enabling the retry plugin and obviously it solves the issue. Ideally this should be built-in into the connector with configuration from the datasource.

from loopback-connector-cloudant.

l2fprod avatar l2fprod commented on September 25, 2024

@kjdelisle you're right. I've a straightforward fix l2fprod@f342236 for my own app but would love to see plugin support built in the connector!

from loopback-connector-cloudant.

kjdelisle avatar kjdelisle commented on September 25, 2024

I've merged the passthrough into the master stream, and it should be a part of the connector's 3.0.0 release when that time comes.

from loopback-connector-cloudant.

patsvc avatar patsvc commented on September 25, 2024

Any plans to port this to the LTS release? We would really like to have this fix because we keep hitting these limits.

from loopback-connector-cloudant.

ssh24 avatar ssh24 commented on September 25, 2024

This should be released on v1.2.3

from loopback-connector-cloudant.

jmereaux avatar jmereaux commented on September 25, 2024

Hi, still running into this issue after upgrading to 1.2.3 and adding the following to my datasource config:
'plugin': 'retry', 'retryAttempts': 5, 'retryTimeout': 1000

Seems like the issue is caused by a validatesUniquenessOf constraint added to my model.
Indeed, when performing a bulk create with this model, I get the following 422 error:
uniqueness.Error: You've exceeded your current limit of 5 requests per second for query class. Please try later."
Removing the uniqueness constraint solves the issue, but is not an acceptable solution.

Any advice?

from loopback-connector-cloudant.

jannyHou avatar jannyHou commented on September 25, 2024

@jmereaux Is your model a User model or just a regular persistedModel? And which cloudant server are you using? A bluemix one or docker one or?

from loopback-connector-cloudant.

jmereaux avatar jmereaux commented on September 25, 2024

@jannyHou It is a regular PersistedModel. I'm using a Cloudant server on Bluemix (standard plan = 100 lookups/s, 50 writes/s, 5 queries/s)

from loopback-connector-cloudant.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.