列出发布/订阅订阅使用者 [英] Listing the Pub/Sub subscription consumers

查看:65
本文介绍了列出发布/订阅订阅使用者的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

服务可能对发布/订阅进行长时间轮询.显然,这需要在发布/订阅服务和客户端之间不断打开TCP连接.有什么方法可以确定某个订阅是否打开了该TCP连接?

It is possible for a service to do long polling on a pub/sub subscription. That obviously requires a TCP connection to be constantly open between the pub/sub service and the client. Is there any way to find out if a certain subscription has that TCP connection open?

推荐答案

没有办法列出所有订阅发布/订阅的使用者.这很困难,因为存在三种不同类型的订阅者:推送

There is no way to list all consumers for a Pub/Sub subscription, no. This would be tough as there are three different types of subscribers: push, pull, and streaming pull. Only the last one maintains an open connection to the server.

这篇关于列出发布/订阅订阅使用者的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆