In theory, you could configure Linux to maximize the number of mosquito sockets before what you need. Then the question is about performance. The key indicator is the number of messages per second. If you have 20k clients connected, how many of them will be active and how many messages will be sent?
As an example, if half of your clients are active and sends 1 message per second, there is 10k msps - incoming only, of course. If each of these messages is 10 bytes, you will support 100 kB / s or 800 kbit / s.
Another aspect is how the hierarchy of topics is organized. I canβt tell you which is better, but it will certainly have an effect.
My best suggestion is to write a client that simulates a real person, and then use it for such a real test of your scenario.
I saw examples of an extreme number of clients: http://bit.ly/HytRpK , but does not have more detailed information.
One final point: IBM is currently releasing a redbook on MQTT. It should be available "in spring", that is, in the near future. I think this will affect scaling issues.
ralight
source share