EchoKV is an in-memory distributed key-value store.
- To run the service locally if
Gois installed you can run the commandgo run ./server/main.go
- This will spin up the
httpandgRPCservice respectively.
- This will spin up the
- Buf - Used tool for go code generations for protobufs relating to
.protofiles for gRPC calls. - grpcui - Tool used to visualize and test local grpc calls via an interactive web UI.
To directly test against gRPC API call's we can use a tool called grpcui.
- Use
grpcuito interact with any internal or public gRPC calls:- This will require generating the
protosetwhich can be done via buf
buf build --path ./proto-public -o api.bin --as-file-descriptor-set
- This will require generating the
- We can now use the generated
protosetfile calledapi.binto send requests at our gRPC URL# Define your $GRPC_ADDR var grpcui -plaintext -protoset api.bin "$GPRC_ADDR"