Comments (11)
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 clientForward 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.
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.
URL https://github.com/cloudwego/kitex-contrib. 404 Not Found.
from kitex.
URL https://github.com/cloudwego/kitex-contrib. 404 Not Found.
public application is still in the progress
from kitex.
OK thanks.
from kitex.
@wsyingang Extensions of Kitex are here: https://github.com/kitex-contrib.
Dns-resolver: https://github.com/kitex-contrib/resolver-dns
from kitex.
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.
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 clientForward 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.
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.
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.
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)
- 在arm架构下无法编译 HOT 2
- proposal: SkipDecoder for thrift codec HOT 2
- The "example_shop" case uses proto instead of thrift as the IDL (Interface Definition Language), and after integrating with etcd as the service registry, errors occurred while running the code.
- example_shop 案例使用proto替代thirft作为idl语言,最后接入etcd后运行代码报错 HOT 4
- Compilation Error: "undefined: serviceinfo.WithStreamingMode"
- 升级kitex后,自动生成的kitex_gen代码有错误 HOT 1
- Compilation Error: "expected pseudo-register; found R13"
- Add `-gen-path` support for protobuf HOT 3
- kitex将下层的错误加上了remote or network error[remote]: biz error: 前缀,我该如何在上层获取原始返回的err呢 HOT 4
- possible to support tls? HOT 3
- [Error] HERTZ: [Recovery] err=remote or network error: get connection error: dial tcp 127.0.0.1:8888: i/o timeout HOT 2
- Compilation Error: "does not contain package github.com/cloudwego/iasm/x86_64"
- Feature Proposal: UnknownMethodHandler for KitexThrift/KitexProtobuf requests HOT 3
- Feature Proposal: tracing.ServerMiddleware 同时支持 metainfo 和 metadata 协议读取 HOT 2
- Feature Proposal: Allow custom registry to get the actual address for registering HOT 2
- Feature Proposal: optionloader for Kitex client/server HOT 4
- Feature Proposal: kitexcall command for sending json generic requests HOT 4
- 客户端访问服务出现 cannot assign requested address HOT 5
- kitex自定义脚手架模板里想获得hello.thrift里namespace怎么获得 HOT 4
- kitex会考虑和wego一样模版内置sprig函数吗? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from kitex.