waku-org / research

Waku Protocol Research
MIT License
3 stars 0 forks source link

Should there be a limit on client's queries? #36

Open s-tikhomirov opened 8 months ago

s-tikhomirov commented 8 months ago

A client can overwhelm the server with an excessively long query (an extreme case: "give me all messages form the beginning of times until now"). Should there be a limit on the length of the time frame that a client may request at once?

alrevuelta commented 8 months ago

Indeed. Now that I think about it we have it planned in nwaku. https://github.com/waku-org/nwaku/issues/1809 Not just about limiting the time window allowed per request (eg limitted to 1 week) but the bytes sent in general (which takes into account consecutive requests)