Jgrpc
Jgrpc copied to clipboard
Best practices for developing microservices based on Go/Grpc/kubernetes/Istio
Jgrpc
如果觉得该项目对你的学习有帮助,点个 star
完整的案例代码直达
https://github.com/janrs-io/Jgrpc-example
中文文档地址
基于Go/Grpc/kubernetes/Istio开发微服务的最佳实践尝试 - 1/3
基于Go/Grpc/kubernetes/Istio开发微服务的最佳实践尝试 - 2/3
基于Go/Grpc/kubernetes/Istio开发微服务的最佳实践尝试 - 3/3
Usage
This project provides a reference for best practices for developing
microservices based on Go/Grpc/kubernetes/Istio
.
And it implements CICD
based on Jenkins/Gitlab/Harbor
.
And use the grpc-gateway as a gateway proxy.
This best practice is divided into three parts:
-
Create a microservice named
pongservice
-
Create a microservice named
pingservice
and accesspongservice
-
Create a
CICD
deployment process base onJenkins/Gitlab/Harbor
QuickStart
Just clone the project and run go run cmd/main.go
in the pingservice
and pongservice
directory.
And enter this address in browser to visit pong
http server:
http://127.0.0.1:9001/pong.v1.pong?msg=best%20practice
It will return json
data:
{
"msg": "response pong msg:best practice"
}
And enter this address in browser to visit pingservice
http server:
http://127.0.0.1:9002/ping.v1.ping?msg=best%20practice
It will return json
data:
{
"msg": "response ping msg:best practice and msg from pong service is: response pong msg:request from ping service"
}