Coder Social home page Coder Social logo

wothing / wonaming Goto Github PK

View Code? Open in Web Editor NEW
188.0 13.0 46.0 46 KB

Wonaming is a simple grpc-go balancer & naming implementation, supporting etcd and Consul as the service register/discovery backend. Wonaming also supports self-register to etcd/consul.

Go 100.00%

wonaming's Introduction

wonaming

This is the naming Resolver & Watcher implementaion for grpc balancer.

Wonaming supports etcd and consul as the service register and discovery backend.

example

etcd

client

go run main.go --reg http://127.0.0.1:2379

server

go run main.go --reg http://127.0.0.1:2379

consul

client

go run main.go --reg 127.0.0.1:8500

server

go run main.go --reg 127.0.0.1:8500

wonaming's People

Contributors

elvizlai avatar omigo avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

wonaming's Issues

etcdv3 example can't work

Server works fine,but client gets this error:
rpc error: code = Unavailable desc = grpc: the connection is unavailable

Resolve using service tags on Consul

It would be nice if resolving using tags in consul would be implemented. Perhaps by setting the name of the service in the same format as a consul srv record. Something like:

b := wonaming.NewResolver("v1.users")

This is nice for when you want to have multiple versions of a service and you want the clients to connect to those. It's a far nicer format that renaming the services in consul. I could make a pull request later on if you'd like this feature.

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.