Giter Club home page Giter Club logo

Comments (7)

liangyuanpeng avatar liangyuanpeng commented on September 17, 2024

Maybe we can store this message to pulsar metadataStore.

/cc @codelipenghui

from mop.

codelipenghui avatar codelipenghui commented on September 17, 2024

@liangyepianzhou This will introduce more workload on the metadata server since the connection can create and close frequently. My opinion is to use one broker to handling the MQTT topic under a namespace, this means all the topics under a namespace are maintained by one broker, so we don't need to share something between MQTT brokers. So that we can guarantee client ID uniqueness under a namespace.

from mop.

josephglanville avatar josephglanville commented on September 17, 2024

@codelipenghui this eliminates a large benefit of using Pulsar over a traditional broker which is high availability if this was to be enforced.

At the end of the day MQTT sessions are designed to be long lived. So for well behaved clients it shouldn't be a problem. Could always introduce QoS quotas for number of connection establishments if load on the metadata API is of concern.

from mop.

Technoboy- avatar Technoboy- commented on September 17, 2024

@josephglanville I have added some declarations on the MoP docs.

from mop.

cbornet avatar cbornet commented on September 17, 2024

Another problem with not sharing and/or storing the session is that the subscription info will be lost if the client connects to another broker or the broker restarts. This is particularly an issue when using cleanSession=0. This info could be stored in metadata store and fetched from a local cache for performance reason.

from mop.

Technoboy- avatar Technoboy- commented on September 17, 2024

Another problem with not sharing and/or storing the session is that the subscription info will be lost if the client connects to another broker or the broker restarts. This is particularly an issue when using cleanSession=0. This info could be stored in metadata store and fetched from a local cache for performance reason.

Hi, we have supported this already.

from mop.

Technoboy- avatar Technoboy- commented on September 17, 2024

@codelipenghui this eliminates a large benefit of using Pulsar over a traditional broker which is high availability if this was to be enforced.

At the end of the day MQTT sessions are designed to be long lived. So for well behaved clients it shouldn't be a problem. Could always introduce QoS quotas for number of connection establishments if load on the metadata API is of concern.

Hi @josephglanville
As merged #560 and #565, we have supported this in MoP cluster.

from mop.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.