Supporto The Movie Database

Hello everyone!

I recently developed a calculator for a newly released game on Steam. It helps players determine the best setup within the game, and as an extra feature, it suggests movie titles that users can use as inspiration for naming things in the game.

However, after deploying The Calculator, I noticed that the number of requests is unusually high, even though the site's traffic is relatively low. This has left me a bit confused, and I was wondering if someone here on the forum could take a look and suggest improvements to reduce the number of requests.

The file responsible for handling this query is "src/hooks/useRandomMovieTitle.ts", in case anyone wants to take a closer look at the code.

The project is open-source, completely non-profit (it doesn't even have ads), and is available on GitHub for anyone interested.

I’d really appreciate any help!

2 risposte (nella pagina 1 di 1)

Jump to last post

@ooVictorFranco said:
High number of requests in "randomization" queries!
Hello everyone!

I recently developed a calculator for a newly released game on Steam. It helps players determine the best setup within the game, and as an extra feature, it suggests movie titles that users can use as inspiration for naming things in the game.

However, after deploying The Calculator, I noticed that the number of requests is unusually high, even though the site's traffic is relatively low. This has left me a bit confused, and I was wondering if someone here on the forum could take a look and suggest improvements to reduce the number of requests.

The file responsible for handling this query is "src/hooks/useRandomMovieTitle.ts", in case anyone wants to take a closer look at the code.

The project is open-source, completely non-profit (it doesn't even have ads), and is available on GitHub for anyone interested.

I’d really appreciate any help!

I don't know anything about this subject.
Maybe admin Travis Bell can help.
I can only provide the information I have on this subject.

API Request Limits
First we have this information in the instructions for using the TMDb API.
https://developer.themoviedb.org/docs/rate-limiting

And Travis Bell, the Administrator, has already given us this explanation.

For API Requests:

One of our CDN providers enforces some base level rate limiting to help prevent DDOS attacks.
I believe it's a maximum of:
50 requests per second and
20 connections per IP.

See here: https://www.themoviedb.org/talk/62c7c1b258361b005fd2e747?page=1#62c83b78befd91005007a0c7

For Images:

For image.tmdb.org the only thing we limit is the max number of simultaneous connections.
The limit is the same, 20.

See here:
https://www.themoviedb.org/talk/62edd3ca46aed400917de201#62ee88e7176a940086449cdf
https://www.themoviedb.org/talk/62c7c1b258361b005fd2e747?page=1#6301a107097c49007f60374a
https://www.themoviedb.org/talk/62c7c1b258361b005fd2e747

And...
Is there really no API Rate Limiting?

The original rate limiting (40 requests every 10 seconds) has indeed been been disabled since December 2019.
There are some higher overall limits that still exists to help mitigate different attacks and the like.
I believe they sit around the 50 request per second range.

See here:
https://www.themoviedb.org/talk/6442ced4d35dea02fcfb0fab#6442d4a0d35dea0455fb1a07

Obrigado @ticao2, eu não sabia dessas informações. Estava fazendo alguns testes aqui e consegui melhorar o desempenho do meu código fazendo com que as requisições não se prolonguem tanto e ainda reduzi o número de requisições armazenando parte dos dados em cache no navegador do usuário. Isso vai me permitir no futuro adicionar imagens e até mesmo sinopse para o projeto!

Non riesci a trovare un film o una serie Tv? Accedi per crearlo.

Globale

s focalizza la barra di ricerca
p apri menu profilo
esc chiudi una finestra aperta
? apri finestra scorciatoia tastiera

Su tutte le pagine di media

b torna indietro (o al precedente quando applicabile)
e vai alla pagina di modifica

Nelle pagine delle stagioni TV

(freccia destra) vai alla stagione successiva
(freccia sinistra) vai alla stagione precedente

Nelle pagine degli episodi TV

(freccia destra) vai all'episodio successivo
(freccia sinistra) vai all'episodio precedente

Su tutte le pagine di immagini

a apri finestra aggiungi immagine

Su tutte le pagine di modifica

t apri selettore traduzione
ctrl+ s invia modulo

Sulle pagine di discussione

n crea nuova discussione
w segna come visto/non visto
p cambia publico/privato
c cambia chiuso/aperto
a apri attivita
r rispondi alla discussione
l vai all'ultima risposta
ctrl+ enter invia il tuo messaggio
(freccia destra) pagina successiva
(freccia sinistra) pagina precedente

Impostazioni

Vuoi valutare o aggiungere quest'elemento a una lista?

Accedi