livepeer / studio

Livepeer Studio is your home for building, broadcasting, and publishing video on the open internet with the Livepeer Network. Effortlessly manage livestreams, video uploads, API keys, network usage, billing, and more.
https://livepeer.studio
MIT License
76 stars 33 forks source link

api/generate: Implement rate limiting based on req logs #2274

Closed victorges closed 2 months ago

victorges commented 2 months ago

What does this pull request do? Explain your changes. (required)

This creates the capability of rate-limiting API calls to the /generate endpoints. It uses the request log built on #2273 to track the rate of requests and limits based on a CLI argument.

We can later build support for per billing plan limits depending on the user, but I left that for the future.

Specific updates (required)

How did you test each of these updates (required) yarn test

Does this pull request close any open issues? Implements ENG-2180

Checklist

vercel[bot] commented 2 months ago

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
livepeer-studio ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jul 29, 2024 9:12pm