Coder Social home page Coder Social logo

Comments (8)

dennisn00 avatar dennisn00 commented on July 30, 2024 1

Opening Indy connections is now done in parallel and on startup, not on the first resolve request

from universal-resolver.

dennisn00 avatar dennisn00 commented on July 30, 2024

Another solution would be to include the values for the environment variables in .env. I am not sure whether this would have any advantages, but it seems like this is how it is solved for the Sov Driver

from universal-resolver.

peacekeeper avatar peacekeeper commented on July 30, 2024

Hello, thanks for your detailed report!

You're right that entries were missing in .env, I just added them in c690f14

I also just updated the example in the README in 7741068.

With regard to the sovrin pool, we will investigate this separately, see also my comment in decentralized-identity/uni-resolver-driver-did-indy#3.

from universal-resolver.

peacekeeper avatar peacekeeper commented on July 30, 2024

@dennisn00 could you try again if it works now and if this issue is resolved?

from universal-resolver.

dennisn00 avatar dennisn00 commented on July 30, 2024

Thanks for you response @peacekeeper. I tested with the sov and indy DIDs provided in the ReadMe. In both cases I got a Error Cannot create Pool Config 'staging'.
I removed the staging/sovrin:staging entries in the .env for indy and sov and now both examples are resolving.
Both are still taking 10 to 60 seconds for resolving (however, subsequent requests to the same DID method but with a different DID are a lot faster). From the logs it seems like all wallets and all Pools are opened on the first request. Is that intentional?

from universal-resolver.

peacekeeper avatar peacekeeper commented on July 30, 2024

I removed the staging/sovrin:staging entries in the .env for indy and sov

Hi, I just renamed "staging" to "test" in .env, I think this should work: 4e554e5

From the logs it seems like all wallets and all Pools are opened on the first request. Is that intentional?

Yes that's how we implemented it for now. Perhaps it would make more sense to open the wallets and pools only for a network once it's requests, or maybe all wallets and pools should be opened when the driver starts (before the first request). Or maybe they could all be opened simultaneously in parallel threads, not sure. There's definitely room for improvement.

from universal-resolver.

dennisn00 avatar dennisn00 commented on July 30, 2024

Yes, it seems to work now. Maybe I will have some time in the next days to try to speed up the wallet and pool opening.

from universal-resolver.

peacekeeper avatar peacekeeper commented on July 30, 2024

try to speed up the wallet and pool opening

That would be very welcome of course. This part of the code is mostly in another repo: https://github.com/danubetech/libindy-common-java

from universal-resolver.

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.