Mobile Push initial exploration program

Foreword

Since entering the mobile Internet era, most manufacturers need to push a variety of messages and notifications (such as promotions, etc.), to increase the viscosity of the user and the user's mobile push by the way. This paper mainly for mobile push, to sum up my recent learning experience.
Originated in the push Email, mobile terminal into the field, mainly focused on the mobile client. And to get the data server clients, mainly in two ways:

  • The first is the PULL client (pull) mode, i.e. at regular intervals whether there is data to obtain the server;
    • Advantages: simple;
    • Disadvantages: the real poor.
      We can also be increased by increasing the frequency of real-time query, but this will make electricity, traffic consumption is too high.
  • The second is the server PUSH (push) mode, when the data server to the client's initiative to achieve a long connection based on the TCP mode.
    • Pros: Good news in real time;
    • Disadvantages: To maintain a long APP client and server connections heartbeat, will bring additional traffic and electricity consumption;

      Sentence summary

      Therefore, the overall architecture design requires trade-offs, the current mainstream push implementations are based on the PUSH program.

Mobile Push three ways

Currently, there are three mobile push implementation, wherein PULL one kind, two kinds of the PUSH, described as follows:

Poll () the PULL)

The client and server on a regular basis to establish a connection, whether through asynchronous message queue to query the server for new data. But the biggest problem with this approach is not easy to control the frequency of queries:

  • Low frequency data is not updated in time;
  • Frequency is too high will accelerate consumption (electricity and traffic, etc.) resources.

Push messages (SMS PUSH)

With the way the operator's short message to push messages to users via SMS form, highlighting the advantages: the ability to best ensure real-time news; however, the shortcomings can not be ignored: Adoption of this scheme will be paid according to the number of messages sent the corresponding costs, higher costs.

Guess you like

Origin www.cnblogs.com/JackHou/p/11925976.html