Giter VIP home page Giter VIP logo

Comments (5)

Elfocrash avatar Elfocrash commented on June 15, 2024

First and foremost thanks for your kind comments.

Something that Cosmonaut definitely won't do is throw any exception other than the TooManyRequests one. The main reason why is because I removed it first in Cosmonaut and the the Cosmos DB team also removed it on the v3 SDK so I can't add something back that I will have to remove when I move this project to the v3 SDK anyway.

Now, about the TooManyRequests thing, as far as I remember Cosmonaut will actually throw this exception if you turn Infinite retrying off. Did you try doing that?

from cosmonaut.

Mortana89 avatar Mortana89 commented on June 15, 2024

from cosmonaut.

Elfocrash avatar Elfocrash commented on June 15, 2024

Retries should be logged as well. They just retry silently. I set the default behavior to be infinite retry for 429s cause I can't see the scenario where you wouldn't wanna retry due to a transient error.

I've never been like :

  • Server: Oi I can't handle that I'm under heavy load, try in 100ms
  • Client: Ok, I won't retry that

from cosmonaut.

Mortana89 avatar Mortana89 commented on June 15, 2024

from cosmonaut.

Elfocrash avatar Elfocrash commented on June 15, 2024

Ok sounds good. I will leave it with you to figure out if the existing behavior is satisfying. If not feel free to leave a comment. If it is feel free to close this.

from cosmonaut.

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.