philipdaquin / fullstack-movie-streaming-platform

📺 Netflix in Rust/ React-TS/ NextJS, Actix-Web, Async Apollo-GraphQl, Cassandra/ ScyllaDB, Async SQLx, Kafka, Redis, Tokio, Actix, Elasticsearch, Influxdb Iox, Tensorflow, AWS

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Fullstack Movie Streaming Platform

📺 Netflix in RUST/ NextJS, Actix-Web, Async Apollo-GraphQl, Cassandra/ ScyllaDB, Async SQLx, Spark, Kafka, Redis, Elasticsearch, Influxdb Iox, Tensorflow

System Design Prompt: Design Netflix

Disclaimer: The project was intended to build a system like Netflix/ Youtube/ Tiktok from PoC to Production Like environment. Since I do not own the rights for any of the movies, I decided to replace the movie 'links' with Youtube Trailers instead.
This is not the official repository. Original repo: 330 + commits

Design a video on demand platform that lets users upload fast, watch and store videos like Tiktok, Youtube and Amazon Prime. Build the system so that it is always available for our users, highly scalable, high performance and low latency, cost effective and supported by different devices.

Goals & Tasks

User goals:

  1. Watch their favourite show seamlessly
  2. Wide range of choices to pick from
  3. Seamless membership experience, which they cancel anytime
  4. Save favourite videos so they can watch it later

User Task:

  1. Sign up and pick a subscription plan
  2. Search/ browse their favourite shows
  3. Choose from a wide selection of videos
  4. Watch movie

Tech stack

Client

  • NextJS/React/TypeScript
  • Tailwind CSS
  • CSS + HTML
  • Stripe Payments
  • Firebase

Distributed System Tech Stack+

  • Apollo-Federation Router (Rust)
  • Async GraphQL
  • Actix-Web
  • Redis
  • Docker / Kubernetes (wip)
  • Async SQLx + PostgreSQL
  • ScyllaDB/ CassandraDB
  • Apache Kafka
  • Apache Spark (pySpark) (wip w/ tensorflow)
  • Hadoop(HDFS)
  • AWS WORKFLOW
  • Elastic Stack (Elasticsearch, Kabana)
  • Apache Beam and BigQuery
  • Influx DB
  • Tensorflow/ TFX
  • BigQuery ML | Dataflow

General Logging Stack

  • Prometheus
  • Open Telemetry
  • Grafana
  • Jaeger

homepage

Final Architecture

architecture_final

  • Build logs// Notes// Brainstorming of ideas/ Challenges can be found here

Subscription Plan

subs

Search

search_page search_page1

Profile Page

profile

Sign Up/ Sign In

image

Initial Architecture

architecture_sample

About

📺 Netflix in Rust/ React-TS/ NextJS, Actix-Web, Async Apollo-GraphQl, Cassandra/ ScyllaDB, Async SQLx, Kafka, Redis, Tokio, Actix, Elasticsearch, Influxdb Iox, Tensorflow, AWS

License:GNU General Public License v2.0


Languages

Language:Rust 69.5%Language:TypeScript 18.0%Language:Jupyter Notebook 5.4%Language:Scala 2.1%Language:Dockerfile 2.1%Language:Python 1.7%Language:PLpgSQL 0.4%Language:JavaScript 0.4%Language:CSS 0.4%