Message pushing method and device

A message push and message technology, applied in the field of communication, can solve time-consuming and other problems

Inactive Publication Date: 2020-02-07
BEIJING GRIDSUM TECH CO LTD
View PDF7 Cites 7 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] Kafka is a distributed, publish/subscribe-based message, but according to Kafka's architecture, it can be clearly seen that Kafka currently mainly pulls new messages from the business system through the pull mode. In the existing Kafka, if the event subscription If the reader needs

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
  • Message pushing method and device
  • Message pushing method and device

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0048] Explanation of terms:

[0049] Handler: It is mainly used for asynchronous message processing. When a message is sent, it first enters a message queue, and the function of sending the message returns immediately, while the other part takes out the messages one by one in the message queue, and then processes the message, that is Sending and receiving messages is not a synchronous process, and this mechanism is usually used to process relatively time-consuming operations.

[0050] Kafka: An open source stream processing platform developed by the Appache Software Foundation. It is a high-throughput distributed messaging system that can handle all action stream data in consumer-scale websites. The main practical goals include: Provide message persistence capability for O(1), even for data above TB level, it can guarantee constant time access performance; high throughput, even on cheap commercial machines, a single machine can support 100K records per second Message transmi...

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 provides a message pushing method and device. The method comprises the following steps: receiving an event published by an event publisher; obtaining a message corresponding to the published event stored in the Kafka queue, the message being a message published by a message producer to the Kafka queue, and the message containing a unique identifier of the corresponding event; determining an event subscriber corresponding to the published event according to the published event and a corresponding relationship between the published event and the event subscriber; and pushing the obtained message to an event subscriber corresponding to the published event. While receiving an event published by an event publisher, a message published by a message producer stored in a Kafka queueis acquired; the event subscribers corresponding to the published events are determined, and the obtained messages are pushed to the event subscribers corresponding to the published events, so that developers can pay more attention to service logic, and corresponding time for obtaining the messages is not needed.

Description

technical field [0001] The present invention relates to the technical field of communications, and more specifically, to a message push method and device. Background technique [0002] Due to the constant changes in the business environment of enterprises, in new enterprise applications, various application systems must be lightweight and fragmented applications in order to be able to quickly adapt to changes. change. With the development of the Internet, the operation of the system is no longer satisfied by the traditional log-keeping method. Instead, it is necessary to notify the relevant personnel of each operation step, let the relevant personnel know at the first time, and quickly process related tasks, and lightly Asynchronous calls through the message mechanism are required between large-scale and fragmented applications. Therefore, the message push function between applications is particularly important in enterprise Internet applications. [0003] Kafka is a distr...

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
IPC IPC(8): H04L29/08
CPCH04L67/55
Inventor 梁洪波
Owner BEIJING GRIDSUM TECH CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products