query

command
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: May 12, 2026 License: Apache-2.0 Imports: 13 Imported by: 0

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"}'

Jump to

Keyboard shortcuts

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