{"id":13416888,"url":"https://github.com/harlow/go-micro-services","last_synced_at":"2026-10-19T16:51:18.547Z","repository":{"id":25686041,"uuid":"29122050","full_name":"harlow/go-micro-services","owner":"harlow","description":"HTTP up front, Protobufs in the rear","archived":false,"fork":false,"pushed_at":"2026-03-06T21:12:32.000Z","size":15468,"stargazers_count":1092,"open_issues_count":0,"forks_count":164,"subscribers_count":40,"default_branch":"master","last_synced_at":"2026-09-09T06:50:19.545Z","etag":null,"topics":["consul","go","golang","grpc","jaeger","microservice","protobuf"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":"debois/elm-mdl","license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/harlow.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}},"created_at":"2015-01-12T06:31:38.000Z","updated_at":"2026-07-15T07:27:51.000Z","dependencies_parsed_at":"2023-01-14T03:07:16.963Z","dependency_job_id":"f7c4ec6c-5981-49b0-beca-f57b3df69104","html_url":"https://github.com/harlow/go-micro-services","commit_stats":{"total_commits":238,"total_committers":9,"mean_commits":"26.444444444444443","dds":"0.13025210084033612","last_synced_commit":"7afd2b8d5f92a2d45c345b615320862dcbf3717a"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/harlow/go-micro-services","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/harlow%2Fgo-micro-services","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/harlow%2Fgo-micro-services/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/harlow%2Fgo-micro-services/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/harlow%2Fgo-micro-services/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/harlow","download_url":"https://codeload.github.com/harlow/go-micro-services/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/harlow%2Fgo-micro-services/sbom","scorecard":{"id":455918,"data":{"date":"2025-08-11","repo":{"name":"github.com/harlow/go-micro-services","commit":"c9a9a17f20077753ec9d6c5f56d62ab492a0db8b"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":2.7,"checks":[{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Code-Review","score":1,"reason":"Found 4/28 approved changesets -- score normalized to 1","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: MIT License: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Pinned-Dependencies","score":5,"reason":"dependency not pinned by hash detected -- score normalized to 5","details":["Warn: containerImage not pinned by hash: Dockerfile:1: pin your Docker image by updating golang:1.19.4 to golang:1.19.4@sha256:660f138b4477001d65324a51fa158c1b868651b44e43f0953bf062e9f38b72f3","Info:   1 out of   1 goCommand dependencies pinned","Info:   0 out of   1 containerImage dependencies pinned"],"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"Branch-Protection","score":-1,"reason":"internal error: error during branchesHandler.setup: internal error: githubv4.Query: Resource not accessible by integration","details":null,"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 14 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Vulnerabilities","score":2,"reason":"8 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GO-2023-1988 / GHSA-2wrh-6pvc-2jm9","Warn: Project is vulnerable to: GO-2023-2102 / GHSA-4374-p667-p6c8","Warn: Project is vulnerable to: GO-2023-2153 / GHSA-m425-mq94-257g / GHSA-qppj-fm5r-hxr3","Warn: Project is vulnerable to: GO-2024-2687 / GHSA-4v7x-pqxf-cx7m","Warn: Project is vulnerable to: GO-2024-3333","Warn: Project is vulnerable to: GO-2025-3503 / GHSA-qxp5-gwg8-xv66","Warn: Project is vulnerable to: GO-2025-3595 / GHSA-vvgc-356p-c3xw","Warn: Project is vulnerable to: GO-2024-2611 / GHSA-8r3f-844c-mc37"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}}]},"last_synced_at":"2025-08-19T09:40:08.496Z","repository_id":25686041,"created_at":"2025-08-19T09:40:08.496Z","updated_at":"2025-08-19T09:40:08.496Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":344872684,"owners_count":38362294,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-10-03T21:59:58.778Z","status":"online","status_checked_at":"2026-10-19T02:00:06.414Z","response_time":53,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["consul","go","golang","grpc","jaeger","microservice","protobuf"],"created_at":"2024-07-30T22:00:28.364Z","updated_at":"2026-10-19T16:51:18.541Z","avatar_url":"https://github.com/harlow.png","language":"Go","funding_links":[],"categories":["Go Microservices repos","Resources","Go","protobuf","Repositories"],"sub_categories":["Examples"],"readme":"# Go Microservices Example\n\nSmall, runnable example of Go microservices with:\n\n- HTTP frontend\n- gRPC service-to-service calls\n- OpenTelemetry tracing to Jaeger\n- Docker and non-Docker local workflows\n\n![Stay Atlas UI](docs/images/stay-atlas-ui.png)\n\n## What This Repo Demonstrates\n\n- Service boundaries (`frontend`, `search`, `profile`, `geo`, `rate`)\n- End-user HTTP API (`/hotels`)\n- Internal gRPC composition (`search` fans out to `geo` + `rate`)\n- Basic operational surface (`/healthz`, `/readyz`, traces)\n\n## Architecture\n\n```mermaid\nflowchart LR\n  B[\"Browser\"] --\u003e F[\"frontend (HTTP :5001)\"]\n  F --\u003e S[\"search (gRPC :8084)\"]\n  F --\u003e P[\"profile (gRPC :8083)\"]\n  S --\u003e G[\"geo (gRPC :8081)\"]\n  S --\u003e R[\"rate (gRPC :8082)\"]\n  F --\u003e J[\"Jaeger/OTLP (:4317, UI :16686)\"]\n  S --\u003e J\n  P --\u003e J\n  G --\u003e J\n  R --\u003e J\n```\n\n## Prerequisites\n\n- Go (version from `go.mod`)\n- Docker + Docker Compose (optional, for containerized stack)\n- `protoc` + codegen tools (only for regenerating protobuf stubs)\n- `go-bindata` (only for regenerating embedded JSON assets)\n\nInstall codegen tooling:\n\n```bash\ngo install google.golang.org/protobuf/cmd/protoc-gen-go@latest\ngo install google.golang.org/grpc/cmd/protoc-gen-go-grpc@latest\ngo install github.com/go-bindata/go-bindata/...@latest\n```\n\n## Golden Path (Local, No Docker)\n\n1. Start all services:\n\n```bash\nmake run-local\n```\n\n2. Open UI:\n\n- [http://localhost:5001/](http://localhost:5001/)\n\n3. Hit API directly:\n\n```bash\ncurl \"http://localhost:5001/hotels?inDate=2015-04-09\u0026outDate=2015-04-10\"\n```\n\n4. Check health/readiness:\n\n- [http://localhost:5001/healthz](http://localhost:5001/healthz)\n- [http://localhost:5001/readyz](http://localhost:5001/readyz)\n\n5. View traces:\n\n- [http://localhost:16686/search](http://localhost:16686/search)\n\n## Docker Stack\n\n```bash\nmake run\n```\n\nThe frontend is available at [http://localhost:5001/](http://localhost:5001/).\n\n## HTTP API Contract\n\n### `GET /hotels`\n\nRequired query params:\n\n- `inDate` (`YYYY-MM-DD`)\n- `outDate` (`YYYY-MM-DD`, must be after `inDate`, max range 30 days)\n\nExample:\n\n```bash\ncurl \"http://localhost:5001/hotels?inDate=2015-04-09\u0026outDate=2015-04-10\"\n```\n\nSuccess response shape:\n\n```json\n{\n  \"type\": \"FeatureCollection\",\n  \"features\": [\n    {\n      \"type\": \"Feature\",\n      \"id\": \"hotel-id\",\n      \"properties\": {\n        \"name\": \"Hotel Name\",\n        \"address_line\": \"123 Main St, San Francisco, CA, 94105\",\n        \"description\": \"Hotel description\",\n        \"rating\": 4.7,\n        \"logo_url\": \"/logos/example.svg\"\n      },\n      \"geometry\": {\n        \"type\": \"Point\",\n        \"coordinates\": [-122.4, 37.78]\n      }\n    }\n  ]\n}\n```\n\nValidation or upstream error shape:\n\n```json\n{\n  \"error\": {\n    \"code\": \"INVALID_ARGUMENT\",\n    \"message\": \"invalid inDate format, expected YYYY-MM-DD\"\n  }\n}\n```\n\n## Failure Demo\n\nTo demonstrate readiness behavior when a dependency is down:\n\n1. Stop `search` (local run: interrupt and restart without search, Docker run: `docker-compose stop search`).\n2. Request readiness:\n\n```bash\ncurl -i http://localhost:5001/readyz\n```\n\nExpected: `503 Service Unavailable` with `NOT_READY`.\n\n## Developer Commands\n\nRun all Go checks:\n\n```bash\nmake check\n```\n\nRegenerate protobuf stubs:\n\n```bash\nmake proto\n```\n\nRegenerate embedded data:\n\n```bash\nmake data\n```\n\nVerify generated files are current:\n\n```bash\nmake check-generated\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fharlow%2Fgo-micro-services","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fharlow%2Fgo-micro-services","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fharlow%2Fgo-micro-services/lists"}