go-movie

module
v0.0.0-...-2e14e4b Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 17, 2023 License: MIT

README

go-movie

microservices based movie catalog developed using golang.

  1. Metadata service: It stores and retrieves movie metadata
    gRPC, MySQL, Go
  2. Rating service: It stores and retrieves movie rating
    gRPC, MySQL, Go
  3. Movie service: It is an API Gateway. It sits between Client and other services.
    gRPC, MySQL, Go

requirements:

Golang, Docker, Docker compose, Makefile, and zap-pretty

How to run:

  1. make docker-build
  2. make compose-start

grpc url commands:

grpcurl -plaintext -d '{"record_id":"1", "record_type":"movie"}' localhost:8082 RatingService/GetAggregatedRating

grpcurl -plaintext -d '{"record_id":"1", "record_type":"movie", "user_id": "alex", "rating_value": 5}' localhost:8082 RatingService/PutRating

grpcurl -plaintext -d '{"movie_id":"1"}' localhost:8083 MovieService/GetMovieDetails

other commands:

go tool pprof http://localhost:6060/debug/pprof/profile?seconds=5

Prometheus Dashboard: http://localhost:9090/
Alert Manager UI: http://localhost:9093
Portainer: http://localhost:9000/
Grafana: http://localhost:3000

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL