[Up posture] with u to understand the instant communication protocol yesterday and today

Source: Internet
Author: User

rise posture Slightly , say to know about IM posture Drops Small partner Please raise your hand! Say you, get your hands up. We all know that today's mobile internet and the previous Internet has undergone tremendous changes, the most important change is the network environment changes. Spicy, this change for im the bottom of the Instant Messaging protocol and what is the impact of rice?

The answer is in the introduction:

In the past era of Internet, the network type of instant communication is relatively single, which is represented by network cable or Wi-Fi connection, which is fixed and stable. In the era of mobile Internet, the network environment has become more complex and unstable, the first manifestation of the user network type is not unified, such as 2G, 3G, 4G, WIFI, and so on; Secondly, the changeable geographical environment, users will be at any time in the subway, elevator and other network signal instability. Therefore, the mobile Internet in the instant communication protocol design should take into account the complex weak network environment.

Soga, this is the case, so what kind of instant Messaging protocol is suitable for the mobile internet era?

That nature is the privatization of the binary protocol, spicy, the privatization of the binary protocol and the traditional internet era of the use of the XMPP protocol what difference?

In fact, in the past Internet era, the XMPP protocol has some advantages, it is free, open, open, and easy to understand. And in the client, server, components, source code library, etc., have been various implementations. In today's mobile internet age, it still has these advantages, but its most disadvantage is its instability and its low concurrent volume. The reason for this instability is that, as we mentioned earlier, today's mobile internet environment is more complex and often has a weak network, and in this environment, the use of the XMPP protocol can not guarantee the stability of the message. Another is the concurrency, here to give you a realistic example. Momo before the listing there was a period of time the bottom of the instant communication protocol using the XMPP protocol, when the user reaches the Mo Mo users reached the time of the message lag, disorderly order, and when the user reached hundreds of thousands of when the user began to reflect the often accept the message, and even sometimes appear flash-back phenomenon. Later, with the increasing number of users, Mo Mo directly overturned the original XMPP protocol, and independently developed a set of privatization binary protocol. However, privatization binaries can avoid these problems with the XMPP protocol by building Architects, which is a bit higher for the underlying architect. A good protocol needs to meet the following conditions: efficient, concise, readable, save traffic, easy to expand.

Well, said so much, I would like to drink saliva, do not know how to say, welcome to the message Spit groove Oh, I hope you pay more attention to my account, remember, I am a cloud preacher, see u~!

[Up posture] with u to understand the instant communication protocol yesterday and today

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.