Giter VIP home page Giter VIP logo

Comments (5)

zaharidichev avatar zaharidichev commented on August 15, 2024

@hawkw Is there something generic that can be used that works with a backoff or we need to put in place something like the reconnect in Linkerd

from console.

hawkw avatar hawkw commented on August 15, 2024

We can probably use tower's reconnect middleware, but it doesn't implement backoffs, so we would have to implement that part ourselves --- there may be other crates in the ecosystem that I'm not personally aware of.

It does seem like support for backoffs is something that's worth having upstream in tower::reconnect. I might open an issue for that.

For now, I would start with handling the error nicer in the UI --- we probably want to continue displaying the last state and add a message at the top that says we lost the conenction to the remote application. Then, we can add reconnection (with a backoff) in a follow-up.

from console.

hawkw avatar hawkw commented on August 15, 2024

Update: oh, it turns out there already is an issue for adding backoffs to tower (tower-rs/tower#60) ...and it was opened by me, three years ago. 😅

from console.

zaharidichev avatar zaharidichev commented on August 15, 2024

Update: oh, it turns out there already is an issue for adding backoffs to tower (tower-rs/tower#60) ...and it was opened by me, three years ago. 😅

Yeah :) Forgot to mention that. Okey, I will add the nicer state handling then.

from console.

seanmonstar avatar seanmonstar commented on August 15, 2024

Looks like this was done in #57, so I'm going to close :)

from console.

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.