- Notifications
You must be signed in to change notification settings - Fork0
gokit微服务,go,gokit,微服务,服务发现,服务注册,服务监控,服务限流,熔断器,GRPC
License
NotificationsYou must be signed in to change notification settings
yasenagat/gokit-inaction
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
简单的http server
通过context传递流水号(msgid),用户信息(user)
- http网关
- http微服务
- http网关
- http微服务
- http网关
- grpc微服务
http标准认证
- 使用场景
- 三种状态:闭合,半开,断开
- 失败判断
- 状态转移
- gobreaker
- handybreker
- hystrix
- Client->Api Server->Remote Server(输入一个数N,返回N*2)
- 标准使用
- prometheus
- 上面所有组件都在一个demo里
- sd,circuitbreaker,ratelimit,trace,metrics
- 模拟用户登录
- api网关
- grpc用户服务
- grpc账户服务
- http api server
- http post body
- request and response 都是json字符串
- /login 用户登录
- /phone 修改手机号
- /user 获取用户信息