Android Implementation Push mode solution

Source: Internet
Author: User

When we develop the applications that need to interact with the server, we basically need to get the server-side data, such as "earthquake emergency traffic" need to get the latest seismic information on the server.

There are generally two ways to get information on a server that is not regularly updated:

The first is the way the client uses pull, which is to get information on the server at a time and see if there is any updated information.

The second is the way the server uses push (push), when new information is available on the server side, push the latest information to the client . This allows the client to automatically receive the message.

While pull and push two ways to get server-side update information, it is obvious that push is more advantageous than pulling mode. Because the pull mode is more cost to the client's network traffic, and the main is the charge, but also need our program constantly to monitor the changes in the server.

From

Click on my

Android Implementation Push mode solution

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.