xmtp / libxmtp

MIT License
33 stars 13 forks source link

Break up large getIdentityUpdates requests #762

Closed neekolas closed 1 month ago

neekolas commented 1 month ago

When we call getIdentityUpdates for a large number of inboxes we are getting errors because either the request or response is too large. We should break these requests up into chunks of N items (50?) and send the requests in parallel to the server. We should also put some limits on the number of inbox_ids we allow in each request on the server side.

https://github.com/xmtp/libxmtp/actions/runs/9168769461/job/25208083384?pr=755