hivemq

MQTT Broker 服务器选型

做~自己de王妃 提交于 2020-10-03 09:45:51
MQTT Broker 服务器选型 EMQ-X HiveMQ ActiveMQ Mosquitto License 开源+商用 开源+商用 开源 开源 公司 杭州映云科技 dc-square ,德国 Apache 项目维护者 Eclipse 开源社区 开发语言 Erlang Java Java C 连接数 开源 十万级 ,商用 百万级 开源25个,商用 百万级 千万级 系统性能 单机十万 单机百万 集群千万 支持集群 协议支持 MQTT、CoAP、MQTT-SN、WebSocket、LwM2M MQTT MQTT、JMS、Openwire、Stomp、AMQP、WebSocket XMPP MQTT、WebSocket MQTT 5.0 √ √ × √ 认证鉴权 TLS/DTLS、ClientID/IP地址/用户密码认证、根据IP地址/ClientID/用户名访问控制LDAP/Redis/MySQL/MongoDB/PostgreSQL/HTTP API认证 TLS/DTLS、X.509证书、JWT、OAuth2.0、应用协议(ID/用户名/密码)、配置文件形式的认证与 ACL 功能 LDAP (JAAS)、Apache Shiro × 规则引擎 开源支持 基础规则引擎 ,商用支持 增强规则引擎 × × × 消息存储 开源 不支持 ,商用支持Redis、MySQL、MongoDB

How to get the QoS of a client in HiveMQ Client?

空扰寡人 提交于 2019-12-11 15:28:53
问题 I'm working with HiveMQ Client and I wanted to know if there was a way to get the quality of service (QoS) that a client is subscribing with (in terms of a specific topic or in general)? I would be looking for a method I could invoke on a client like so: Mqtt5BlockingClient subscriber = Mqtt5Client.builder() .identifier(UUID.randomUUID().toString()) // the unique identifier of the MQTT client .serverHost("localhost") .serverPort(1883) .buildBlocking(); subscriber.getQoS("topic") // returns

How to fix undefined MqttChannelInitializer constructor in HiveMQ Client?

大城市里の小女人 提交于 2019-12-11 07:48:51
问题 I was using HiveMQ Client version 1.0.1 but I decided to update to the recently released version 1.1. I completely started from scratch and imported the project as a Gradle project and tried to build. The build work only after ignoring a few failed tests. I'm getting 3 errors in 3 different classes. I realize this is likely related to the Dagger dependency injection tool and I had already successfully built the project and added the directory of build/generated/source/apt/main/ to my build

How to properly use TLS 1.3 cipher suites in HiveMQ? (Getting a SSL exception: closing inbound before receiving peer's close_notify)

為{幸葍}努か 提交于 2019-12-11 04:28:20
问题 I want to use TLS 1.3 for my secure communication with HiveMQ. I've configured the HiveMQ community edition server config.xml file to specify to use TLS 1.3 cipher suites and I pointed it to the keystore containing a key pair for a 256-bit Elliptic curve key (EC NOT DSA) using the curve: secp256r1 (which is one of the few curves supported by TLS 1.3). The 256-bit key pair is for this TLS 1.3 cipher suite I want to use: TLS_AES_128_GCM_SHA256 . I'm also generated a 384-bit elliptic curve key

How to fix DaggerSingletonComponent not resolved in HiveMQ (MQTT protocol)

◇◆丶佛笑我妖孽 提交于 2019-12-11 04:24:25
问题 I'm trying to set create the client first to test that the MQTT works without errors then I will implement the connect() method. I downloaded the latest version of HiveMQ (an open source MQTT implementation done in Java) and after importing the project properly as a Gradle build in Eclipse and using GIT I was greeted with an error message. It said "DaggerSingletonComponent cannot be resolved." My program can't run at all. Link to the open source I downloaded: https://github.com/hivemq/hivemq

Max MQTT connections

拟墨画扇 提交于 2019-12-09 06:02:56
问题 I have a need to create a server farm that can handle 5+ million connections, 5+ million topics (one per client), process 300k messages/sec. I tried to see what various message brokers were capable so I am currently using two RHEL EC2 instances (r3.4xlarge) to make lots of available resources. So you do not need to look it up, it has 16vCPU, 122GB RAM. I am nowhere near that limit in usage. I am unable to pass the 600k connections limit. Since there doesn't seem to be any O/S limitation

Paho Python Client with HiveMQ

一笑奈何 提交于 2019-12-08 11:54:07
问题 i am developing a module in python that will allow me to connect my raspberry pi to a version of hivemq hosted on my pc. it connects normally but when i add hivemq's file auth plugin it doesnt seem to work im using the username_pw_set to set my username and password here is what my code currently looks like: import paho.mqtt.client as mqtt client = mqtt.Client() #The callback for when the client recieves a CONNACK response from the server def on_connect(client, userdata, flags, rc): print(

Max MQTT connections

◇◆丶佛笑我妖孽 提交于 2019-12-03 07:23:05
I have a need to create a server farm that can handle 5+ million connections, 5+ million topics (one per client), process 300k messages/sec. I tried to see what various message brokers were capable so I am currently using two RHEL EC2 instances (r3.4xlarge) to make lots of available resources. So you do not need to look it up, it has 16vCPU, 122GB RAM. I am nowhere near that limit in usage. I am unable to pass the 600k connections limit. Since there doesn't seem to be any O/S limitation (plenty of RAM/CPU/etc.) on either the client nor the server what is limiting me? I have edited /etc