https://github.com/capcom6-learning/py-tube
Example project from "Bootstrapping Microservices with Docker, Kubernetes, and Terraform" book
https://github.com/capcom6-learning/py-tube
Last synced: 3 months ago
JSON representation
Example project from "Bootstrapping Microservices with Docker, Kubernetes, and Terraform" book
- Host: GitHub
- URL: https://github.com/capcom6-learning/py-tube
- Owner: capcom6-learning
- License: apache-2.0
- Created: 2021-11-27T12:20:17.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2024-11-13T02:53:59.000Z (over 1 year ago)
- Last Synced: 2026-01-03T16:24:17.669Z (6 months ago)
- Language: Python
- Homepage:
- Size: 29.6 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: history/.dockerignore
- License: LICENSE
Awesome Lists containing this project
README
# PyTube
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 Python + Flask.
## Microservices
At this moment (incomplete) 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. 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.

## Requirements
* docker
* docker-compose
### Optional
* make
## How to start?
Use `make up` and `make down` to create and destroy containers.
Use `make dev` for development with support of live reload by `watchgod`.
## See also
* Go + Fiber version: https://github.com/capcom6/go-tube
* NodeJS + Express version: https://github.com/capcom6/node-tube