Code Monkey home page Code Monkey logo

Comments (4)

tarnas14 avatar tarnas14 commented on August 9, 2024

@CjS77 @alex1307
the frontend work can proceed, but I've been thinking - maybe we could simplify it a bit and instead of emitting events to frontend, which will in turn store this data, maybe we could store it on backend immediately and provide an interface to query it?

wdyt?

from tari.

CjS77 avatar CjS77 commented on August 9, 2024

I personally think the backend should not store this, since it needs to anticipate all sorts of use cases that the FE would need the data for.

Myabe as a start, we store the data in a circular/fixed-length buffer. If the app is shut down, the history is lost, but, it will retain memory of containers starting and shutting down from a single app session.

from tari.

tarnas14 avatar tarnas14 commented on August 9, 2024

ok, I'm with you on the storage

we might start with the fixed-length buffer if storage proves too time-consuming

from tari.

tarnas14 avatar tarnas14 commented on August 9, 2024

implementation note:
checked if storing stats data in redux is feasible, but the application will get laggy if we store hours of data for several services (generated to test),
we need a different persistence layer, currently looking into indexeddb and dexie.js wrapper

will implement this and test against high load (already have a PR #222 with abstraction where implementations can be added)

from tari.

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.