Code Monkey home page Code Monkey logo

pome's Introduction

pome --version=2

pome 本身只是service mesh 中的 sidecar,它做了很多事情,以至于使用 sidecar 的主应用可以尽可能简单。

版本说明

对于前一个版本做了重构,因为本来当时半抄半写就很多东西没有弄明白,所以干脆重新写一遍。

这次重构只实现最简单的框架,只实现必要的功能。

demo 执行方法

第一步

# 在根目录执行
sh ./build.sh

第二步

# 在 demo 文件夹下,依次执行
make proto
make init
make prepare
make test

项目说明

仅包含两部分

  1. 服务发现、注册,负载均衡

  2. sidecar 网络代理(流量流入代理、流量流出代理),grpc 连接复用

其余说明可见代码注释

特殊说明

由于 etcd 和 grpc 在 go module 上有蜜汁绑定

再加上我个人也需要修改一部分 grpc 代码来实现 grpc proxy,所以 fork 了 github.com/grpc/grpc-go 到我个人仓库,并修改 module name 为 google.golang.org/grpc/v2 , 实际并无此版本

pome's People

Contributors

fumeboy avatar

Watchers

 avatar

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.