I”
As mentioned in the previous group, “EMQ CPU is allocated fairly to MQTT session, a large number of PUB messages are sent to a subscription, subscription does not get more CPU, resulting in message accumulation.” Does this problem exist in both EMQ V1 and V2? How many messages per second does this happen?
Mr. Liang at 17:53
It depends on the configuration of the machine and don’t do this kind of design
I 17:59
How should it be designed? Because our scenario is a single industry, a single server subscription, and then the data is rendered on the Web
Mr. Liang at 17:59
To do so, you would have to change the hash distribution in route but that would not guarantee order
Mr. Liang 18:01
I just think it’s best to follow emQ’s design idea and ask the big guy again
I 18:02
Publish with 20,000 posts and I subscribe with 20,000 topics?
Mr. Liang 18:05
You can have 100 Rewite rules if you don’t have one
I 18:09
I haven’t really got to know what rewrite is for
Mr. Liang 18:10
@ me? Do you think emQ design is powerful but you think too little?
I”
Yeah, EMQ has a lot of ideas
I shall not
Now my problem is that all the 20,000 clients have been shipped with the theme of “X”. What should I do then
I say nothing
All are “x” topic publish publish, background a sub subscribe all
helloworld 18:17
Shouldn’t performance be higher without other topics? There is no need to look up topics.
Mr. Lemon 18:23
But the message delivery is inefficient, so the more devices there are, the less efficient the delivery is, and all devices get it
Mr. Liang 18:23
It is blocked to send subscription messages to another service
Mr. Lemon 18:24
N to 1, the CPU scheduling pressure is high
Mr. Liang 18:26
Yeah, and there’s no need to use MQTT to send to other services
helloworld 18:27
Too. Not on the way down.
I depart;
So how do I solve my problem? It has been shipped with the “X” theme
helloworld 18:27
Only twenty thousand less downlink some news. It shouldn’t be a problem
I then
Take the long view. We’ll ship it in the future
Mr. Lemon 18:29
You use the message component
Mr. Lemon 18:29
Don’t subscribe
I disguise
What is a message component? V2 has this feature?
Mr. Lemon 18:29
I don’t know if you’re collecting equipment reports
I him,
is
Mr. Liang 18:30
There are a lot of methods to change the code
Mr. Lemon at 18:30
The V2 supports various components
Mr. Lemon at 18:30
The plug-in
Mr. Lemon at 18:30
Don’t have r&d ability to buy commercial money
I him,
How to get data without subscription
Mr. Lemon 18:32
With the publish hooks
Mr. Lemon 18:32
The message is forwarded to the message middleware
I but
Middleware should also support MQTT protocol
I but
Can Kafka support MQTT?
Mr. Lemon 18:37
Support the
Mr. Lemon 18:37
The MQTT protocol is not supported
Mr. Lemon 18:38
Just put it in Kafka
Mr. Lemon 18:38
Pit is more
Mr. Lemon 18:38
Bared tooth [bared tooth][bared tooth]
I am now
Yes, I said that kafka should be unstable and full of potholes
Mr. Chen and
I have a question for you, why can’t conflict disconnect be disconnected?
Mr. Chen and
I think disconnecting unscientifically is also disconnecting. Why can’t DISCONNECT hook be used? Based on what considerations?
Mr. Chen one
I was trying to do something in the Disconnect hook, but it turns out that the disconnect hook doesn’t enter at all
I he
Yes, same question. I also found this problem. The number of online and offline terminals cannot be counted
Mr. Lemon 21:18
Squeeze the line, does not affect the number of it
Mr. Lemon 21:18
Back online
I lift up
Hook is the plug-in hook that catches the upper and lower lines
Mr. Lemon 21:19
The forehead
Mr. Lemon 21:19
You’re not allowed to do that
Mr. Lemon 21:20
Shut down the process and can’t walk into the hook
Mr. Lemon 21:20
That alone is not enough
I as
How do you count the number of online terminals?
I as
I am currently only working on online hook 1 and offline hook 1
I as
But it’s always wrong
Mr. Lemon 21:26
Use the EMq_modules module, in conjunction with storage
Mr. Lemon 21:27
This is the most accurate
I hath
My current problem is that Clientid restarts online repeatedly. When ID conflicts occur, connect 1 is always executed, but disconnec-1 is never executed, resulting in more and more.
Mr. Chen 21:33
I know, I wonder why I didn’t get into that hook? In the case of the offline client, it’s Disconnect
Gilbert 21:34
It is not disconnect. The process is closed and does not send the disconnect packet. This is called abnormal disconnection
Mr. Chen accounted
Why is the offline is considered abnormal?
I 21:37
Yes, I think the disconnect function should also be used to disconnect the hook
Gilbert 21:37
Because I didn’t send the Disconnect packet
Gilbert 21:38
The MQTT protocol itself has a Disconnect message to notify the client that the connection is disconnected
Gilbert 21:38
Emq also did
Mr. Lemon 21:42
Emq did the right thing
Mr. Lemon 21:43
Tens of millions of our devices have never gone down
[Frown][Frown] 21:45
360 and HP have both started using EMQ, and the company will soon be listed on NASDAQ
Mr. Lemon 21:47
So EMQ contributes too much to the MQTT ecosystem
Mr. Lemon 21:48
I attended the MQTT TC meeting last week, and MQTT 5 was basically finalized
Mr. Lemon 21:48
But several of the chairmen are IBM’s, and the main push is their own HiveMQ
Mr. Lemon 22:07
MQTT 5 can do a lot of things, iot devices come in many forms
Mr. Lemon 22:12
AMQP is also widely used in the Internet of things
Mr. Lemon 22:14
Lol, right, MQTT was designed by IBM in the 90’s when the network was worse and they could even manage it, so MQTT is still flexible and stable