ClarityCafe / Aya

your globally distributed waifu storage
https://aya.claritycafe.now.sh
MIT License
38 stars 9 forks source link

Ratelimits #17

Closed sr229 closed 4 years ago

sr229 commented 4 years ago

This is a issue dedicated to discuss the ratelimit system before we tell the user they need to pay for the uploading.

Transaction fee equation

Since we're using blockchain-based billing and ratelimiting, The initial equation for the transactions are:

This equation would allow us to give a insight for the next part: which is providing a good rate limit for people.

Quotas

Providing quotas is something we need to do to conserve resources and as a way to deny bad actors a way to circumvent the system.

Users are required to sign in via Reddit OAuth to upload to the site, and we will give them the following quotas:

Our main focus here is the daily and weekly posting allowance. Since we're doing a rather freemium, PAYG-style service, we want to keep the price as sane as 0.000200ETH or similar.

I'm open for suggestions so if you got a better model for the quotas let me know.

sr229 commented 4 years ago

Partially implemented in 9e5b5bd

sr229 commented 4 years ago

We've also moved the restriction to model to a donation model instead of Pay as You Go. This should allow the people to give us a pat in the back for what we're doing.

sr229 commented 4 years ago

Instead of enforcing a quota, we're just going for a size limit for the images in another issue.