Service publishing method, device and equipment and storage medium thereof
The service publishing method addresses inefficiencies in existing solutions by concurrently processing requests and using an online configuration model to automate the deployment of service functions across multiple servers, enhancing efficiency and intelligence in service release processes.
Patent Information
- Application Number
- CN202411117305.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-14
- Publication Date
- 2024-12-20
AI Technical Summary
Existing service publishing solutions are time-consuming and not intelligent enough, particularly in scenarios with frequent version iterations and multi-cluster deployments, leading to inefficient deployment and release processes.
A service publishing method that includes obtaining a task processing request, starting a multi-process processing service to concurrently process image and configuration operation requests, identifying the relevant functions, and using an online configuration model to publish the image update function to servers, with features like multi-platform support and container encapsulation.
This method enables automatic online publishing of service functions, reducing manual operations and improving efficiency by enabling concurrent processing and intelligent deployment across multiple servers.
Smart Images

Figure CN119166199A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of R&D and design technology, and is applied to scenarios in which service functions are released online, and in particular to a service release method, apparatus, device, and storage medium thereof. Background Art
[0002] Currently, the version release of functional services is mostly done manually or on a scheduled basis, which results in deployment and release being more dependent on manual mode, and the scheduled release method is not intelligent enough.
[0003] Functional services have frequent version iterations. Multiple service functions may be updated in each application every day. Currently, the most commonly used version releases are based on the DSU architecture, that is, each application and each environment has multiple deployment clusters, and the container release strategy is rolling release, that is, if the number of service units in the current cluster is greater than 2, the container will be automatically deployed in batches, with a maximum rolling number of 3. In addition, multi-cluster deployment is serial deployment, that is, the next cluster will not start until the previous cluster deployment is completed, which seriously affects the deployment and release efficiency and is time-consuming. Summary of the invention
[0004] The purpose of the embodiments of the present application is to propose a service publishing method, device, equipment and storage medium thereof to solve the problem that the existing service publishing solutions are time-consuming to publish and go online and are not intelligent enough.
[0005] In order to solve the above technical problems, the embodiment of the present application provides a service publishing method, which adopts the following technical solution:
[0006] A service publishing method comprises the following steps:
[0007] Obtaining a task processing request for an image update solution to be released, wherein the task processing request includes an image update type request and an online configuration operation type request;
[0008] Start a multi-process processing service, use an update process to process the image update request, and use a configuration operation process to process the online configuration operation request, and respond to the task processing request concurrently;
[0009] According to the processing result of the update class process, identifying the image update function that implements the image update solution;
[0010] According to the processing result of the configuration operation class process, calling the configuration operation function to respond, and calling the online configuration model required by the online configuration operation class request through the configuration operation function;
[0011] The image update function is published to the corresponding server by using the online configuration model, and the image update solution is set to an online state.
[0012] Furthermore, after executing the step of processing the image update request using an update process, the method further includes:
[0013] Sending a configuration operation instruction to the configuration operation process through the update process;
[0014] When the configuration operation process obtains the configuration operation instruction, the configuration operation process obtains the processing result of the update process stored in the target database;
[0015] Based on the processing result of the update process, the latest feature state of the updated image is determined, and the latest feature state is synchronized as the configuration parameter of the configuration operation process.
[0016] Furthermore, the online configuration model includes a multi-platform online configuration model based on a publishing tool, and the step of publishing the image update function to the corresponding server using the online configuration model specifically includes:
[0017] Identify the clustered service end of the target organization according to the business scope of the target organization;
[0018] Obtaining address information and port information of all servers in the clustered server;
[0019] Using the address information and port information of all the servers as the target connection parameters of the publishing tool;
[0020] Based on the target connection parameters, the image update function is published to all servers in the clustered server.
[0021] Furthermore, after executing the step of using the address information and port information of all the servers as the target connection parameters of the publishing tool, the method further includes:
[0022] The publishing mode of the publishing tool is set to full lossless publishing mode.
[0023] Furthermore, the step of publishing the image update function to all servers in the clustered server based on the target connection parameters specifically includes:
[0024] Establishing a communication connection relationship between the publishing tool and all the servers in the clustered server according to the target connection parameters;
[0025] Obtaining the distinguishing identification information of the preset containers in all the servers, and the storage address information allocated to all the containers in the corresponding servers;
[0026] Setting the distinguishing identification information and the storage address information as encapsulation parameters of the image update function;
[0027] The image update function is encapsulated into a corresponding container according to the encapsulation parameters, and the image update function is published to all the servers of the clustered server.
[0028] Further, after executing the step of setting the image update scheme to an online state, the method further includes:
[0029] Determine whether an image update request sent by the client is received;
[0030] If an image update request sent by a client is received, determining a target application scenario corresponding to the image update solution in the client;
[0031] The image update function is implanted into the engine environment corresponding to the target application scenario, so as to deploy the image update function to the client end.
[0032] Furthermore, after executing the step of implanting the image update function into the engine environment corresponding to the application scenario, the method further includes:
[0033] Obtaining the latest image update request sent by the client, wherein the latest image update request includes the image to be updated and application scenario information;
[0034] According to the latest image update request, identifying the application scenario corresponding to the image to be updated;
[0035] If the application scenario corresponding to the image to be updated is the target application scenario, the image update function is called to perform update processing on the image to be updated.
[0036] In order to solve the above technical problems, the embodiment of the present application also provides a service publishing device, which adopts the following technical solution:
[0037] A service publishing device, comprising:
[0038] A task processing request acquisition module, used to acquire a task processing request of an image update solution to be released, wherein the task processing request includes an image update type request and an online configuration operation type request;
[0039] A multi-process processing module, used to start a multi-process processing service, use an update process to process the image update request, use a configuration operation process to process the online configuration operation request, and respond to the task processing request concurrently;
[0040] An image update function identification module, used to identify the image update function for implementing the image update solution according to the processing result of the update class process;
[0041] An online configuration model calling module, used to call a configuration operation function to respond according to the processing result of the configuration operation class process, and call the online configuration model required by the online configuration operation class request through the configuration operation function;
[0042] The service function publishing and online module is used to publish the image update function to the corresponding server by using the online configuration model, and set the image update solution to the online state.
[0043] In order to solve the above technical problems, the embodiment of the present application further provides a computer device, which adopts the following technical solution:
[0044] A computer device includes a memory and a processor, wherein the memory stores computer-readable instructions, and the processor implements the steps of the above-mentioned service publishing method when executing the computer-readable instructions.
[0045] In order to solve the above technical problems, the embodiment of the present application further provides a computer-readable storage medium, which adopts the following technical solution:
[0046] A computer-readable storage medium stores computer-readable instructions, which, when executed by a processor, implement the steps of the service publishing method as described above.
[0047] Compared with the prior art, the embodiments of the present application have the following beneficial effects:
[0048] The service publishing method described in the embodiment of the present application obtains the task processing request of the image update scheme to be published; starts the multi-process processing service, uses the update class process to process the image update class request, and uses the configuration operation class process to process the online configuration operation class request, and responds to the task processing request concurrently; identifies the image update function that implements the image update scheme according to the processing result of the update class process; calls the configuration operation function to respond according to the processing result of the configuration operation class process, and calls the online configuration model required for the online configuration operation class request through the configuration operation function; uses the online configuration model to publish the image update function to the corresponding server, and sets the image update scheme to the online state. The service publishing method described is used in financial business, which can realize the automatic online publishing of the service functions used by the image update scheme according to the publishing request, reduces the manual operation steps, improves the online publishing efficiency, and is more automated and intelligent. BRIEF DESCRIPTION OF THE DRAWINGS
[0049] In order to more clearly illustrate the scheme in the present application, a brief introduction is given below to the drawings required for use in the description of the embodiments of the present application. Obviously, the drawings described below are some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.
[0050] Figure 1 is an exemplary system architecture diagram to which the present application may be applied;
[0051] Figure 2 is a flow chart of an embodiment of a service publishing method according to the present application;
[0052] Figure 3 yes Figure 2 A flowchart of a specific embodiment of step 205 is shown;
[0053] Figure 4 yes Figure 3 A flowchart of a specific embodiment of step 304 is shown;
[0054] Figure 5 is a structural diagram of an embodiment of a service publishing device according to the present application;
[0055] Figure 6 It is a structural diagram of an embodiment of a computer device according to the present application. DETAILED DESCRIPTION
[0056] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as those commonly understood by technicians in the technical field of the present application; the terms used in the specification of the application herein are only for the purpose of describing specific embodiments and are not intended to limit the present application; the terms "including" and "having" and any variations thereof in the specification and claims of the present application and the above-mentioned drawings are intended to cover non-exclusive inclusions. The terms "first", "second", etc. in the specification and claims of the present application or the above-mentioned drawings are used to distinguish different objects, not to describe a specific order.
[0057] Reference to "embodiments" herein means that a particular feature, structure, or characteristic described in conjunction with the embodiments may be included in at least one embodiment of the present application. The appearance of the phrase in various locations in the specification does not necessarily refer to the same embodiment, nor is it an independent or alternative embodiment that is mutually exclusive with other embodiments. It is explicitly and implicitly understood by those skilled in the art that the embodiments described herein may be combined with other embodiments.
[0058] In order to enable those skilled in the art to better understand the solution of the present application, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the accompanying drawings.
[0059] like Figure 1 As shown, the system architecture 100 may include terminal devices 101, 102, 103, a network 104 and a server 105. The network 104 is used to provide a medium for communication links between the terminal devices 101, 102, 103 and the server 105. The network 104 may include various connection types, such as wired, wireless communication links or optical fiber cables, etc.
[0060] Users can use terminal devices 101, 102, 103 to interact with server 105 through network 104 to receive or send messages, etc. Various communication client applications can be installed on terminal devices 101, 102, 103, such as web browser applications, shopping applications, search applications, instant messaging tools, email clients, social platform software, etc.
[0061] The terminal devices 101, 102, and 103 can be various electronic devices with display screens and supporting web browsing, including but not limited to smart phones, tablet computers, e-book readers, MP3 players (Moving Picture Experts Group Audio Layer III), MP4 (Moving Picture Experts Group Audio Layer IV) players, laptop computers, desktop computers, etc.
[0062] The server 105 may be a server that provides various services, such as a background server that provides support for web pages displayed on the terminal devices 101 , 102 , and 103 .
[0063] It should be noted that the service publishing method provided in the embodiment of the present application is generally executed by a terminal device, and accordingly, the service publishing device is generally arranged in the terminal device.
[0064] It should be understood that Figure 1 The number of terminal devices, networks and servers in the embodiment is only for illustration. Any number of terminal devices, networks and servers may be provided according to the implementation requirements.
[0065] Continue to refer Figure 2 , shows a flow chart of an embodiment of a service publishing method according to the present application. The service publishing method comprises the following steps:
[0066] Step 201: Obtain a task processing request for an image update solution to be released, wherein the task processing request includes an image update type request and an online configuration operation type request.
[0067] In this embodiment, the task processing request of the image update solution to be released, specifically, the image update solution refers to the image update solution newly developed by the R&D personnel, and the to-be-released means that the image update solution has been tested and released to the server as a formal version, and the task processing request refers to the processing request for implementing the formal release of the version. Obviously, the task processing request is issued by the business management end of the target organization, and the acquiring party is the version release end. The above-mentioned image update solution, for example: a new solution for face recognition in banking business, a new solution for identity card information recognition, a new solution for image document processing, etc. Using the service release method in financial business can realize the automatic online release of the service functions used by the image update solution according to the release request, reducing the manual operation steps and being more automated and intelligent.
[0068] Step 202, start the multi-process processing service, use the update class process to process the image update class request, and use the configuration operation class process to process the online configuration operation class request, and respond to the task processing request concurrently.
[0069] In this embodiment, the multi-process processing service includes at least an update class process processing service and a configuration operation class process processing service. Specifically, the update class process processing service is used to process task update class requests, such as the image update class requests, and the configuration operation class process processing service is used to process configuration operation class requests.
[0070] In this embodiment, after executing the step of using the update class process to process the image update class request, the method also includes: sending configuration operation instructions to the configuration operation class process through the update class process; when the configuration operation class process obtains the configuration operation instruction, the configuration operation class process obtains the processing result of the update class process stored in the target database; based on the processing result of the update class process, determining the latest feature status of the updated image, and synchronizing the latest feature status as the configuration parameters of the configuration operation class process.
[0071] Specifically, after the update class process is used to process the image update class request, the update class process sends a configuration operation instruction to the configuration operation class process. When the configuration operation class process obtains the configuration operation instruction, the configuration operation class process obtains the processing result of the update class process stored in the target database, determines the latest feature state of the updated image based on the processing result of the update class process, and synchronizes the latest feature state as the configuration parameter of the configuration operation class process, thereby realizing that after the update class process is completed, the configuration operation class process is promptly reminded to obtain the updated data, and the updated data is promptly synchronized to the configuration operation class process.
[0072] In this embodiment, the concurrent response refers to the rapid rotation execution of multiple process instructions, and the concurrent response to the task processing request refers to the rapid rotation execution of the update class processes involved in the image update class requests and the configuration operation class processes involved in the online configuration operation class requests, thereby ensuring that the release and online release are completed in a timely manner.
[0073] Step 203: Identify the image update function that implements the image update solution according to the processing result of the update process.
[0074] Specifically, the image update function that implements the image update solution is identified through the processing result of the update class process. The image update function is first identified to facilitate the subsequent release of the image update function to the target service platform for client users to download and use or service call.
[0075] Step 204: according to the processing result of the configuration operation class process, call the configuration operation function to respond, and call the online configuration model required by the online configuration operation class request through the configuration operation function.
[0076] Specifically, firstly, according to the processing result of the configuration operation class process, the configuration operation function is called to respond, and then the online configuration model required by the online configuration operation class request is called through the configuration operation function, thereby realizing the automatic configuration of the release and launch of the service function according to the online configuration model.
[0077] Step 205: Utilize the online configuration model to publish the image update function to the corresponding server, and set the image update solution to an online state.
[0078] In this embodiment, the online configuration model includes a multi-platform online configuration model based on a publishing tool. Specifically, the publishing tool is, for example: bank multimedia information publishing software, bank information publishing system, financial institution information publishing system, etc.
[0079] Continue to refer Figure 3 , Figure 3 yes Figure 2 The flowchart of a specific embodiment of step 205 shown includes:
[0080] Step 301, identifying the clustered service end of the target institution according to the business scope of the target institution, specifically, the target institution includes a financial institution, a bank, etc.;
[0081] Step 302, obtaining address information and port information of all servers in the clustered server;
[0082] Step 303, using the address information and port information of all the servers as the target connection parameters of the publishing tool;
[0083] In this embodiment, after executing the step of using the address information and port information of all the servers as the target connection parameters of the publishing tool, the method further includes: setting the publishing mode of the publishing tool to a full lossless publishing mode. The full lossless publishing mode can improve the publishing efficiency compared with the current conventional rolling publishing mode.
[0084] Step 304: Based on the target connection parameters, publish the image update function to all servers in the clustered server.
[0085] Specifically, especially when the target organization has a wide business scope and involves a large area, when publishing the image update function, a cluster publishing method is adopted, and the address information and port information of all the servers are used as the target connection parameters of the publishing tool. Based on the target connection parameters, the image update function is published to all the servers in the clustered server, ensuring that all the servers in the clustered server can obtain the image update function after one publication.
[0086] Continue to refer Figure 4 , Figure 4 yes Figure 3 The flowchart of a specific embodiment of step 304 shown includes:
[0087] Step 401, establishing a communication connection relationship between the publishing tool and all servers in the clustered server according to the target connection parameters;
[0088] Step 402, obtaining the distinguishing identification information of the preset containers in all the servers, and the storage address information allocated to all the containers in the corresponding servers;
[0089] Step 403, setting the distinguishing identification information and the storage address information as encapsulation parameters of the image update function;
[0090] Step 404: encapsulate the image update function into a corresponding container according to the encapsulation parameters, and complete publishing the image update function to all servers of the clustered server.
[0091] Specifically, the image update function is released online by adopting a container encapsulation method, which is convenient for subsequent use of a container management method to directly manage the image update function of the server, and is convenient for subsequent management personnel to manage and maintain the service function.
[0092] In this embodiment, after executing the step of setting the image update scheme to an online state, the method also includes: determining whether an image update request sent by the client is received; if an image update request sent by the client is received, determining the target application scenario corresponding to the image update scheme in the client; implanting the image update function into the engine environment corresponding to the target application scenario, and deploying the image update function to the client.
[0093] Specifically, after receiving an image update request sent by the client, the target application scenario corresponding to the image update solution in the client is determined, and the target application scenario is, for example, an application APP, etc.; the image update function is implanted into the engine environment corresponding to the target application scenario, and the image update function is downloaded in the form of a plug-in to a processing engine compatible with the application APP, thereby realizing the deployment of the image update function to the client.
[0094] In this embodiment, after executing the step of implanting the image update function into the engine environment corresponding to the application scenario, the method also includes: obtaining the latest image update request sent by the client, wherein the latest image update request includes the image to be updated and the application scenario information; according to the latest image update request, identifying the application scenario corresponding to the image to be updated; if the application scenario corresponding to the image to be updated is the target application scenario, calling the image update function to update the image to be updated.
[0095] Specifically, after the image update function is imported into a processing engine compatible with the application APP in the form of a plug-in, if the latest image update request sent by the client is obtained, the application scenario corresponding to the image to be updated is identified according to the latest image update request; if the application scenario corresponding to the image to be updated is the target application scenario, the image update function is called to update the image to be updated. The calling of the image update function is realized.
[0096] The present application obtains the task processing request of the image update scheme to be released; starts the multi-process processing service, uses the update class process to process the image update class request, and uses the configuration operation class process to process the online configuration operation class request, and responds to the task processing request concurrently; identifies the image update function that implements the image update scheme according to the processing result of the update class process; calls the configuration operation function to respond according to the processing result of the configuration operation class process, and calls the online configuration model required for the online configuration operation class request through the configuration operation function; uses the online configuration model to publish the image update function to the corresponding server, and sets the image update scheme to the online state. The service publishing method described is used in financial business, which can realize the automatic online publishing of the service functions used by the image update scheme according to the publishing request, reduces the manual operation steps, improves the online publishing efficiency, and is more automated and intelligent.
[0097] The embodiments of the present application can acquire and process relevant data based on artificial intelligence technology. Artificial Intelligence (AI) is the theory, method, technology and application system that uses digital computers or machines controlled by digital computers to simulate, extend and expand human intelligence, perceive the environment, acquire knowledge and use knowledge to obtain the best results.
[0098] AI basic technologies generally include sensors, dedicated AI chips, cloud computing, distributed storage, big data processing technology, operation / interaction systems, mechatronics, etc. AI software technologies mainly include computer vision technology, robotics technology, biometrics technology, speech processing technology, natural language processing technology, and machine learning / deep learning.
[0099] In the embodiment of the present application, by obtaining the task processing request of the image update scheme to be released; starting the multi-process processing service, using the update class process to process the image update class request, and using the configuration operation class process to process the online configuration operation class request, the task processing request is responded to concurrently; according to the processing result of the update class process, the image update function of the image update scheme is identified; according to the processing result of the configuration operation class process, the configuration operation function is called to respond, and the online configuration model required for the online configuration operation class request is called through the configuration operation function; using the online configuration model, the image update function is published to the corresponding server, and the image update scheme is set to the online state. The service publishing method described is used in financial business, which can realize the automatic online publishing of the service functions used by the image update scheme according to the publishing request, reduces the manual operation steps, improves the online publishing efficiency, and is more automated and intelligent.
[0100] Further references Figure 5 , as a response to the above Figure 2 The present application provides an embodiment of a service publishing device, and the device embodiment is similar to Figure 2 Corresponding to the method embodiment shown, the device can be specifically applied to various electronic devices.
[0101] like Figure 5 As shown, the service publishing device 500 described in this embodiment includes: a task processing request acquisition module 501, a multi-process processing module 502, an image update function identification module 503, an online configuration model calling module 504 and a service function publishing online module 505. Among them:
[0102] The task processing request acquisition module 501 is used to acquire the task processing request of the image update solution to be released, wherein the task processing request includes an image update type request and an online configuration operation type request;
[0103] The multi-process processing module 502 is used to start the multi-process processing service, use the update class process to process the image update class request, and use the configuration operation class process to process the online configuration operation class request, and concurrently respond to the task processing request;
[0104] An image update function identification module 503, used to identify the image update function for implementing the image update solution according to the processing result of the update class process;
[0105] The online configuration model calling module 504 is used to call the configuration operation function to respond according to the processing result of the configuration operation class process, and call the online configuration model required by the online configuration operation class request through the configuration operation function;
[0106] The service function publishing and online module 505 is used to publish the image update function to the corresponding server by using the online configuration model, and set the image update solution to the online state.
[0107] The present application obtains the task processing request of the image update scheme to be released; starts the multi-process processing service, uses the update class process to process the image update class request, and uses the configuration operation class process to process the online configuration operation class request, and responds to the task processing request concurrently; identifies the image update function that implements the image update scheme according to the processing result of the update class process; calls the configuration operation function to respond according to the processing result of the configuration operation class process, and calls the online configuration model required for the online configuration operation class request through the configuration operation function; uses the online configuration model to publish the image update function to the corresponding server, and sets the image update scheme to the online state. The service publishing method described is used in financial business, which can realize the automatic online publishing of the service functions used by the image update scheme according to the publishing request, reduces the manual operation steps, improves the online publishing efficiency, and is more automated and intelligent.
[0108] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiments can be implemented by instructing the relevant hardware through computer-readable instructions, and the computer-readable instructions can be stored in a computer-readable storage medium. When the program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, the aforementioned storage medium can be a non-volatile storage medium such as a disk, an optical disk, a read-only memory (ROM), or a random access memory (RAM).
[0109] It should be understood that, although the steps in the flowchart of the accompanying drawings are displayed in sequence as indicated by the arrows, these steps are not necessarily executed in sequence in the order indicated by the arrows. Unless otherwise specified herein, there is no strict order restriction on the execution of these steps, and they can be executed in other orders. Moreover, at least a part of the steps in the flowchart of the accompanying drawings may include multiple sub-steps or multiple stages, and these sub-steps or stages are not necessarily executed at the same time, but can be executed at different times, and their execution order is not necessarily sequential, but can be executed in turn or alternately with other steps or at least a part of the sub-steps or stages of other steps.
[0110] To solve the above technical problems, the present application also provides a computer device. Figure 6 , Figure 6 This is a basic structural block diagram of the computer device in this embodiment.
[0111] The computer device 6 includes a memory 6a, a processor 6b, and a network interface 6c that are interconnected through a system bus. It should be noted that the figure only shows a computer device 6 having components 6a-6c, but it should be understood that it is not required to implement all the components shown, and more or fewer components can be implemented instead. Among them, those skilled in the art can understand that the computer device here is a device that can automatically perform numerical calculations and / or information processing according to pre-set or stored instructions, and its hardware includes but is not limited to microprocessors, application-specific integrated circuits (ASICs), field-programmable gate arrays (FPGAs), digital processors (DSPs), embedded devices, etc.
[0112] The computer device may be a computing device such as a desktop computer, a notebook, a PDA, a cloud server, etc. The computer device may interact with a user through a keyboard, a mouse, a remote controller, a touch pad, or a voice control device.
[0113] The memory 6a includes at least one type of readable storage medium, and the readable storage medium includes flash memory, hard disk, multimedia card, card-type memory (for example, SD or DX memory, etc.), random access memory (RAM), static random access memory (SRAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), programmable read-only memory (PROM), magnetic memory, magnetic disk, optical disk, etc. In some embodiments, the memory 6a can be an internal storage unit of the computer device 6, such as a hard disk or memory of the computer device 6. In other embodiments, the memory 6a can also be an external storage device of the computer device 6, such as a plug-in hard disk equipped on the computer device 6, a smart memory card (Smart Med ia Card, SMC), a secure digital (Secure Digital, SD) card, a flash card (Flash Card), etc. Of course, the memory 6a can also include both the internal storage unit of the computer device 6 and its external storage device. In this embodiment, the memory 6a is generally used to store the operating system and various application software installed on the computer device 6, such as a computer-readable instruction of a service publishing method, etc. In addition, the memory 6a can also be used to temporarily store various types of data that have been output or are to be output.
[0114] The processor 6b may be a central processing unit (CPU), a controller, a microcontroller, a microprocessor, or other data processing chips in some embodiments. The processor 6b is generally used to control the overall operation of the computer device 6. In this embodiment, the processor 6b is used to run the computer-readable instructions stored in the memory 6a or process data, such as running the computer-readable instructions of the service publishing method.
[0115] The network interface 6c may include a wireless network interface or a wired network interface. The network interface 6c is generally used to establish a communication connection between the computer device 6 and other electronic devices.
[0116] The computer device proposed in this embodiment belongs to the field of research and development design technology, and is applied to the online release scenario of service functions. This application obtains the task processing request of the image update scheme to be released; starts the multi-process processing service, uses the update class process to process the image update class request, and uses the configuration operation class process to process the online configuration operation class request, and responds to the task processing request concurrently; according to the processing result of the update class process, identifies the image update function that implements the image update scheme; according to the processing result of the configuration operation class process, calls the configuration operation function to respond, and calls the online configuration model required for the online configuration operation class request through the configuration operation function; uses the online configuration model to publish the image update function to the corresponding server, and sets the image update scheme to the online state. The service publishing method is used in financial business, which can realize the automatic online release of the service functions used by the image update scheme according to the release request, reduces the manual operation steps, improves the online release efficiency, and is more automated and intelligent.
[0117] The present application also provides another implementation, namely, providing a computer-readable storage medium, wherein the computer-readable storage medium stores computer-readable instructions, and the computer-readable instructions can be executed by a processor to enable the processor to perform the steps of the service publishing method as described above.
[0118] The computer-readable storage medium proposed in this embodiment belongs to the field of research and development design technology, and is applied to the online release scenario of service functions. This application obtains the task processing request of the image update scheme to be released; starts a multi-process processing service, uses the update class process to process the image update class request, and uses the configuration operation class process to process the online configuration operation class request, and responds to the task processing request concurrently; identifies the image update function that implements the image update scheme according to the processing result of the update class process; calls the configuration operation function to respond according to the processing result of the configuration operation class process, and calls the online configuration model required for the online configuration operation class request through the configuration operation function; uses the online configuration model to publish the image update function to the corresponding server, and sets the image update scheme to the online state. The service publishing method is used in financial business, which can realize the automatic online release of the service functions used by the image update scheme according to the release request, reduces the manual operation steps, improves the efficiency of online release, and is more automated and intelligent.
[0119] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present application, or the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk), and includes a number of instructions for a terminal device (which can be a mobile phone, computer, server, air conditioner, or network device, etc.) to execute the methods described in each embodiment of the present application.
[0120] Obviously, the embodiments described above are only some embodiments of the present application, rather than all embodiments. The preferred embodiments of the present application are given in the accompanying drawings, but they do not limit the patent scope of the present application. The present application can be implemented in many different forms. On the contrary, the purpose of providing these embodiments is to make the understanding of the disclosure of the present application more thorough and comprehensive. Although the present application is described in detail with reference to the aforementioned embodiments, for those skilled in the art, it is still possible to modify the technical solutions recorded in the aforementioned specific implementation methods, or to perform equivalent replacement of some of the technical features therein. Any equivalent structure made using the contents of the specification and drawings of this application, directly or indirectly used in other related technical fields, is similarly within the scope of patent protection of this application.
Claims
1. A service publishing method, characterized in that: The steps include: Obtaining a task processing request for an image update solution to be released, wherein the task processing request includes an image update type request and an online configuration operation type request; Start a multi-process processing service, use an update process to process the image update request, and use a configuration operation process to process the online configuration operation request, and respond to the task processing request concurrently; According to the processing result of the update class process, identifying the image update function that implements the image update solution; According to the processing result of the configuration operation class process, calling the configuration operation function to respond, and calling the online configuration model required by the online configuration operation class request through the configuration operation function; The image update function is published to the corresponding server by using the online configuration model, and the image update solution is set to an online state.
2. The service publishing method according to claim 1, characterized in that: After executing the step of processing the image update class request by using the update class process, the method further includes: Sending a configuration operation instruction to the configuration operation process through the update process; When the configuration operation process obtains the configuration operation instruction, the configuration operation process obtains the processing result of the update process stored in the target database; Based on the processing result of the update process, the latest feature state of the updated image is determined, and the latest feature state is synchronized as the configuration parameter of the configuration operation process.
3. The service publishing method according to claim 1, characterized in that: The online configuration model includes a multi-platform online configuration model based on a publishing tool. The step of publishing the image update function to the corresponding server by using the online configuration model specifically includes: Identify the clustered service end of the target organization according to the business scope of the target organization; Obtaining address information and port information of all servers in the clustered server; Using the address information and port information of all the servers as the target connection parameters of the publishing tool; Based on the target connection parameters, the image update function is published to all servers in the clustered server.
4. The service publishing method according to claim 3, characterized in that: After executing the step of using the address information and port information of all the servers as the target connection parameters of the publishing tool, the method further includes: The publishing mode of the publishing tool is set to full lossless publishing mode.
5. The service publishing method according to claim 3, characterized in that: The step of publishing the image update function to all the servers in the clustered server based on the target connection parameters specifically includes: Establishing a communication connection relationship between the publishing tool and all the servers in the clustered server according to the target connection parameters; Obtaining the distinguishing identification information of the preset containers in all the servers, and the storage address information allocated to all the containers in the corresponding servers; Setting the distinguishing identification information and the storage address information as encapsulation parameters of the image update function; The image update function is encapsulated into a corresponding container according to the encapsulation parameters, and the image update function is published to all the servers of the clustered server.
6. The service publishing method according to claim 1, characterized in that: After executing the step of setting the image update scheme to an online state, the method further includes: Determine whether an image update request sent by the client is received; If an image update request sent by a client is received, determining a target application scenario corresponding to the image update solution in the client; The image update function is implanted into the engine environment corresponding to the target application scenario, so as to deploy the image update function to the client end.
7. The service publishing method according to claim 6, characterized in that: After executing the step of implanting the image update function into the engine environment corresponding to the application scenario, the method further includes: Obtaining the latest image update request sent by the client, wherein the latest image update request includes the image to be updated and application scenario information; According to the latest image update request, identifying the application scenario corresponding to the image to be updated; If the application scenario corresponding to the image to be updated is the target application scenario, the image update function is called to perform update processing on the image to be updated.
8. A service publishing device, characterized in that: include: A task processing request acquisition module, used to acquire a task processing request of an image update solution to be released, wherein the task processing request includes an image update type request and an online configuration operation type request; A multi-process processing module, used to start a multi-process processing service, use an update process to process the image update request, use a configuration operation process to process the online configuration operation request, and respond to the task processing request concurrently; An image update function identification module, used to identify the image update function for implementing the image update solution according to the processing result of the update class process; An online configuration model calling module, used to call a configuration operation function to respond according to the processing result of the configuration operation class process, and call the online configuration model required by the online configuration operation class request through the configuration operation function; The service function publishing and online module is used to publish the image update function to the corresponding server by using the online configuration model, and set the image update solution to the online state.
9. A computer device, characterized in that: The method comprises a memory and a processor, wherein the memory stores computer-readable instructions, and the processor implements the steps of the service publishing method according to any one of claims 1 to 7 when executing the computer-readable instructions.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer-readable instructions, and when the computer-readable instructions are executed by a processor, the steps of the service publishing method according to any one of claims 1 to 7 are implemented.
