Supporto The Movie Database

The current Search API supports results for partial queries as well (e.g: "Incep" provides "Inception" as result). So I was wondering if I could send an API call for each key press in the search field for a user?

Essentially, it calls for inc, ince, incep, incept etc. as the user types out the name, so they get updated and more accurate results with each letter. This basically means I'm sending a separate GET sent with each keystroke.

Will I hit the API rate limiter or something if I use this? Even if my app has 5k concurrent users, will I not hit any API wall due to rapid number of requests/second?

@Travis - Thanks again for your hard working in maintaining TMDB and letting use these APIs <3 !

3 risposte (nella pagina 1 di 1)

Jump to last post

@eternalwolf said: Essentially, it calls for inc, ince, incep, incept etc. as the user types out the name, so they get updated and more accurate results with each letter. This basically means I'm sending a separate GET sent with each keystroke.

Just as an recommendation from a developer: If you have the opportunity to implement backpressure strategies (=> reactive programming), I'd recommend to make use of it. For an example, you could add a timeout (probably 200 milliseconds) between each request instead of each keystroke, so the app would ignore/drop some "irrelevant requests".

Will I hit the API rate limiter or something if I use this? Even if my app has 5k concurrent users, will I not hit any API wall due to rapid number of requests/second?

There is no rate limiting: https://developers.themoviedb.org/3/getting-started/request-rate-limiting

Just as an recommendation from a developer: If you have the opportunity to implement backpressure strategies (=> reactive programming), I'd recommend to make use of it. For an example, you could add a timeout (probably 200 milliseconds) between each request instead of each keystroke, so the app would ignore/drop some "irrelevant requests".

This is very helpful, will look into it.

There is no rate limiting: https://developers.themoviedb.org/3/getting-started/request-rate-limiting

Wow, that's crazy though. So there is no limit whatsoever to DAU/MAU limits huh... awesome.

Thanks vkay :D !

You're welcome ;)

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