Blog.csdn.net/hui6075/art…
Writing in the front
EMQ is an excellent open source MQTT broker. From the use of several libraries and the design of the framework, we can see that the author is also very knowledgeable about Erlang.
For example, the author has implemented Ekka library for clustering and ESocKD for network concurrency. First of all, regardless of the performance of these libraries, having the courage to build your own wheels, being able to build wheels, is definitely possible with a deep understanding of Erlang/OTP.
Learned some key business codes of EMQ, summarized the source code of connect/subscribe/publish, and drew the process/module call flow chart as follows.
The process of tree
The connection
To subscribe to
release
— — — — — — — — — — — — — — — — — — — — – this article from hui6075 CSDN blog, full address, please click: blog.csdn.net/hui6075/art…