{"id":20199246,"url":"https://github.com/roblesdotdev/movies-ms","last_synced_at":"2026-05-08T12:38:21.142Z","repository":{"id":224650449,"uuid":"763840761","full_name":"roblesdotdev/movies-ms","owner":"roblesdotdev","description":"Working with microservices \u0026 golang","archived":false,"fork":false,"pushed_at":"2024-02-28T22:02:04.000Z","size":59,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-01-13T19:52:04.443Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/roblesdotdev.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-02-27T02:24:28.000Z","updated_at":"2024-02-27T05:47:00.000Z","dependencies_parsed_at":"2024-06-20T23:08:29.842Z","dependency_job_id":"a3e94b25-3ac6-4ca2-ba62-115bc748f2a7","html_url":"https://github.com/roblesdotdev/movies-ms","commit_stats":null,"previous_names":["roblesdotdev/movies-ms"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/roblesdotdev%2Fmovies-ms","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/roblesdotdev%2Fmovies-ms/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/roblesdotdev%2Fmovies-ms/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/roblesdotdev%2Fmovies-ms/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/roblesdotdev","download_url":"https://codeload.github.com/roblesdotdev/movies-ms/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241637147,"owners_count":19994925,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-14T04:36:33.958Z","updated_at":"2026-05-08T12:38:16.098Z","avatar_url":"https://github.com/roblesdotdev.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Movies Microservices with Go\n\nApplication for movie lovers.\n\n## Services\n\n```\n                       +----------------------+\n                       |                      |\n          +-------------    Movie Service     |-------------+\n          |            |                      |             |\n          |            +----------------------+             |\n+-------------------+                             +-------------------+\n|                   |                             |                   |\n| Metadata Service  |                             |  Rating Service   |\n|                   |                             |                   |\n+-------------------+                             +-------------------+\n\n```\n\n- **Movie metadata service**: Store and retrieve the movie metadata records by movie IDs.\n- **Rating service**: Store ratings for different types of records and retrieve aggregated ratings for records.\n- **Movie service**: Provide complete information to the callers about a movie or a set of movies, including the movie metadata and its rating.\n\n## Layers\n\n```\n    +--------------+      +----------------+      +-------------+\n---\u003e| API Handler  | ---\u003e | Business Logic | ---\u003e | Repository  | ---\u003e DB(postgres)\n    +--------------+      +----------------+      +-------------+\n                              (controller)\n```\n\n### Consul-based service discovery\n\nRun locally hashicorp consul:\n\n```\ndocker run -d -p 8500:8500 -p 8600:8600/udp --name=dev-consul hashicorp/consul agent -server -ui -node=server-1 -bootstrap-expect=1 -client=0.0.0.0\n```\n\nRun each microservice by executing this command inside each cmd directory:\n\n```\ngo run main.go\n```\n\nVisit Consul UI via http://localhost:8500.\n\n### Proto VS Json\n\n```\n$ make proto\n$ go mod tidy\n$ make bench\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Froblesdotdev%2Fmovies-ms","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Froblesdotdev%2Fmovies-ms","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Froblesdotdev%2Fmovies-ms/lists"}