WO2023155591A1 - Progress information management and control method, micro-service apparatus, electronic device, and storage medium - Google Patents
Progress information management and control method, micro-service apparatus, electronic device, and storage medium Download PDFInfo
- Publication number
- WO2023155591A1 WO2023155591A1 PCT/CN2022/140743 CN2022140743W WO2023155591A1 WO 2023155591 A1 WO2023155591 A1 WO 2023155591A1 CN 2022140743 W CN2022140743 W CN 2022140743W WO 2023155591 A1 WO2023155591 A1 WO 2023155591A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- progress information
- memory database
- processing progress
- processing
- control method
- Prior art date
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/20—Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
- G06F16/25—Integrating or interfacing systems involving database management systems
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/20—Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
- G06F16/24—Querying
- G06F16/245—Query processing
- G06F16/2457—Query processing with adaptation to user needs
Definitions
- the present application relates to the field of microservices, and in particular to a schedule information management and control method, a microservice device, a schedule information management and control system, electronic equipment, and a computer non-volatile readable storage medium.
- microservices In order to ensure service stability, microservices usually provide external services in the form of multiple copies, that is, multiple microservice devices run the same service content and provide services to the outside in a unified manner.
- 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 will save the corresponding processing progress information in the local memory, so that the front-end device can keep abreast of Processing progress details.
- each microservice device may be in an inaccessible state such as downtime, which will cause the front end to be unable to obtain and output the processing progress information in the abnormal microservice device, which will easily bring bad user experience to users .
- the purpose of this application is to provide a progress information management and control method, microservice device, progress information management and control system, electronic equipment and computer non-volatile readable storage medium, which can improve multi-copy micro The overall service reliability of the service.
- this application provides a progress information management and control method, which is applied to micro-service devices, and the method includes:
- the second processing progress information is the first processing progress information or processing progress information generated by other microservice devices.
- saving the corresponding first processing progress information to the memory database includes:
- query the memory database for the second processing progress information corresponding to the progress query request including:
- saving the first operation number and the first processing progress information to the memory database includes:
- querying the memory database for the second processing progress information according to the second operation number includes:
- the in-memory database is Redis.
- saving the corresponding first processing progress information to the memory database includes:
- query the memory database for the second processing progress information corresponding to the progress query request including:
- the present application also provides a microservice device, including:
- the database connection module is used to read the pre-stored memory database configuration information when the startup is detected, and use the memory database configuration information to establish a connection with the memory database;
- An operation processing module configured to process the operation request when receiving the operation request sent by the front-end device, and save the corresponding first processing progress information to the memory database;
- the progress query module is used to query the memory database for the second processing progress information corresponding to the progress query request when receiving the progress query request sent by the front-end device, and send the second processing progress information to the front-end device; the second processing progress information It is the first processing progress information or the processing progress information generated by other microservice devices.
- the present application also provides a progress information management and control system, including: a front-end device, a micro-service device and a memory database, wherein,
- the front-end device is used to send an operation request to the micro-service device; send a progress query request to the micro-service device, and receive the processing progress information returned by the micro-service device;
- a micro-service device configured to execute the above-mentioned progress information management and control method
- the memory database is used to save the processing progress information sent by the microservice device.
- the present application also provides an electronic device, including:
- the processor is configured to implement the above-mentioned progress information management and control method when executing the computer program.
- the present application also provides a computer non-volatile readable storage medium, in which computer-executable instructions are stored, and when the computer-executable instructions are loaded and executed by a processor, the above progress can be realized information management methods.
- the application provides a progress information management and control method, which is applied to micro-service devices.
- the method includes: when the startup is detected, read the pre-stored memory database configuration information, and use the memory database configuration information to establish a connection with the memory database; when receiving the front-end When an operation request is sent by the device, process the operation request, and save the corresponding first processing progress information to the memory database; when receiving the progress query request sent by the front-end device, query the memory database for the second processing progress corresponding to the progress query request information, 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 microservice devices.
- the microservice device in this application processes the operation request sent by the front-end device, it will save the corresponding processing progress information to the memory database instead of saving it to the local memory, which not only ensures that the processing progress information can be Properly stored in a high-performance memory database to ensure the efficiency of writing and extracting processing progress information, and at the same time ensure that the information can be extracted from the memory database, thereby avoiding that when the microservice device cannot be accessed, it cannot be extracted.
- the status of the cached processing progress information in addition, when the microservice device receives the progress query request sent by the front-end device, it can query the corresponding second processing progress information from the memory database, and this information can be the first generated by it.
- the processing progress information can also be the processing progress information generated by other micro-service devices, that is, the micro-service device in this application can query the processing progress information for other micro-service devices and respond to the front-end device.
- the micro-service device in this application can query the processing progress information for other micro-service devices and respond to the front-end device.
- the present application also provides a micro-service device, electronic equipment and a storage medium.
- FIG. 1 is a schematic diagram of the update processing progress value of the microservice system in the related art provided by the embodiment of the present application;
- FIG. 2 is a flow chart of a progress information management and control method provided in the embodiment of the present application.
- FIG. 3 is a flowchart of another progress information management and control method provided by the embodiment of the present application.
- FIG. 4 is a structural block diagram of a microservice device provided in an embodiment of the present application.
- FIG. 5 is a structural block diagram of a progress information management and control system provided by an embodiment of the present application.
- 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 will save the corresponding processing progress information in the local memory, so that the front-end device can keep abreast of Processing progress details.
- each microservice device may be in an inaccessible state such as downtime, which will cause the front end to be unable to obtain and output the processing progress information in the abnormal microservice device, which will easily bring bad user experience to users .
- Figure 1 is a schematic diagram of the update processing progress value of the microservice system in the related art provided by the embodiment of the present application.
- FIG. 2 is a flowchart of a progress information management and control method provided in the embodiment of the present application. The method is applied to a microservice device and may include:
- in-memory database The reason why the embodiment of the present application uses an in-memory database is that the writing and query of processing progress information usually involves high-frequency data reading and writing. Ordinary databases are usually developed based on hard disks, which are difficult to cope with high-frequency reading and writing operations, while in-memory databases are developed based on memory. , can take advantage of the advantages of memory that is good at handling high-frequency reading and writing, improve the efficiency of writing and querying processing progress information, and then improve the overall service efficiency of the microservice system. It should be noted that the embodiment of the present application does not limit a specific in-memory database, and can be selected by referring to related technologies of in-memory databases and combining actual application requirements.
- Redis is a storage system that supports multiple data structures such as Key-Value
- Redis can be selected as the The in-memory database in the embodiment of this application.
- the embodiment of this application does not limit the deployment process of Redis, and you can refer to related technologies of Redis.
- Redis clusters can also be used, which can be set according to actual application requirements.
- the memory database configuration information is the information used to establish a data connection with the memory database, which is pre-set in the microservice device so that the microservice device can automatically read it when it starts, and according to the specific information content Establish a connection with an in-memory database.
- the embodiment of the present application does not limit the specific content of the configuration information of the in-memory database, nor does it limit the specific process of establishing a connection with the in-memory database by using the configuration information. Please refer to related technologies of the in-memory database. Of course, if the in-memory database used is Redis, you can also refer to related technologies of Redis.
- the microservice device usually saves the processing progress of the operation request locally, which results in that when the microservice device is down, its internal processing progress information cannot be obtained by the front-end device, which will affect the microservice user's Use experience.
- the microservice device stores the processing progress information in the internal memory database, and then the front-end equipment can extract specific processing progress information from the database, which can avoid the situation that the front-end equipment cannot obtain the processing progress information , which in turn can improve the user experience of microservices. It should be noted that the embodiment of the present application does not limit the specific operation content to be processed by the microservice device, nor does it limit the operation request corresponding to the operation content, which can be set according to actual business needs.
- the corresponding tag information can be set for the processing progress information, and then the processing progress information can be quickly queried according to the tag information.
- the embodiment of the present application does not limit which object the tag information is set by, for example, it can be set by a micro-service device, or it can be set by a front-end device.
- the tag information can be set by the front-end device for the convenience of initiating the query.
- the front-end device can set an operation number for each operation request, and then the micro-service device can save the operation number and the corresponding processing progress information in the memory database, so that the processing progress information can be queried according to the operation number.
- saving the corresponding first processing progress information to the memory database may include:
- Step 11 Extract the first operation number in the operation request, and save the first operation number and the first processing progress information to the memory database.
- the embodiment of the present application does not limit the specific interaction process between the microservice device and the in-memory database when saving the processing progress, please refer to the relevant technologies of the in-memory database.
- the micro-service device can set a dedicated storage interface, which is used to specifically handle the operation of writing processing progress information to the memory database.
- the embodiment of the present application does not limit the specific form of the storage interface, which can be set with reference to related technologies of microservices and combined with actual application requirements.
- saving the first operation number and the first processing progress information to the memory database may include:
- Step 21 Save the first operation number and the first processing progress information to the memory database through the preset saving interface.
- the second processing progress information is the first processing Progress information or processing progress information generated by other microservice devices.
- the microservice device in the embodiment of the present application can not only query the processing progress information involved in itself, but also query the processing progress information for other microservice devices.
- the progress query request sent by the front-end device can be processed by any micro-service device in the micro-service system, which can effectively improve the efficiency and reliability of the micro-service system when processing progress query.
- the front-end device when performing progress query, can also write the operation number to be queried into the progress query request, so that the microservice device Perform related queries according to the operation number included in the request it receives.
- querying the memory database for the second processing progress information corresponding to the progress query request may include:
- Step 31 Extract the second operation number in the progress query request, and query the memory database for the second processing progress information according to the second operation number.
- the embodiment of the present application does not limit the specific interaction process between the microservice device and the in-memory database when performing progress query, and reference may be made to related technologies of the in-memory database.
- the micro-service device can set a dedicated query interface, which is used to specifically process the operation of querying the processing progress information from the memory database.
- the embodiment of the present application does not limit the specific form of the query interface, which can be set with reference to related technologies of microservices and combined with actual application requirements.
- querying the memory database for the second processing progress information according to the second operation number includes:
- Step 41 Send the second operation number to the memory database through the preset query interface, so that the memory database can query the second processing progress information according to the second operation number and return it;
- Step 42 Receive second progress information.
- the microservice device in this application when the microservice device in this application processes the operation request sent by the front-end device, it will save the corresponding processing progress information to the memory database instead of saving it to the local memory, which not only ensures the processing progress Information can be properly stored in a high-performance memory database to ensure the efficiency of writing and extracting processing progress information, and at the same time ensure that the information can be extracted from the memory database, thereby preventing microservice devices from being accessed when they cannot be accessed. It is impossible to extract the cached processing progress information; in addition, when the microservice device receives the progress query request sent by the front-end device, it can query the corresponding second processing progress information from the memory database, and the information can be obtained by it.
- the generated first processing progress information can also be the processing progress information generated by other microservice devices, that is, the microservice device in this application can query the processing progress information for other microservice devices and respond to the front-end device. When inaccessible, it can replace it to perform corresponding query and response work, which can effectively improve the overall service reliability of multi-copy microservices, and avoid unresponsive problems caused by inaccessibility of a microservice device.
- the Redis database can also adopt a cluster form.
- the following will introduce the interaction process between the microservice device and the Redis cluster.
- saving the corresponding first processing progress information to the memory database may include:
- the Redis cluster service device (Redis Cluster) is used to manage and control each Redis cluster node, and is used to process storage and query operations in this embodiment of the application.
- the embodiment of the present application does not limit the specific structure and function of the Redis cluster service device and the Redis cluster nodes, nor does it limit the interaction process between the Redis cluster service device and each Redis cluster node, and can refer to the related technologies of Redis; the embodiment of the present application also The specific number of Redis cluster nodes is not limited, and can be set according to actual application requirements.
- query the memory database for the second processing progress information corresponding to the progress query request including:
- the present application may also use a clustered Redis database to further improve the efficiency and reliability of writing and querying processing progress information.
- FIG. 3 is a flow chart of another progress information management and control method provided by the embodiment of the present application. It can be seen that in the multi-copy scenario, the progress value is stored in the cached Redis. Even if a microservice hangs up, the progress value will not be lost.
- the front-end device (that is, the device corresponding to the operation interface) can read it from Redis through other microservices. Take the progress value; in addition, Redis uses a cluster structure, so high availability is guaranteed. This solves the problem of the flickering progress value. No matter which microservice is accessed, the progress value is the same and is read from the Redis cache.
- the microservice device, progress information management and control system, electronic equipment and computer non-volatile readable storage medium provided by the embodiment of the present application are introduced below.
- the microservice device, progress information management and control system, electronic equipment and computer nonvolatile storage medium described below The non-readable storage medium and the progress information management and control method described above can refer to each other correspondingly.
- FIG. 4 is a structural block diagram of a microservice device provided in an embodiment of the present application.
- the device may include:
- the database connection module 401 is used to read the pre-stored memory database configuration information when starting is detected, and use the memory database configuration information to establish a connection with the memory database;
- the operation processing module 402 is configured to process the operation request when receiving the operation request sent by the front-end device, and save the corresponding first processing progress information to the memory database;
- the progress query module 403 is used to query the memory database for the second processing progress information corresponding to the progress query request when receiving the progress query request sent by the front-end device, and send the second processing progress information to the front-end device; the second processing progress
- the information is first processing progress information or processing progress information generated by other microservice devices.
- the operation processing module 402 may include:
- the saving submodule is used to extract the first operation number in the operation request, and save the first operation number and the first processing progress information to the memory database;
- the progress query module 403 may include:
- the query sub-module is used to extract the second operation number in the progress query request, and query the memory database for the second processing progress information according to the second operation number.
- saving submodules may include:
- the saving unit is configured to save the first operation number and the first processing progress information to the internal memory database through the preset saving interface.
- the query submodule may include:
- the query unit is configured to send the second operation number to the memory database through the preset query interface, so that the memory database can query the second processing progress information according to the second operation number and return it;
- a receiving unit configured to receive second progress information.
- the in-memory database is Redis.
- the operation processing module 402 may include:
- Redis saves the submodule, which is used to send the first processing progress information to the Redis cluster service device, so that the Redis cluster service device saves the first processing progress information to the Redis cluster node;
- query the memory database for the second processing progress information corresponding to the progress query request including:
- the Redis query submodule is used to query the 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 receiving submodule is configured to receive the second processing progress information.
- FIG. 5 is a structural block diagram of a progress information management and control system provided by an embodiment of the present application.
- the system may include: a front-end device 501, a micro-service device 502, and an in-memory database 503, wherein,
- the front-end device 501 is configured to send an operation request to the micro-service device; send a progress query request to the micro-service device, and receive processing progress information returned by the micro-service device;
- the microservice device 502 is configured to execute the above-mentioned progress information management and control method
- the memory database 503 is used to save the processing progress information sent by the microservice device.
- the embodiment of the present application does not limit the specific number of micro-service devices, the number is at least 2, and can be set according to actual application requirements.
- the memory database 503 may be Redis, and Redis may be a cluster.
- the embodiment of the present application also provides an electronic device, including:
- the processor is configured to realize the steps of the above-mentioned progress information management and control method when executing the computer program.
- the embodiment of the electronic device part corresponds to the embodiment of the progress information management and control method part, please refer to the description of the embodiment of the progress information management and control method part for the embodiment of the electronic device part, and details will not be repeated here.
- An embodiment of the present application also provides a computer non-volatile readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the progress information management and control method of any of the above-mentioned embodiments is implemented. A step of.
- the embodiment of the computer non-volatile readable storage medium corresponds to the embodiment of the progress information management and control method, please refer to the description of the embodiment of the progress information management and control method for the embodiment of the storage medium, and will not go into details here. .
- each embodiment in the description is described in a progressive manner, each embodiment focuses on the difference from other embodiments, and the same and similar parts of each embodiment can be referred to each other.
- the description is relatively simple, and for relevant details, please refer to the description of the method part.
- RAM random access memory
- ROM read-only memory
- EEPROM electrically programmable ROM
- EEPROM electrically erasable programmable ROM
- registers hard disk, removable disk, CD-ROM, or any other Any other known storage medium.
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 present application provides a progress information management and control method, and a related apparatus. The method is applied to a micro-service apparatus and comprises: when start-up is detected, reading pre-stored memory database configuration information, and establishing a connection with a memory database by using the memory database configuration information; when an operation request sent by a front-end apparatus is received, processing the operation request, and storing corresponding first processing progress information in the memory database; when a progress query request sent by the front-end apparatus is received, querying the memory database for second processing progress information corresponding to the progress query request, and sending the second processing progress information to the front-end apparatus; the second processing progress information is processing progress information generated by another micro-service apparatus or the first processing progress information; each micro-service apparatus can store progress information belonging thereto in the memory database, and may also help another micro-service apparatus to query a database for corresponding progress information, and consequently overall service reliability of a multi-instance micro-service can be effectively improved.
Description
相关申请的交叉引用Cross References to Related Applications
本申请要求于2022年02月18日提交中国专利局、申请号202210148855.3、申请名称为“进度信息管控方法、微服务装置、电子设备及存储介质”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application claims the priority of the Chinese patent application submitted to the China Patent Office on February 18, 2022, with application number 202210148855.3, and the title of the application is "Progress information management and control method, micro-service device, electronic equipment and storage medium", the entire content of which is passed References are incorporated in this application.
本申请涉及微服务领域,特别涉及一种进度信息管控方法、微服务装置、进度信息管控系统、电子设备及计算机非易失性可读存储介质。The present application relates to the field of microservices, and in particular to a schedule information management and control method, a microservice device, a schedule information management and control system, electronic equipment, and a computer non-volatile readable storage medium.
为确保服务稳定,微服务通常会采用多副本形式向外提供服务,即由多个微服务装置运行相同的服务内容,并统一向外部提供服务。相关技术中,前端装置所下发的操作内容通常由多副本模式中的任一微服务装置处理,而该微服务装置则会将对应的处理进度信息保存在本地内存中,以便前端装置及时了解处理进度详情。但在实际应用中,各微服务装置可能出现宕机等不可访问的状态,进而导致前端将无法获取及输出异常微服务装置内的处理进度信息,而这容易为用户带来不好的使用体验。In order to ensure service stability, microservices usually provide external services in the form of multiple copies, that is, multiple microservice devices run the same service content and provide services to the outside in a unified manner. In related technologies, 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 will save the corresponding processing progress information in the local memory, so that the front-end device can keep abreast of Processing progress details. However, in practical applications, each microservice device may be in an inaccessible state such as downtime, which will cause the front end to be unable to obtain and output the processing progress information in the abnormal microservice device, which will easily bring bad user experience to users .
发明内容Contents of the invention
本申请的目的是提供一种进度信息管控方法、微服务装置、进度信息管控系统、电子设备及计算机非易失性可读存储介质,可通过将进度信息保存至内存数据库的方式提升多副本微服务整体服务可靠度。The purpose of this application is to provide a progress information management and control method, microservice device, progress information management and control system, electronic equipment and computer non-volatile readable storage medium, which can improve multi-copy micro The overall service reliability of the service.
为解决上述技术问题,本申请提供一种进度信息管控方法,应用于微服务装置,方法包括:In order to solve the above technical problems, this application provides a progress information management and control method, which is applied to micro-service devices, and the method includes:
当检测到启动时,读取预存的内存数据库配置信息,并利用内存数据库配置信息与内存数据库建立连接;When the startup is detected, read the pre-stored memory database configuration information, and use the memory database configuration information to establish a connection with the memory database;
当接收到前端装置发送的操作请求时,处理操作请求,并将对应的第一处理进度信息保存至内存数据库;When receiving the operation request sent by the front-end device, process the operation request, and save the corresponding first processing progress information to the memory database;
当接收到前端装置发送的进度查询请求时,向内存数据库查询进度查询请求对应的第二处理进度信息,并将第二处理进度信息发送至前端装置;第二处理进度信息为第一处理进度信息或其他微服务装置生成的处理进度信息。When receiving the progress query request sent by the front-end device, query the memory database for the second processing progress information corresponding to the progress query request, and send 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 microservice devices.
在一些实施例中,将对应的第一处理进度信息保存至内存数据库,包括:In some embodiments, saving the corresponding first processing progress information to the memory database includes:
提取操作请求中的第一操作编号,并将第一操作编号及第一处理进度信息保存至内存数据库;extracting the first operation number in the operation request, and saving the first operation number and the first processing progress information to the memory database;
相应的,向内存数据库查询进度查询请求对应的第二处理进度信息,包括:Correspondingly, query the memory database for the second processing progress information corresponding to the progress query request, including:
提取进度查询请求中的第二操作编号,并根据第二操作编号向内存数据库查询第二处理进度信息。Extracting the second operation number in the progress query request, and querying the memory database for second processing progress information according to the second operation number.
在一些实施例中,将第一操作编号及第一处理进度信息保存至内存数据库,包括:In some embodiments, saving the first operation number and the first processing progress information to the memory database includes:
将第一操作编号和第一处理进度信息通过预设保存接口保存至内存数据库。Save the first operation number and the first processing progress information to the internal memory database through the preset saving interface.
在一些实施例中,根据第二操作编号向内存数据库查询第二处理进度信息,包括:In some embodiments, querying the memory database for the second processing progress information according to the second operation number includes:
将第二操作编号通过预设查询接口发送至内存数据库,以使内存数据库根据第二操作编号查询第二处理进度信息并返回;Send the second operation number to the memory database through the preset query interface, so that the memory database can query the second processing progress information according to the second operation number and return it;
接收第二进度信息。Receive second progress information.
在一些实施例中,内存数据库为Redis。In some embodiments, the in-memory database is Redis.
在一些实施例中,将对应的第一处理进度信息保存至内存数据库,包括:In some embodiments, saving the corresponding first processing progress information to the memory database includes:
将第一处理进度信息发送至Redis集群服务装置,以使Redis集群服务装置将第一处理进度信息保存至Redis集群节点中;Send the first processing progress information to the Redis cluster service device, so that the Redis cluster service device saves the first processing progress information into the Redis cluster node;
相应的,向内存数据库查询进度查询请求对应的第二处理进度信息,包括:Correspondingly, query the memory database for the second processing progress information corresponding to the progress query request, including:
向Redis集群服务装置查询第二处理进度信息,以使Redis集群服务装置从Redis集群节点中提取第二处理进度信息并返回;Query the second processing progress information to 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;
接收第二处理进度信息。Receive second processing progress information.
本申请还提供一种微服务装置,包括:The present application also provides a microservice device, including:
数据库连接模块,用于当检测到启动时,读取预存的内存数据库配置信息,并利用内存数据库配置信息与内存数据库建立连接;The database connection module is used to read the pre-stored memory database configuration information when the startup is detected, and use the memory database configuration information to establish a connection with the memory database;
操作处理模块,用于当接收到前端装置发送的操作请求时,处理操作请求,并将对应的第一处理进度信息保存至内存数据库;An operation processing module, configured to process the operation request when receiving the operation request sent by the front-end device, and save the corresponding first processing progress information to the memory database;
进度查询模块,用于当接收到前端装置发送的进度查询请求时,向内存数据库查询进度查询请求对应的第二处理进度信息,并将第二处理进度信息发送至前端装置;第二处理进度信息为第一处理进度信息或其他微服务装置生成的处理进度信息。The progress query module is used to query the memory database for the second processing progress information corresponding to the progress query request when receiving the progress query request sent by the front-end device, and send the second processing progress information to the front-end device; the second processing progress information It is the first processing progress information or the processing progress information generated by other microservice devices.
本申请还提供一种进度信息管控系统,包括:前端装置、微服务装置及内存数据库,其中,The present application also provides a progress information management and control system, including: a front-end device, a micro-service device and a memory database, wherein,
前端装置,用于向微服务装置发送操作请求;向微服务装置发送进度查询请求,并接收 微服务装置返回的处理进度信息;The front-end device is used to send an operation request to the micro-service device; send a progress query request to the micro-service device, and receive the processing progress information returned by the micro-service device;
微服务装置,用于执行如上述的进度信息管控方法;A micro-service device, configured to execute the above-mentioned progress information management and control method;
内存数据库,用于保存微服务装置发送的处理进度信息。The memory database is used to save the processing progress information sent by the microservice device.
本申请还提供一种电子设备,包括:The present application also provides an electronic device, including:
存储器,用于存储计算机程序;memory for storing computer programs;
处理器,用于执行计算机程序时实现如上述的进度信息管控方法。The processor is configured to implement the above-mentioned progress information management and control method when executing the computer program.
本申请还提供一种计算机非易失性可读存储介质,计算机非易失性可读存储介质中存储有计算机可执行指令,计算机可执行指令被处理器加载并执行时,实现如上述的进度信息管控方法。The present application also provides a computer non-volatile readable storage medium, in which computer-executable instructions are stored, and when the computer-executable instructions are loaded and executed by a processor, the above progress can be realized information management methods.
本申请提供一种进度信息管控方法,应用于微服务装置,方法包括:当检测到启动时,读取预存的内存数据库配置信息,并利用内存数据库配置信息与内存数据库建立连接;当接收到前端装置发送的操作请求时,处理操作请求,并将对应的第一处理进度信息保存至内存数据库;当接收到前端装置发送的进度查询请求时,向内存数据库查询进度查询请求对应的第二处理进度信息,并将第二处理进度信息发送至前端装置;第二处理进度信息为第一处理进度信息或其他微服务装置生成的处理进度信息。The application provides a progress information management and control method, which is applied to micro-service devices. The method includes: when the startup is detected, read the pre-stored memory database configuration information, and use the memory database configuration information to establish a connection with the memory database; when receiving the front-end When an operation request is sent by the device, process the operation request, and save the corresponding first processing progress information to the memory database; when receiving the progress query request sent by the front-end device, query the memory database for the second processing progress corresponding to the progress query request information, 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 microservice devices.
可见,本申请中的微服务装置在处理前端装置所发送的操作请求时,会将对应的处理进度信息保存至内存数据库,而非保存至本地内存中,而这不仅可确保处理进度信息能够被妥善保存在高性能的内存数据库中,以保障处理进度信息的写入及提取效率,同时也可确保该信息能够从内存数据库中提取,进而可避免在微服务装置在无法访问时,无法提取其所缓存的处理进度信息的情况;此外,微服务装置在接收到前端设备发送的进度查询请求时,可向内存数据库中查询对应的第二处理进度信息,该信息即可为其所生成的第一处理进度信息,也可以为其他微服务装置生成的处理进度信息,即本申请中的微服务装置能够为替其他微服务装置查询处理进度信息并响应前端装置,在其他微服务装置无法访问时也能替代其执行相应的查询及响应工作,进而可有效提升多副本微服务整体的服务可靠度,避免某微服务装置无法访问所导致的无法响应问题。本申请还提供一种微服务装置、电子设备及存储介质。It can be seen that when the microservice device in this application processes the operation request sent by the front-end device, it will save the corresponding processing progress information to the memory database instead of saving it to the local memory, which not only ensures that the processing progress information can be Properly stored in a high-performance memory database to ensure the efficiency of writing and extracting processing progress information, and at the same time ensure that the information can be extracted from the memory database, thereby avoiding that when the microservice device cannot be accessed, it cannot be extracted The status of the cached processing progress information; in addition, when the microservice device receives the progress query request sent by the front-end device, it can query the corresponding second processing progress information from the memory database, and this information can be the first generated by it. The processing progress information can also be the processing progress information generated by other micro-service devices, that is, the micro-service device in this application can query the processing progress information for other micro-service devices and respond to the front-end device. When other micro-service devices cannot access It can also replace it to perform corresponding query and response work, which can effectively improve the overall service reliability of multi-copy microservices, and avoid unresponsive problems caused by inaccessibility of a certain microservice device. The present application also provides a micro-service device, electronic equipment and a storage medium.
为了更清楚地说明本申请实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据提供的附 图获得其他的附图。In order to more clearly illustrate the technical solutions in the embodiments of the present application or the prior art, the following will briefly introduce the drawings that need to be used in the description of the embodiments or the prior art. Obviously, the accompanying drawings in the following description are only It is an embodiment of the present application, and those skilled in the art can also obtain other drawings according to the provided drawings without creative work.
图1为本申请实施例所提供的相关技术中微服务系统更新处理进度值的示意图;FIG. 1 is a schematic diagram of the update processing progress value of the microservice system in the related art provided by the embodiment of the present application;
图2为本申请实施例所提供的一种进度信息管控方法的流程图;FIG. 2 is a flow chart of a progress information management and control method provided in the embodiment of the present application;
图3为本申请实施例所提供的另一种进度信息管控方法的流程图;FIG. 3 is a flowchart of another progress information management and control method provided by the embodiment of the present application;
图4为本申请实施例所提供的一种微服务装置的结构框图;FIG. 4 is a structural block diagram of a microservice device provided in an embodiment of the present application;
图5为本申请实施例所提供的一种进度信息管控系统的结构框图。FIG. 5 is a structural block diagram of a progress information management and control system provided by an embodiment of the present application.
为使本申请实施例的目的、技术方案和优点更加清楚,下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。In order to make the purposes, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments It is a part of the embodiments of this application, not all of them. Based on the embodiments in this application, all other embodiments obtained by persons of ordinary skill in the art without making creative efforts belong to the scope of protection of this application.
相关技术中,前端装置所下发的操作内容通常由多副本模式中的任一微服务装置处理,而该微服务装置则会将对应的处理进度信息保存在本地内存中,以便前端装置及时了解处理进度详情。但在实际应用中,各微服务装置可能出现宕机等不可访问的状态,进而导致前端将无法获取及输出异常微服务装置内的处理进度信息,而这容易为用户带来不好的使用体验。例如,请参考图1,图1为本申请实施例所提供的相关技术中微服务系统更新处理进度值的示意图,在多副本的情况下,文件的操作会随机访问微服务A、B、C的其中一个,比如,目前在微服务B上操作,那么文件的进度值就保存在微服务B上了,但若微服务B出现故障,此时将无法读取到其对应的进度值,此时就会造成进度值的忽隐忽现,影响业务系统的正常使用。有鉴于此,本申请提供一种进度信息管控方法,可通过将进度信息保存至内存数据库的方式提升多副本微服务整体服务可靠度。请参考图2,图2为本申请实施例所提供的一种进度信息管控方法的流程图,该方法应用于微服务装置,可以包括:In related technologies, 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 will save the corresponding processing progress information in the local memory, so that the front-end device can keep abreast of Processing progress details. However, in practical applications, each microservice device may be in an inaccessible state such as downtime, which will cause the front end to be unable to obtain and output the processing progress information in the abnormal microservice device, which will easily bring bad user experience to users . For example, please refer to Figure 1. Figure 1 is a schematic diagram of the update processing progress value of the microservice system in the related art provided by the embodiment of the present application. In the case of multiple copies, the operation of the file will randomly access the microservices A, B, and C One of them, for example, is currently operating on micro-service B, then the progress value of the file is saved on micro-service B, but if micro-service B fails, the corresponding progress value cannot be read at this time. Sometimes it will cause the progress value to flicker, affecting the normal use of the business system. In view of this, the present application provides a progress information management and control method, which can improve the overall service reliability of multi-copy microservices by saving the progress information to the memory database. Please refer to FIG. 2. FIG. 2 is a flowchart of a progress information management and control method provided in the embodiment of the present application. The method is applied to a microservice device and may include:
S101、当检测到启动时,读取预存的内存数据库配置信息,并利用内存数据库配置信息与内存数据库建立连接。S101. When the startup is detected, read the pre-stored memory database configuration information, and use the memory database configuration information to establish a connection with the memory database.
本申请实施例采用内存数据库的原因在于,处理进度信息的写入与查询通常涉及高频的数据读写,普通的数据库通常基于硬盘开发,难以应对高频读写操作,而内存数据库基于内存开发,可利用内存善于处理高频读写的优势,提升处理进度信息的写入及查询效率,进而提升微服务系统整体的服务效率。需要说明的是,本申请实施例并不限定具体的内存数据库,可参考内存数据库的相关技术,并结合实际应用需求进行选择。在一种可能的情况中, 考虑到Redis(redis是一种支持Key-Value等多种数据结构的存储系统)是一块轻量级的内存数据库,部署容易且性能较高,因此可选用Redis作为本申请实施例中的内存数据库。本申请实施例并不限定Redis的部署过程,可参考Redis的相关技术。当然,为了进一步提升数据库性能及可靠性,也可采用Redis集群,具体可根据实际应用需求进行设定。The reason why the embodiment of the present application uses an in-memory database is that the writing and query of processing progress information usually involves high-frequency data reading and writing. Ordinary databases are usually developed based on hard disks, which are difficult to cope with high-frequency reading and writing operations, while in-memory databases are developed based on memory. , can take advantage of the advantages of memory that is good at handling high-frequency reading and writing, improve the efficiency of writing and querying processing progress information, and then improve the overall service efficiency of the microservice system. It should be noted that the embodiment of the present application does not limit a specific in-memory database, and can be selected by referring to related technologies of in-memory databases and combining actual application requirements. In one possible situation, considering that Redis (redis is a storage system that supports multiple data structures such as Key-Value) is a lightweight in-memory database, it is easy to deploy and has high performance, so Redis can be selected as the The in-memory database in the embodiment of this application. The embodiment of this application does not limit the deployment process of Redis, and you can refer to related technologies of Redis. Of course, in order to further improve database performance and reliability, Redis clusters can also be used, which can be set according to actual application requirements.
进一步,可以理解的是,为确保微服务装置能够与内存数据库之间进行有效的数据交互,应确保该装置与内存数据库之间建立有有效的数据连接。在本申请实施例中,内存数据库配置信息正是用于与内存数据库建立数据连接的信息,其预先设置在微服务装置中,以便微服务装置在启动时自动读取,并依照具体的信息内容与内存数据库建立连接。需要说明的是,本申请实施例并不限定内存数据库配置信息的具体内容,也不限定利用该配置信息与内存数据库建立连接的具体过程,可参考内存数据库的相关技术。当然,若采用的内存数据库为Redis,也可参考Redis的相关技术。Further, it can be understood that, in order to ensure effective data interaction between the microservice device and the in-memory database, it should be ensured that an effective data connection is established between the device and the in-memory database. In the embodiment of this application, the memory database configuration information is the information used to establish a data connection with the memory database, which is pre-set in the microservice device so that the microservice device can automatically read it when it starts, and according to the specific information content Establish a connection with an in-memory database. It should be noted that the embodiment of the present application does not limit the specific content of the configuration information of the in-memory database, nor does it limit the specific process of establishing a connection with the in-memory database by using the configuration information. Please refer to related technologies of the in-memory database. Of course, if the in-memory database used is Redis, you can also refer to related technologies of Redis.
S102、当接收到前端装置发送的操作请求时,处理操作请求,并将对应的第一处理进度信息保存至内存数据库。S102. When receiving the operation request sent by the front-end device, process the operation request, and save the corresponding first processing progress information to the memory database.
相关技术中,微服务装置通常会将操作请求的处理进度保存在本地,这导致当微服务装置出现宕机时,其内部的处理进度信息将无法被前端装置获取,进而会影响微服务用户的使用体验。而在本申请实施例中,微服务装置则是将处理进度信息保存在内存数据库中,进而前端设备能够从该数据库中提取到具体的处理进度信息,可避免前端设备无法获取处理进度信息的情况,进而可提升微服务用户的使用体验。需要说明的是,本申请实施例并不限定微服务装置具体需要处理的操作内容,也不限定与该操作内容相对应的操作请求,可根据实际业务需求进行设定。In related technologies, the microservice device usually saves the processing progress of the operation request locally, which results in that when the microservice device is down, its internal processing progress information cannot be obtained by the front-end device, which will affect the microservice user's Use experience. In the embodiment of the present application, the microservice device stores the processing progress information in the internal memory database, and then the front-end equipment can extract specific processing progress information from the database, which can avoid the situation that the front-end equipment cannot obtain the processing progress information , which in turn can improve the user experience of microservices. It should be noted that the embodiment of the present application does not limit the specific operation content to be processed by the microservice device, nor does it limit the operation request corresponding to the operation content, which can be set according to actual business needs.
进一步,为提升处理进度信息在内存数据库中的管控效率,可为处理进度信息设置对应的标记信息,进而可根据该标记信息对处理进度信息进行快速查询。本申请实施例并不限定标记信息由哪一对象设置,例如可由微服务装置设置,也可以由前端装置设置。考虑到查询请求通常由前端装置发起,为便于发起查询,该标记信息可由前端装置设置。具体的,前端装置可为每一操作请求设置一个操作编号,进而微服务装置可将该操作编号与对应的处理进度信息共同保存在内存数据库中,以便后续根据该操作编号查询处理进度信息。Further, in order to improve the management and control efficiency of the processing progress information in the memory database, the corresponding tag information can be set for the processing progress information, and then the processing progress information can be quickly queried according to the tag information. The embodiment of the present application does not limit which object the tag information is set by, for example, it can be set by a micro-service device, or it can be set by a front-end device. Considering that the query request is usually initiated by the front-end device, the tag information can be set by the front-end device for the convenience of initiating the query. Specifically, the front-end device can set an operation number for each operation request, and then the micro-service device can save the operation number and the corresponding processing progress information in the memory database, so that the processing progress information can be queried according to the operation number.
在一种可能的情况中,将对应的第一处理进度信息保存至内存数据库,可以包括:In a possible situation, saving the corresponding first processing progress information to the memory database may include:
步骤11:提取操作请求中的第一操作编号,并将第一操作编号及第一处理进度信息保存至内存数据库。Step 11: Extract the first operation number in the operation request, and save the first operation number and the first processing progress information to the memory database.
进一步,需要说明的是,本申请实施例并不限定微服务装置在进行处理进度保存时与内 存数据库的具体交互过程,可参考内存数据库的相关技术。为提升保存效率,微服务装置可设置专用的保存接口,用于专门处理向内存数据库写入处理进度信息的操作。需要说明的是,本申请实施例并不限定保存接口的具体形式,可参考微服务的相关技术,并结合实际应用需求进行设定。Further, it should be noted that the embodiment of the present application does not limit the specific interaction process between the microservice device and the in-memory database when saving the processing progress, please refer to the relevant technologies of the in-memory database. In order to improve the storage efficiency, the micro-service device can set a dedicated storage interface, which is used to specifically handle the operation of writing processing progress information to the memory database. It should be noted that the embodiment of the present application does not limit the specific form of the storage interface, which can be set with reference to related technologies of microservices and combined with actual application requirements.
在一种可能的情况中,将第一操作编号及第一处理进度信息保存至内存数据库,可以包括:In a possible situation, saving the first operation number and the first processing progress information to the memory database may include:
步骤21:将第一操作编号和第一处理进度信息通过预设保存接口保存至内存数据库。Step 21: Save the first operation number and the first processing progress information to the memory database through the preset saving interface.
S103、当接收到前端装置发送的进度查询请求时,向内存数据库查询进度查询请求对应的第二处理进度信息,并将第二处理进度信息发送至前端装置;第二处理进度信息为第一处理进度信息或其他微服务装置生成的处理进度信息。S103. When receiving the progress query request sent by the front-end device, query the memory database for the second processing progress information corresponding to the progress query request, and send 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 microservice devices.
为进一步提升微服务系统整体的服务可靠性,本申请实施例中的微服务装置不仅可查询自身所涉及的处理进度信息,也可为其他为微服务装置进行处理进度信息查询。换而言之,前端装置所发送的进度查询请求可由微服务系统中的任意微服务装置处理,可有效提升微服务系统在处理进度查询时的效率及可靠性。In order to further improve the overall service reliability of the microservice system, the microservice device in the embodiment of the present application can not only query the processing progress information involved in itself, but also query the processing progress information for other microservice 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, which can effectively improve the efficiency and reliability of the micro-service system when processing progress query.
可以理解的是,若前端装置已为每一操作请求设置了对应的操作编号,则在进行进度查询时,前端装置也可以将所需查询的操作编号写入进度查询请求中,以便微服务装置根据其接收到的请求所包含的操作编号进行相关查询。It can be understood that if the front-end device has set a corresponding operation number for each operation request, when performing progress query, the front-end device can also write the operation number to be queried into the progress query request, so that the microservice device Perform related queries according to the operation number included in the request it receives.
在一种可能的情况中,向内存数据库查询进度查询请求对应的第二处理进度信息,可以包括:In a possible situation, querying the memory database for the second processing progress information corresponding to the progress query request may include:
步骤31:提取进度查询请求中的第二操作编号,并根据第二操作编号向内存数据库查询第二处理进度信息。Step 31: Extract the second operation number in the progress query request, and query the memory database for the second processing progress information according to the second operation number.
进一步,需要说明的是,本申请实施例并不限定微服务装置在进行进度查询时与内存数据库的具体交互过程,可参考内存数据库的相关技术。为提升查询效率,微服务装置可设置专用的查询接口,用于专门处理向内存数据库查询处理进度信息的操作。需要说明的是,本申请实施例并不限定查询接口的具体形式,可参考微服务的相关技术,并结合实际应用需求进行设定。Further, it should be noted that the embodiment of the present application does not limit the specific interaction process between the microservice device and the in-memory database when performing progress query, and reference may be made to related technologies of the in-memory database. In order to improve the query efficiency, the micro-service device can set a dedicated query interface, which is used to specifically process the operation of querying the processing progress information from the memory database. It should be noted that the embodiment of the present application does not limit the specific form of the query interface, which can be set with reference to related technologies of microservices and combined with actual application requirements.
在一种可能的情况中,根据第二操作编号向内存数据库查询第二处理进度信息,包括:In a possible situation, querying the memory database for the second processing progress information according to the second operation number includes:
步骤41:将第二操作编号通过预设查询接口发送至内存数据库,以使内存数据库根据第二操作编号查询第二处理进度信息并返回;Step 41: Send the second operation number to the memory database through the preset query interface, so that the memory database can query the second processing progress information according to the second operation number and return it;
步骤42:接收第二进度信息。Step 42: Receive second progress information.
基于上述实施例,本申请中的微服务装置在处理前端装置所发送的操作请求时,会将对应的处理进度信息保存至内存数据库,而非保存至本地内存中,而这不仅可确保处理进度信息能够被妥善保存在高性能的内存数据库中,以保障处理进度信息的写入及提取效率,同时也可确保该信息能够从内存数据库中提取,进而可避免在微服务装置在无法访问时,无法提取其所缓存的处理进度信息的情况;此外,微服务装置在接收到前端设备发送的进度查询请求时,可向内存数据库中查询对应的第二处理进度信息,该信息即可为其所生成的第一处理进度信息,也可以为其他微服务装置生成的处理进度信息,即本申请中的微服务装置能够为替其他微服务装置查询处理进度信息并响应前端装置,在其他微服务装置无法访问时也能替代其执行相应的查询及响应工作,进而可有效提升多副本微服务整体的服务可靠度,避免某微服务装置无法访问所导致的无法响应问题。Based on the above-mentioned embodiments, when the microservice device in this application processes the operation request sent by the front-end device, it will save the corresponding processing progress information to the memory database instead of saving it to the local memory, which not only ensures the processing progress Information can be properly stored in a high-performance memory database to ensure the efficiency of writing and extracting processing progress information, and at the same time ensure that the information can be extracted from the memory database, thereby preventing microservice devices from being accessed when they cannot be accessed. It is impossible to extract the cached processing progress information; in addition, when the microservice device receives the progress query request sent by the front-end device, it can query the corresponding second processing progress information from the memory database, and the information can be obtained by it. The generated first processing progress information can also be the processing progress information generated by other microservice devices, that is, the microservice device in this application can query the processing progress information for other microservice devices and respond to the front-end device. When inaccessible, it can replace it to perform corresponding query and response work, which can effectively improve the overall service reliability of multi-copy microservices, and avoid unresponsive problems caused by inaccessibility of a microservice device.
基于上述实施例,为进一步提升处理进度信息的写入及查询效率及可靠性,Redis数据库还可采用集群形式。下面将对微服务装置与Redis集群的交互过程进行介绍。在一种可能的情况中,将对应的第一处理进度信息保存至内存数据库,可以包括:Based on the above embodiments, in order to further improve the efficiency and reliability of writing and querying processing progress information, the Redis database can also adopt a cluster form. The following will introduce the interaction process between the microservice device and the Redis cluster. In a possible situation, saving the corresponding first processing progress information to the memory database may include:
S201、将第一处理进度信息发送至Redis集群服务装置,以使Redis集群服务装置将第一处理进度信息保存至Redis集群节点中。S201. Send the first processing progress information to the Redis cluster service device, so that the Redis cluster service device saves the first processing progress information in the Redis cluster node.
需要说明的是,Redis集群服务装置(Redis Cluster)用于管控各Redis集群节点,在本申请实施例中用于处理保存及查询操作。本申请实施例并不限定Redis集群服务装置及Redis集群节点的具体结构及功能,也不限定Redis集群服务装置与各Redis集群节点间的交互过程,可参考Redis的相关技术;本申请实施例也不限定Redis集群节点的具体数量,可根据实际应用需求进行设定。It should be noted that the Redis cluster service device (Redis Cluster) is used to manage and control each Redis cluster node, and is used to process storage and query operations in this embodiment of the application. The embodiment of the present application does not limit the specific structure and function of the Redis cluster service device and the Redis cluster nodes, nor does it limit the interaction process between the Redis cluster service device and each Redis cluster node, and can refer to the related technologies of Redis; the embodiment of the present application also The specific number of Redis cluster nodes is not limited, and can be set according to actual application requirements.
相应的,向内存数据库查询进度查询请求对应的第二处理进度信息,包括:Correspondingly, query the memory database for the second processing progress information corresponding to the progress query request, including:
S301、向Redis集群服务装置查询第二处理进度信息,以使Redis集群服务装置从Redis集群节点中提取第二处理进度信息并返回。S301. Query the Redis cluster service device for second processing progress information, so that the Redis cluster service device extracts the second processing progress information from the Redis cluster nodes and returns it.
S302、接收第二处理进度信息。S302. Receive second processing progress information.
基于上述实施例,本申请还可采用集群形式的Redis数据库,以进一步提升处理进度信息的写入及查询效率及可靠性。Based on the above embodiments, the present application may also use a clustered Redis database to further improve the efficiency and reliability of writing and querying processing progress information.
下面以具体的流程图介绍上述进度信息管控方法。请参考图3,图3为本申请实施例所提供的另一种进度信息管控方法的流程图。可见,在多副本场景下,进度值存入缓存的 Redis中,即使一个微服务挂掉,进度值也不会丢失,前端装置(即操作界面对应的装置)可通过其他微服务从Redis中读取进度值;此外,用于Redis采用集群结构,因此保证了高可用。这样就解决了进度值的忽隐忽现的问题,不管是访问哪个微服务,进度值都是一样的,都是从Redis缓存读取。The above-mentioned progress information management and control method is described below with a specific flow chart. Please refer to FIG. 3 . FIG. 3 is a flow chart of another progress information management and control method provided by the embodiment of the present application. It can be seen that in the multi-copy scenario, the progress value is stored in the cached Redis. Even if a microservice hangs up, the progress value will not be lost. The front-end device (that is, the device corresponding to the operation interface) can read it from Redis through other microservices. Take the progress value; in addition, Redis uses a cluster structure, so high availability is guaranteed. This solves the problem of the flickering progress value. No matter which microservice is accessed, the progress value is the same and is read from the Redis cache.
下面对本申请实施例提供的微服务装置、进度信息管控系统、电子设备及计算机非易失性可读存储介质进行介绍,下文描述的微服务装置、进度信息管控系统、电子设备及计算机非易失性可读存储介质与上文描述的进度信息管控方法可相互对应参照。The microservice device, progress information management and control system, electronic equipment and computer non-volatile readable storage medium provided by the embodiment of the present application are introduced below. The microservice device, progress information management and control system, electronic equipment and computer nonvolatile storage medium described below The non-readable storage medium and the progress information management and control method described above can refer to each other correspondingly.
请参考图4,图4为本申请实施例所提供的一种微服务装置的结构框图,该装置可以包括:Please refer to FIG. 4. FIG. 4 is a structural block diagram of a microservice device provided in an embodiment of the present application. The device may include:
数据库连接模块401,用于当检测到启动时,读取预存的内存数据库配置信息,并利用内存数据库配置信息与内存数据库建立连接;The database connection module 401 is used to read the pre-stored memory database configuration information when starting is detected, and use the memory database configuration information to establish a connection with the memory database;
操作处理模块402,用于当接收到前端装置发送的操作请求时,处理操作请求,并将对应的第一处理进度信息保存至内存数据库;The operation processing module 402 is configured to process the operation request when receiving the operation request sent by the front-end device, and save the corresponding first processing progress information to the memory database;
进度查询模块403,用于当接收到前端装置发送的进度查询请求时,向内存数据库查询进度查询请求对应的第二处理进度信息,并将第二处理进度信息发送至前端装置;第二处理进度信息为第一处理进度信息或其他微服务装置生成的处理进度信息。The progress query module 403 is used to query the memory database for the second processing progress information corresponding to the progress query request when receiving the progress query request sent by the front-end device, and send the second processing progress information to the front-end device; the second processing progress The information is first processing progress information or processing progress information generated by other microservice devices.
在一些实施例中,操作处理模块402,可以包括:In some embodiments, the operation processing module 402 may include:
保存子模块,用于提取操作请求中的第一操作编号,并将第一操作编号及第一处理进度信息保存至内存数据库;The saving submodule is used to extract the first operation number in the operation request, and save the first operation number and the first processing progress information to the memory database;
相应的,进度查询模块403,可以包括:Correspondingly, the progress query module 403 may include:
查询子模块,用于提取进度查询请求中的第二操作编号,并根据第二操作编号向内存数据库查询第二处理进度信息。The query sub-module is used to extract the second operation number in the progress query request, and query the memory database for the second processing progress information according to the second operation number.
在一些实施例中,保存子模块,可以包括:In some embodiments, saving submodules may include:
保存单元,用于将第一操作编号和第一处理进度信息通过预设保存接口保存至内存数据库。The saving unit is configured to save the first operation number and the first processing progress information to the internal memory database through the preset saving interface.
在一些实施例中,查询子模块,可以包括:In some embodiments, the query submodule may include:
查询单元,用于将第二操作编号通过预设查询接口发送至内存数据库,以使内存数据库根据第二操作编号查询第二处理进度信息并返回;The query unit is configured to send the second operation number to the memory database through the preset query interface, so that the memory database can query the second processing progress information according to the second operation number and return it;
接收单元,用于接收第二进度信息。A receiving unit, configured to receive second progress information.
在一些实施例中,内存数据库为Redis。In some embodiments, the in-memory database is Redis.
在一些实施例中,操作处理模块402,可以包括:In some embodiments, the operation processing module 402 may include:
Redis保存子模块,用于将第一处理进度信息发送至Redis集群服务装置,以使Redis集群服务装置将第一处理进度信息保存至Redis集群节点中;Redis saves the submodule, which is used to send the first processing progress information to the Redis cluster service device, so that the Redis cluster service device saves the first processing progress information to the Redis cluster node;
相应的,向内存数据库查询进度查询请求对应的第二处理进度信息,包括:Correspondingly, query the memory database for the second processing progress information corresponding to the progress query request, including:
Redis查询子模块,用于向Redis集群服务装置查询第二处理进度信息,以使Redis集群服务装置从Redis集群节点中提取第二处理进度信息并返回;The Redis query submodule is used to query the 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 receiving submodule is configured to receive the second processing progress information.
请参考图5,图5为本申请实施例所提供的一种进度信息管控系统的结构框图,该系统可以包括:前端装置501、微服务装置502及内存数据库503,其中,Please refer to FIG. 5. FIG. 5 is a structural block diagram of a progress information management and control system provided by an embodiment of the present application. The system may include: a front-end device 501, a micro-service device 502, and an in-memory database 503, wherein,
前端装置501,用于向微服务装置发送操作请求;向微服务装置发送进度查询请求,并接收微服务装置返回的处理进度信息;The front-end device 501 is configured to send an operation request to the micro-service device; send a progress query request to the micro-service device, and receive processing progress information returned by the micro-service device;
微服务装置502,用于执行如上述的进度信息管控方法;The microservice device 502 is configured to execute the above-mentioned progress information management and control method;
内存数据库503,用于保存微服务装置发送的处理进度信息。The memory database 503 is used to save the processing progress information sent by the microservice device.
需要说明的是,本申请实施例并不限定微服务装置的具体数量,该数量至少为2,可根据实际应用需求进行设定。It should be noted that the embodiment of the present application does not limit the specific number of micro-service devices, the number is at least 2, and can be set according to actual application requirements.
在一些实施例中,内存数据库503可以为Redis,Redis可以为集群。In some embodiments, the memory database 503 may be Redis, and Redis may be a cluster.
由于进度信息管控系统部分的实施例与进度信息管控方法部分的实施例相互对应,因此进度信息管控系统部分的实施例请参见进度信息管控方法部分的实施例的描述,这里暂不赘述。Since the embodiment of the progress information management and control system part corresponds to the embodiment of the progress information management and control method part, please refer to the description of the embodiment of the progress information management and control method part for the embodiment of the progress information management and control system part, and details will not be repeated here.
本申请实施例还提供一种电子设备,包括:The embodiment of the present application also provides an electronic device, including:
存储器,用于存储计算机程序;memory for storing computer programs;
处理器,用于执行计算机程序时实现如上述的进度信息管控方法的步骤。The processor is configured to realize the steps of the above-mentioned progress information management and control method when executing the computer program.
由于电子设备部分的实施例与进度信息管控方法部分的实施例相互对应,因此电子设备部分的实施例请参见进度信息管控方法部分的实施例的描述,这里暂不赘述。Since the embodiment of the electronic device part corresponds to the embodiment of the progress information management and control method part, please refer to the description of the embodiment of the progress information management and control method part for the embodiment of the electronic device part, and details will not be repeated here.
本申请实施例还提供一种计算机非易失性可读存储介质,计算机非易失性可读存储介质上存储有计算机程序,计算机程序被处理器执行时实现上述任意实施例的进度信息管控方法 的步骤。An embodiment of the present application also provides a computer non-volatile readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the progress information management and control method of any of the above-mentioned embodiments is implemented. A step of.
由于计算机非易失性可读存储介质部分的实施例与进度信息管控方法部分的实施例相互对应,因此存储介质部分的实施例请参见进度信息管控方法部分的实施例的描述,这里暂不赘述。Since the embodiment of the computer non-volatile readable storage medium corresponds to the embodiment of the progress information management and control method, please refer to the description of the embodiment of the progress information management and control method for the embodiment of the storage medium, and will not go into details here. .
说明书中各个实施例采用递进的方式描述,每个实施例重点说明的都是与其他实施例的不同之处,各个实施例之间相同相似部分互相参见即可。对于实施例公开的装置而言,由于其与实施例公开的方法相对应,所以描述的比较简单,相关之处参见方法部分说明即可。Each embodiment in the description is described in a progressive manner, each embodiment focuses on the difference from other embodiments, and the same and similar parts of each embodiment can be referred to each other. As for the device disclosed in the embodiment, since it corresponds to the method disclosed in the embodiment, the description is relatively simple, and for relevant details, please refer to the description of the method part.
专业人员还可以进一步意识到,结合本文中所公开的实施例描述的各示例的单元及算法步骤,能够以电子硬件、计算机软件或者二者的结合来实现,为了清楚地说明硬件和软件的可互换性,在上述说明中已经按照功能一般性地描述了各示例的组成及步骤。这些功能究竟以硬件还是软件方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本申请的范围。Professionals can further realize that the units and algorithm steps of the examples described in conjunction with the embodiments disclosed herein can be implemented by electronic hardware, computer software or a combination of the two. In order to clearly illustrate the possible For interchangeability, in the above description, the composition and steps of each example have been generally described according to their functions. Whether these functions are executed by hardware or software depends on the specific application and design constraints of the technical solution. Skilled artisans may use different methods to implement the described functions for each specific application, but such implementation should not be regarded as exceeding the scope of the present application.
结合本文中所公开的实施例描述的方法或算法的步骤可以直接用硬件、处理器执行的软件模块,或者二者的结合来实施。软件模块可以置于随机存储器(RAM)、内存、只读存储器(ROM)、电可编程ROM、电可擦除可编程ROM、寄存器、硬盘、可移动磁盘、CD-ROM、或技术领域内所公知的任意其它形式的存储介质中。The steps of the methods or algorithms described in connection with the embodiments disclosed herein may be directly implemented by hardware, software modules executed by a processor, or a combination of both. Software modules can be placed in random access memory (RAM), internal memory, read-only memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, hard disk, removable disk, CD-ROM, or any other Any other known storage medium.
以上对本申请所提供的一种进度信息管控方法、微服务装置、进度信息管控系统、电子设备及计算机非易失性可读存储介质进行了详细介绍。本文中应用了具体个例对本申请的原理及实施方式进行了阐述,以上实施例的说明只是用于帮助理解本申请的方法及其核心思想。应当指出,对于本技术领域的普通技术人员来说,在不脱离本申请原理的前提下,还可以对本申请进行若干改进和修饰,这些改进和修饰也落入本申请权利要求的保护范围内。A schedule information management and control method, a microservice device, a schedule information management and control system, electronic equipment, and a computer non-volatile readable storage medium provided in the present application have been introduced in detail above. In this paper, specific examples are used to illustrate the principles and implementation methods of the present application, and the descriptions of the above embodiments are only used to help understand the methods and core ideas of the present application. It should be pointed out that those skilled in the art can make some improvements and modifications to the application without departing from the principles of the application, and these improvements and modifications also fall within the protection scope of the claims of the application.
Claims (20)
- 一种进度信息管控方法,其特征在于,应用于微服务装置,所述方法包括:A progress information management and control method, characterized in that it is applied to a micro-service device, and the method includes:当检测到启动时,读取预存的内存数据库配置信息,并利用所述内存数据库配置信息与内存数据库建立连接;When the startup is detected, read the pre-stored memory database configuration information, and use the memory database configuration information to establish a connection with the memory database;当接收到前端装置发送的操作请求时,处理所述操作请求,并将对应的第一处理进度信息保存至内存数据库;When the operation request sent by the front-end device is received, the operation request is processed, and the corresponding first processing progress information is saved to the memory database;当接收到所述前端装置发送的进度查询请求时,向所述内存数据库查询所述进度查询请求对应的第二处理进度信息,并将所述第二处理进度信息发送至所述前端装置;所述第二处理进度信息为所述第一处理进度信息或其他微服务装置生成的处理进度信息。When receiving the progress query request sent by the front-end device, query the memory database for second processing progress information corresponding to the progress query request, and send 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 microservice devices.
- 根据权利要求1所述的进度信息管控方法,其特征在于,所述将对应的第一处理进度信息保存至内存数据库,包括:The progress information management and control method according to claim 1, wherein the saving the corresponding first processing progress information to the memory database comprises:提取所述操作请求中的第一操作编号,并将所述第一操作编号及所述第一处理进度信息保存至所述内存数据库。extracting the first operation number in the operation request, and saving the first operation number and the first processing progress information to the internal memory database.
- 根据权利要求1所述的进度信息管控方法,其特征在于,所述向所述内存数据库查询所述进度查询请求对应的第二处理进度信息,包括:The progress information management and control method according to claim 1, wherein the querying the memory database for the second processing progress information corresponding to the progress query request includes:提取所述进度查询请求中的第二操作编号,并根据所述第二操作编号向所述内存数据库查询所述第二处理进度信息。Extracting the 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.
- 根据权利要求2所述的进度信息管控方法,其特征在于,所述将所述第一操作编号及所述第一处理进度信息保存至所述内存数据库,包括:The progress information management and control method according to claim 2, wherein the saving the first operation number and the first processing progress information to the internal memory database comprises:将所述第一操作编号和所述第一处理进度信息通过预设保存接口保存至所述内存数据库。saving the first operation number and the first processing progress information to the internal memory database through a preset saving interface.
- 根据权利要求3所述的进度信息管控方法,其特征在于,所述根据所述第二操作编号向所述内存数据库查询所述第二处理进度信息,包括:The progress information management and control method according to claim 3, wherein the querying the internal 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 can query the second processing progress information according to the second operation number and return it;接收所述第二进度信息。The second progress information is received.
- 根据权利要求1至5任一项所述的进度信息管控方法,其特征在于,所述内存数据库为Redis。The progress information management and control method according to any one of claims 1 to 5, wherein the memory database is Redis.
- 根据权利要求6任一项所述的进度信息管控方法,其特征在于,所述Redis为轻量级的内存数据库。The progress information management and control method according to any one of claim 6, wherein the Redis is a lightweight memory database.
- 根据权利要求1至5任一项所述的进度信息管控方法,其特征在于,所述内存数 据库为Redis集群。The progress information management and control method according to any one of claims 1 to 5, wherein the in-memory database is a Redis cluster.
- 根据权利要求8任一项所述的进度信息管控方法,其特征在于,Redis集群服务装置用于处理保存及查询操作。The progress information management and control method according to any one of claim 8, characterized in that, the Redis cluster service device is used to process storage and query operations.
- 根据权利要求9所述的进度信息管控方法,其特征在于,所述将对应的第一处理进度信息保存至内存数据库,包括:The progress information management and control method according to claim 9, wherein the saving the corresponding first processing progress information to the memory database comprises:将所述第一处理进度信息发送至Redis集群服务装置,以使所述Redis集群服务装置将所述第一处理进度信息保存至Redis集群节点中。Sending the first processing progress information to the Redis cluster service device, so that the Redis cluster service device saves the first processing progress information in the Redis cluster node.
- 根据权利要求9所述的进度信息管控方法,其特征在于,所述向所述内存数据库查询所述进度查询请求对应的第二处理进度信息,包括:The progress information management and control method according to claim 9, wherein the querying the memory database for the second processing progress information corresponding to the progress query request includes:向所述Redis集群服务装置查询所述第二处理进度信息,以使所述Redis集群服务装置从所述Redis集群节点中提取所述第二处理进度信息并返回;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 is received.
- 根据权利要求1所述的进度信息管控方法,其特征在于,所述方法还包括:The progress information management and control method according to claim 1, wherein the method further comprises:为所述第一处理进度信息设置对应的标记信息,以使所述微服务装置根据所述标记信息查询所述第一处理进度信息。Setting corresponding flag information for the first processing progress information, so that the microservice device queries the first processing progress information according to the flag information.
- 根据权利要求12所述的进度信息管控方法,其特征在于,所述标记信息由所述微服务装置设置或所述前端装置设置。The progress information management and control method according to claim 12, wherein the flag information is set by the micro-service device or the front-end device.
- 根据权利要求1所述的进度信息管控方法,其特征在于,所述内存数据库配置信息为用于与所述内存数据库建立数据连接的信息;所述内存数据库配置信息预先设置在所述微服务装置中。The progress information management and control method according to claim 1, wherein the memory database configuration information is information for establishing a data connection with the memory database; the memory database configuration information is preset in the microservice device middle.
- 根据权利要求1所述的进度信息管控方法,其特征在于,所述微服务装置设置有保存接口,用于处理向所述内存数据库写入所述第一处理进度信息的操作;所述微服务装置设置有查询接口,用于处理向所述内存数据库查询所述第二处理进度信息的操作。The progress information management and control method according to claim 1, wherein the microservice device is provided with a storage interface for processing the operation of writing the first processing progress information to the memory database; the microservice The device is provided with a query interface for processing the operation of querying the memory database for the second processing progress information.
- 一种微服务装置,其特征在于,包括:A microservice device, characterized in that it comprises:数据库连接模块,用于当检测到启动时,读取预存的内存数据库配置信息,并利用所述内存数据库配置信息与内存数据库建立连接;The database connection module is used to read the pre-stored memory database configuration information when the startup is detected, and use the memory database configuration information to establish a connection with the memory database;操作处理模块,用于当接收到前端装置发送的操作请求时,处理所述操作请求,并将对应的第一处理进度信息保存至内存数据库;An operation processing module, configured to process the operation request when receiving the operation request sent by the front-end device, and save the corresponding first processing progress information to the memory database;进度查询模块,用于当接收到所述前端装置发送的进度查询请求时,向所述内存数据库查询所述进度查询请求对应的第二处理进度信息,并将所述第二处理进度信息发送 至所述前端装置;所述第二处理进度信息为所述第一处理进度信息或其他微服务装置生成的处理进度信息。A progress query module, configured to query the memory database for second processing progress information corresponding to the progress query request when receiving the progress query request sent by the front-end device, and send 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.
- 根据权利要求16所述的微服务装置,其特征在于,The microservice device according to claim 16, wherein:所述操作处理模块,包括:The operation processing module includes:保存子模块,用于提取操作请求中的第一操作编号,并将第一操作编号及第一处理进度信息保存至内存数据库;The saving submodule is used to extract the first operation number in the operation request, and save the first operation number and the first processing progress information to the memory database;所述进度查询模块,包括:The progress query module includes:查询子模块,用于提取进度查询请求中的第二操作编号,并根据第二操作编号向内存数据库查询第二处理进度信息。The query sub-module is used to extract the second operation number in the progress query request, and query the memory database for the second processing progress information according to the second operation number.
- 一种进度信息管控系统,其特征在于,包括:前端装置、微服务装置及内存数据库,其中,A progress information management and control system, characterized in that it includes: a front-end device, a micro-service device and a memory database, wherein,所述前端装置,用于向所述微服务装置发送操作请求;向所述微服务装置发送进度查询请求,并接收所述微服务装置返回的处理进度信息;The front-end device is configured to send an operation request to the micro-service device; send a progress query request to the micro-service device, and receive processing progress information returned by the micro-service device;所述微服务装置,用于执行如权利要求1至15任一项所述的进度信息管控方法;The micro-service device is used to execute the progress information management and control method according to any one of claims 1 to 15;所述内存数据库,用于保存所述微服务装置发送的处理进度信息。The memory database is used to save the processing progress information sent by the micro-service device.
- 一种电子设备,其特征在于,包括:An electronic device, characterized in that it comprises:存储器,用于存储计算机程序;memory for storing computer programs;处理器,用于执行所述计算机程序时实现如权利要求1至15任一项所述的进度信息管控方法。A processor, configured to implement the progress information management and control method according to any one of claims 1 to 15 when executing the computer program.
- 一种计算机非易失性可读存储介质,其特征在于,所述计算机非易失性可读存储介质中存储有计算机可执行指令,所述计算机可执行指令被处理器加载并执行时,实现如权利要求1至15任一项所述的进度信息管控方法。A computer non-volatile readable storage medium, characterized in that computer-executable instructions are stored in the computer non-volatile readable storage medium, and when the computer-executable instructions are loaded and executed by a processor, the The progress information management and control method according to any one of claims 1 to 15.
Applications Claiming Priority (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 |
CN202210148855.3 | 2022-02-18 |
Publications (1)
Publication Number | Publication Date |
---|---|
WO2023155591A1 true WO2023155591A1 (en) | 2023-08-24 |
Family
ID=80708907
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
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 |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN114218317B (en) |
WO (1) | WO2023155591A1 (en) |
Families Citing this family (1)
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 |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US10409811B1 (en) * | 2017-01-27 | 2019-09-10 | Intuit, Inc. | Decomposition of queries |
CN111949719A (en) * | 2020-08-20 | 2020-11-17 | 深圳天顺智慧能源科技有限公司 | Method and device for realizing configuration tool of power system and related components |
CN112559285A (en) * | 2020-12-08 | 2021-03-26 | 中国联合网络通信集团有限公司 | Distributed service architecture-based micro-service monitoring method and related device |
CN113778985A (en) * | 2021-08-19 | 2021-12-10 | 上海东普信息科技有限公司 | Microservice architecture monitoring method, microservice architecture monitoring device, computer equipment and storage medium |
CN114218317A (en) * | 2022-02-18 | 2022-03-22 | 苏州浪潮智能科技有限公司 | Progress information control method, micro-service device, electronic equipment and storage medium |
Family Cites Families (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
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 |
CN113312359B (en) * | 2021-06-28 | 2023-04-07 | 北京筑云慧建软件技术有限公司 | Distributed job progress calculation method and device and storage medium |
-
2022
- 2022-02-18 CN CN202210148855.3A patent/CN114218317B/en active Active
- 2022-12-21 WO PCT/CN2022/140743 patent/WO2023155591A1/en unknown
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US10409811B1 (en) * | 2017-01-27 | 2019-09-10 | Intuit, Inc. | Decomposition of queries |
CN111949719A (en) * | 2020-08-20 | 2020-11-17 | 深圳天顺智慧能源科技有限公司 | Method and device for realizing configuration tool of power system and related components |
CN112559285A (en) * | 2020-12-08 | 2021-03-26 | 中国联合网络通信集团有限公司 | Distributed service architecture-based micro-service monitoring method and related device |
CN113778985A (en) * | 2021-08-19 | 2021-12-10 | 上海东普信息科技有限公司 | Microservice architecture monitoring method, microservice architecture monitoring device, computer equipment and storage medium |
CN114218317A (en) * | 2022-02-18 | 2022-03-22 | 苏州浪潮智能科技有限公司 | Progress information control method, micro-service device, electronic equipment and storage medium |
Non-Patent Citations (1)
Title |
---|
ZHANG YONGYUE: "Government Data Sharing Pattern Design based on Microservice+ Redis", ELECTRONIC TECHNOLOGY & SOFTWARE ENGINEERING, vol. 14, 15 July 2020 (2020-07-15), pages 208 - 209, XP093085791 * |
Also Published As
Publication number | Publication date |
---|---|
CN114218317B (en) | 2022-05-13 |
CN114218317A (en) | 2022-03-22 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US8954391B2 (en) | System and method for supporting transient partition consistency in a distributed data grid | |
US20140379656A1 (en) | System and Method for Maintaining a Cluster Setup | |
CN105493474B (en) | System and method for supporting partition level logging for synchronizing data in a distributed data grid | |
WO2022063284A1 (en) | Data synchronization method and apparatus, device, and computer-readable medium | |
US11249788B2 (en) | Cloud management platform, and virtual machine management method and system | |
JP5851055B2 (en) | Data storage method and apparatus | |
WO2021169342A1 (en) | Resource management method for node in kubernetes, device, and medium | |
US20160034582A1 (en) | Computing device and method for executing database operation command | |
US11336588B2 (en) | Metadata driven static determination of controller availability | |
US20050193039A1 (en) | Fault tolerant mechanism to handle initial load of replicated object in live system | |
EP4213038A1 (en) | Data processing method and apparatus based on distributed storage, device, and medium | |
US20180121531A1 (en) | Data Updating Method, Device, and Related System | |
CN114168262B (en) | Cloud platform mirror image cache management method based on LRU replacement algorithm | |
TW201738781A (en) | Method and device for joining tables | |
WO2021082465A1 (en) | Method for ensuring data consistency and related device | |
US8930518B2 (en) | Processing of write requests in application server clusters | |
WO2022222303A1 (en) | Hdfs-based small file processing method and apparatus, medium and electronic device | |
WO2023155591A1 (en) | Progress information management and control method, micro-service apparatus, electronic device, and storage medium | |
WO2017092384A1 (en) | Clustered database distributed storage method and device | |
WO2017157111A1 (en) | Method, device and system for preventing memory data loss | |
CN111831757A (en) | Method and device for generating and managing distributed global unique identification information | |
WO2024179138A1 (en) | Message processing method and apparatus, and communication device and storage medium | |
US8819481B2 (en) | Managing storage providers in a clustered appliance environment | |
CN111090782A (en) | Graph data storage method, device, equipment and storage medium | |
WO2021143049A1 (en) | Read-write method and apparatus, electronic device, and readable storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 22926889 Country of ref document: EP Kind code of ref document: A1 |