Unlock instant, AI-driven research and patent intelligence for your innovation.

A message processing device and method

A message processing and message technology, applied in multi-programming devices, electrical digital data processing, instruments, etc., can solve the problems of message processing failure, coverage submission, repeated consumption of data, etc., and achieve the effect of improving accuracy and throughput

Active Publication Date: 2020-06-05
SHANGHAI YOVOLE COMP NETWORK CO LTD
View PDF5 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

However, consumers may fail to process messages due to downtime, power outages, program exceptions, etc. At this time, the consumer application needs to be restarted to read messages from the Broker server again. This will not only cause the problem of repeated consumption of data , it will also cause the sub-thread to repeatedly submit or overwrite the submission of Offset information

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
  • A message processing device and method
  • A message processing device and method
  • A message processing device and method

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0030] The technical solution of the present invention will be described in more detail below with reference to the drawings and embodiments. It should be understood that the specific embodiments described here are only used to explain the present invention, not to limit the present invention.

[0031] like figure 2 As shown, the first Kafka-based message processing device according to the present invention includes a reading module, a backup module, a reporting module and a processing module;

[0032] Among them, the reading module is used to read the message subscribed by the consumer from the server; copy the read message and store it in the backup module, and notify the reporting module;

[0033] The backup module is used to store the messages read by the reading module;

[0034] The reporting module is used to receive the notification from the reading module, report the offset information to the Zookeeper node and notify the processing module;

[0035] The processing ...

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 discloses a message processing device and method, including a reading module, a backup module, a reporting module and a processing module; the reading module is used to read the messages subscribed by consumers from the server; copy the read messages and store them in The backup module and notify the reporting module; the reporting module is used to receive the notification from the reading module, report the offset information, and notify the processing module; the processing module is used to receive the notification from the reporting module, and read the unprocessed information in the backup module message, create multiple sub-threads, and dispatch unprocessed messages in the backup module to each sub-thread; process the dispatched messages through each sub-thread, and store the processing results in the backup module. The present invention also includes a detection module, which is used to detect whether each message in the backup module has been processed each time the consumer restarts. The invention can solve the problems of repeated consumption of data by consumers in the Kafka system, repeated submission or overlay submission of Offset.

Description

technical field [0001] The invention relates to the technical field of computer data processing, in particular to a message processing device and method. Background technique [0002] Kafka is a high-throughput distributed publish-subscribe messaging system. like figure 1 As shown, the existing Kafka-based message processing system includes a message producer cluster composed of multiple message producers (Producer), a Kafka cluster composed of multiple servers (Broker), and multiple consumers (Consumer) Each message producer pushes (push) messages to one or more Broker servers, each Broker server stores messages according to a certain topic (Topic), and each consumer pulls messages to one or more Broker servers Fetch (pull) subscribed messages, and manage the dynamic joining and leaving of Broker server and consumers through the Zookeeper (administrator) node. Messages within the same topic are partitioned and stored on different Broker servers according to a certain key...

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 Patents(China)
IPC IPC(8): H04L12/58H04L29/08G06F9/54
CPCH04L51/04H04L67/1044G06F9/546H04L51/224
Inventor 陈金添
Owner SHANGHAI YOVOLE COMP NETWORK CO LTD