mop icon indicating copy to clipboard operation
mop copied to clipboard

ping request

Open hujie6 opened this issue 3 years ago • 2 comments

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?

hujie6 avatar Jun 13 '22 11:06 hujie6

Maybe we can use two mechanisms:

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

mattisonchao avatar Jun 24 '22 10:06 mattisonchao

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 .

hujie6 avatar Jun 25 '22 07:06 hujie6