Coder Social home page Coder Social logo

Comments (3)

willwill96 avatar willwill96 commented on June 4, 2024 1

Updated the description 😄
As for shared resources/state, etc., the main concern is making sure that the new return value (was an array but now is a promise) is handled gracefully.
Parallel plugins should not be an issue as the preQueryPlugin in the frontend is a single function, and if you start a new query, the old one will be deleted, meaning there will never be multiple operating simultaneously. Any implementation that operates differently is up to downstream projects to work out the kinks.

from ddf.

coyotesqrl avatar coyotesqrl commented on June 4, 2024

Is this a proposed change to make all pre-query plugins run asynchronously or to be able to in some way indicate that a specific implementation of the service should be run async?

Does this imply that the framework can fire off N pre-query plugins to run in parallel and then wait before moving onto the next processing step? Would there be a timeout for these async operations? Would it be a failure condition if any of the async plugins didn't complete before timing out or would that be a logged warning and the query process would continue?

Are there any concerns about async plugins stepping on each other during parallel processing? Would there be any mechanism in place to protect shared resources and state?

from ddf.

coyotesqrl avatar coyotesqrl commented on June 4, 2024

I see from quickly glancing at the PR that's gone up against this issue that it is UI related and does not impact PreQueryPlugins in the catalog. As that wasn't clear, I think this issue needs a bit more meat in the description to clarify the use cases.

Also, some of my earlier questions - regarding shared resources/state, timeouts, and failures of individual plugins - still seem relevant.

from ddf.

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.