Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Message pushing method and device thereof, computer equipment and storage medium

A message push and message technology, which is applied in computing, multi-program device, program control design, etc., can solve the problems of service nodes and distributed cache disconnection, messages cannot be sent, lost, etc., to achieve timely push and update, Avoid message loss and ensure the effect of timely push

Active Publication Date: 2021-03-05
SUNING CLOUD COMPUTING CO LTD
View PDF7 Cites 1 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] However, in actual situations, there may be a disconnection between the service node and the distributed cache. When the service node reconnects after being disconnected, the events during the disconnection period will be lost, which will cause some messages to be unable to be sent to the node connected to the service client

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Message pushing method and device thereof, computer equipment and storage medium
  • Message pushing method and device thereof, computer equipment and storage medium
  • Message pushing method and device thereof, computer equipment and storage medium

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0018] In order to make the purpose, technical solution and advantages of the present application clearer, the present application will be further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described here are only used to explain the present application, and are not intended to limit the present application.

[0019] The message push method provided in the embodiment of the present application can be applied to any push service node in the push service cluster. Such as figure 1 As shown, the message generation service node 102 is connected with the distributed cache, and the distributed cache is connected with a plurality of push service nodes (comprising the push service node 104, the push service node 106 and the push service node 108), and each push service node is connected with its own The corresponding client is connected.

[0020] In one embodiment, such as figure 2 A...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention relates to a message pushing method and a device, computer equipment and a storage medium. The method comprises the steps that first processing logic and second processing logic are executed at the same time; wherein the execution process of the first processing logic comprises the following steps: when a first event parameter sent by a distributed cache is received, generating a first push task according to the first event parameter, and adding the first push task into a message push queue; wherein the execution process of the second processing logic comprises the steps of obtaining a second event parameter according to a predetermined message theme set when a preset triggering condition is met, generating a second push task according to the second event parameter, and adding the second push task into the message push queue; and pushing the message according to the message pushing queue. According to the embodiment of the invention, the message loss can be avoided when the service node and the distributed cache are offline, and the synchronous and timely message pushing service is ensured.

Description

technical field [0001] The present application relates to the technical field of message push, and in particular to a message push method, device, computer equipment and storage medium. Background technique [0002] Real-time push of messages is realized in a distributed system. Since the push service is deployed in a cluster, there will be multiple service nodes. Each service node cannot send messages to clients connected to the node at the same time, resulting in inconsistencies in the time at which different clients receive new messages, and at the same time causing the message push in some clients to be untimely. In order to coordinate these service nodes to send messages to clients connected to the node at the same time, the event notification between service nodes is usually realized through the publish-subscribe mechanism of the distributed cache. [0003] However, in actual situations, there may be a disconnection between the service node and the distributed cache. ...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Applications(China)
IPC IPC(8): H04L12/58H04L29/08G06F9/54
CPCH04L67/10G06F9/546H04L51/214H04L67/55
Inventor 唐东王刚徐恒钱伟葛振宇
Owner SUNING CLOUD COMPUTING CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products