Giter Site home page Giter Site logo

Comments (2)

jhalterman avatar jhalterman commented on July 19, 2024

Furthermore the requst is in the third retry and already spent 9 seconds with retrying.
It would be great if the third retry wouldn't happen anymore since it will probably take more time then maxDuration and therefore will be interrupted.

So basically you'd want to track the average execution attempt time. And if according to that average, a subsequent execution attempt would exceed maxDuration, we should fail? If that sounds right, that's certainly doable, but I'm not sure how I feel about making guesses about execution times, particularly in scenarios where only 1 retry might be performed but the initial execution took a while - do we still retry? Should we? Maybe you can give me some example use cases for this?

In this scenario the application will end up in an undefined state, since the request to the other party might be succesfull but the app will never receive the response since maxDuration will take place.

I'm not sure what you mean here. I was thinking you meant that 2 retries would complete, in your example, but since the 3rd retry would take too long we'd simply fail instead of doing the 3rd retry. In this case, the caller/app would see a failure response (or exception).

from failsafe.

MALPI avatar MALPI commented on July 19, 2024

Probably it's quite hard to achieve but the point is the following:

You are right, the caller would throw exception due to timeout.

BUT the the callee would still get the request and process it.

from failsafe.

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.