Score
0
1 Unstar Star 0 Fork 0

distill / distill-micro-httpGo

Create your Gitee Account
Explore and code with more than 5 million developers,Free private repositories !:)
Sign up
This repository doesn't specify license. Without author's permission, this code is only for learning and cannot be used for other purposes.
distill go 微服务架构项目案例,采用http进行通信 spread retract

Clone or download
Cancel
Notice: Creating folder will generate an empty file .keep, because not support in Git
Loading...
README.md

微服务之Http协议

starfork

基本介绍

本项目是根据个人编写的distill-infra框架开发的一个简单的微服务框架之Http协议通信。

主要集成组件:

gitee.com/banyanhouse/distill-infra v0.0.16  # 主服务框架还在持续更新中
github.com/micro/go-micro/v2 v2.5.0
github.com/micro/go-plugins/client/http/v2 v2.5.0

服务模块

micro-gateway对外暴露网关,访问产品微服务,采用了轮询机制。

micro_prod_server对外提供产品服务接口,可启动多个服务实例。

注册中心

注册中心依然采用etcdv3版本

网关注册信息

3.REGISTRY-gateway

产品服务注册信息

4.REGISTRY-prod-server

测试接口

GET方式

GET http://localhost:18081/v1/micro/gateway/prods

可得到五个商品信息清单

1.GET

POST方式

POST http://localhost:18081/v1/micro/gateway/prods

可获取到八个商品信息清单

2.POST

Comments ( 0 )

Sign in for post a comment

Go
1
https://gitee.com/banyanhouse/distill-micro-http.git
git@gitee.com:banyanhouse/distill-micro-http.git
banyanhouse
distill-micro-http
distill-micro-http
master

Search

131423 f1aaba0b 1899542 094922 1c74bed3 1899542