Open fauno opened 7 months ago
Now it worked, but I don't know why
we discussed replying the request with a collection of requests statuses but i'm not sure now if i opened an issue about this, so i'm leaving this comment to not forget again
This happens when POSTing the outbox as it sends a request to every following instance
We should probably return instantly to the outbox request, and queue the requests to other instances (with p-queue). Maybe also set the amount to do parallel with something like p-map. Or ideally a queue that persists to disk (to also retry on failed.)
This is important because the notification step during site build is going to take as long as the slowest instance (or a timeout)
I'm getting timeouts while approving a Follow request and it's difficult to parse logs, so I'm not sure if the request is triggering fetches to remote instances and failing or some requests are happening at the same time.
I set the timeout to 1s to avoid crashing the CMS but this seems to low for current requests (but too high for B2B connections?)