Service bus message processing method, service bus system, electronic equipment and medium

A service bus and message processing technology, applied in the field of communication, can solve the problems of complex relationship and low ductility, and achieve the effect of small size, simple cutting, and conducive to development and maintenance.

Pending Publication Date: 2022-02-08
浙江鸿泉电子科技有限公司
View PDF0 Cites 2 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0002] At present, there are many problems in the internal software, such as complex relationship, close relationship between applications, staggered interfaces, low system maintainability, stability, and low scalability. It is necessary to find a way with unified interface, convenient maintenance, and convenient transplantation, that is, service bus

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
  • Service bus message processing method, service bus system, electronic equipment and medium
  • Service bus message processing method, service bus system, electronic equipment and medium
  • Service bus message processing method, service bus system, electronic equipment and medium

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0025] In order to make the purpose, technical solutions and advantages of the present invention clearer, the technical solutions in the present invention will be clearly and completely described below in conjunction with the accompanying drawings in the present invention. Obviously, the described embodiments are part of the embodiments of the present invention , but not all examples. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without creative efforts fall within the protection scope of the present invention.

[0026] According to the present invention, the service bus includes three parts: message queue, message scheduling unit, and memory pool management. The interaction of messages is as follows:

[0027] Define two services, service A and service B, respectively use (os_error_tservice_register(constchar*name, struct service_ops*ops, Scheduler_t*msg_task, Scheduler_t*console_task, server_mp_cfg*m...

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 service bus message processing method, a service bus system, electronic equipment and a medium. The method comprises the following steps of: under the condition that a service subscribes a message ID (Identity), adding the service registered to a service bus into a message linked list corresponding to the message ID; under the condition that the service publishes the message, finding a corresponding message linked list according to the message ID of the message, taking the service subscribing to the message ID out from the message linked list, transmitting the message to the service; and under the condition that the service publishes the message, searching an unused memory block corresponding to the size of the message in a memory pool, and storing the message. The method is realized by adopting a message queue and memory pool management scheme, message transmission between services is realized with very low expenditure, and the method is simple to cut, convenient to maintain and convenient to transplant.

Description

technical field [0001] The present invention relates to the communication field, and more specifically, relates to a service bus message processing method, a service bus system, electronic equipment and media. Background technique [0002] At present, there are many problems in the internal software, such as complex relationship, close relationship between applications, staggered interfaces, low system maintainability, stability, and low scalability. It is necessary to find a way with unified interface, convenient maintenance, and convenient transplantation, that is, service bus. Contents of the invention [0003] Aiming at the problems in the prior art, the present invention provides a service bus message processing method, a service bus system, electronic equipment and media. [0004] In a first aspect, the present invention provides a service bus message processing method, the method comprising: [0005] In the case of a service subscription message ID, adding the ser...

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): G06F9/50G06F9/54
CPCG06F9/5016G06F9/5022G06F9/546G06F2209/5011
Inventor 侬道祥徐小倩田钦
Owner 浙江鸿泉电子科技有限公司
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