Git Product home page Git Product logo

Comments (9)

kratos-ci-bot avatar kratos-ci-bot commented on July 22, 2024

Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑‍🤝‍🧑👫🧑🏿‍🤝‍🧑🏻👩🏾‍🤝‍👨🏿👬🏿


Feature-request

  1. Register on Polaris, and the service name and agreement are directly spliced ​​together.

  2. There are some problems with the input of the protocol field during registration.

  3. The current service name after registration

image
  1. At present, the protocol field cannot be filled in at all, because after writing it, the two registered service instances will have the same protocol tag. According to the design, the corresponding protocol fields should be filled in directly in the Kratos registration implementation code, so it is useless for developers to fill it in here.
image image

Proposal

  1. When registering on Polaris, it should not be a direct concatenation of service name + protocol. There should be at least a separator, such as rc-user.http or rc-user-http. Although it does not affect use currently, I think this is also a norm.

  2. The protocol fields for registered service instances should be specified internally in the contrib/registry/polaris/registry.go file in the Kratos project instead of being passed in by developers.

image

from kratos.

shenqidebaozi avatar shenqidebaozi commented on July 22, 2024

Which SDK is being used? contrib/registry/polaris or contrib/polaris

from kratos.

shenqidebaozi avatar shenqidebaozi commented on July 22, 2024

you can try using contrib/polaris

from kratos.

tan-zhuo avatar tan-zhuo commented on July 22, 2024

All right , I am currently using contrib/registry/polaris

from kratos.

tan-zhuo avatar tan-zhuo commented on July 22, 2024

But contrib/registry/polaris more in line with framework usage for kratos

from kratos.

shenqidebaozi avatar shenqidebaozi commented on July 22, 2024

subsequent collaborations with Polaris will be conducted in contrib/polaris

from kratos.

tan-zhuo avatar tan-zhuo commented on July 22, 2024

ok. I switch to contrib/polaris

from kratos.

tan-zhuo avatar tan-zhuo commented on July 22, 2024

我已经使用了 contrib/polaris 包进行了注册,我发现现在的实现逻辑是 同一个服务名称 下 注册实例是通过协议区分的。这确实更符合注册逻辑,非常科学

image image

但是我想问下,关于限流,那现在是不是不能根据协议进行区分 限流规则了?比如同一个接口 http 我想 1分钟 1次请求,grpc 1分钟 2次请求的配置,这种现在能支持吗?

from kratos.

kratos-ci-bot avatar kratos-ci-bot commented on July 22, 2024

Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑‍🤝‍🧑👫🧑🏿‍🤝‍🧑🏻👩🏾‍🤝‍👨🏿👬🏿


I have used the contrib/polaris package to register, and I found that the current implementation logic is that registered instances under the same service name are distinguished by protocols. This is indeed more in line with the registration logic and very scientific

image image

But I would like to ask, regarding current limiting, is it not possible to distinguish current limiting rules based on protocols? For example, I want to configure the same interface http to request once per minute, and grpc to request twice per minute. Can this be supported now?

from kratos.

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.