Open fabriguespe opened 11 months ago
@fabriguespe can you provide a way to reproduce this?
I could simulate thousands of wallet messages and measure conversation creation delays progressively.
is there a way to test this scenario with our benchmarking tools?
cc @daria-github
I'm reasonably confident we're running into this issue at paragraph.xyz.
We delivered ~100k XMTP messages to >6k unique wallets this quarter. Lately we've been timing out on newConversation
. For some reason this also seems to be blocking the NodeJS event loop? It's preventing other Express requests from being handled when newConversation
stalls.
Describe
Steps to Reproduce:
newConversation
.Expected Behavior:
Initialization should complete in a more reasonable time frame (milliseconds to a couple of seconds).
Actual Behavior:
It takes 20-60 seconds to initialize a new conversation.
Observations: