gRPC device fleet reservation service built with Connect.
go run ./cmd/servergo run ./cmd/client reserve --user USER --type iphone
go run ./cmd/client release --device-id iphone-2
go run ./cmd/client watch# Integration tests
go test -v ./test
# With race detection
go test -v -race ./test# All benchmarks
go test -bench . -benchmem ./benchmark
# Server RPC benchmark only
go test -bench BenchmarkServer -benchmem ./benchmark
# With CPU profiling
cd benchmark
go test -run=NONE -bench=BenchmarkServer -benchtime=3s -cpuprofile cpu.prof
go tool pprof -text cpu.prof# Bash/Linux/macOS
curl localhost:8080/metrics | grep devicefleet# PowerShell/Windows
(curl localhost:8080/metrics).Content | Select-String devicefleetgo build ./...
go build -race ./...buf generate| Endpoint | Description |
|---|---|
:8080/devicefleet.v1.DeviceService/* |
Connect RPCs |
:8080/metrics |
Prometheus metrics |