eclipse-paho / eclipse-paho/paho.mqtt.javascript

Subscription to a lot of topics causes ping to time-out

Open
#124 2 comments 0 reactions 0 assignees View on GitHub
triage
Dominant language
JavaScript
Stars
1.2k
Forks
466
PR merge metrics
No merged PRs in 30d

Description

I sometimes need to subscribe a client to a lot of topics (14k+ topics).
Wildcards are not an option - I need the topic separation because different users have access to different subsets of data streams.

When a super-admin, that has an access to all streams of data connects to the system, first time he subscribes to all the topics his connection times out: "AMQJS0004E Ping timed out.".
While this happens the user does not receive any notifications

Than a retry mechanism kicks in, causing a re-connect and a re-subscribe. After that everything works correctly.

A fix for #18 might also fix this problem, as we'll be able to subscribe to all those topics using one request.

P.S.
Just in case it's relevant in any way, I'm using RabbitMQ as a broker.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.