Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to implement distributed message push Service using hanboPush

2025-02-25 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >

Share

Shulou(Shulou.com)06/02 Report--

This article will explain in detail how to use hanboPush to implement distributed message push service. The content of the article is of high quality, so the editor will share it with you for reference. I hope you will have some understanding of the relevant knowledge after reading this article.

System Overview

In addition to accessing restApi (push-admin), app access also requires a communication protocol that is compatible with connector (push-admin 's client, which is used to communicate with push-server).

Based on protostuff coding and decoding, the protocol definition refers to PushRequest.java/PushResponse.java.

Push: only downstream messages (server to app)

IM: upstream and downstream messages (app to server and then to app)

Demo 1. Create a developer account

two。 Create appAPP authentication

Push: after successful authentication, get the real ip address of the push service, then establish a persistent connection and initiate a registration request, and then wait for the push message from the backend.

IM: with the above process, you only need to establish a relationship with friends, groups, etc., and then you can initiate a chat after ok.

6. The push service receives the push instruction forwarded by admin and sends the long-connected upper shelf diagram to the registered device in turn.

App is a mobile device, and 3rdparty is a three-party service (usually the server side).

The IM process is roughly the same as the push process, except that there is an extra layer of uplink messages (messages are published through restApi, and pushServer routes to various peer applications based on friend / group relationships).

On how to use hanboPush to achieve distributed message push service to share here, I hope that the above content can be of some help to you, can learn more knowledge. If you think the article is good, you can share it for more people to see.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Internet Technology

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report