GithubHelp home page GithubHelp logo

新的服务实例注册之后, 收到的消息包是service维度的消息包, 包含了这个服务下所有服务实例的信息, 这个要怎样才可以只收到这个新注册的服务实例的信息. about nacos HOT 10 CLOSED

huangxinze avatar huangxinze commented on June 4, 2024
新的服务实例注册之后, 收到的消息包是service维度的消息包, 包含了这个服务下所有服务实例的信息, 这个要怎样才可以只收到这个新注册的服务实例的信息.

from nacos.

Comments (10)

985492783 avatar 985492783 commented on June 4, 2024

nacos3.x会支持模糊订阅

from nacos.

ruansheng8 avatar ruansheng8 commented on June 4, 2024

nacos3.x会支持模糊订阅

模糊订阅应该也是服务级别的吧

from nacos.

ruansheng8 avatar ruansheng8 commented on June 4, 2024

基于 Subscriber 在本地内存里面将监听到的实例列表保存一份,倒是可以间接实现区分新旧实例的功能

from nacos.

huangxinze avatar huangxinze commented on June 4, 2024

基于 Subscriber 在本地内存里面将监听到的实例列表保存一份,倒是可以间接实现区分新旧实例的功能

内存里面保存过,但是每次更新 整个服务连带所有实例信息下来的话,数据包太大了

from nacos.

985492783 avatar 985492783 commented on June 4, 2024

nacos3.x会支持模糊订阅

模糊订阅应该也是服务级别的吧

看了一下,模糊订阅支持data-id,group级别的订阅
并且支持以下监听能力
image

现在release版本的方案只能dump下来diff了

from nacos.

xuechaos avatar xuechaos commented on June 4, 2024

基于 Subscriber 在本地内存里面将监听到的实例列表保存一份,倒是可以间接实现区分新旧实例的功能

内存里面保存过,但是每次更新 整个服务连带所有实例信息下来的话,数据包太大了

目前内存有问题么?请问一下你这边场景订阅了多少个服务,每个服务实例大概有多少个?

from nacos.

KomachiSion avatar KomachiSion commented on June 4, 2024

#10374

在新的订阅者设计中,包含了返回事件中获得diff的实例列表,同时会包含全量列表。

目前计划是在2.4.0版本中加入。

from nacos.

KomachiSion avatar KomachiSion commented on June 4, 2024

目前需要在callback中自行diff出有差异的实例。

from nacos.

huangxinze avatar huangxinze commented on June 4, 2024

#10374

在新的订阅者设计中,包含了返回事件中获得diff的实例列表,同时会包含全量列表。

目前计划是在2.4.0版本中加入。

可以只返回 有变化的实例吗?如果每次都是全量列表返回的话,按10000个服务实例来算,每次广播的量 会不会很大。

from nacos.

KomachiSion avatar KomachiSion commented on June 4, 2024

#10374
在新的订阅者设计中,包含了返回事件中获得diff的实例列表,同时会包含全量列表。
目前计划是在2.4.0版本中加入。

可以只返回 有变化的实例吗?如果每次都是全量列表返回的话,按10000个服务实例来算,每次广播的量 会不会很大。

那需要更深层次的增量推送功能, 目前只是有计划,但是没有实现方案,预计要等到3.2前后的版本。

from nacos.

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.