-
Notifications
You must be signed in to change notification settings - Fork 9
Split provide messages (message size limits) #55
Comments
Yes, we should always have max sizes as part of specs, just to ensure implementations don't create any footguns. cc @ajnavarro for visibility, as i know you've been looking at a similar issue in Kubo, where we were sending provide (or bitswap asks?) for too many CIDs at the same time, and were considering batching What max batch size would make sense for reframe? |
It depends on what we think is an acceptable and sane default for an HTTP payload size. 10Mb? 100Mb? 2Gb? Here are the POST body sizes for some of the more popular HTTP servers:
|
Given the IPNS record size being capped at ~10KiB, and block limit in IPFS-over-libp2p being ~1MB atm, I'd go with 1MB or something in-between. |
Per @ajnavarro discussion in this issue and in 2022-11-07 standup, please also include a spec change change with a recommendation on limits. |
When providing an array of many items, if the number of items is very large, we should consider splitting the request into multiple smaller messages.
cc @lidel - should there be a maximum in the spec for the number of accepted provided items a single delegated routing call may contain?
The text was updated successfully, but these errors were encountered: