Giter VIP home page Giter VIP logo

bee-micro's Introduction

beego&go-micro demo

使用go-micro v3版本结合beego的一个demo.目前整合了:

功能 服务端 客户端 三方件
注册发现 etcd v3
负载均衡
请求限流 github.com/juju/ratelimit
熔断降级 github.com/afex/hystrix-go/hystrix
监控告警 prometheus/grafana
配置中心 etcd v3
链路追踪 jaeger

主要修改了框架以下功能:

  1. 修改http client实现,支持restful api
  2. 修改基于jaeger的http client trace实现,支持将span context通过http header传递
  3. 修改metrics/ratelimit/tracer位于http server端的wrapper实现,通过http handler重新封装
  4. 提供基于beego filter实现的示例

目录结构

  • /conf beego配置目录,无意义
  • /controllers 路由控制
  • /dao db操作
  • /initial db初始化
  • /models db表/模型定义
  • /routers 路由定义
  • /util 公共库
  • /micro go-micro改造/封装库
    • /breaker 熔断封装
    • /broker 异步消息
    • /client http client重写
    • /config 配置中心封装
    • /filter beego过滤器示例
    • /logger 日志封装
    • /metrics 监控重写
    • /ratelimit 限流重写
    • /tracer 链路跟踪重写

bee-micro's People

Contributors

jzdwk avatar formero009 avatar

Watchers

 avatar  avatar

Forkers

formero009

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.