Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ping request #662

Open
hujie6 opened this issue Jun 13, 2022 · 2 comments
Open

ping request #662

hujie6 opened this issue Jun 13, 2022 · 2 comments

Comments

@hujie6
Copy link
Contributor

hujie6 commented Jun 13, 2022

Is your enhancement request related to a problem? Please describe.
Current: when using mqtt proxy, client will send ping request to proxy , then proxy will send this request to broker. when broker receives this ping request , it will return repsonse to proxy, and proxy will write this response to client.

Question: if a client has thusands of topics, proxy will write many ping requests to broker, then proxy will receive many responses. of course ,this client will also receive many ping responses.

Describe the solution you'd like

  1. Is it possible to consider returing ping response to client directly at the proxy node?
  2. or can we deduplicate the ping response on the proxy side to avoid sending many response to the client?
@mattisonchao
Copy link
Member

Maybe we can use two mechanisms:

  1. Client <=> Proxy
  2. Proxy <=> Broker

@hujie6
Copy link
Contributor Author

hujie6 commented Jun 25, 2022

Maybe we can use two mechanisms:

  1. Client <=> Proxy
  2. Proxy <=> Broker

Yes, I can not agree more. I think we can return ping response to client directly at proxy node, and we can use timed heartbeat between proxy and broker .

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants