ReviewOS

also looking at this

meemalabs/laravel-media-converter

Read account url from config instead of sending a http request to AWS…

#10
Merged DennisOng wants to merge account-endpoint-via-config into main
3 files +4 -4
10 days ago

Read the MediaConvert account url from config, instead of sending a http request to AWS to get this url for every job.

The describeEndpoints() has quite a low rate limit, hence multiple users uploading files at the same time, or a single user uploading > 5 files will trigger a 429 Too Many Requests error from AWS.

This endpoint doesn't change for an account, hence AWS recommends requesting it only once and caching it. https://docs.amazonaws.cn/en_us/mediaconvert/latest/apireference/custom-endpoints.html

It's fairly easy to get this account url

  1. Via the console https://console.aws.amazon.com/mediaconvert/home?#/account

  2. Via AWS CLi aws mediaconvert describe-endpoints

Cheers, hope it's helpful, thanks again.

3 changed files on the files tab, with 0 review threads.

Sign in to comment on this pull request.