Giter Club home page Giter Club logo

Comments (2)

NiteshKant avatar NiteshKant commented on June 3, 2024

Absolutely it is a tricky decision to make!

My reservations around using deadline are the following:

  • As you specified, using time means that we need to take care of propagation delays.
  • The client code becomes complex as it has to be considerate of time before making a request. So, it will manifest in two ways:
    • Check for current time and hence deadline before each request.
    • Or have a scheduled timer for each connection from the client that resets the request quota for that duration.

Both of the above sounds too heavy a burden to force from the protocol IMO.

I do agree that the lease expiry is a nice side-effect for an overloaded server. An argument against that could be that for a well behaved client and properly implemented flow control from the server, hitting the wall (overloaded) would mean that the server over-subscribed for requests.

Overall, I do not have a concrete reason for either ways but using time does make me nervous!

from rsocket.

stevegury avatar stevegury commented on June 3, 2024

Just for the record, we ended up choosing to keep a TTL in the lease message.
It has the nice property of automatically applying backpressure when a server is overloaded (it doesn't need to do any extra work to shed load away)

from rsocket.

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.