You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
afaict, the shacl subprocess is currently a bottleneck, as it:
blocks execution
always use the same data/shapes filename
We could take advantage of fastapi's async capabilities by:
running shacl asynchronously (e.g. with asyncio.create_subprocess_shell and/or a queue)
using temporary files with random filenames (e.g. via tempfile)
This would allow handling multiple requests concurrently. In practice, this means the API server could be operational and receive data for next requests while shacl is still running.
The text was updated successfully, but these errors were encountered:
cmdoret
changed the title
support concurrent request
support concurrent requests
Feb 23, 2025
afaict, the shacl subprocess is currently a bottleneck, as it:
We could take advantage of fastapi's async capabilities by:
asyncio.create_subprocess_shell
and/or a queue)tempfile
)This would allow handling multiple requests concurrently. In practice, this means the API server could be operational and receive data for next requests while shacl is still running.
The text was updated successfully, but these errors were encountered: