The Movie Database Support

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 replies (on page 1 of 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?

Can't find a movie or TV show? Login to create it.

Global

s focus the search bar
p open profile menu
esc close an open window
? open keyboard shortcut window

On media pages

b go back (or to parent when applicable)
e go to edit page

On TV season pages

(right arrow) go to next season
(left arrow) go to previous season

On TV episode pages

(right arrow) go to next episode
(left arrow) go to previous episode

On all image pages

a open add image window

On all edit pages

t open translation selector
ctrl+ s submit form

On discussion pages

n create new discussion
w toggle watching status
p toggle public/private
c toggle close/open
a open activity
r reply to discussion
l go to last reply
ctrl+ enter submit your message
(right arrow) next page
(left arrow) previous page

Settings

Want to rate or add this item to a list?

Login