This code describes an API to get trailer from TMDB for over Viaplay input.
- Node.js
- Configure your API from [TMDB] on .env file (copy from .env.example)
$ npm install
http://localhost:3000/trailer?vp_link=https://content.viaplay.se/pc-se/film/troja-2004
$ npm run start:dev
$ npm run test
- 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.
- Docker / ECS
- 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
- Author - Murilo Freire