MathOp service is a microservice implemented in go-lang which can be used by its clients to perform basic math operations like addition and square-root.
config/config.yaml
contains the port number on which the service will run.
service/service.proto
This contains the mathOp gRPC service definitions.
main.go
contains the service implementation.
- Clone this repo and place it in the
{GOPATH}/src
directory cd mathOp_service
- Execute
go run main.go
or rundocker run -d -p 8080:8080 bigrewal/mathop-service:v1.0
- Add a logger interceptor (centralised logging) instead of having log statements in the service implementation
- Add a request interceptor which will make sure that the incoming request is valid before forwarding it to the service.
- Need to check if the mathOp gRPC service definition needs to be put in a seperate repository?
Deployment and Service objects exist in mathop-service.yaml