Giter Site home page Giter Site logo

Comments (11)

Singularity0909 avatar Singularity0909 commented on May 4, 2024 2

This project seems not to implement the service discover feature, because may they consider use server Reverse proxy is enough such use k8s‘s ingress,but not use client Forward proxy such use alone etcd, consul or zk.

一般来说,服务注册和发现可以使用服务端发现和客户端发现,如果没有注册中心,那么可以用k8s内置的service发现机制,搭配ingress来食用, 如istio(用的envoy),Linkerd,Traefik,或者haproxy,nginx的商业版本,kong也是一个选择,这就很复杂了,对一般人来说玩不起来。当然,以前没有k8s的时候,要自己手动配置haproxy来进行负载,但这不是服务注册,服务发现啊,怎么还要自己手动配置。。。

所以服务注册和服务发现都是通过客户端来进行代理,如Java Spring Cloud默认实现Consul注册中心,服务启动时将自己的信息注册到注册中心,跨服务请求时先请求注册中心,拿到多个服务副本的地址,使用轮训等算法选择一个进行点对点请求。

大部分微服务框架都有注册中心的功能实现,etcd,zk,consul都支持,这个框架不支持,就不要说自己是微服务框架了,不是所有人都玩得起k8s的,我采用传统架构,那么是不是就没法玩了

@hunterhug kitex 中有定义 Registry 和 Resolver 接口,用 consul 或者 etcd 的 go api 都可以很方便做服务注册和发现。

https://www.cloudwego.io/zh/docs/tutorials/framework-exten/registry/

https://www.cloudwego.io/zh/docs/tutorials/framework-exten/discovery/

from kitex.

YangruiEmma avatar YangruiEmma commented on May 4, 2024

Yes, we have planed that, but the priority is low temporarily. If you are willing to provide the extension, we will be greatly appreciated! All extensions of Kitex are in https://github.com/kitex-contrib.

from kitex.

wsyingang avatar wsyingang commented on May 4, 2024

URL https://github.com/cloudwego/kitex-contrib. 404 Not Found.

from kitex.

simon0-o avatar simon0-o commented on May 4, 2024

URL https://github.com/cloudwego/kitex-contrib. 404 Not Found.

public application is still in the progress

from kitex.

wsyingang avatar wsyingang commented on May 4, 2024

OK thanks.

from kitex.

YangruiEmma avatar YangruiEmma commented on May 4, 2024

@wsyingang Extensions of Kitex are here: https://github.com/kitex-contrib.
Dns-resolver: https://github.com/kitex-contrib/resolver-dns

from kitex.

hunterhug avatar hunterhug commented on May 4, 2024

This project seems not to implement the service discover feature, because may they consider use server Reverse proxy is enough such use k8s‘s ingress,but not use client Forward proxy such use alone etcd, consul or zk.

一般来说,服务注册和发现可以使用服务端发现和客户端发现,如果没有注册中心,那么可以用k8s内置的service发现机制,搭配ingress来食用, 如istio(用的envoy),Linkerd,Traefik,或者haproxy,nginx的商业版本,kong也是一个选择,这就很复杂了,对一般人来说玩不起来。当然,以前没有k8s的时候,要自己手动配置haproxy来进行负载,但这不是服务注册,服务发现啊,怎么还要自己手动配置。。。

所以服务注册和服务发现都是通过客户端来进行代理,如Java Spring Cloud默认实现Consul注册中心,服务启动时将自己的信息注册到注册中心,跨服务请求时先请求注册中心,拿到多个服务副本的地址,使用轮训等算法选择一个进行点对点请求。

大部分微服务框架都有注册中心的功能实现,etcd,zk,consul都支持,这个框架不支持,就不要说自己是微服务框架了,不是所有人都玩得起k8s的,我采用传统架构,那么是不是就没法玩了

from kitex.

hunterhug avatar hunterhug commented on May 4, 2024

This project seems not to implement the service discover feature, because may they consider use server Reverse proxy is enough such use k8s‘s ingress,but not use client Forward proxy such use alone etcd, consul or zk.
一般来说,服务注册和发现可以使用服务端发现和客户端发现,如果没有注册中心,那么可以用k8s内置的service发现机制,搭配ingress来食用, 如istio(用的envoy),Linkerd,Traefik,或者haproxy,nginx的商业版本,kong也是一个选择,这就很复杂了,对一般人来说玩不起来。当然,以前没有k8s的时候,要自己手动配置haproxy来进行负载,但这不是服务注册,服务发现啊,怎么还要自己手动配置。。。
所以服务注册和服务发现都是通过客户端来进行代理,如Java Spring Cloud默认实现Consul注册中心,服务启动时将自己的信息注册到注册中心,跨服务请求时先请求注册中心,拿到多个服务副本的地址,使用轮训等算法选择一个进行点对点请求。
大部分微服务框架都有注册中心的功能实现,etcd,zk,consul都支持,这个框架不支持,就不要说自己是微服务框架了,不是所有人都玩得起k8s的,我采用传统架构,那么是不是就没法玩了

@hunterhug kitex 中有定义 Registry 和 Resolver 接口,用 consul 或者 etcd 的 go api 都可以很方便做服务注册和发现。

https://www.cloudwego.io/zh/docs/tutorials/framework-exten/registry/

https://www.cloudwego.io/zh/docs/tutorials/framework-exten/discovery/

👍

from kitex.

wujc16 avatar wujc16 commented on May 4, 2024

Perhaps you can try this, an easy implemention of service registry and service discovery for kitex based on etcd:
https://github.com/kitex-suites/kitex-etcd

from kitex.

GuangmingLuo avatar GuangmingLuo commented on May 4, 2024

For people who are looking for useful extensions for kitex, please refer to this org: https://github.com/kitex-contrib

Implementations somewhere else are welcome but not recommended.

from kitex.

YangruiEmma avatar YangruiEmma commented on May 4, 2024

Thanks to the community developers, now we have multiple choices for registry and discovery, related issue is #155.
You can choose Zookeeper, Consul, Etcd, Nacos, Polaris, Eureka, maybe more in the future.

from kitex.

Related Issues (20)

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.