{"id":16826540,"url":"https://github.com/jeffhollan/grpc-sample-go","last_synced_at":"2026-05-07T12:31:09.443Z","repository":{"id":152719511,"uuid":"431371648","full_name":"jeffhollan/grpc-sample-go","owner":"jeffhollan","description":"Go application of a gRPC client and server, built for Azure Container Apps","archived":false,"fork":false,"pushed_at":"2021-11-25T16:47:31.000Z","size":22,"stargazers_count":1,"open_issues_count":0,"forks_count":2,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-10T15:08:19.279Z","etag":null,"topics":["azure","azure-container-apps","grpc"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jeffhollan.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2021-11-24T06:26:51.000Z","updated_at":"2021-11-29T00:15:05.000Z","dependencies_parsed_at":null,"dependency_job_id":"566b2cc1-437e-44c9-8d69-92f9fbec813b","html_url":"https://github.com/jeffhollan/grpc-sample-go","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/jeffhollan/grpc-sample-go","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jeffhollan%2Fgrpc-sample-go","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jeffhollan%2Fgrpc-sample-go/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jeffhollan%2Fgrpc-sample-go/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jeffhollan%2Fgrpc-sample-go/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jeffhollan","download_url":"https://codeload.github.com/jeffhollan/grpc-sample-go/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jeffhollan%2Fgrpc-sample-go/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32737615,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-07T02:14:30.463Z","status":"ssl_error","status_checked_at":"2026-05-07T02:14:29.405Z","response_time":62,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["azure","azure-container-apps","grpc"],"created_at":"2024-10-13T11:17:41.168Z","updated_at":"2026-05-07T12:31:09.426Z","avatar_url":"https://github.com/jeffhollan.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# gRPC Sample : Go\n\n### View this sample in other languages\n| [C#](https://github.com/jeffhollan/grpc-sample-dotnet) | [Go](https://github.com/jeffhollan/grpc-sample-go) | [Java](https://github.com/jeffhollan/grpc-sample-java) | [JavaScript](https://github.com/jeffhollan/grpc-sample-node) | [Python](https://github.com/jeffhollan/grpc-sample-python) |\n| ---  | --- | --- | --- | --- |\n\nThe following is a sample of a gRPC client calling another container running gRPC server to execute a `SayHello` call.  The solution runs on Azure Container Apps.\n\n## Deploy the sample\n### Azure CLI\n\n```bash\nRESOURCE_GROUP=\"grpc-sample\"\nLOCATION=\"canadacentral\"\nLOG_ANALYTICS_WORKSPACE=\"aca-logs\"\nACA_ENVIRONMENT=\"aca-env\"\n\naz extension add -y \\\n  --source https://workerappscliextension.blob.core.windows.net/azure-cli-extension/containerapp-0.2.0-py2.py3-none-any.whl\naz provider register --namespace Microsoft.Web\n\naz group create \\\n  --name $RESOURCE_GROUP \\\n  --location \"$LOCATION\"\n\naz monitor log-analytics workspace create \\\n  --resource-group $RESOURCE_GROUP \\\n  --workspace-name $LOG_ANALYTICS_WORKSPACE\n\nLOG_ANALYTICS_WORKSPACE_CLIENT_ID=`az monitor log-analytics workspace show --query customerId -g $RESOURCE_GROUP -n $LOG_ANALYTICS_WORKSPACE --out tsv`\nLOG_ANALYTICS_WORKSPACE_CLIENT_SECRET=`az monitor log-analytics workspace get-shared-keys --query primarySharedKey -g $RESOURCE_GROUP -n $LOG_ANALYTICS_WORKSPACE --out tsv`\n\n# Create the Container Apps Environment\naz containerapp env create \\\n  --name $ACA_ENVIRONMENT \\\n  --resource-group $RESOURCE_GROUP \\\n  --logs-workspace-id $LOG_ANALYTICS_WORKSPACE_CLIENT_ID \\\n  --logs-workspace-key $LOG_ANALYTICS_WORKSPACE_CLIENT_SECRET \\\n  --location \"$LOCATION\"\n\n# Create the gRPC backend internal service\naz containerapp create \\\n  --name grpc-backend \\\n  --resource-group $RESOURCE_GROUP \\\n  --environment $ACA_ENVIRONMENT \\\n  --image ghcr.io/jeffhollan/grpc-sample-go/grpc-backend:main \\\n  --ingress 'internal' \\\n  --target-port 50051 \\\n  --transport 'http2'\n\nGRPC_SERVER_ADDRESS=$(az containerapp show \\\n  --resource-group $RESOURCE_GROUP \\\n  --name grpc-backend \\\n  --query configuration.ingress.fqdn -otsv)\n\n# Create the HTTPS frontend gRPC client container\naz containerapp create \\\n  --name https-frontend \\\n  --resource-group $RESOURCE_GROUP \\\n  --environment $ACA_ENVIRONMENT \\\n  --image ghcr.io/jeffhollan/grpc-sample-go/https-frontend:main \\\n  --environment-variables GRPC_SERVER_ADDRESS=$GRPC_SERVER_ADDRESS':443' \\\n  --target-port 8050 \\\n  --ingress 'external' \\\n  --query configuration.ingress.fqdn\n```\n\n### Try the solution\n\nAfter deploying, get the FQDN of the https-frontend and call it and hit the `/hello` endpoint. It will call the gRPC backend (via gRPC) and return a message to the client.\n\n## Build and run the code\n\n### Generate the protobuf client\n\n`protoc protos/greet.proto -I. --go_out=. --go_opt=paths=source_relative --go-grpc_out=. --go-grpc_opt=paths=source_relative`\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjeffhollan%2Fgrpc-sample-go","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjeffhollan%2Fgrpc-sample-go","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjeffhollan%2Fgrpc-sample-go/lists"}