Giter Club home page Giter Club logo

Comments (4)

swcurran avatar swcurran commented on August 18, 2024 1

@andrewwhitehead @cvarjao @jleach @WadeBarnes -- Did I get that right?

from indy-vdr.

andrewwhitehead avatar andrewwhitehead commented on August 18, 2024

In the Python wrapper, the open_pool method actually takes a 'no_refresh' parameter with the assumption that it should always perform a refresh before returning.

I couldn't find it before, but it appears that the nodejs and react-native wrappers do have a 'setConfig' method that can be used to set the pool configuration globally. This should be called before creating any pool instances, if it needs to be adjusted. For speeding up the initial setup I would explore setting the request_read_nodes parameter to 1 (default is 2) which defines the minimum number of nodes to send each request to. Along with this change it might be beneficial to reduce ack_timeout from 20 seconds; this is the time it will wait before dispatching another request, when the first node is slow to respond. The full set of options is here (could also use documenting elsewhere):

pub struct PoolConfig {

When connecting to multiple ledgers at startup I would also make sure that those connections are performed in parallel.

from indy-vdr.

swcurran avatar swcurran commented on August 18, 2024

Good stuff! Questions:

ACA-Py leaves the “no_refresh” parameter as is, correct?
Is the “refresh” that results from checking that parameter get executed by the Python wrapper, or within Indy VDR itself?

What do you suggestion lowering ack_timeout to?

I’ll get a PR in to the documentation here, and I’ll put an issue into AFJ for the changes that might be/are needed.

from indy-vdr.

swcurran avatar swcurran commented on August 18, 2024

Closing this issue as PR #242 has been completed where the Global Defaults were adjusted.

AFJ and other libraries are still able to update the defaults, but at least the defaults are improved.

from indy-vdr.

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.