ZPD (or ZaloPay Database) is a probationary challenge performed at ZaloPay. It's an experiment to gain deep knowledge about handling simple SQL queries and how to glue them with a key-value storage.
ZPD is implemented using Golang as a gRPC service and built on top of following frameworks:
The architecture of the ZPD:
Including layers:
See the architecture of ZPD here.
Clone this project:
# Clone
$ git clone https://gitlab.zalopay.vn/zpx-core-team/tidb-internals.git
ZPD, PD, TiKV, Consul are all built with Docker compose. Just go to the docker-compose folder and run docker-compose up.
# go to the folder docker-compose
$ cd ./tidb-layer/source/docker-compose
# Run docker-compose
$ docker-compose up
Must run ZPD as the section above, then run tests of the APIs:
# go to cmd/client
$ cd ./tidb-layer/source/cmd/client
# run tests
$ go test -run TestClientExecuteCreateDB
client_test.go like the available format.Read more document about ZPD:
Read blogs:
This project was built by AJPham and Alex Nguyen under the guidance from Anh Le (Andy).
See the LICENSE file for license rights and limitations.