CN114257652B - Request message processing method, device, equipment and readable storage medium - Google Patents
Request message processing method, device, equipment and readable storage medium Download PDFInfo
- Publication number
- CN114257652B CN114257652B CN202111507438.5A CN202111507438A CN114257652B CN 114257652 B CN114257652 B CN 114257652B CN 202111507438 A CN202111507438 A CN 202111507438A CN 114257652 B CN114257652 B CN 114257652B
- Authority
- CN
- China
- Prior art keywords
- processing system
- grid
- request message
- processing
- service
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
- 238000003672 processing method Methods 0.000 title claims abstract description 16
- 238000000034 method Methods 0.000 claims abstract description 51
- 230000008569 process Effects 0.000 claims abstract description 31
- 238000004364 calculation method Methods 0.000 claims description 14
- 238000004590 computer program Methods 0.000 claims description 8
- 230000008439 repair process Effects 0.000 claims description 4
- 230000006870 function Effects 0.000 description 9
- 238000004891 communication Methods 0.000 description 7
- 230000005236 sound signal Effects 0.000 description 4
- 238000010586 diagram Methods 0.000 description 3
- 230000004048 modification Effects 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 230000003287 optical effect Effects 0.000 description 2
- 230000003068 static effect Effects 0.000 description 2
- KLDZYURQCUYZBL-UHFFFAOYSA-N 2-[3-[(2-hydroxyphenyl)methylideneamino]propyliminomethyl]phenol Chemical compound OC1=CC=CC=C1C=NCCCN=CC1=CC=CC=C1O KLDZYURQCUYZBL-UHFFFAOYSA-N 0.000 description 1
- 238000003491 array Methods 0.000 description 1
- 230000009286 beneficial effect Effects 0.000 description 1
- 201000001098 delayed sleep phase syndrome Diseases 0.000 description 1
- 208000033921 delayed sleep phase type circadian rhythm sleep disease Diseases 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 230000006872 improvement Effects 0.000 description 1
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L69/00—Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
- H04L69/22—Parsing or analysis of headers
Landscapes
- Engineering & Computer Science (AREA)
- Computer Security & Cryptography (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Hardware Redundancy (AREA)
Abstract
The invention provides a request message processing method, a device, equipment and a readable storage medium, wherein the method comprises the following steps: acquiring a request message and a double-grid framework processing system, wherein the double-grid framework processing system comprises an outer grid processing system and an inner grid processing system; determining a service treatment scheme corresponding to the request message according to the request message; and obtaining an execution strategy according to the double-grid framework processing system and the service management scheme, and processing the request message according to the execution strategy and the service management scheme to obtain a request message processing result. In the invention, an internal grid processing system is added, and the internal grid processing system and the application program run in one process, and when the internal grid processing system is used for generating the execution strategy, the execution strategy with higher dimension and higher precision can be generated according to the content of the message body of the request message, so that the precision and dimension for processing the request message are improved.
Description
Technical Field
The present invention relates to the field of data processing technologies, and in particular, to a method, an apparatus, a device, and a readable storage medium for processing a request packet.
Background
At present, in the process of processing a request message, a plurality of problems exist in the process of generating a corresponding execution strategy, for example, the generated execution strategy has the problems of low dimensionality, low accuracy and the like.
Disclosure of Invention
The present invention aims to provide a method, a device and a readable storage medium for processing a request message, so as to improve the above problems.
In order to achieve the above purpose, the embodiment of the present application provides the following technical solutions:
in one aspect, an embodiment of the present application provides a method for processing a request packet, where the method includes:
acquiring a request message and a double-grid framework processing system, wherein the double-grid framework processing system comprises an outer grid processing system and an inner grid processing system;
determining a service treatment scheme corresponding to the request message according to the request message;
and obtaining an execution strategy according to the double-grid framework processing system and the service management scheme, and processing the request message according to the execution strategy and the service management scheme to obtain a request message processing result.
Optionally, the obtaining an execution policy according to the dual-grid architecture processing system and the service governance scheme, processing the request message according to the execution policy and the service governance scheme, to obtain a request message processing result, includes:
acquiring a message header contained in the request message and a public field corresponding to the request message based on the external grid processing system;
obtaining a first execution strategy according to the message header, the public field and the service management scheme;
and processing the request message according to the first execution strategy and the service treatment scheme to obtain a request message processing result.
Optionally, the obtaining an execution policy according to the dual-grid architecture processing system and the service governance scheme, processing the request message according to the execution policy and the service governance scheme, to obtain a request message processing result, includes:
acquiring a message body contained in the request message based on the internal grid processing system;
obtaining a second execution strategy according to the message body and the service management scheme;
and processing the request message according to the second execution strategy and the service treatment scheme to obtain a request message processing result.
Optionally, the obtaining an execution policy according to the dual-grid architecture processing system and the service governance scheme includes:
judging whether an external grid processing system in the double grid framework processing system is available or not, and if the external grid processing system is available, obtaining an execution strategy based on the external grid processing system and the service treatment scheme; if not, forwarding the request message to the internal grid processing system;
acquiring a message header contained in the request message and a public field corresponding to the request message based on the internal grid processing system;
and obtaining an execution strategy according to the message header, the public field and the service management scheme.
Optionally, after forwarding the request message data to the internal grid processing system and obtaining the execution policy based on the internal grid processing system and the service management scheme, the method further includes:
sending a control command to a worker, wherein the control command comprises a command for the worker to repair the external grid processing system;
judging whether the external grid processing system in the dual-grid framework processing system is recovered to be normal, if the external grid processing system is recovered to be normal, forwarding the request message which is forwarded from the external grid processing system to the internal grid processing system and is not processed by the internal grid processing system back to the external grid processing system;
and obtaining an execution strategy by using the external grid processing system and the service management scheme.
Optionally, the method for constructing the dual-grid architecture processing system includes:
acquiring a service grid, wherein the service grid is used as an external grid processing system of the double-grid framework processing system, the external grid processing system and an application program are not operated in one process, and the application program is used for processing the request message;
and adding the internal grid processing system based on the service grid to obtain the dual-grid framework processing system, wherein the internal grid processing system and the application program run in the same process.
In a second aspect, an embodiment of the present application provides a request packet processing apparatus, where the apparatus includes an obtaining module, a first calculating module, and a processing module.
The system comprises an acquisition module, a processing module and a processing module, wherein the acquisition module is used for acquiring a request message and a double-grid framework processing system, and the double-grid framework processing system comprises an outer grid processing system and an inner grid processing system;
the first calculation module is used for determining a service treatment scheme corresponding to the request message according to the request message;
and the processing module is used for obtaining an execution strategy according to the double-grid framework processing system and the service treatment scheme, and processing the request message according to the execution strategy and the service treatment scheme to obtain a request message processing result.
Optionally, the processing module includes:
the first acquisition unit is used for acquiring a message header contained in the request message and a public field corresponding to the request message based on the external grid processing system;
the first calculation unit is used for obtaining a first execution strategy according to the message header, the public field and the service management scheme;
and the first processing unit is used for processing the request message according to the first execution strategy and the service treatment scheme to obtain a request message processing result.
Optionally, the processing module includes:
the second acquisition unit is used for acquiring a message body contained in the request message based on the internal grid processing system;
the second calculation unit is used for obtaining a second execution strategy according to the message body and the service management scheme;
and the second processing unit is used for processing the request message according to the second execution strategy and the service treatment scheme to obtain a request message processing result.
Optionally, the processing module includes:
the judging unit is used for judging whether an external grid processing system in the double-grid framework processing system is available, and if the external grid processing system is available, an execution strategy is obtained based on the external grid processing system and the service treatment scheme; if not, forwarding the request message to the internal grid processing system;
the third acquisition unit is used for acquiring a message header contained in the request message and a public field corresponding to the request message based on the internal grid processing system;
and the third calculation unit is used for obtaining an execution strategy according to the message header, the public field and the service management scheme.
Optionally, the apparatus further includes:
the sending module is used for sending control commands to staff, wherein the control commands comprise commands for the staff to maintain the external grid processing system;
the judging module is used for judging whether the outer grid processing system in the double grid framework processing system is recovered to be normal, and if the outer grid processing system is recovered to be normal, forwarding the request message which is forwarded from the outer grid processing system to the inner grid processing system and is not processed by the inner grid processing system back to the outer grid processing system;
and the second calculation module is used for obtaining an execution strategy by using the external grid processing system and the service treatment scheme.
Optionally, the acquiring module includes:
a fourth obtaining unit, configured to obtain a service grid, and use the service grid as an external grid processing system of the dual-grid architecture processing system, where the external grid processing system and an application program are not running in a process, and the application program is configured to process the request packet;
and the adding unit is used for adding the internal grid processing system based on the service grid to obtain the dual-grid framework processing system, and the internal grid processing system and the application program run in the same process.
In a third aspect, an embodiment of the present application provides a request packet processing device, where the device includes a memory and a processor. The memory is used for storing a computer program; the processor is used for implementing the steps of the request message processing method when executing the computer program.
In a fourth aspect, embodiments of the present application provide a readable storage medium having a computer program stored thereon, where the computer program when executed by a processor implements the steps of the request message processing method described above.
The beneficial effects of the invention are as follows:
1. the invention also provides an external grid processing system and an internal grid processing system, when processing the request message, the corresponding grid processing system can be selected for processing according to the requirement of a user, and the application range and the applicability of the embodiment can be improved in this way.
2. In the invention, an internal grid processing system is added, and the internal grid processing system and the application program run in one process, and when the internal grid processing system is used for generating the execution strategy, the execution strategy with higher dimension and higher precision can be generated according to the content of the message body of the request message, so that the precision and dimension for processing the request message are improved.
Additional features and advantages of the invention will be set forth in the description which follows, and in part will be apparent from the description, or may be learned by practice of the embodiments of the invention. The objectives and other advantages of the invention will be realized and attained by the structure particularly pointed out in the written description and claims thereof as well as the appended drawings.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings that are needed in the embodiments will be briefly described below, it being understood that the following drawings only illustrate some embodiments of the present invention and therefore should not be considered as limiting the scope, and other related drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
FIG. 1 is a flow chart of a request message processing method according to an embodiment of the present invention;
FIG. 2 is a schematic diagram of a request message processing apparatus according to an embodiment of the present invention;
fig. 3 is a schematic structural diagram of a request message processing apparatus according to an embodiment of the present invention.
Detailed Description
For the purpose of making the objects, technical solutions and advantages of the embodiments of the present invention more apparent, the technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention, and it is apparent that the described embodiments are some embodiments of the present invention, but not all embodiments of the present invention. The components of the embodiments of the present invention generally described and illustrated in the figures herein may be arranged and designed in a wide variety of different configurations. Thus, the following detailed description of the embodiments of the invention, as presented in the figures, is not intended to limit the scope of the invention, as claimed, but is merely representative of selected embodiments of the invention. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
It should be noted that: like reference numerals or letters denote like items in the following figures, and thus once an item is defined in one figure, no further definition or explanation thereof is necessary in the following figures. Meanwhile, in the description of the present invention, the terms "first", "second", and the like are used only to distinguish the description, and are not to be construed as indicating or implying relative importance.
Example 1
As shown in fig. 1, the present embodiment provides a request message processing method, which includes step S1, step S2, and step S3.
Step S1, acquiring a request message and a double-grid framework processing system, wherein the double-grid framework processing system comprises an outer grid processing system and an inner grid processing system;
s2, determining a service treatment scheme corresponding to the request message according to the request message;
and step S3, obtaining an execution strategy according to the double-grid framework processing system and the service treatment scheme, and processing the request message according to the execution strategy and the service treatment scheme to obtain a request message processing result.
In this embodiment, the dual-grid architecture processing system is built based on the existing service grid, and the dual-grid architecture processing system in this embodiment includes a service grid, that is, an external grid processing system, where the service grid and an application program are not running in one process, and the service grid may generate a corresponding execution policy according to a common field (for example, an IP address of a request message) corresponding to a message header and the request message, but the dimension and accuracy of the execution policy are not very high, so in this embodiment, an internal grid processing system is further added, and the internal grid processing system and the application program run in one process, so when the internal grid processing system is utilized to generate the execution policy with higher dimension and higher accuracy according to the content of a message body of the request message (for example, a user ID, a mobile phone number, etc. corresponding to the request message), thereby further improving the accuracy and dimension of processing the request message.
In this embodiment, an external grid processing system and an internal grid processing system are provided at the same time, when a request message is processed, a corresponding grid processing system can be selected for processing according to a user's requirement, and in this way, the application range and applicability of this embodiment can be improved.
Meanwhile, step S2 in this embodiment is implemented by conventional technical means at present.
In a specific embodiment of the disclosure, the step S3 may further include a step S31, a step S32, and a step S33.
Step S31, acquiring a message header contained in the request message and a public field corresponding to the request message based on the external grid processing system;
step S32, a first execution strategy is obtained according to the message header, the public field and the service management scheme;
and step S33, processing the request message according to the first execution strategy and the service management scheme to obtain a request message processing result.
In a specific embodiment of the disclosure, the step S3 may further include a step S34, a step S35, and a step S36.
Step S34, acquiring a message body contained in the request message based on the internal grid processing system;
step S35, a second execution strategy is obtained according to the message body and the service management scheme;
and step S36, processing the request message according to the second execution strategy and the service management scheme to obtain a request message processing result.
In step S31-step S36, the user may also perform customization, for example, the user may select an external grid processing system or an internal grid processing system to process the request message, and the specific user may also input selection information, where the selection information includes information that the external grid processing system or the internal grid processing system is selected to process the request message, and then select a corresponding grid processing system to process according to the selection information, so that humanization of the method may be reflected in this way.
In a specific embodiment of the disclosure, the step S3 may further include a step S37, a step S38, and a step S39.
Step S37, judging whether an external grid processing system in the double grid framework processing system is available, and if the external grid processing system is available, obtaining an execution strategy based on the external grid processing system and the service treatment scheme; if not, forwarding the request message to the internal grid processing system;
step S38, acquiring a message header contained in the request message and a public field corresponding to the request message based on the internal grid processing system;
and step S39, obtaining an execution strategy according to the message header, the public field and the service management scheme.
In this embodiment, if the current external grid processing system cannot be used, the request message received by the external grid processing system is forwarded to the internal grid processing system, and is processed by the internal grid processing system, so that each request message can be ensured to be processed, and the stability of the system is improved.
In this embodiment, when a request packet received by an external network processing system is forwarded to an internal network processing system, the function of the external network processing system included in the internal network processing system is started at this time, that is, when the internal network processing system is initially designed, the internal network processing system has a first function and a second function, where the first function is a function capable of implementing the external network processing system, the second function is a function capable of implementing the internal network processing system, and when the external network processing system cannot be used, the function of the external network processing system included in the internal network processing system is started, so as to obtain a packet header included in the request packet and a common field corresponding to the request packet.
In addition, in the present embodiment, the external grid processing system is separately designed because the external grid processing system is independent of the operation of the application program, so that it can perform upgrading and function release independently without any influence on the application program.
In a specific embodiment of the disclosure, the method may further include step S4, step S5, and step S6.
Step S4, a control command is sent to a worker, wherein the control command comprises a command for the worker to maintain the external grid processing system;
step S5, judging whether the outer grid processing system in the double grid framework processing system is recovered to be normal, if the outer grid processing system is recovered to be normal, forwarding the request message which is forwarded from the outer grid processing system to the inner grid processing system and is not processed by the inner grid processing system back to the outer grid processing system;
and S6, obtaining an execution strategy by using the external grid processing system and the service management scheme.
In this embodiment, by sending a control command to the staff, the relevant staff can timely know that the external grid system has a problem, and then timely process the external grid system, so that the stability of the whole system is ensured. In addition, in the embodiment, the method can also remind the relevant staff by sending a short message or a mail to the relevant staff, so that the repair of the external grid processing system can be completed in time.
In a specific embodiment of the disclosure, the step S1 may further include a step S11 and a step S12.
Step S11, acquiring a service grid, wherein the service grid is used as an external grid processing system of the double-grid framework processing system, the external grid processing system and an application program are not operated in one process, and the application program is used for processing the request message;
and step S12, adding the internal grid processing system based on the service grid to obtain the dual-grid framework processing system, wherein the internal grid processing system and the application program run in the same process.
Example 2
As shown in fig. 2, the present embodiment provides a request message processing apparatus, which includes an acquisition module 701, a first calculation module 702, and a processing module 703.
An obtaining module 701, configured to obtain a request packet and a dual-grid architecture processing system, where the dual-grid architecture processing system includes an external grid processing system and an internal grid processing system;
a first calculation module 702, configured to determine, according to the request packet, a service management scheme corresponding to the request packet;
and the processing module 703 is configured to obtain an execution policy according to the dual-grid architecture processing system and the service management scheme, and process the request message according to the execution policy and the service management scheme to obtain a request message processing result.
In this embodiment, the dual-grid architecture processing system is built based on the existing service grid, and the dual-grid architecture processing system in this embodiment includes a service grid, that is, an external grid processing system, where the service grid and an application program are not running in one process, and the service grid may generate a corresponding execution policy according to a common field (for example, an IP address of a request message) corresponding to a message header and the request message, but the dimension and accuracy of the execution policy are not very high, so in this embodiment, an internal grid processing system is further added, and the internal grid processing system and the application program run in one process, so when the internal grid processing system is utilized to generate the execution policy with higher dimension and higher accuracy according to the content of a message body of the request message (for example, a user ID, a mobile phone number, etc. corresponding to the request message), thereby further improving the accuracy and dimension of processing the request message.
In this embodiment, an external grid processing system and an internal grid processing system are provided at the same time, when a request message is processed, a corresponding grid processing system can be selected for processing according to a user's requirement, and in this way, the application range and applicability of this embodiment can be improved.
In a specific embodiment of the disclosure, the processing module 703 further includes a first obtaining unit 7031, a first calculating unit 7032, and a first processing unit 7033.
A first obtaining unit 7031, configured to obtain, based on the external grid processing system, a header included in the request packet and a common field corresponding to the request packet;
a first calculating unit 7032, configured to obtain a first execution policy according to the header, the common field, and the service management scheme;
the first processing unit 7033 is configured to process the request packet according to the first execution policy and the service management scheme, so as to obtain a request packet processing result.
In a specific embodiment of the disclosure, the processing module 703 further includes a second acquisition unit 7034, a second calculation unit 7035, and a second processing unit 7036.
A second obtaining unit 7034, configured to obtain a message body included in the request message based on the internal grid processing system;
a second calculating unit 7035, configured to obtain a second execution policy according to the message body and the service management scheme;
and a second processing unit 7036, configured to process the request packet according to the second execution policy and the service management scheme, so as to obtain a request packet processing result.
In a specific embodiment of the disclosure, the processing module 703 further includes a determining unit 7037, a third acquiring unit 7038, and a third calculating unit 7039.
A determining unit 7037, configured to determine whether an external grid processing system in the dual-grid architecture processing system is available, and obtain an execution policy based on the external grid processing system and the service management scheme if the external grid processing system is available; if not, forwarding the request message to the internal grid processing system;
a third obtaining unit 7038, configured to obtain, based on the internal grid processing system, a header included in the request packet and a common field corresponding to the request packet;
a third calculating unit 7039, configured to obtain an execution policy according to the header, the common field, and the service management scheme.
In a specific embodiment of the disclosure, the apparatus further includes a sending module 704, a judging module 705, and a second calculating module 706.
A sending module 704, configured to send a control command to a worker, where the control command includes a command for the worker to repair the external grid processing system;
the judging module 705 is configured to judge whether the external grid processing system in the dual-grid architecture processing system is restored, and if the external grid processing system is restored, forward the request message forwarded from the external grid processing system to the internal grid processing system, and forward the request message that is not processed by the internal grid processing system back to the external grid processing system;
a second calculation module 706, configured to obtain an execution policy using the external grid processing system and the service governance scheme.
In a specific embodiment of the disclosure, the obtaining module 701 further includes a fourth obtaining unit 7011 and an adding unit 7012.
A fourth obtaining unit 7011, configured to obtain a service grid, and use the service grid as an external grid processing system of the dual-grid architecture processing system, where the external grid processing system and an application program are not running in a process, and the application program is configured to process the request packet;
the adding unit 7012 is configured to add the internal grid processing system based on the service grid, so as to obtain the dual-grid architecture processing system, where the internal grid processing system and the application program run in a process.
It should be noted that, regarding the apparatus in the above embodiments, the specific manner in which the respective modules perform the operations has been described in detail in the embodiments regarding the method, and will not be described in detail herein.
Example 3
Corresponding to the above method embodiments, the embodiments of the present disclosure further provide a request message processing apparatus, where the request message processing apparatus described below and the request message processing method described above may be referred to correspondingly to each other.
Fig. 3 is a block diagram of a request message processing device 800, according to an example embodiment. As shown in fig. 3, the request message processing apparatus 800 may include: a processor 801, a memory 802. The request message processing device 800 may also include one or more of a multimedia component 803, an input/output (I/O) interface 804, and a communication component 805.
The processor 801 is configured to control the overall operation of the request message processing apparatus 800 to perform all or part of the steps in the request message processing method described above. The memory 802 is used to store various types of data to support the operation of the request message processing device 800, which may include, for example, instructions for any application or method operating on the request message processing device 800, as well as application related data, such as contact data, messages, pictures, audio, video, and the like. The Memory 802 may be implemented by any type or combination of volatile or non-volatile Memory devices, such as static random access Memory (Static Random Access Memory, SRAM for short), electrically erasable programmable Read-Only Memory (Electrically Erasable Programmable Read-Only Memory, EEPROM for short), erasable programmable Read-Only Memory (Erasable Programmable Read-Only Memory, EPROM for short), programmable Read-Only Memory (Programmable Read-Only Memory, PROM for short), read-Only Memory (ROM for short), magnetic Memory, flash Memory, magnetic disk, or optical disk. The multimedia component 803 may include a screen and an audio component. Wherein the screen may be, for example, a touch screen, the audio component being for outputting and/or inputting audio signals. For example, the audio component may include a microphone for receiving external audio signals. The received audio signals may be further stored in the memory 802 or transmitted through the communication component 805. The audio assembly further comprises at least one speaker for outputting audio signals. The I/O interface 804 provides an interface between the processor 801 and other interface modules, which may be a keyboard, mouse, buttons, etc. These buttons may be virtual buttons or physical buttons. The communication component 805 is configured to perform wired or wireless communication between the request message processing apparatus 800 and other apparatuses. Wireless communication, such as Wi-Fi, bluetooth, near field communication (Near FieldCommunication, NFC for short), 2G, 3G or 4G, or a combination of one or more thereof, the respective communication component 805 may thus comprise: wi-Fi module, bluetooth module, NFC module.
In an exemplary embodiment, the request message processing apparatus 800 may be implemented by one or more application specific integrated circuits (Application Specific Integrated Circuit, abbreviated as ASIC), digital signal processors (DigitalSignal Processor, abbreviated as DSP), digital signal processing apparatus (Digital Signal Processing Device, abbreviated as DSPD), programmable logic devices (Programmable Logic Device, abbreviated as PLD), field programmable gate arrays (Field Programmable Gate Array, abbreviated as FPGA), controllers, microcontrollers, microprocessors, or other electronic components for performing the request message processing methods described above.
In another exemplary embodiment, a computer readable storage medium is also provided, comprising program instructions which, when executed by a processor, implement the steps of the request message processing method described above. For example, the computer readable storage medium may be the memory 802 described above including program instructions executable by the processor 801 of the request message processing apparatus 800 to perform the request message processing method described above.
Example 4
Corresponding to the above method embodiments, the present disclosure further provides a readable storage medium, where a readable storage medium described below and a request message processing method described above may be referred to correspondingly.
A readable storage medium having stored thereon a computer program which, when executed by a processor, implements the steps of the request message processing method of the above method embodiment.
The readable storage medium may be a usb disk, a removable hard disk, a Read-Only Memory (ROM), a random access Memory (Random Access Memory, RAM), a magnetic disk, or an optical disk, and the like.
The above description is only of the preferred embodiments of the present invention and is not intended to limit the present invention, but various modifications and variations can be made to the present invention by those skilled in the art. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention should be included in the protection scope of the present invention.
Claims (8)
1. A method for processing a request message, comprising:
acquiring a request message and a double-grid framework processing system, wherein the double-grid framework processing system comprises an outer grid processing system and an inner grid processing system;
determining a service treatment scheme corresponding to the request message according to the request message;
obtaining an execution strategy according to the double-grid framework processing system and the service treatment scheme, and processing the request message according to the execution strategy and the service treatment scheme to obtain a request message processing result;
the processing system according to the dual-grid architecture and the service governance scheme obtain an execution strategy, process the request message according to the execution strategy and the service governance scheme to obtain a request message processing result, and comprise the following steps:
acquiring a message header contained in the request message and a public field corresponding to the request message based on the external grid processing system;
obtaining a first execution strategy according to the message header, the public field and the service management scheme;
processing the request message according to the first execution strategy and the service treatment scheme to obtain a request message processing result;
acquiring a message body contained in the request message based on the internal grid processing system;
obtaining a second execution strategy according to the message body and the service management scheme;
processing the request message according to the second execution strategy and the service treatment scheme to obtain a request message processing result;
the method for constructing the double-grid framework processing system comprises the following steps:
acquiring a service grid, wherein the service grid is used as an external grid processing system of the double-grid framework processing system, the external grid processing system and an application program are not operated in one process, and the application program is used for processing the request message;
and adding the internal grid processing system based on the service grid to obtain the dual-grid framework processing system, wherein the internal grid processing system and the application program run in the same process.
2. The method for processing a request message according to claim 1, wherein the obtaining an execution policy according to the dual-grid architecture processing system and the service governance scheme includes:
judging whether an external grid processing system in the double grid framework processing system is available or not, and if the external grid processing system is available, obtaining an execution strategy based on the external grid processing system and the service treatment scheme; if not, forwarding the request message to the internal grid processing system;
acquiring a message header contained in the request message and a public field corresponding to the request message based on the internal grid processing system;
and obtaining an execution strategy according to the message header, the public field and the service management scheme.
3. The method for processing the request message according to claim 2, wherein after forwarding the request message data to the internal grid processing system and obtaining the execution policy based on the internal grid processing system and the service management scheme, the method further comprises:
sending a control command to a worker, wherein the control command comprises a command for the worker to repair the external grid processing system;
judging whether the external grid processing system in the dual-grid framework processing system is recovered to be normal, if the external grid processing system is recovered to be normal, forwarding the request message which is forwarded from the external grid processing system to the internal grid processing system and is not processed by the internal grid processing system back to the external grid processing system;
and obtaining an execution strategy by using the external grid processing system and the service management scheme.
4. A request message processing apparatus, comprising:
the system comprises an acquisition module, a processing module and a processing module, wherein the acquisition module is used for acquiring a request message and a double-grid framework processing system, and the double-grid framework processing system comprises an outer grid processing system and an inner grid processing system;
the first calculation module is used for determining a service treatment scheme corresponding to the request message according to the request message;
the processing module is used for obtaining an execution strategy according to the double-grid framework processing system and the service treatment scheme, and processing the request message according to the execution strategy and the service treatment scheme to obtain a request message processing result;
the acquisition module comprises:
a fourth obtaining unit, configured to obtain a service grid, and use the service grid as an external grid processing system of the dual-grid architecture processing system, where the external grid processing system and an application program are not running in a process, and the application program is configured to process the request packet;
the adding unit is used for adding the internal grid processing system based on the service grid to obtain the dual-grid framework processing system, and the internal grid processing system and the application program run in the same process;
the processing module comprises:
the first acquisition unit is used for acquiring a message header contained in the request message and a public field corresponding to the request message based on the external grid processing system;
the first calculation unit is used for obtaining a first execution strategy according to the message header, the public field and the service management scheme;
the first processing unit is used for processing the request message according to the first execution strategy and the service treatment scheme to obtain a request message processing result;
the second acquisition unit is used for acquiring a message body contained in the request message based on the internal grid processing system;
the second calculation unit is used for obtaining a second execution strategy according to the message body and the service management scheme;
and the second processing unit is used for processing the request message according to the second execution strategy and the service treatment scheme to obtain a request message processing result.
5. The request message processing apparatus of claim 4, wherein the processing module comprises:
the judging unit is used for judging whether an external grid processing system in the double-grid framework processing system is available, and if the external grid processing system is available, an execution strategy is obtained based on the external grid processing system and the service treatment scheme; if not, forwarding the request message to the internal grid processing system;
the third acquisition unit is used for acquiring a message header contained in the request message and a public field corresponding to the request message based on the internal grid processing system;
and the third calculation unit is used for obtaining an execution strategy according to the message header, the public field and the service management scheme.
6. The request message processing apparatus of claim 5, wherein the apparatus further comprises:
the sending module is used for sending control commands to staff, wherein the control commands comprise commands for the staff to maintain the external grid processing system;
the judging module is used for judging whether the outer grid processing system in the double grid framework processing system is recovered to be normal, and if the outer grid processing system is recovered to be normal, forwarding the request message which is forwarded from the outer grid processing system to the inner grid processing system and is not processed by the inner grid processing system back to the outer grid processing system;
and the second calculation module is used for obtaining an execution strategy by using the external grid processing system and the service treatment scheme.
7. A request message processing apparatus, comprising:
a memory for storing a computer program;
a processor for implementing the steps of the request message processing method according to any one of claims 1 to 3 when executing said computer program.
8. A readable storage medium, characterized by: the readable storage medium has stored thereon a computer program which, when executed by a processor, implements the steps of the request message processing method according to any of claims 1 to 3.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202111507438.5A CN114257652B (en) | 2021-12-10 | 2021-12-10 | Request message processing method, device, equipment and readable storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202111507438.5A CN114257652B (en) | 2021-12-10 | 2021-12-10 | Request message processing method, device, equipment and readable storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN114257652A CN114257652A (en) | 2022-03-29 |
CN114257652B true CN114257652B (en) | 2024-01-30 |
Family
ID=80794696
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202111507438.5A Active CN114257652B (en) | 2021-12-10 | 2021-12-10 | Request message processing method, device, equipment and readable storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN114257652B (en) |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101043478A (en) * | 2007-04-20 | 2007-09-26 | 北京航空航天大学 | Service gateway and method for realizing message safe process |
CN104423982A (en) * | 2013-08-27 | 2015-03-18 | 阿里巴巴集团控股有限公司 | Request processing method and device |
CN111767157A (en) * | 2019-08-07 | 2020-10-13 | 北京京东尚科信息技术有限公司 | Request processing method and device based on service grid |
CN112350890A (en) * | 2020-10-27 | 2021-02-09 | 广州虎牙科技有限公司 | Message processing method, device, server and storage medium |
-
2021
- 2021-12-10 CN CN202111507438.5A patent/CN114257652B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101043478A (en) * | 2007-04-20 | 2007-09-26 | 北京航空航天大学 | Service gateway and method for realizing message safe process |
CN104423982A (en) * | 2013-08-27 | 2015-03-18 | 阿里巴巴集团控股有限公司 | Request processing method and device |
CN111767157A (en) * | 2019-08-07 | 2020-10-13 | 北京京东尚科信息技术有限公司 | Request processing method and device based on service grid |
CN112350890A (en) * | 2020-10-27 | 2021-02-09 | 广州虎牙科技有限公司 | Message processing method, device, server and storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN114257652A (en) | 2022-03-29 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
AU2012348048B2 (en) | Contextual and location awareness for device interaction | |
CN109618176B (en) | Processing method, equipment and storage medium for live broadcast service | |
CN113365106B (en) | Multimedia resource generation method and device, electronic equipment and storage medium | |
CN111143723A (en) | Page jump method and device, electronic equipment and storage medium | |
CN111782470B (en) | Distributed container log data processing method and device | |
CN111694660B (en) | Cloud mobile phone data sending method, computer device and storage medium | |
CN110297671A (en) | Client plug-in implementation method, device, computer equipment and storage medium | |
CN108984623B (en) | Data query condition generation method and device, storage medium and electronic equipment | |
CN114169536A (en) | Data management and control method and related device | |
CN115794641A (en) | Method, device and equipment for making number based on business process and storage medium | |
CN115688715A (en) | Report generation method and device and computer readable medium | |
CN114416883A (en) | Block chain light node data synchronization method, device, equipment and readable storage medium | |
CN114257652B (en) | Request message processing method, device, equipment and readable storage medium | |
CN110213367B (en) | Interactive information notification method, device, equipment and computer readable storage medium | |
CN115373729B (en) | Method and device for processing auditing node | |
CN109656995B (en) | Data export method, device, terminal, server and storage medium | |
CN112988482B (en) | Server operation management method, device, terminal, server and storage medium | |
US8386452B2 (en) | Data combination system and data combination method | |
CN114168463A (en) | Method and device for switching project environment, storage medium and electronic equipment | |
CN112650763A (en) | Configuration method of product quota, related equipment and storage medium | |
CN109274808B (en) | Address book information management method and system, electronic equipment and storage medium | |
CN113079086A (en) | Message transmitting method, message transmitting device, electronic device, and storage medium | |
CN113852686B (en) | Block chain network communication method, device, equipment and readable storage medium | |
CN117879808A (en) | Automatic distribution system and distribution method for serial numbers and secret keys of Internet of things equipment | |
CN111026650B (en) | Method and device for testing software, storage medium and electronic equipment |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |