Υποστήριξη για το The Movie Database

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 απαντήσεις(στη σελίδα 1 από 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?

Δεν μπορείτε να βρείτε κάποια ταινία ή σειρά; Συνδεθείτε για να τη δημιουργήσετε.

Σε όλες τις σελίδες

s Εστίαση στη μπάρα αναζήτησης
p Άνοιγμα μενού προφίλ
esc Κλείσιμο ανοιχτού παραθύρου
? Άνοιγμα παραθύρου συντομεύσεων πληκτρολογίου

Στις σελίδες μέσων

b Επιστροφή στην προηγούμενη σελίδα(ή στην αρχική σελίδα όταν είναι εφικτό)
e Μετάβαση στη σελίδα επεξεργασίας

Στις σελίδες κύκλων σειρών

(Δεξιό βέλος) Μετάβαση στον επόμενο κύκλο
(Αριστερό βέλος) Μετάβαση στον προηγούμενο κύκλο

Στις σελίδες επεισοδίων σειρών

(Δεξιό βέλος) Μετάβαση στο επόμενο επεισόδιο
(Αριστερό βέλος) Μετάβαση στο προηγούμενο επεισόδιο

Σε όλες τις σελίδες εικόνων

a Άνοιγμα παραθύρου προσθήκης εικόνας

Σε όλες τις σελίδες επεξεργασίας

t Άνοιγμα επιλογέα μετάφρασης
ctrl+ s Υποβολή φόρμας

Στις σελίδες συζήτησης

n Δημιουργία νέας συζήτησης
w Ρύθμιση κατάστασης παρακολούθησης
p Ρύθμιση ως δημόσια/ιδιωτική
c Ρύθμιση ανοίγματος/κλεισίματος
a Άνοιγμα δραστηριότητας
r Απάντηση στη συζήτηση
l Μετάβαση στην τελευταία απάντηση
ctrl+ enter Υποβολή μηνύματος
(Δεξιό βέλος) Επόμενη σελίδα
(Αριστερό βέλος) Προηγούμενη σελίδα

Ρυθμίσεις

Θέλετε να αξιολογήσετε ή να προσθέσετε αυτό το στοιχείο σε μια λίστα;

Σύνδεση