|
Re: Wants to create multiple connections without too many threads [message #1795299 is a reply to message #1792065] |
Thu, 20 September 2018 05:27 |
Ian Craggs Messages: 83 Registered: March 2013 |
Member |
|
|
Yes, as you found out, that is a characteristic of the Paho Java client. I'm not sure that your own executor would change that behaviour. The Java client library was not primarily intended for high performance, so maybe this is not the best way to use it.
The C clients use a few threads to manage all the connections created, so maybe you could look to use one of those. However, they do use a select system call, so are limited to 1024 TCP connections per process. To get up to 30,000 you would need multiple processes. You may need to create your own bespoke client for this purpose. If you did this, you can reuse some of the Paho client MQTT serialization code, in Java or C or other language which suits you.
[Updated on: Thu, 20 September 2018 05:32] Report message to a moderator
|
|
|
Powered by
FUDForum. Page generated in 0.03368 seconds