Skip to main content

OTT App

A geo-distributed Netflix clone running at the edge with low latency providing superior experience to users.

Setup (Regular)

FederationEmailPasswordDashboard
Global Data Networkdemo-ott-app@macrometa.ioxxxxxxxxDashboard

Setup (Fastly)

FederationEmailPasswordDashboard
Global Data Networkdemo-ott-app@macrometa.ioxxxxxxxxDashboard

Solution

  • Create the following collections in your GDN account:
assets (global)
genres (global)
credits (global)
my_list (global)
users (global)
asset_credit_edge (graph-edge, global)
genres_asset_edge (graph-edge, local)
  • Create the following search views in your GDN account:

asset_credit_view with Primary sort field popularity

Mapping - CollectionFieldAnalyzer
assetsnametext_en
assetstitletext_en
assetsoriginal_titletext_en
assetsoverviewtext_en
creditsnametext_en

asset_type_view

Mapping - CollectionFieldAnalyzer
genres_asset_edgeasset_typeidentity
  • Create the following graph in your federation:

OTT

Edge DefinitionsFrom CollectionsTo Collections
genres_asset_edgegenresassets
asset_credit_edgeassetscredits
  • Create the following Query workers in your GDN Account:
getMovieAssetsByGenre
getTopRatedMovies
getTopRatedTvSeries
getTvSeriesAssetsByGenre
searchByAsset
searchByCredits

GitHub