sablier-labs / v2-merkle-api

https://v2-services.vercel.app
GNU General Public License v3.0
4 stars 0 forks source link

Study Pinata rate-limiting #9

Closed razgraf closed 10 months ago

razgraf commented 10 months ago

Pinata has some rate limiting rules applied on its gateways, e.g. "180 requests per minute" to their API.

The task here is to study how these limits and their billing plans would affect us in the case of a boom in usage due to an airstream campaign being released to the public.

This may serve as guidance for us in the matter of caching files (by CID) on the server or in another location (e.g. with cloudflare).

gavriliumircea commented 10 months ago

Right now pinata offers 3 different plans: image this limits are per month. If we reach 80% percent of the avaiblle usage we will start being notified and at the 125% the account will be locked in order to prevent further consumption. Imo for the begging the Picnic plan should be more than enough. The most significant metrics are the bandwidth(used when downloading files) and the max storage. If in a month we will get close to that limit(500 GB) we should start thinking about some caching solution or if we need to upgrade our plan.

razgraf commented 10 months ago

Thank you for looking into this. We'll use Picnic for now until we launch.

But, out of an abundance of care, I suggest we upgrade to the $100 tier the first time we have a user deploying with Airstreams. This mitigates the possibility for downtime while we're asleep and grants us a way to adjust our expectations for next campaigns.