Giter Site home page Giter Site logo

Comments (5)

Aaronontheweb avatar Aaronontheweb commented on May 24, 2024

I increased some of EMQX's broker settings to allow up to 10,000 inflight messages at any given time and I increased the queue size to 1m messages per MQTT topic. Still seeing things top out around 10k msg/s even after adjusting that.

from mqttnet.

MD-V avatar MD-V commented on May 24, 2024

Can you profile your client side where the most time in the code is spent?
How big are the messages that you are receiving from your EMQX instance?
Is the EMQX broker on the same network as your system or in the web?
Is any other MQTT client able to keep up with your demand on your system?

from mqttnet.

bajinder avatar bajinder commented on May 24, 2024

Hi @Aaronontheweb,
We had the same issue with MQTTNet but our payloads were much larger. We completely gave up on MQTTNet library altogether at a point. But then came across this #1160. Even though your payload size is only 10KB but from memory I remember looking into the MQTTNet code and the default buffer for TCP server is much smaller. I would suggest increasing the buffer size as mentioned in the linked issue and see if it helps.

from mqttnet.

Aaronontheweb avatar Aaronontheweb commented on May 24, 2024

Great advice - thank you

from mqttnet.

Aaronontheweb avatar Aaronontheweb commented on May 24, 2024

@bajinder so this did not help me - pumped the receive buffer up from the default of 8kb to 1mb. Still petered out around the same point.

Tried doing some work using the LowLevelClient as well - the numbers look a tad better there but I haven't finished reasoning about all of the fault-tolerance that needs to be done there to keep the connection relatively stable.

from mqttnet.

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.