GithubHelp home page GithubHelp logo

rpc_server不支持订阅数据 about rest_rpc HOT 5 OPEN

qicosmos avatar qicosmos commented on August 28, 2024
rpc_server不支持订阅数据

from rest_rpc.

Comments (5)

qicosmos avatar qicosmos commented on August 28, 2024

为什么服务端要订阅,它订阅来自哪里的数据?

from rest_rpc.

LeoYang-Chuese avatar LeoYang-Chuese commented on August 28, 2024

现在的发布订阅使用方式是:rpc_server发布数据,rpc_client订阅数据,和我印象中的消息中间件的顺序相反(rpc_client发布数据,rpc_server订阅数据),按照现有方式也没有问题,但我发现rpc_client中有publish接口,rpc_client发布的数据由谁去订阅呢?谢谢指教。

from rest_rpc.

qicosmos avatar qicosmos commented on August 28, 2024

A客户端订阅主题a,B向服务器发布a,服务器publish这个a,A就可以收到来自B发布的消息了。

from rest_rpc.

LeoYang-Chuese avatar LeoYang-Chuese commented on August 28, 2024

A客户端订阅主题a,B向服务器发布a,服务器publish这个a,A就可以收到来自B发布的消息了。

不太明白,这里的B是指的rpc_client还是rpc_server?

from rest_rpc.

qicosmos avatar qicosmos commented on August 28, 2024

B可以是一个客户端,也可以是服务器端的一个业务对象,它们最终都会调用server提供的publish接口去发布消息。

from rest_rpc.

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.