I want to implement a messenger just like whatsapp using MQTT protocol. What tutorials should I read ?
I am confused about few things:
I understand that these are very basic questions, but unfortunately I could not find any resources which guides though initial steps.
Conclusion:
After talking to people who have already implemented large scale messenger deployment in MQTT, I concluded that MQTT should just be used an protocol. Pub/Sub is good for beginning but you should have a layer of your own business logic for flexibility and performance. You can however implement most of the basic messenger requirement using pub/sub tree, but you will be limited to it and it will become difficult to extend later.
The Python script will have WhatsApp API and MQTT library to communicate with both protocols. The script can send and receive messages on WhatsApp and MQTT.
Facebook uses MQTT for Messenger Chats. Each "Chat" has a generated Topic, and all members in the Chat subscribe and Publish to that generated Topic. The MQTT Messenger Broker infrastructure is made up of "many" different Brokers, and a "Topic Director" steers the Chat MQTT packets to the Broker handling that chat.
There's no denying that MQTT can be the best option for your chat app development too. It requires little implementation efforts and is the most ideal for machine-to-machine communication. It also allows efficient transmission of data and is a good choice for networks that experience different levels of latency.
Major corporations that use MQTT protocol include Amazon and Facebook. This protocol manages a connection between the publishers and subscribers and the types of connection use various types of communications such as server-to-server, machine-to-machine and server-to-machine.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With