ActivityQueue is too slow
When creating a bunch of activities, the ActivityQueue take something from 10 to 60 seconds before actually send the activity.
To reproduce:
- Create a DjangoLDP server following the Hubl format
- You may want to clog the Prosody's part, you can emulate it with this node server using fastify+fastify-plugin. If you use it, you'll need to put the value of
JABBER_HOST
from the js file on theJABBER_DEFAULT_HOST
of the template andhttp://localhost:4848
asPROSODY_HTTP_URL
.
- Create an RSA Key
./manage.py creatersakey
- Register an administrator
./manage.py createsuperuser
- Register default subscriptions
./manage.py create_subscription
Now, create an user, a circle, or save any resource related to DjangoLDP-Account
, DjangoLDP-Circle
, DjangoLDP-Project
and go to http://localhost:8000/admin/djangoldp/activity/ notice how much time it gets to send any activity and in how much time you'll get something on the node server.