didkit icon indicating copy to clipboard operation
didkit copied to clipboard

Async functionality

Open clehner opened this issue 3 years ago • 3 comments

Bindings should be async where possible.

Current status of what in DIDKit supports async usage

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

clehner avatar Apr 12 '22 15:04 clehner

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

svanegmond avatar May 21 '24 19:05 svanegmond

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?

sbihel avatar May 23 '24 17:05 sbihel

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: @.***>

svanegmond avatar May 24 '24 15:05 svanegmond