Assistance de TMDB

Hello, I'm working on a side project that will use The MovieDB data.

Essentially I want for people to be able to extend data from TMDB, for example up vote and down vote and/or define custom genres / lists.

For the application to work users need to be able to pull down lists of films from TMDB and associated data from a custom database, so for example a request might be for all the films tagged with custom category 'Foo' on 'foofilms.com'.

If the API query came from the foofilms server then it would quickly hit API limits, particularly if it was popular. However passing a list of film ids to the client to query would require exposing the API to make a valid query.

What would be a sensible design pattern to resolve a project like this? Am I getting it wrong / overcomplicating things? Any advice appreciated.

2 réponses (sur la page 1 sur 1)

Jump to last post

Hi Mathew,

If you intend to bring data in house, your best bet is to cache the data locally and over time you'll hit the API less and less. You could do something like can preload the most popular 10,000 movies or something to that effect.

Lots of our users have their users hit the API directly, or, do a hybrid of both. It's up to you how you want to design it.

Thanks for the reply Travis much appreciated. Its useful to understand different design patterns for application design that are respectful of the awesome service to offer.

One last question, I understand building image URLs will count towards rate limiting but do CDN hits count towards rate limiting too? For example serving movie images from built URLs?

Un film, une émission télévisée ou un artiste est introuvable ? Connectez-vous afin de créer une nouvelle fiche.

Général

s Mettre le curseur dans la barre de recherche
p Ouvrir le menu du profil
esc Fermer une fenêtre ouverte
? Ouvrir la fenêtre des raccourcis clavier

Sur les pages des médias

b Retour (ou vers le parent si faisable)
e Afficher la page de modification

Sur les pages des saisons des émissions télévisées

Afficher la saison suivante (flèche droite)
Afficher la saison précédente (flèche gauche)

Sur les pages des épisodes des émissions télévisées

Afficher l'épisode suivant (flèche droite)
Afficher l'épisode précédent (flèche gauche)

Sur toutes les pages des images / photos

a Ouvrir la fenêtre d'ajout d'image / photo

Sur toutes les pages de modifications

t Ouvrir le sélecteur de traduction
ctrl+ s Envoyer le formulaire

Sur les pages des discussions

n Créer une nouvelle discussion
w Basculer le statut de suivi
p Basculer publique / privée
c Basculer fermer / ouvrir
a Ouvrir l'activité
r Répondre à la discussion
l Afficher la dernière réponse
ctrl+ enter Envoyer votre message
Page suivante (flèche droite)
Page précédente (flèche gauche)

Paramètres

Vous souhaitez évaluer ou ajouter cet élément à une liste ?

Connexion