All Projects → wangming1993 → share

wangming1993 / share

Licence: GPL-3.0 license
基于 go + grpc + consul 的微服务系统

Programming Languages

go
31211 projects - #10 most used programming language
HTML
75241 projects
shell
77523 projects
Dockerfile
14818 projects

Projects that are alternatives of or similar to share

Awesome Consul
A list of awesome consul projects, libraries
Stars: ✭ 245 (+920.83%)
Mutual labels:  consul
perseus
Perseus is a set of scripts (docker+javascript) to investigate a distributed database's responsiveness when one of its three nodes is isolated from the peers
Stars: ✭ 49 (+104.17%)
Mutual labels:  consul
consul-acl-client-tutorial
Example how to configure and use Consul client agent with ACL
Stars: ✭ 26 (+8.33%)
Mutual labels:  consul
Springcloud
springCloud学习
Stars: ✭ 251 (+945.83%)
Mutual labels:  consul
service-mesh-patterns
Templates of service mesh configurations imbued with best practices.
Stars: ✭ 68 (+183.33%)
Mutual labels:  consul
vault-consul-kubernetes
vault + consul on kubernetes
Stars: ✭ 60 (+150%)
Mutual labels:  consul
Stretcher
Deployment tool with consul/serf event notification.
Stars: ✭ 232 (+866.67%)
Mutual labels:  consul
hubble
hubbling the universe nebula by nebula
Stars: ✭ 18 (-25%)
Mutual labels:  consul
rabbitmq-peer-discovery-consul
Consul-based peer discovery backend for RabbitMQ 3.7.0+
Stars: ✭ 39 (+62.5%)
Mutual labels:  consul
MicroServicePractice
微服务实践的demo
Stars: ✭ 40 (+66.67%)
Mutual labels:  consul
Springcloudlearning
《史上最简单的Spring Cloud教程源码》
Stars: ✭ 16,218 (+67475%)
Mutual labels:  consul
kongsul
Kong Api Gateway with Consul Service Discovery (MicroService)
Stars: ✭ 35 (+45.83%)
Mutual labels:  consul
sample-kotlin-ktor-microservices
sample microservices written in Kotlin that demonstrates usage of Ktor framework woth Consul server
Stars: ✭ 37 (+54.17%)
Mutual labels:  consul
Adnc
微服务框架,同时也适用于单体架构系统的开发。支持经典三层与DDD架构开发模式、集成了一系列主流稳定的微服务配套技术栈。一个前后端分离的框架,前端基于Vue、后端基于.Net Core 3.1构建。
Stars: ✭ 223 (+829.17%)
Mutual labels:  consul
hashicorp-labs
Deploy locally on VM an Hashicorp cluster formed by Vault, Consul and Nomad. Ready for deploying and testing your apps.
Stars: ✭ 32 (+33.33%)
Mutual labels:  consul
Winton.extensions.configuration.consul
Enables Consul to be used as a configuration source in dotnet core applications
Stars: ✭ 239 (+895.83%)
Mutual labels:  consul
consul-api-gateway
The Consul API Gateway is a dedicated ingress solution for intelligently routing traffic to applications running on a Consul Service Mesh.
Stars: ✭ 88 (+266.67%)
Mutual labels:  consul
getting-into-consul
A zero to complete walk through of setting up HashiCorp Consul on AWS from scratch!
Stars: ✭ 56 (+133.33%)
Mutual labels:  consul
nomad-service-alerter
Alerting for Nomad Jobs
Stars: ✭ 37 (+54.17%)
Mutual labels:  consul
consul role
Ansible role to install Consul (cluster of) server/agent
Stars: ✭ 14 (-41.67%)
Mutual labels:  consul

基于 go + grpc + consul 的微服务系统

Build Status

启动 consul

docker pull consul

docker run -d -p 8500:8500 consul

# 访问 http://127.0.0.1:8500/ui/#/dc1/services 

生成桩文件

cd $GOPATH/src/github.com/wangming1993/share/grpc/proto

docker pull registry.cn-hangzhou.aliyuncs.com/wangming/protoc:1.0

./gen-stub

启动 grpc 服务器

cd $GOPATH/src/github.com/wangming1993/share/grpc/server

# 启动hello service
go run hello/main.go

# 启动 member service
go run member/main.go

# 启动多个grpc service 以测试负载均衡
go run hello/main.go --port=1801
go run member/main.go --port=1802

客户端调用

cd $GOPATH/src/github.com/wangming1993/share/grpc/client

go run main.go
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].