A gRPC proxy for TiKV
Please follow instructions in TiKV official document to deploy a tiny TiKV cluster locally. Then run the proxy server:
$ docker run -it --rm --name tikv-proxy --network tikv -p 7788:7788 xiaogaozi/tikv-proxy:v0.0.1 --debug --pd-addrs pd.tikv:2379
Open another terminal to run the example:
$ make example
$ ./_build/example localhost:7788
$ make gen-proto # Generate Go code of protocol buffers
$ make server # Build server
$ docker build -t xiaogaozi/tikv-proxy:v0.0.1 -f ./deploy/Dockerfile . && docker rmi $(docker images -q -f dangling=true) # Build Docker image