CN114218317B - Progress information management and control method, micro-service device, electronic equipment and storage medium - Google Patents

Progress information management and control method, micro-service device, electronic equipment and storage medium Download PDF

Info

Publication number
CN114218317B
CN114218317B CN202210148855.3A CN202210148855A CN114218317B CN 114218317 B CN114218317 B CN 114218317B CN 202210148855 A CN202210148855 A CN 202210148855A CN 114218317 B CN114218317 B CN 114218317B
Authority
CN
China
Prior art keywords
progress information
memory database
processing progress
processing
micro
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
Application number
CN202210148855.3A
Other languages
Chinese (zh)
Other versions
CN114218317A (en
Inventor
徐如庆
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Suzhou Inspur Intelligent Technology Co Ltd
Original Assignee
Suzhou Inspur Intelligent Technology Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Suzhou Inspur Intelligent Technology Co Ltd filed Critical Suzhou Inspur Intelligent Technology Co Ltd
Priority to CN202210148855.3A priority Critical patent/CN114218317B/en
Publication of CN114218317A publication Critical patent/CN114218317A/en
Application granted granted Critical
Publication of CN114218317B publication Critical patent/CN114218317B/en
Priority to PCT/CN2022/140743 priority patent/WO2023155591A1/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/25Integrating or interfacing systems involving database management systems
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/24Querying
    • G06F16/245Query processing
    • G06F16/2457Query processing with adaptation to user needs

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Data Mining & Analysis (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Computational Linguistics (AREA)
  • Stored Programmes (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The invention provides a progress information control method and a related device, wherein the method is applied to a micro-service device and comprises the following steps: when the starting is detected, reading the pre-stored configuration information of the memory database, and establishing connection with the memory database by using the configuration information of the memory database; when an operation request sent by a front-end device is received, processing the operation request, and storing corresponding first processing progress information to a memory database; when a progress query request sent by a front-end device is received, querying second processing progress information corresponding to the progress query request from a memory database, and sending the second processing progress information to the front-end device; the second processing progress information is the first processing progress information or the processing progress information generated by other micro service devices; each micro-service device can store the progress information of the micro-service device to the memory database, and meanwhile, other micro-service devices can be helped to inquire the corresponding progress information in the database, so that the reliability of the overall service of a plurality of copies of the micro-service can be effectively improved.

Description

Progress information management and control method, micro-service device, electronic equipment and storage medium
Technical Field
The present invention relates to the field of micro services, and in particular, to a progress information management and control method, a micro service device, a progress information management and control system, an electronic device, and a computer-readable storage medium.
Background
In order to ensure stable service, the micro service device generally provides service to the outside in a multi-copy form, that is, a plurality of micro service devices run the same service content and provide service to the outside in a unified manner. In the related art, the operation content issued by the front-end device is usually processed by any micro-service device in the multi-copy mode, and the micro-service device stores the corresponding processing progress information in the local memory, so that the front-end device can know the details of the processing progress in time. However, in practical applications, each micro service device may be in an inaccessible state such as down, and thus the front end cannot acquire and output the processing progress information in the abnormal micro service device, which is likely to bring a bad use experience to users.
Disclosure of Invention
The invention aims to provide a progress information control method, a micro-service device, a progress information control system, electronic equipment and a computer readable storage medium, which can improve the reliability of the overall service of a plurality of copies of micro-services by saving progress information to a memory database.
In order to solve the technical problem, the invention provides a progress information control method, which is applied to a micro-service device and comprises the following steps:
when the startup is detected, reading pre-stored memory database configuration information, and establishing connection with a memory database by using the memory database configuration information;
when an operation request sent by a front-end device is received, processing the operation request, and storing corresponding first processing progress information to a memory database;
when a progress query request sent by the front-end device is received, querying second processing progress information corresponding to the progress query request from the memory database, and sending the second processing progress information to the front-end device; the second processing progress information is the first processing progress information or processing progress information generated by other micro service devices.
Optionally, the storing the corresponding first processing progress information to the memory database includes:
extracting a first operation number in the operation request, and storing the first operation number and the first processing progress information to the memory database;
correspondingly, the querying the memory database for the second processing progress information corresponding to the progress query request includes:
and extracting a second operation number in the progress query request, and querying the second processing progress information from the memory database according to the second operation number.
Optionally, the storing the first operation number and the first processing progress information to the memory database includes:
and storing the first operation number and the first processing progress information to the memory database through a preset storage interface.
Optionally, the querying, according to the second operation number, the second processing progress information from the in-memory database includes:
sending the second operation number to the memory database through a preset query interface so that the memory database queries the second processing progress information according to the second operation number and returns the second processing progress information;
and receiving the second progress information.
Optionally, the in-memory database is Redis.
Optionally, the storing the corresponding first processing progress information to the memory database includes:
sending the first processing progress information to a Redis cluster service device so that the Redis cluster service device stores the first processing progress information into a Redis cluster node;
correspondingly, the querying the memory database for the second processing progress information corresponding to the progress query request includes:
querying the Redis cluster service device for the second processing progress information so that the Redis cluster service device extracts the second processing progress information from the Redis cluster node and returns the second processing progress information;
and receiving the second processing progress information.
The present invention also provides a microservice apparatus, comprising:
the database connection module is used for reading prestored memory database configuration information when the startup is detected, and establishing connection with the memory database by using the memory database configuration information;
the operation processing module is used for processing the operation request and storing corresponding first processing progress information to the memory database when receiving the operation request sent by the front-end device;
the progress query module is used for querying second processing progress information corresponding to the progress query request to the memory database when receiving the progress query request sent by the front-end device and sending the second processing progress information to the front-end device; the second processing progress information is the first processing progress information or processing progress information generated by other micro service devices.
The invention also provides a progress information management and control system, which comprises: a front-end device, a micro-service device and a memory database, wherein,
the front-end device is used for sending an operation request to the micro-service device; sending a progress query request to the micro-service device and receiving processing progress information returned by the micro-service device;
the micro-service device is used for executing the progress information management and control method;
and the memory database is used for storing the processing progress information sent by the micro-service device.
The present invention also provides an electronic device comprising:
a memory for storing a computer program;
and the processor is used for realizing the progress information management and control method when executing the computer program.
The invention also provides a computer-readable storage medium, wherein computer-executable instructions are stored in the computer-readable storage medium, and when the computer-executable instructions are loaded and executed by a processor, the method for managing and controlling the progress information is realized.
The invention provides a progress information control method, which is applied to a micro-service device and comprises the following steps: when the startup is detected, reading pre-stored memory database configuration information, and establishing connection with a memory database by using the memory database configuration information; when an operation request sent by a front-end device is received, processing the operation request, and storing corresponding first processing progress information to a memory database; when a progress query request sent by the front-end device is received, querying second processing progress information corresponding to the progress query request from the memory database, and sending the second processing progress information to the front-end device; the second processing progress information is the first processing progress information or processing progress information generated by other micro service devices.
Therefore, when the micro-service device processes the operation request sent by the front-end device, the corresponding processing progress information is stored in the memory database instead of the local memory, so that the processing progress information can be ensured to be properly stored in the high-performance memory database, the writing and extracting efficiency of the processing progress information is ensured, the information can be ensured to be extracted from the memory database, and the condition that the cached processing progress information cannot be extracted when the micro-service device cannot access the memory database can be avoided; in addition, when receiving a progress query request sent by the front-end equipment, the micro-service device can query corresponding second processing progress information in the internal database, and the information can be the first processing progress information generated by the micro-service device and can also be the processing progress information generated by other micro-service devices. The invention also provides a micro-service device, electronic equipment and a storage medium.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the provided drawings without creative efforts.
FIG. 1 is a diagram illustrating an update processing progress value of a microservice system according to an embodiment of the present invention;
fig. 2 is a flowchart of a method for managing and controlling progress information according to an embodiment of the present invention;
fig. 3 is a flowchart of another method for managing and controlling progress information according to an embodiment of the present invention;
fig. 4 is a block diagram of a micro server device according to an embodiment of the present invention;
fig. 5 is a block diagram of a progress information management and control system according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, but not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
In the related art, the operation content issued by the front-end device is usually processed by any micro-service device in the multi-copy mode, and the micro-service device stores the corresponding processing progress information in the local memory, so that the front-end device can know the details of the processing progress in time. However, in practical applications, each micro service device may be in an inaccessible state such as down, and thus the front end cannot acquire and output the processing progress information in the abnormal micro service device, which is likely to bring a bad use experience to users. For example, referring to fig. 1, fig. 1 is a schematic diagram of updating a processing progress value of a micro service system in the related art according to an embodiment of the present invention, in a case of multiple copies, a file operation randomly accesses one of the micro services A, B, C, for example, if the file operation is currently performed on the micro service B, the progress value of the file is stored on the micro service B, but if the micro service B fails, the corresponding progress value cannot be read, and the progress value is ignored, which affects normal use of the service system. In view of this, the present invention provides a progress information management and control method, which can improve the reliability of the overall service of multiple copies of microservice by storing the progress information in the internal memory database. Referring to fig. 2, fig. 2 is a flowchart of a method for managing and controlling progress information according to an embodiment of the present invention, where the method is applied to a micro-service device, and may include:
s101, when starting is detected, reading pre-stored configuration information of the memory database, and establishing connection with the memory database by using the configuration information of the memory database.
The reason for adopting the memory database in the embodiment of the invention is that the writing and query of the processing progress information generally relate to high-frequency data reading and writing, the common database is generally developed based on a hard disk and is difficult to cope with high-frequency reading and writing operations, and the memory database is developed based on the memory and can utilize the advantage that the memory is good at processing high-frequency reading and writing, so that the writing and query efficiency of the processing progress information is improved, and further the overall service efficiency of the micro-service system is improved. It should be noted that the embodiment of the present invention does not limit the specific memory database, and the selection may be made by referring to the related technology of the memory database and combining the actual application requirements. In a possible case, considering that Redis is a lightweight memory database, the deployment is easy and the performance is high, and therefore Redis may be selected as the memory database in the embodiment of the present invention. The embodiment of the invention does not limit the deployment process of Redis, and can refer to the relevant technology of Redis. Of course, in order to further improve the performance and reliability of the database, a Redis cluster may also be used, and the setting may be specifically performed according to the actual application requirements.
Further, it will be appreciated that to ensure that the microservice device is able to perform effective data interaction with the in-memory database, it is necessary to ensure that an effective data connection is established between the device and the in-memory database. In the embodiment of the present invention, the configuration information of the memory database is information for establishing data connection with the memory database, and is preset in the micro service device, so that the micro service device can automatically read the configuration information when being started, and establish connection with the memory database according to specific information content. It should be noted that, the embodiment of the present invention does not limit the specific content of the configuration information of the memory database, nor the specific process of establishing a connection with the memory database by using the configuration information, and may refer to the related technology of the memory database. Of course, if the adopted memory database is Redis, reference may also be made to the relevant technology of Redis.
And S102, processing the operation request when receiving the operation request sent by the front-end device, and storing the corresponding first processing progress information to the memory database.
In the related art, the micro service device usually stores the processing progress of the operation request locally, which results in that when the micro service device goes down, the processing progress information inside the micro service device cannot be acquired by the front end device, and further the use experience of the micro service user is affected. In the embodiment of the invention, the micro-service device stores the processing progress information in the memory database, and the front-end equipment can extract specific processing progress information from the database, so that the condition that the front-end equipment cannot acquire the processing progress information can be avoided, and the use experience of a micro-service user can be improved. It should be noted that, the embodiment of the present invention does not limit the operation content specifically required to be processed by the microserver device, and does not limit the operation request corresponding to the operation content, and the operation content may be set according to the actual business requirement.
Furthermore, in order to improve the management and control efficiency of the processing progress information in the memory database, corresponding marking information can be set for the processing progress information, and further, the processing progress information can be rapidly inquired according to the marking information. The embodiment of the present invention does not limit which object the flag information is set by, and may be set by, for example, a microserver device or a front-end device. Considering that query requests are typically initiated by a head-end device, this flag information may be set by the head-end device in order to initiate a query. Specifically, the front-end device may set an operation number for each operation request, and the micro service device may store the operation number and the corresponding processing progress information in the memory database together, so as to query the processing progress information according to the operation number in the following.
In a possible case, saving the corresponding first processing progress information to the in-memory database may include:
step 11: and extracting a first operation number in the operation request, and storing the first operation number and the first processing progress information to the memory database.
Furthermore, it should be noted that, in the embodiment of the present invention, the specific interaction process between the micro service device and the memory database during the process progress saving is not limited, and the related technology of the memory database may be referred to. In order to improve the storage efficiency, the micro-service device can be provided with a special storage interface for specially processing the operation of writing the processing progress information into the memory database. It should be noted that the embodiment of the present invention does not limit the specific form of the storage interface, and can refer to the related technology of the microservice and be set according to the actual application requirement.
In a possible case, saving the first operation number and the first processing progress information to the in-memory database may include:
step 21: and storing the first operation number and the first processing progress information to a memory database through a preset storage interface.
S103, when a progress query request sent by the front-end device is received, querying second processing progress information corresponding to the progress query request from the memory database, and sending the second processing progress information to the front-end device; the second processing progress information is the first processing progress information or the processing progress information generated by other micro service devices.
In order to further improve the overall service reliability of the micro-service system, the micro-service device in the embodiment of the invention can not only inquire the processing progress information related to the micro-service device, but also can inquire the processing progress information for other micro-service devices. In other words, the progress query request sent by the front-end device can be processed by any micro-service device in the micro-service system, and the efficiency and reliability of the micro-service system in processing the progress query can be effectively improved.
It can be understood that, if the front-end device has set a corresponding operation number for each operation request, when performing the progress query, the front-end device may also write the operation number to be queried into the progress query request, so that the micro-service device performs the relevant query according to the operation number included in the request received by the micro-service device.
In a possible case, querying the memory database for the second processing progress information corresponding to the progress query request may include:
step 31: and extracting a second operation number in the progress inquiry request, and inquiring second processing progress information from the memory database according to the second operation number.
Furthermore, it should be noted that the embodiment of the present invention does not limit the specific interaction process between the microserver and the in-memory database when performing the progress query, and may refer to the related technology of the in-memory database. In order to improve the query efficiency, the microserver device can be provided with a special query interface for specially processing the operation of querying the processing progress information of the internal storage database. It should be noted that the embodiment of the present invention does not limit the specific form of the query interface, and may refer to the related technology of the microservice and be set according to the actual application requirement.
In a possible case, querying the memory database for the second processing progress information according to the second operation number includes:
step 41: sending the second operation number to the memory database through a preset query interface so that the memory database queries and returns second processing progress information according to the second operation number;
step 42: and receiving second progress information.
Based on the above embodiment, when processing an operation request sent by a front-end device, the micro-service device in the present invention stores the corresponding processing progress information into the internal memory database instead of the local internal memory, which not only ensures that the processing progress information can be properly stored in the high-performance internal memory database to ensure the writing and extracting efficiency of the processing progress information, but also ensures that the information can be extracted from the internal memory database, thereby avoiding the situation that the micro-service device cannot extract the processing progress information cached by the micro-service device when the micro-service device cannot access the internal memory database; in addition, when receiving a progress query request sent by the front-end equipment, the micro-service device can query corresponding second processing progress information in the internal database, and the information can be the first processing progress information generated by the micro-service device and can also be the processing progress information generated by other micro-service devices.
Based on the above embodiment, in order to further improve the writing and querying efficiency and reliability of the processing progress information, the Redis database may also adopt a cluster form. The interaction process of the micro-service device with the Redis cluster will be described below. In a possible case, saving the corresponding first processing progress information to the in-memory database may include:
s201, sending the first processing progress information to the Redis cluster service device, so that the Redis cluster service device stores the first processing progress information into a Redis cluster node.
It should be noted that the Redis Cluster service device (Redis Cluster) is used to manage each Redis Cluster node, and in the embodiment of the present invention, is used to process save and query operations. The embodiment of the invention does not limit the specific structures and functions of the Redis cluster service device and the Redis cluster nodes, does not limit the interaction process between the Redis cluster service device and each Redis cluster node, and can refer to the related technology of Redis; the embodiment of the invention also does not limit the specific number of Redis cluster nodes, and can be set according to the actual application requirements.
Correspondingly, querying the second processing progress information corresponding to the progress query request from the memory database includes:
and S301, inquiring second processing progress information from the Redis cluster service device so that the Redis cluster service device extracts the second processing progress information from the Redis cluster node and returns the second processing progress information.
And S302, receiving second processing progress information.
Based on the above embodiment, the present invention may further adopt a Redis database in a cluster form to further improve the efficiency and reliability of writing and querying the processing progress information.
The above-mentioned method for managing and controlling progress information is described in the following with specific flow charts. Referring to fig. 3, fig. 3 is a flowchart illustrating another method for managing progress information according to an embodiment of the present invention. It can be seen that, in a multi-copy scenario, the progress value is stored in the cached Redis, and even if one micro-service is hung, the progress value is not lost, and the front-end device (i.e., the device corresponding to the operation interface) can read the progress value from the Redis through other micro-services; furthermore, a cluster structure is adopted for Redis, thus ensuring high availability. Therefore, the problem of the ignorance of the progress value is solved, and the progress value is the same and is read from the Redis cache no matter which micro-service is accessed.
The micro-service device, the progress information management and control system, the electronic device, and the computer-readable storage medium according to the embodiments of the present invention are introduced below, and the micro-service device, the progress information management and control system, the electronic device, and the computer-readable storage medium described below may be referred to in correspondence with the progress information management and control method described above.
Referring to fig. 4, fig. 4 is a block diagram of a micro service device according to an embodiment of the present invention, where the micro service device includes:
a database connection module 401, configured to, when starting is detected, read pre-stored configuration information of the memory database, and establish a connection with the memory database by using the configuration information of the memory database;
an operation processing module 402, configured to process an operation request when receiving the operation request sent by the front-end device, and store corresponding first processing progress information in the memory database;
the progress query module 403 is configured to, when receiving a progress query request sent by the front-end device, query second processing progress information corresponding to the progress query request to the memory database, and send the second processing progress information to the front-end device; the second processing progress information is the first processing progress information or the processing progress information generated by other micro service devices.
Optionally, the operation processing module 402 may include:
the storage submodule is used for extracting a first operation number in the operation request and storing the first operation number and the first processing progress information to a memory database;
accordingly, the progress query module 403 may include:
and the query submodule is used for extracting a second operation number in the progress query request and querying second processing progress information from the memory database according to the second operation number.
Optionally, the saving sub-module may include:
and the storage unit is used for storing the first operation number and the first processing progress information to the memory database through a preset storage interface.
Optionally, the query submodule may include:
the query unit is used for sending the second operation number to the memory database through a preset query interface so that the memory database queries and returns second processing progress information according to the second operation number;
and the receiving unit is used for receiving the second progress information.
Optionally, the in-memory database is Redis.
Optionally, the operation processing module 402 may include:
the Redis saving submodule is used for sending the first processing progress information to the Redis cluster service device so that the Redis cluster service device can save the first processing progress information to a Redis cluster node;
correspondingly, querying the second processing progress information corresponding to the progress query request from the memory database includes:
the Redis query submodule is used for querying the Redis cluster service device for second processing progress information so as to enable the Redis cluster service device to extract the second processing progress information from the Redis cluster node and return the second processing progress information;
and the receiving submodule is used for receiving the second processing progress information.
Referring to fig. 5, fig. 5 is a block diagram of a progress information management and control system according to an embodiment of the present invention, where the system may include: a front-end device 501, a micro-server device 502, and a memory database 503, wherein,
a front-end device 501, configured to send an operation request to a micro service device; sending a progress query request to the micro-service device and receiving processing progress information returned by the micro-service device;
a micro service device 502 for executing the progress information management and control method as described above;
and the memory database 503 is used for storing the processing progress information sent by the microserver.
It should be noted that, the embodiment of the present invention does not limit the specific number of the microservice devices, and the number is at least 2, and can be set according to the actual application requirement.
Optionally, the in-memory database 503 may be a Redis, which may be a cluster.
Since the embodiment of the progress information management and control system portion corresponds to the embodiment of the progress information management and control method portion, reference is made to the description of the embodiment of the progress information management and control method portion for the embodiment of the progress information management and control system portion, and details are not repeated here.
An embodiment of the present invention further provides an electronic device, including:
a memory for storing a computer program;
and the processor is used for realizing the steps of the progress information control method when executing the computer program.
Since the embodiment of the electronic device portion corresponds to the embodiment of the progress information managing and controlling method portion, please refer to the description of the embodiment of the progress information managing and controlling method portion for the embodiment of the electronic device portion, which is not repeated here.
The embodiment of the present invention further provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the steps of the progress information management and control method according to any of the above embodiments are implemented.
Since the embodiment of the computer-readable storage medium portion corresponds to the embodiment of the progress information managing and controlling method portion, please refer to the description of the embodiment of the progress information managing and controlling method portion for the embodiment of the storage medium portion, which is not repeated here.
The embodiments are described in a progressive manner in the specification, each embodiment focuses on differences from other embodiments, and the same and similar parts among the embodiments are referred to each other. The device disclosed by the embodiment corresponds to the method disclosed by the embodiment, so that the description is simple, and the relevant points can be referred to the method part for description.
Those of skill would further appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware, computer software, or combinations of both, and that the various illustrative components and steps have been described above generally in terms of their functionality in order to clearly illustrate this interchangeability of hardware and software. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present invention.
The steps of a method or algorithm described in connection with the embodiments disclosed herein may be embodied directly in hardware, in a software module executed by a processor, or in a combination of the two. A software module may reside in Random Access Memory (RAM), memory, Read Only Memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art.
The above provides a detailed description of a progress information management and control method, a micro-service device, a progress information management and control system, an electronic device, and a computer-readable storage medium. The principles and embodiments of the present invention are explained herein using specific examples, which are presented only to assist in understanding the method and its core concepts. It should be noted that, for those skilled in the art, it is possible to make various improvements and modifications to the present invention without departing from the principle of the present invention, and those improvements and modifications also fall within the scope of the claims of the present invention.

Claims (10)

1. A progress information control method is applied to micro service devices, a plurality of micro service devices run the same service content and provide services to a front-end device in a unified manner, and the method comprises the following steps:
when the startup is detected, reading pre-stored memory database configuration information, and establishing connection with a memory database by using the memory database configuration information;
when an operation request sent by the front-end device is received, processing the operation request, and storing corresponding first processing progress information to a memory database; all micro service devices operating the service content correspond to the same memory database;
when a progress query request sent by the front-end device is received, querying second processing progress information corresponding to the progress query request from the memory database, and sending the second processing progress information to the front-end device; the second processing progress information is the first processing progress information or processing progress information generated by other micro service devices.
2. The method for managing and controlling the progress information according to claim 1, wherein the step of saving the corresponding first processing progress information to a memory database includes:
extracting a first operation number in the operation request, and storing the first operation number and the first processing progress information to the memory database;
correspondingly, the querying the memory database for the second processing progress information corresponding to the progress query request includes:
and extracting a second operation number in the progress query request, and querying the memory database for the second processing progress information according to the second operation number.
3. The method for managing and controlling the progress information according to claim 2, wherein the saving the first operation number and the first processing progress information to the memory database includes:
and storing the first operation number and the first processing progress information to the memory database through a preset storage interface.
4. The method for managing and controlling the progress information according to claim 2, wherein the querying the memory database for the second processing progress information according to the second operation number includes:
sending the second operation number to the memory database through a preset query interface so that the memory database queries the second processing progress information according to the second operation number and returns the second processing progress information;
and receiving the second processing progress information.
5. The progress information management and control method according to any one of claims 1 to 4, wherein the memory database is Redis.
6. The method for managing and controlling the progress information according to claim 5, wherein the step of saving the corresponding first processing progress information to the memory database includes:
sending the first processing progress information to a Redis cluster service device so that the Redis cluster service device stores the first processing progress information into a Redis cluster node;
correspondingly, the querying the memory database for the second processing progress information corresponding to the progress query request includes:
querying the Redis cluster service device for the second processing progress information so that the Redis cluster service device extracts the second processing progress information from the Redis cluster node and returns the second processing progress information;
and receiving the second processing progress information.
7. A microserver device, wherein a plurality of said microserver devices run the same service content and provide services to a front-end device in a unified manner, comprising:
the database connection module is used for reading prestored memory database configuration information when the starting is detected, and establishing connection with the memory database by using the memory database configuration information;
the operation processing module is used for processing the operation request and storing corresponding first processing progress information to a memory database when the operation request sent by the front-end device is received; all micro service devices operating the service content correspond to the same memory database;
the progress query module is used for querying second processing progress information corresponding to the progress query request to the memory database when receiving the progress query request sent by the front-end device and sending the second processing progress information to the front-end device; the second processing progress information is the first processing progress information or processing progress information generated by other micro service devices.
8. A progress information management and control system, comprising: a front-end device, a micro-service device and a memory database, wherein,
the front-end device is used for sending an operation request to the micro-service device; sending a progress query request to the micro-service device and receiving processing progress information returned by the micro-service device;
the microserver device is used for executing the progress information management and control method according to any one of claims 1 to 6;
and the memory database is used for storing the processing progress information sent by the micro-service device.
9. An electronic device, comprising:
a memory for storing a computer program;
a processor for implementing the progress information managing method according to any one of claims 1 to 6 when executing the computer program.
10. A computer-readable storage medium storing therein computer-executable instructions that, when loaded and executed by a processor, implement the progress information managing method according to any one of claims 1 to 6.
CN202210148855.3A 2022-02-18 2022-02-18 Progress information management and control method, micro-service device, electronic equipment and storage medium Active CN114218317B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN202210148855.3A CN114218317B (en) 2022-02-18 2022-02-18 Progress information management and control method, micro-service device, electronic equipment and storage medium
PCT/CN2022/140743 WO2023155591A1 (en) 2022-02-18 2022-12-21 Progress information management and control method, micro-service apparatus, electronic device, and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210148855.3A CN114218317B (en) 2022-02-18 2022-02-18 Progress information management and control method, micro-service device, electronic equipment and storage medium

Publications (2)

Publication Number Publication Date
CN114218317A CN114218317A (en) 2022-03-22
CN114218317B true CN114218317B (en) 2022-05-13

Family

ID=80708907

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210148855.3A Active CN114218317B (en) 2022-02-18 2022-02-18 Progress information management and control method, micro-service device, electronic equipment and storage medium

Country Status (2)

Country Link
CN (1) CN114218317B (en)
WO (1) WO2023155591A1 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114218317B (en) * 2022-02-18 2022-05-13 苏州浪潮智能科技有限公司 Progress information management and control method, micro-service device, electronic equipment and storage medium

Family Cites Families (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10409811B1 (en) * 2017-01-27 2019-09-10 Intuit, Inc. Decomposition of queries
CN109086409B (en) * 2018-08-02 2021-10-08 泰康保险集团股份有限公司 Microservice data processing method and device, electronic equipment and computer readable medium
US11321322B2 (en) * 2020-03-30 2022-05-03 International Business Machines Corporation Lightweight DBMS based on functional microservices
CN111949719B (en) * 2020-08-20 2024-05-07 深圳天顺智慧能源科技有限公司 Method and device for realizing configuration tool of power system and related components
CN112559285B (en) * 2020-12-08 2023-05-30 中国联合网络通信集团有限公司 Micro-service monitoring method and related device based on distributed service architecture
CN113312359B (en) * 2021-06-28 2023-04-07 北京筑云慧建软件技术有限公司 Distributed job progress calculation method and device and storage medium
CN113778985A (en) * 2021-08-19 2021-12-10 上海东普信息科技有限公司 Microservice architecture monitoring method, microservice architecture monitoring device, computer equipment and storage medium
CN114218317B (en) * 2022-02-18 2022-05-13 苏州浪潮智能科技有限公司 Progress information management and control method, micro-service device, electronic equipment and storage medium

Also Published As

Publication number Publication date
WO2023155591A1 (en) 2023-08-24
CN114218317A (en) 2022-03-22

Similar Documents

Publication Publication Date Title
CN109343963B (en) Application access method and device for container cluster and related equipment
US7987266B2 (en) Failover in proxy server networks
US10417243B1 (en) Method and system for transparent database query caching
RU2527756C1 (en) Apparatus and method for executing function of dns resolution agent
CN103780679B (en) Long delay remote invocation method based on http protocol
CN108924274B (en) Domain name system DNS processing method and device, storage medium and electronic equipment
JP2009516273A (en) Data synchronization processing method, client, server, and data synchronization system between client and server
US9934390B2 (en) Data redaction system
CN114218317B (en) Progress information management and control method, micro-service device, electronic equipment and storage medium
CN112187934A (en) Micro-service building method
KR20210040864A (en) File directory traversal method, apparatus, device, and medium
US10467143B1 (en) Event-driven cache
CN111614694B (en) Communication method, communication device, electronic equipment and computer-readable storage medium
CN109445966B (en) Event processing method, device, medium and computing equipment
CN111596864A (en) Method, device, server and storage medium for data delayed deletion
CN114138371B (en) Configuration dynamic loading method and device, computer equipment and storage medium
CN111367921A (en) Data object refreshing method and device
CN114995762A (en) Thick backup roll capacity expansion method, device, equipment and storage medium
US7792921B2 (en) Metadata endpoint for a generic service
CN110149232B (en) Distributed storage block upgrading iscsi service method, system, device and storage medium
CN107332679B (en) Centerless information synchronization method and device
CN111614750A (en) Data updating method, system, equipment and storage medium
WO2024066503A1 (en) Service invocation method and apparatus
CN113703866B (en) Configuration center information synchronization method and system
CN114745418B (en) Task access method, device, equipment and storage medium

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