APIGateway service for self-service-system Kapibara.
- Local demo
- Kubernetes deploy configurations
bash build/localdemo.sh
# GTPC_GATEWAY_THIRDPARTY_PATH="${HOME}/go/pkg/mod/github.com/grpc-ecosystem/[email protected]/third_party/googleapis/"
cd protobufs/ && protoc -I ${GTPC_GATEWAY_THIRDPARTY_PATH} -I . \
--go_out ../internal/grpc/mikanani \
--go_opt paths=source_relative \
--go-grpc_out ../internal/grpc/mikanani \
--go-grpc_opt paths=source_relative \
--grpc-gateway_out ../internal/grpc/mikanani \
--grpc-gateway_opt paths=source_relative \
mikanani_grpc.proto
- Use
grpc-gateway
to replace hard-code http->grpc (mikanani) - Use
GORM
to replace direct mysql access - Extract code for Redis cache
- Timeout setting
- Traffic management
- Params Validator
- Configuration injected with yaml
- API Document