Git Product home page Git Product logo

Comments (6)

gavin-norman-sociomantic avatar gavin-norman-sociomantic commented on August 12, 2024

Two ways of implementing this that come to mind:

  1. An extra method in the controller, giving access to stats on demand.
  2. An extra notification type that is called periodically (once a second, say), providing stats to the user.

from swarm.

gavin-norman-sociomantic avatar gavin-norman-sociomantic commented on August 12, 2024

Another idea:

  • Add a request stats tracker at the level of the request set.
  • Stats indexed by request id.
  • Allow request handlers to access this, look up the request, and update the stats.
  • Allow the user to look up stats for a request by id.

from swarm.

gavin-norman-sociomantic avatar gavin-norman-sociomantic commented on August 12, 2024

Allow request handlers to access this, look up the request, and update the stats.

This is the only tricky part of the above suggestion. Currently, request handlers have no access to anything at the level of the request set. The request-on-conn would be a possible way to pass a ref to the stats tracker, but that sounds a little bit on the edge of hacky.

from swarm.

gavin-norman-sociomantic avatar gavin-norman-sociomantic commented on August 12, 2024

Currently, request handlers have no access to anything at the level of the request set.

My top-of-the-head knowledge of the neo client isn't as fresh as it used to be :( The request context forms this conduit between the request set and the individual handlers.

from swarm.

gavin-norman-sociomantic avatar gavin-norman-sociomantic commented on August 12, 2024

Actually, we already have stats for connection I/O throughput. This might be enough, in practice.

from swarm.

gavin-norman-sociomantic avatar gavin-norman-sociomantic commented on August 12, 2024

Closing. No current use case.

from swarm.

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.