Documentation
¶
Overview ¶
Connect-RPC query server for the page-view-counters example.
Serves Get / GetMany / GetWindow / GetRange against the same DynamoDB table the streaming worker writes to. The endpoint speaks gRPC, gRPC-Web, and Connect (HTTP+JSON) on the same port — pick whichever your client supports.
In production this binary runs as a separate ECS Fargate service behind an ALB (the Terraform pipeline-counter module's `query` service). Locally:
export DDB_LOCAL_ENDPOINT=http://localhost:8000 go run ./examples/page-view-counters/cmd/query
Then call it with grpcurl, buf curl, or plain curl:
grpcurl -plaintext -d '{"entity": "page-A"}' \
localhost:50051 murmur.v1.QueryService/Get
curl -X POST http://localhost:50051/murmur.v1.QueryService/Get \
-H 'Content-Type: application/json' -d '{"entity": "page-A"}'
Click to show internal directories.
Click to hide internal directories.