Giter VIP home page Giter VIP logo

Comments (3)

arinwt avatar arinwt commented on June 20, 2024

Related to #198. This issue will be for adding additional telemetry and analysis.

We should consider calculating the number of simultaneous summarizers on a document based on documentId, clientId, and timestamps of Summarizer events, because it might be more objective and still useful. I have added clientId to summarizer events in PR #208.

from fluidframework.

arinwt avatar arinwt commented on June 20, 2024

Answering original questions with more information:

  1. Do we destroy summarizing container on lost connection?
    a) When the parent container disconnects, it will now stop the summarizer which will close its container. (PR #208 addresses issue #198)
    b) When the summarizer itself disconnects, it will resolve its run promise, which should essentially kill the container since reconnect is false, and its creator (SummaryManager from parent container) will no longer reference it.
  2. Do we always recreate summarizer on same client on reconnect if there were (and there are) no other clients connected?
    a) Any time the quorum addMember event fires, all clients recompute the summarizer. This should generally relaunch the summarizer if it has stopped.
    b) If only the summarizer itself disconnects, then I believe the parent will not restart the summarizer, because it will believe that it already has a summarizer running. This needs to be resolved.

My idea for resolving 2.b is to clean up the SummaryManager logic for detecting if it is already summarizing, and add code to try to recompute the summarizer if the summarizer run promise is fulfilled (indicating summarizer container disconnected).

The reason 2.b is a special case, is because if the parent container also disconnects/reconnects, it will "force" compute summarizer even if the thing it uses to track whether it is already summarizing or not indicates that it already has a summarizer. This is correct under the current conditions, because it only does this "force" on connect, which means that it was previously disconnected, and it won't start a summarizer when disconnected, and will stop the summarizer on disconnect.

from fluidframework.

arinwt avatar arinwt commented on June 20, 2024

Also PR #362 is related.

from fluidframework.

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.