Replies: 1 comment
-
Thanks for sharing your idea. When introducing a feature, we always think what the value it can bring to our users, customers, or employers. For MQTT and your project, they are cool, and I know there are some IM projects developed based on MQTT, but I cannot see the MQTT value for Turms in IM scenarios. The key value for adapting MQTT to Turms is to support MQTT-based devices, so if someone really thinks it's worthwhile supporting this kind of device, they can implement it by creating a new turms-gateway plugin, e.g. btw, when discussing technology solutions, ChatGPT usually thinks about things in a naive way (it's a good repeater but not a thinker that can bring out an insight), so if you want to behave professionally in the OSS community, you better don't just copy the answer from ChatGPT for discussions. |
Beta Was this translation helpful? Give feedback.
-
Turms is an efficient and scalable open-source instant messaging engine, aiming to serve 100K~10M concurrent users. When considering the use of MQTT as an access and communication protocol, we need to take into account the following aspects:
Advantages:
Lightweight: MQTT is a lightweight publish/subscribe messaging transport protocol, which is very suitable for use in low bandwidth conditions. This is a significant advantage for instant messaging applications.
Quality of Service(QoS): MQTT supports three levels (0,1,2) of message delivery quality of service, including "at most once", "at least once", and "exactly once". This provides great flexibility for instant messaging applications.
Topic Filtering: MQTT's topic filtering feature allows clients to receive only the messages they are interested in. In group chat scenarios, this can greatly improve efficiency.
Low Power Consumption: The design of the MQTT protocol takes into account the power limitations of mobile devices, making it very suitable for mobile instant messaging applications.
Real-Time: The design of the MQTT protocol results in very low latency in message delivery, which is crucial for instant messaging applications.
Disadvantages:
Network Dependence: The MQTT protocol relies on TCP/IP networks, which means that MQTT might encounter problems in unstable network environments.
In conclusion, while MQTT has its advantages, we need to carefully weigh its pros and cons when considering its use in the Turms project. Additionally, we also need to take into account the specific needs and objectives of the Turms project.
Finally, I would like to mention our recently open-sourced BifroMQ.io, a native multi-tenant MQTT broker middleware implementation. If you're interested in MQTT, I suggest you take a look.
Beta Was this translation helpful? Give feedback.
All reactions