Rate Limits for the Remote Extraction Service (.remote)
#129
alexeichhorn
announced in
Announcements
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Today, I woke up to a Cloudflare bill much higher than I ever expected. The reason is the YouTubeKit server that gets used when you do .remote in a YouTubeKit request. It runs on Cloudflare and handles the CPU-intensive extraction and logic whenever YouTubeKit fails locally, or when the remote option is preferred.
So far, this was freely available to everyone, and I just ate the small costs. Over the last week though, some bigger apps started using it. That means the costs are suddenly no longer small for me. That’s why I decided to restrict the number of requests each app is allowed to make to:
This is still very generous, and it still costs me a non-insignificant amount per app, but at least it prevents the big boys from making a hole in my wallet. In the future, I might have to decrease this further, depending on how many apps start using YouTubeKit’s remote feature.
According to my data, there shouldn’t be many apps affected by this change. For those that are, I’m planning to add a very simple payment system so you can still use the remote service and get analytics, without me going broke.
In the meantime, you are free to deploy the open-source server version yourself on Cloudflare.
Beta Was this translation helpful? Give feedback.
All reactions