简体   繁体   English

仅使用守护程序路由到接收器 - 没有网络或服务

[英]Routing to receivers with daemon only - without network or service

When a sender specifies only daemon, without network and service, a receiver with similar settings can see messages on a given subject .当发送者只指定守护进程,没有网络和服务时,具有类似设置的接收者可以看到给定主题的消息。

However if the sender specifies the daemon explicitly, and network with service, then the receiver (which specifies only daemon, and empty network and service) cannot see messages on subject or _ LOCAL.subject - why is that?但是,如果发送者明确指定守护进程,并使用服务进行网络,那么接收者(仅指定守护进程,以及空网络和服务)无法看到有关主题或 _ LOCAL.subject的消息 - 为什么会这样?

And what would be the significance of _LOCAL (not routing beyond the daemon) for listening to subject or LOCAL.subject as long as everyone connects to the same daemon explicitl?只要每个人都明确地连接到同一个守护程序,_LOCAL(不路由超出守护程序)对于侦听主题LOCAL.subject的意义是什么?

When a sender specifies only daemon, without network and service then it is using the following configuration:当发件人仅指定守护程序,没有网络和服务时,它使用以下配置:

. . specified daemon指定的守护进程

. . default network (';' = the default broadcast address of the machine)默认网络(';' = 机器的默认广播地址)

. . default service = 7500默认服务 = 7500

To be able to exchange Rendezvous messages applications need to share the same configuration (same network and service, two different daemons can be used if they are not running on the same host ).为了能够交换 Rendezvous 消息,应用程序需要共享相同的配置(相同的网络和服务,如果它们不在同一主机上运行,则可以使用两个不同的守护程序)。

This means that if an application is using a specific configuration (different from the default) that it defined explicitly and another application is using the default configuration they cannot communicate.这意味着如果一个应用程序正在使用它明确定义的特定配置(不同于默认配置),而另一个应用程序正在使用它们无法通信的默认配置。

Message sent using the _LOCAL subject prefix remain local on the daemon used by the Publisher application, only Subscriber applications connected on the same daemon can receive this message (if they are subscribed to the prefixed subject).使用 _LOCAL 主题前缀发送的消息在 Publisher 应用程序使用的守护程序上保持本地,只有连接在同一守护程序上的订阅者应用程序才能接收此消息(如果它们订阅了前缀主题)。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM