storacha / freeway

🛣 Experimental IPFS HTTP gateway providing access to UnixFS data via CAR CIDs.
Other
14 stars 5 forks source link

wip: spike on adding rate limits to freeway #109

Open travis opened 5 months ago

travis commented 5 months ago

Add a new middleware that checks a rate limiting service and returns a 429 if the CID is over a rate limit.

This sketches out an API for the rate limiting and accounting services suggested in https://github.com/storacha-network/RFC/pull/28

This is not ready to merge, but should probably be the starting point for this work once we all agree that this is the right shape.