Skip to content

muriloneo/trailer-api

Repository files navigation

Trailer API

This code describes an API to get trailer from TMDB for over Viaplay input.

Technology

Nest

Prerequisites

  • Node.js
  • Configure your API from [TMDB] on .env file (copy from .env.example)

Installation

$ npm install

USAGE

http://localhost:3000/trailer?vp_link=https://content.viaplay.se/pc-se/film/troja-2004

Running the app

$ npm run start:dev

Test

$ npm run test

Performance

  • It was tested with ab [MACOS] and autocannon.
  • The results came up to 480k requests in 30s with avg 16k requests per second, on my local machine.

Must Have (next versions)

  • Docker / ECS

To Go Live

  • Load balancer with shared cache
  • It is a suggestion to have "most searched" already cached, and update it from time to time (Scheduled)
  • Study all endpoints to get faster response time
  • Try benchmark with different frameworks over the real infraestructure

Stay in touch

About

This code describes an API to get trailer from [TMDB](https://developers.themoviedb.org/3/movies/get-movie-videos) for over Viaplay input.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published