spruceid / didkit

A cross-platform toolkit for decentralized identity.
https://www.spruceid.dev/didkit/didkit
Apache License 2.0
266 stars 76 forks source link

Async functionality #287

Open clehner opened 2 years ago

clehner commented 2 years ago

Bindings should be async where possible.

Current status of what in DIDKit supports async usage

... with notes and pointers to relevant issues/PRs:

svanegmond commented 3 months ago

Please don't make this API async. It's 99% local computation. I am right now struggling with trying to use it from django; it hangs when served with gunicorn, not when served with the development server

sbihel commented 3 months ago

Please don't make this API async. It's 99% local computation. I am right now struggling with trying to use it from django; it hangs when served with gunicorn, not when served with the development server

Could you open an issue on https://github.com/spruceid/didkit-python so we can see if something can be done on DIDKit's side?

svanegmond commented 3 months ago

I got to the bottom of it, the problem was gunicorn. To run an asynchronous app one apparently uses asgi and guvicorn. Problem went away. On May 23, 2024, at 13:20, Simon Bihel @.***> wrote:

Please don't make this API async. It's 99% local computation. I am right now struggling with trying to use it from django; it hangs when served with gunicorn, not when served with the development server

Could you open an issue on https://github.com/spruceid/didkit-python so we can see if something can be done on DIDKit's side?

—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you commented.Message ID: @.***>