An open API service indexing awesome lists of open source software.

https://github.com/capcom6-learning/node-tube

Example project from "Bootstrapping Microservices with Docker, Kubernetes, and Terraform" book
https://github.com/capcom6-learning/node-tube

Last synced: 3 months ago
JSON representation

Example project from "Bootstrapping Microservices with Docker, Kubernetes, and Terraform" book

Awesome Lists containing this project

README

          

# NodeTube

Example project from ["Bootstrapping Microservices with Docker, Kubernetes, and Terraform"](https://www.manning.com/books/bootstrapping-microservices-with-docker-kubernetes-and-terraform) book.

Based on Node.js + Express.

## Microservices

Project consists of 6 microservices, database and message broker:

1. Video streaming service. Gets video id from query param, retrives video info from *metadata* service and pass video stream from *video storage* service to client.
2. [Video storage service](./video-storage-azure/README.md). Uses Azure Blob storage for videos storage and returns stream by path for *video streaming* service.
3. History service. Receives "viewed" events from *video streaming* service by *RabbitMQ* and puts it into *database*.
4. MongoDB for storing data.
5. RabbitMQ for indirect communications.
6. Recommendations service. Receives "viewed" events by *RabbitMQ* and simply prints it to console.
7. [Metadata service](./metadata/README.md). Provides video metadata to other services.
8. Gateway service. Provides UI to users by fetching data from *metadata* service.

![Architecture](./images/tube_service.png "NodeTube architecture")

## Requirements

* docker
* docker-compose

### Optional

* make

## How to start?

Use `make up` and `make down` to start and stop containers.

Use `make dev` for development with support of live reload by nodemon.

## See also

* Go + Fiber version: https://github.com/capcom6/go-tube
* Python + Flask version: https://github.com/capcom6/py-tube