Business processing method and device, program product and electronic equipment

By dynamically adjusting the business process when updating the business process, the unavailability of business services caused by server restart is avoided, the flexibility and efficiency of business processing is improved, and the problem of restarting the server when updating the business process in the existing technology is solved.

CN119835328AActive Publication Date: 2025-04-15INDUSTRIAL AND COMMERCIAL BANK OF CHINA
View PDF 6 Cites 0 Cited by

Patent Information

Application Number
CN202411832478.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-12-12
Publication Date
2025-04-15
Estimated Expiration
2044-12-12

AI Technical Summary

Technical Problem

When updating business processes, the existing technology requires restarting the server, resulting in a period of unavailability of the business services.

Method used

By receiving the service processing request when the main switch of the target service is turned on, the business process collection is determined, and the switch identification is transmitted to the server, the switch value to be modified is received from the server, and the business process is dynamically adjusted.

Benefits of technology

This avoids the unavailability of business services due to business process modification, improves the flexibility and efficiency of business processing, and achieves the technical effect of efficient business processing.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119835328A_ABST
    Figure CN119835328A_ABST
Patent Text Reader

Abstract

The invention discloses a business processing method and device, a program product and electronic equipment, and relates to the field of financial science and technology or other related fields, and the business processing method comprises the steps: receiving a business processing request related to a target business under the condition that a main switch of the target business is turned on, determining a business process set based on the business processing request, and transmitting the switch identifiers corresponding to all the business processes to the server, receiving a to-be-modified switch identifier of which the switch value needs to be modified returned by the server, modifying the initial switch value indicated by the to-be-modified switch identifier to obtain a target switch value, and modifying the switch value of the to-be-modified switch identifier based on all the target switch values and all the unmodified initial switch values to obtain the switch value of the to-be-modified switch identifier. And processing the target service. The technical problem that the business service is unavailable for a period of time due to the fact that the server needs to be restarted when the business process is updated in the prior art is solved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of financial technology, and in particular, to a business processing method and its device, program product, and electronic device. Background Art

[0002] With the rapid development of technology and the continuous changes in business needs, it is necessary to continuously update the business processes corresponding to the business to improve business processing performance and optimize user experience. In order to ensure that the updated business processes can be smoothly integrated with the existing systems and processes, a transition between the old and new processes is required.

[0003] However, currently, when switching between the old and new processes, the server needs to be restarted, causing the business service to be unavailable for a period of time.

[0004] To the above-mentioned problems, no effective solution has been proposed yet. Summary of the invention

[0005] The embodiments of the present invention provide a business processing method and apparatus, a program product, and an electronic device, so as to at least solve the technical problem in the related art that when updating a business process, a server needs to be restarted, resulting in the business service being unavailable for a period of time.

[0006] According to one aspect of an embodiment of the present invention, a business processing method is provided, including: receiving a business processing request for a target business when the main switch of the target business is turned on; determining a business process set based on the business processing request, wherein each business process in the business process set corresponds to a switch identifier, and each switch indicated by the switch identifier corresponds to an initial switch value; transmitting the switch identifiers corresponding to all business processes to a server, and receiving the switch identifier to be modified returned by the server whose switch value needs to be modified; modifying the initial switch value indicated by the switch identifier to be modified to obtain a target switch value, and processing the target business based on all target switch values ​​and all unmodified initial switch values.

[0007] In one embodiment of the present invention, when the main switch of the target business is turned on, before receiving the business processing request regarding the target business, it also includes: determining all business processes corresponding to each business; configuring the main switch for each business, and configuring the switch for each business process, wherein the main switch is used to control the execution of the business, and the switch is used to control the execution of the business process; recording the switch identifier corresponding to each switch to a preset namespace in a distributed configuration center, wherein the distributed configuration center is used to receive modification requirements of the business, and modify the switch value corresponding to the switch identifier in the preset namespace based on the modification requirements.

[0008] In one embodiment of the present invention, after configuring a main switch for each business and configuring a switch for each business process, it also includes: when the business needs to add a business scenario, building a new business process corresponding to the business scenario; configuring a new switch for the new business process, and recording the new switch identifier corresponding to the new switch to the preset namespace in the distributed configuration center.

[0009] In one embodiment of the present invention, the server is used to monitor a preset namespace in a distributed configuration center, and when it is monitored that a switch value in the preset namespace is modified, the switch identifier corresponding to the modified switch value is recorded as a switch identifier to be modified, and all switch identifiers to be modified are added to the preset cache.

[0010] In one embodiment of the present invention, after the switch identifiers corresponding to all business processes are transmitted to the server, it also includes: the server matches the switch identifier with the switch identifier to be modified in the preset cache; if the switch identifier to be modified is successfully matched, the switch identifier to be modified is returned to the client.

[0011] In one embodiment of the present invention, the initial switch value is a first preset value, the target switch value is a second preset value, and the step of processing the target business based on all target switch values ​​and all unmodified initial switch values ​​includes: based on a business process set, retaining the business process corresponding to the first preset value, and deleting the business process corresponding to the second preset value to obtain a target business process set; executing all target business processes in the target business process set to complete the processing of the target business.

[0012] In one embodiment of the present invention, the business processing method also includes: when the front-end page of the client is refreshed or re-logged in, the client transmits the switch identifiers corresponding to all business processes involved in the business executed by the front-end page to the server; based on the switch identifier to be modified returned by the server, all business processes involved in the business are adjusted.

[0013] According to another aspect of an embodiment of the present invention, a business processing device is also provided, including: a receiving unit, used to receive a business processing request for a target business when the main switch of the target business is turned on; a determining unit, used to determine a business process set based on the business processing request, wherein each business process in the business process set corresponds to a switch identifier, and each switch indicated by the switch identifier corresponds to an initial switch value; a transmitting unit, used to transmit the switch identifiers corresponding to all business processes to a server, and receive the switch identifier to be modified returned by the server and requiring the switch value to be modified; a processing unit, used to modify the initial switch value indicated by the switch identifier to be modified, obtain a target switch value, and process the target business based on all target switch values ​​and all unmodified initial switch values.

[0014] In one embodiment of the present invention, the business processing device also includes: a first determination module, used to determine all business processes corresponding to each business before receiving a business processing request regarding the target business when the main switch of the target business is turned on; a first configuration module, used to configure the main switch for each business and to configure the switch for each business process, wherein the main switch is used to control the execution of the business and the switch is used to control the execution of the business process; a first recording module, used to record the switch identifier corresponding to each switch to a preset namespace in a distributed configuration center, wherein the distributed configuration center is used to receive modification requirements for the business and to modify the switch value corresponding to the switch identifier in the preset namespace based on the modification requirements.

[0015] In one embodiment of the present invention, the business processing device also includes: a first construction module, which is used to construct a new business process corresponding to the business scenario after configuring a main switch for each business and configuring a switch for each business process when the business needs to add a business scenario; a first new module, which is used to configure a new switch for the new business process, and record the new switch identifier corresponding to the new switch to the preset namespace in the distributed configuration center.

[0016] In one embodiment of the present invention, the server is used to monitor a preset namespace in a distributed configuration center, and when it is monitored that a switch value in the preset namespace is modified, the switch identifier corresponding to the modified switch value is recorded as a switch identifier to be modified, and all switch identifiers to be modified are added to the preset cache.

[0017] In one embodiment of the present invention, the business processing device also includes: a first matching module, which is used to, after the switch identifiers corresponding to all business processes are transmitted to the server, the server matches the switch identifier with the switch identifier to be modified in a preset cache; and a first return module, which is used to return the switch identifier to be modified to the client when the switch identifier to be modified is successfully matched.

[0018] In one embodiment of the present invention, the initial switch value is a first preset value, the target switch value is a second preset value, and the processing unit includes: a first retention module, which is used to retain the business process corresponding to the first preset value based on the business process set, and delete the business process corresponding to the second preset value to obtain a target business process set; a first execution module, which is used to execute all target business processes in the target business process set to complete the processing of the target business.

[0019] In one embodiment of the present invention, the business processing device also includes: a first transmission module, which is used to transmit the switch identifiers corresponding to all business processes involved in the business executed by the front-end page of the client to the server when the front-end page of the client is refreshed or re-logged in; a first adjustment module, which is used to adjust all business processes involved in the business based on the switch identifier to be modified returned by the server.

[0020] According to another aspect of an embodiment of the present invention, a computer program product is provided, including a non-volatile computer-readable storage medium, wherein the non-volatile computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, any one of the above-mentioned business processing methods is implemented.

[0021] According to another aspect of an embodiment of the present invention, there is also provided an electronic device, comprising one or more processors and a memory, wherein the memory is used to store one or more programs, wherein when the one or more programs are executed by the one or more processors, the one or more processors implement any one of the above-mentioned business processing methods.

[0022] In the present invention, when the main switch of the target business is turned on, a business processing request for the target business is received, and based on the business processing request, a business process set is determined, the switch identifiers corresponding to all business processes are transmitted to the server, and the switch identifier to be modified returned by the server and the switch value to be modified is received, the initial switch value indicated by the switch identifier to be modified is modified to obtain the target switch value, and the target business is processed based on all the target switch values ​​and all the unmodified initial switch values, thereby solving the technical problem in the related art that the server needs to be restarted when updating the business process, resulting in the unavailability of the business service for a period of time.

[0023] In the present invention, a business process is dynamically adjusted by receiving a business processing request when the main switch of the target business is turned on, determining a business process set based on the request, and then transmitting the switch identifier in the set to the server, and receiving the switch identifier to be modified returned by the server. In this way, not only the flexibility and efficiency of business processing are improved, but also the changes in business requirements can be responded to in real time, avoiding the problem of unavailability of business services due to business process modification and the need to suspend business processing, and achieving the technical effect of efficient business processing. BRIEF DESCRIPTION OF THE DRAWINGS

[0024] The drawings described herein are used to provide a further understanding of the present invention and constitute a part of the present invention. The exemplary embodiments of the present invention and their descriptions are used to explain the present invention and do not constitute an improper limitation of the present invention. In the drawings:

[0025] Figure 1A hardware structure block diagram of a computer terminal (or mobile device) for implementing a business processing method is shown;

[0026] Figure 2 is a flowchart of a service processing method according to Embodiment 1 of the present invention;

[0027] Figure 3 is a schematic diagram of an optional service processing device according to an embodiment of the present invention;

[0028] Figure 4 is a structural block diagram of an electronic device according to an embodiment of the present invention. DETAILED DESCRIPTION

[0029] In order to enable those skilled in the art to better understand the scheme of the present invention, the technical scheme in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present invention.

[0030] It should be noted that the terms "first", "second", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.

[0031] It should be noted that the business processing method and device thereof in the present invention can be used in financial technology when conducting business processing, and can also be used in any field other than financial technology when conducting business processing. The present invention does not limit the application field of the business processing method and device thereof.

[0032] It should be noted that the relevant information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data for analysis, stored data, displayed data, etc.) collected and involved in the present invention are all information and data authorized by the user or fully authorized by all parties, and the collection, storage, use, processing, transmission, provision, disclosure and application of relevant data are in compliance with the relevant laws, regulations and standards of the relevant regions, necessary confidentiality measures are taken, and public order and good customs are not violated, and corresponding operation entrances are provided for users to choose to authorize or refuse. For example, an interface is set between the system and the relevant users or organizations. Before obtaining relevant information, it is necessary to send an acquisition request to the aforementioned user or organization through the interface, and obtain relevant information after receiving the consent information fed back by the aforementioned user or organization.

[0033] In the present invention, by setting the main switch of the service and setting the switch in each scenario (i.e., business process) at the front end, and then setting the switch value with dynamic variables at the back end, the service can be processed normally when the business process is modified. In practical applications, the above method can improve the response speed of business processing and user satisfaction, especially in scenarios where frequent adjustment of business logic or processes is required, its advantages are more obvious.

[0034] The present invention is described in detail below in conjunction with various embodiments.

[0035] Example 1

[0036] According to an embodiment of the present application, an embodiment of a business processing method is also provided. It should be noted that the steps shown in the flowchart of the accompanying drawings can be executed in a computer system such as a set of computer executable instructions, and although a logical order is shown in the flowchart, in some cases, the steps shown or described can be executed in an order different from that shown here.

[0037] The method embodiment provided in the first embodiment of the present application can be executed in a mobile terminal, a computer terminal or a similar computing device. Figure 1 FIG. 1 shows a hardware structure block diagram of a computer terminal (or mobile device) for implementing a service processing method. Figure 1 As shown, the computer terminal 10 (or mobile device) may include one or more ( Figure 1102a, 102b, ..., 102n are used to illustrate) processor 102 (processor 102 may include but is not limited to a processing device such as a microprocessor MCU or a programmable logic device FPGA), a memory 104 for storing data, and a transmission device 106 for communication functions. In addition, it may also include: a display, a keyboard, a cursor control device, an input / output interface (I / O interface), a universal serial bus (USB) port (which may be included as one of the ports of the BUS bus), a network interface, a power supply and / or a camera, wherein the network interface may be connected to a wired and / or wireless network. A person of ordinary skill in the art will understand that Figure 1 The structure shown is only for illustration and does not limit the structure of the above electronic device. Figure 1 More or fewer components as shown, or with Figure 1 Different configurations are shown.

[0038] It should be noted that the one or more processors 102 and / or other data processing circuits described above may generally be referred to herein as "data processing circuits". The data processing circuits may be embodied in whole or in part as software, hardware, firmware, or any other combination thereof. In addition, the data processing circuit may be a single independent processing module, or may be incorporated in whole or in part into any of the other components in the computer terminal 10 (or mobile device). As described in the embodiments of the present application, the data processing circuit acts as a processor control (e.g., selection of a variable resistor terminal path connected to an interface).

[0039] The memory 104 can be used to store software programs and modules of application software, such as program instructions / data storage devices corresponding to the business processing method in the embodiment of the present application. The processor 102 executes various functional applications and data processing by running the software programs and modules stored in the memory 104, that is, realizing the above-mentioned business processing method. The memory 104 may include a high-speed random access memory, and may also include a non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, the memory 104 may further include a memory remotely arranged relative to the processor 102, and these remote memories may be connected to the computer terminal 10 via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.

[0040] The transmission device 106 is used to receive or send data via a network. The specific example of the above network may include a wireless network provided by a communication provider of the computer terminal 10. In one example, the transmission device 106 includes a network adapter (Network Interface Controller, NIC), which can be connected to other network devices through a base station so as to communicate with the Internet. In one example, the transmission device 106 can be a radio frequency (RF) module, which is used to communicate with the Internet wirelessly.

[0041] The display may be, for example, a touch screen liquid crystal display (LCD) that enables a user to interact with a user interface of the computer terminal 10 (or mobile device).

[0042] Under the above operating environment, this application provides Figure 2 The business processing method shown. Figure 2 is a flow chart of a service processing method according to Embodiment 1 of the present invention. Figure 2 As shown, the method comprises the following steps:

[0043] Step S201: When the main switch of the target service is turned on, a service processing request for the target service is received.

[0044] In an embodiment of the present invention, a main switch for a business can be set on the business system to control whether to provide services for the business through the main switch. For example, a main switch for a consumption voucher business is set. If the main switch is turned on, it means that the current business system can provide services for processing consumption voucher business.

[0045] In an embodiment of the present invention, the business system can check the status of the "master switch" to confirm whether it is turned on. For example, query the configuration information stored in the distributed configuration center, because the "master switch" value is dynamically adjustable and may be different in different server environments. If the "master switch" is in the on state, the front-end page will display the function entrances related to the target business, and users can access and use these functions normally. At the same time, the back-end service is ready to receive and process any requests related to the target business. In this embodiment, after receiving the business processing request sent by the front-end, the back-end will further check the switch value of the business process (ie, sub-process) or function related to the request. If the relevant switch is also turned on, the back-end will execute the corresponding business logic and return the processing results to the front-end.

[0046] In the embodiment of the present invention, the "master switch" is a global control mechanism used to turn on or off all front-end displays and back-end service logic related to the target business at one time. When the "master switch" is in the on state, it means that the business system allows receiving and processing all requests related to the business.

[0047] Step S202: determine a business process set based on the business processing request, wherein each business process in the business process set corresponds to a switch identifier, and a switch indicated by each switch identifier corresponds to an initial switch value.

[0048] In an embodiment of the present invention, when a user (or other system) initiates a business processing request to a business system, the business system can parse and determine the set of business processes involved in the request. For example, when a user initiates a consumer voucher business processing request, the business system can query all business processes related to the consumer voucher business processing request (such as a consumption channel determination process, a consumer voucher verification process, etc.), and each business process corresponds to a switch (with a unique switch identifier) ​​to individually control whether the business process is enabled. For example, the initial switch value corresponding to the switch can be set, and the initial switch value can default to a first preset value (such as 1) to indicate that the switch is in the on state, and the business uses the business process corresponding to the switch.

[0049] Step S203: Transmit the switch identifiers corresponding to all business processes to the server, and receive the switch identifier to be modified whose switch value needs to be modified returned by the server.

[0050] In an embodiment of the present invention, when a user logs in or refreshes a page, the front end collects the switch identifiers of all processes related to the current business (i.e., business processes). These switch identifiers are usually contained in the front-end JS (Java Script) file or request parameters, which are used to communicate with the back end, indicating the list of business processes currently supported by the front end. Then, the front end sends the switch identifiers corresponding to all collected business processes to the server through a network request, and receives the switch identifier to be modified returned by the server, so as to facilitate the subsequent processing of the business according to the new switch value. For example, if the switch value of a business process is turned off by the back end, the business process will not be executed. In this way, when some business processes are updated or offline, the processing of the business will not be affected.

[0051] Step S204: modify the initial switch value indicated by the switch identifier to be modified to obtain a target switch value, and process the target service based on all target switch values ​​and all unmodified initial switch values.

[0052] In an embodiment of the present invention, the initial switch value indicated by the received switch identifier to be modified can be modified to obtain a target switch value, that is, changed from a first preset value (such as 1) to a second preset value (such as 0) to indicate that the switch is changed from on to off. Then, the target business is processed according to the target switch value and all unmodified initial switch values ​​(that is, according to the switch status of the switches of all business processes). For example, if the switch of a business process is off, the business process is not executed, and other business processes with other switches on are directly executed, so that when some business processes are offline or updated, there is no need to suspend the service, and real-time processing of the business can be achieved.

[0053] In summary, by receiving a business processing request when the main switch of the target business is turned on, determining a business process set based on the request, and then transmitting the switch identifier in the set to the server, and receiving the switch identifier to be modified returned by the server, the business process can be dynamically adjusted. In this way, not only the flexibility and efficiency of business processing are improved, but also the changes in business needs can be responded to in real time, avoiding the problem of business service unavailability due to business process modification and the need to suspend business processing, achieving the technical effect of efficient business processing, and thus solving the technical problem in the related technology that the server needs to be restarted when updating the business process, resulting in the unavailability of business services for a period of time.

[0054] In order to accurately control each business process in a business, in the business processing method provided in Example 1 of the present application, when the main switch of the target business is turned on, before receiving a business processing request for the target business, all business processes corresponding to each business are determined; a main switch is configured for each business, and a switch is configured for each business process, wherein the main switch is used to control the execution of the business, and the switch is used to control the execution of the business process; the switch identifier corresponding to each switch is recorded in a preset namespace in a distributed configuration center, wherein the distributed configuration center is used to receive modification requirements of the business, and modify the switch value corresponding to the switch identifier in the preset namespace based on the modification requirements.

[0055] In an embodiment of the present invention, all business processes included in each business (for example, a consumer voucher management business) can be determined first. These business processes may involve multiple aspects such as front-end display, back-end service calls, data processing, and authority verification. For example, the consumer voucher verification business process and the business process of connecting with third-party channels. In addition, a master switch is configured for each business to control the online or offline status of the business as a whole. At the same time, a switch is configured for each specific business process in the business to control the execution status of a single business process. The values ​​of these switches reflect whether the business process should be activated or disabled. Then, each switch identifier is recorded in the preset namespace of the distributed configuration center to facilitate the subsequent real-time acquisition of the real-time switch value corresponding to each switch identifier.

[0056] In an embodiment of the present invention, the distributed configuration center is a system for centrally storing and managing configuration information, which can ensure that the configuration information on all server nodes remains consistent, and also supports real-time dynamic updates of the configuration information. If there is a need to modify the business (for example, it is necessary to add a certain business scenario (such as adding a third-party consumer voucher channel in a consumer voucher management transaction) or upgrade the program corresponding to a certain business scenario), the distributed configuration center can modify the switch value of the switch identifier corresponding to the business process to be modified in the preset namespace from the first preset value to the second preset value, so as to close the business process and open it after the program corresponding to the business process is updated.

[0057] In order to realize the addition of new business processes to the business, in the business processing method provided in Example 1 of the present application, after configuring a main switch for each business and configuring a switch for each business process, if the business needs to add a business scenario, a new business process corresponding to the business scenario is constructed; a new switch is configured for the new business process, and the new switch identifier corresponding to the new switch is recorded in the preset namespace in the distributed configuration center.

[0058] In an embodiment of the present invention, when business requirements change and new business scenarios need to be introduced, corresponding business processes can be designed and implemented according to the new requirements. For example, a consumer voucher management transaction may need to add a new business scenario of "issuance of consumer vouchers from third-party channels", so the corresponding front-end display logic and back-end service call process can be constructed. In addition, in order to control the online and offline of the newly added business process, a new switch can be configured for each newly added business process, and then the identifier of the new switch can be recorded in the preset namespace of the distributed configuration center.

[0059] In this embodiment, by configuring new switches for new business processes in the distributed configuration center and recording the new switch identifiers, it is possible to flexibly adapt to changes in business needs, dynamically control the status of new business processes, simplify the deployment process, and improve maintainability, security, and user experience.

[0060] In order to monitor in real time whether the switch value of the business process has been modified, in the business processing method provided in Example 1 of the present application, the server is used to monitor the preset namespace in the distributed configuration center, and when it is monitored that the switch value in the preset namespace has been modified, the switch identifier corresponding to the modified switch value is recorded as the switch identifier to be modified, and all the switch identifiers to be modified are added to the preset cache.

[0061] In an embodiment of the present invention, the server monitors the changes of all switch values ​​stored in the preset namespace of the distributed configuration center through the listening mechanism of the distributed service framework. The preset namespace is a space in the configuration center reserved specifically for system switch configuration, which is used to store the switch values ​​of all business processes. When the server monitors that a switch value in the configuration center has changed, the switch identifier corresponding to the changed switch value can be recorded and marked as "switch identifier to be modified". This means that the front end may not be aware of the update of this switch value and needs to be synchronized. In addition, all switch identifiers marked as to be modified can be added to the preset cache, so that when the business received by the front end involves the business processes indicated by these switch identifiers, the front end can be notified in time to close these business processes to avoid the inability to execute the business.

[0062] Here, the preset cache is a memory cache mechanism used to store data that needs to be updated to reduce the number of database accesses and improve data processing speed. When the front end initiates a request, the back end reads the switch identifiers to be modified from the preset cache, avoiding direct database queries and improving the system's response efficiency.

[0063] In this embodiment, the server monitors the preset namespace in the distributed configuration center, and records the switch identifier corresponding to the modified switch value as the switch identifier to be modified, and adds it to the preset cache. This mechanism can achieve real-time dynamic updates, reduce database load, improve front-end and back-end synchronization efficiency, enhance system flexibility and stability, simplify operation and maintenance work, and ultimately improve user experience.

[0064] In order to accurately determine the switch identifier to be modified, in the business processing method provided in Example 1 of the present application, after the switch identifiers corresponding to all business processes are transmitted to the server, the server matches the switch identifier with the switch identifier to be modified in the preset cache; if the switch identifier to be modified is successfully matched, the switch identifier to be modified is returned to the client.

[0065] In an embodiment of the present invention, when the server receives a request sent by the front end (including switch identifiers corresponding to all business processes), it will compare each switch identifier with the switch identifier to be modified recorded in the preset cache. The preset cache contains all switch identifiers that need to be updated, and these switch identifiers that need to be updated are identified by the server by monitoring the updates of the distributed configuration center. If the switch identifier to be modified that is consistent with the switch identifier included in the front-end request is successfully matched in the preset cache, the server will return these switch identifiers to be modified to the front end. This means that the switch values ​​of certain business processes requested by the front end have changed in the back end, and the front end needs to adjust its logic according to the received switch identifier to be modified, such as turning off certain functions or updating the user interface.

[0066] Optionally, the initial switch value is a first preset value, and the target switch value is a second preset value. In order to improve the accuracy of processing the target business, in the business processing method provided in Example 1 of the present application, based on the business process set, the business process corresponding to the first preset value is retained, and the business process corresponding to the second preset value is deleted to obtain the target business process set; all target business processes in the target business process set are executed to complete the processing of the target business.

[0067] In an embodiment of the present invention, the initial switch value is the default switch, which is the first preset value (such as 1), that is, the switches of all business processes are turned on by default, and the target switch value is the second preset value (such as 0), that is, when a business process cannot be used, the corresponding switch value needs to be modified to temporarily take the business process offline.

[0068] In an embodiment of the present invention, a screening is performed based on the switch values ​​configured for all business processes to obtain a target business process set that can ultimately be executed. In this embodiment, the first preset value indicates that the switch of the business process is "on" (i.e., execution is allowed), and the second preset value indicates that the switch of the business process is "off" (i.e., execution is prohibited). The switch status of each business process can be checked, and all business processes with a switch value of the first preset value (on) are retained, while business processes with a switch value of the second preset value (off) are deleted, thereby obtaining a target business process set.

[0069] In the embodiment of the present invention, after obtaining the target business process set, only the business processes included in the set, that is, all business processes with switches "on", are executed. This means that the system will only run those business logics that are currently allowed to execute, and skip those disabled processes. In this way, even when some business processes are offline or upgraded, services can continue to be provided.

[0070] In order to achieve real-time adjustment of business processes in a business, in the business processing method provided in Example 1 of the present application, when the front-end page of the client is refreshed or re-logged in, the client transmits the switch identifiers corresponding to all business processes involved in the business executed by the front-end page to the server; based on the switch identifier to be modified returned by the server, all business processes involved in the business are adjusted.

[0071] In an embodiment of the present invention, if problems such as code, business requirements, etc. that cannot be temporarily avoided affect business promotion and user experience, the corresponding business process can be logically offline by turning off the switch. In addition, when certain business processes are offline, the front-end page service will be temporarily interrupted and need to be refreshed to continue execution. Therefore, if the front-end page is refreshed or re-logged in, the client needs to send the business process switch identifier involved in the currently executed business to the server, and the server returns the switch identifier to be modified that needs to change the switch value.

[0072] In an embodiment of the present invention, whenever a user refreshes a front-end page or logs in again, the client sends the switch identifiers of all business processes involved in the current page to the server. These identifiers are unique identifiers of the business processes executed by the front end, and are used to inform the server which business processes the front end is using. After receiving these switch identifiers, the server will compare them with the switch identifiers to be modified in the preset cache. If a matching switch identifier to be modified is found, it means that the switch status of these business processes has been updated in the back end, and the server will feedback these switch identifiers to be modified and their new switch values ​​to the client. After receiving the switch identifier to be modified, the client will adjust the execution of the business process according to the new switch status. If the switch value is set to off, the client will correspondingly close or hide the relevant business process. If the switch is set to on, the client will ensure that these business processes are available.

[0073] In this embodiment, by transmitting the switch identifier to the server when the front-end page is refreshed or re-logged in, and adjusting the front-end business process according to the switch identifier to be modified returned by the server, this mechanism can achieve real-time status synchronization, improve system response speed, eliminate the need to restart the service, flexibly respond to business changes, improve user experience, reduce maintenance costs, and enhance system security and stability.

[0074] The business processing method provided in the embodiment of the present application receives a business processing request when the main switch of the target business is turned on, determines a business process set based on the request, and then transmits the switch identifier in the set to the server, and receives the switch identifier to be modified returned by the server, thereby dynamically adjusting the business process. In this way, not only the flexibility and efficiency of business processing are improved, but also the changes in business needs can be responded to in real time, avoiding the problem of business service unavailability due to business process modification and the need to suspend business processing, achieving the technical effect of efficient business processing, and thus solving the technical problem in the related technology that the server needs to be restarted when updating the business process, resulting in the unavailability of the business service for a period of time.

[0075] It should be noted that the steps shown in the flowcharts of the accompanying drawings can be executed in a computer system such as a set of computer executable instructions, and that, although a logical order is shown in the flowcharts, in some cases, the steps shown or described can be executed in an order different from that shown here.

[0076] Example 2

[0077] The embodiment of the present application also provides a service processing device. It should be noted that the service processing device of the embodiment of the present application can be used to execute the service processing method provided by the embodiment of the present application. The service processing device provided by the embodiment of the present application is introduced below.

[0078] According to an embodiment of the present application, a device for implementing the above-mentioned service processing method is also provided. Figure 3 is a schematic diagram of an optional service processing device according to an embodiment of the present invention. Figure 3 As shown, the service processing device may include: a receiving unit 30, a determining unit 31, a transmitting unit 32, and a processing unit 33.

[0079] The receiving unit 30 is used to receive a service processing request for a target service when the main switch of the target service is turned on;

[0080] A determination unit 31 is used to determine a business process set based on the business processing request, wherein each business process in the business process set corresponds to a switch identifier, and a switch indicated by each switch identifier corresponds to an initial switch value;

[0081] The transmission unit 32 is used to transmit the switch identifiers corresponding to all business processes to the server, and receive the switch identifiers to be modified that need to modify the switch values ​​returned by the server;

[0082] The processing unit 33 is configured to modify the initial switch value indicated by the switch identifier to be modified to obtain a target switch value, and process the target service based on all the target switch values ​​and all the unmodified initial switch values.

[0083] The business processing device provided in the embodiment of the present application receives a business processing request when the main switch of the target business is turned on, determines a business process set based on the request, and then transmits the switch identifier in the set to the server, and receives the switch identifier to be modified returned by the server, thereby dynamically adjusting the business process. In this way, not only the flexibility and efficiency of business processing are improved, but also the changes in business needs can be responded to in real time, avoiding the problem of unavailability of business services due to business process modification and the need to suspend business processing, achieving the technical effect of efficient business processing, and thus solving the technical problem in the related technology that the server needs to be restarted when updating the business process, resulting in the unavailability of business services for a period of time.

[0084] Optionally, the business processing device also includes: a first determination module, used to determine all business processes corresponding to each business before receiving a business processing request for the target business when the main switch of the target business is turned on; a first configuration module, used to configure the main switch for each business and to configure the switch for each business process, wherein the main switch is used to control the execution of the business and the switch is used to control the execution of the business process; a first recording module, used to record the switch identifier corresponding to each switch to a preset namespace in a distributed configuration center, wherein the distributed configuration center is used to receive modification requirements of the business and to modify the switch value corresponding to the switch identifier in the preset namespace based on the modification requirements.

[0085] Optionally, the business processing device also includes: a first construction module, used to build a new business process corresponding to the business scenario after configuring a main switch for each business and configuring a switch for each business process when the business needs to add a business scenario; a first new module, used to configure a new switch for the new business process, and record the new switch identifier corresponding to the new switch to the preset namespace in the distributed configuration center.

[0086] Optionally, the server is used to listen to a preset namespace in the distributed configuration center, and when it is detected that the switch value in the preset namespace is modified, the server records the switch identifier corresponding to the modified switch value as the switch identifier to be modified, and adds all the switch identifiers to be modified to the preset cache.

[0087] Optionally, the business processing device also includes: a first matching module, which is used to, after the switch identifiers corresponding to all business processes are transmitted to the server, the server matches the switch identifier with the switch identifier to be modified in a preset cache; and a first return module, which is used to return the switch identifier to be modified to the client when the switch identifier to be modified is successfully matched.

[0088] Optionally, the initial switch value is a first preset value, the target switch value is a second preset value, and the processing unit includes: a first retention module, used to retain the business process corresponding to the first preset value based on the business process set, and delete the business process corresponding to the second preset value to obtain a target business process set; a first execution module, used to execute all target business processes in the target business process set to complete the processing of the target business.

[0089] Optionally, the business processing device also includes: a first transmission module, which is used to transmit the switch identifiers corresponding to all business processes involved in the business executed by the front-end page of the client to the server when the front-end page of the client is refreshed or re-logged in; and a first adjustment module, which is used to adjust all business processes involved in the business based on the switch identifier to be modified returned by the server.

[0090] The above-mentioned business processing device may also include a processor and a memory. The above-mentioned receiving unit 30, determination unit 31, transmission unit 32, processing unit 33, etc. are all stored in the memory as program units, and the processor executes the above-mentioned program units stored in the memory to realize corresponding functions.

[0091] The processor includes a kernel, which retrieves the corresponding program unit from the memory. One or more kernels can be set to modify the initial switch value indicated by the switch identifier to be modified by adjusting kernel parameters to obtain the target switch value, and process the target business based on all target switch values ​​and all unmodified initial switch values.

[0092] The above-mentioned memory may include non-permanent memory in a computer-readable medium, random access memory (RAM) and / or non-volatile memory, such as read-only memory (ROM) or flash RAM, and the memory includes at least one storage chip.

[0093] It should be noted that the receiving unit 30, the determining unit 31, the transmitting unit 32, and the processing unit 33 correspond to steps S201 to S204 in Embodiment 1, and the examples and application scenarios implemented by the above units and the corresponding steps are the same, but are not limited to the contents disclosed in the above Embodiment 1. It should be noted that the above units can be hardware components or software components stored in a memory (e.g., memory 104) and processed by one or more processors (e.g., processors 102a, 102b, ..., 102n), and the above units can also be run in the computer terminal 10 provided in Embodiment 1 as part of the device.

[0094] Example 3

[0095] An embodiment of the present application may provide an electronic device, Figure 4 is a structural block diagram of an electronic device according to an embodiment of the present invention. Figure 4 As shown, the electronic device may include: one or more ( Figure 4 (only one is shown) processor 402, memory 404, storage controller, and peripheral interface, wherein the peripheral interface is connected to the radio frequency module, audio module and display.

[0096] Among them, the memory can be used to store software programs and modules, such as program instructions / modules corresponding to the business processing method and device in the embodiment of the present application. The processor executes various functional applications and data processing by running the software programs and modules stored in the memory, that is, realizing the above-mentioned business processing method. The memory may include a high-speed random access memory, and may also include a non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some instances, the memory may further include a memory remotely arranged relative to the processor, and these remote memories may be connected to the terminal via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.

[0097] The processor can call the information and application programs stored in the memory through the transmission device to perform the following steps: when the main switch of the target business is turned on, receive a business processing request for the target business; based on the business processing request, determine a business process set, wherein each business process in the business process set corresponds to a switch identifier, and each switch indicated by the switch identifier corresponds to an initial switch value; transmit the switch identifiers corresponding to all business processes to the server, and receive the switch identifier to be modified returned by the server whose switch value needs to be modified; modify the initial switch value indicated by the switch identifier to be modified to obtain the target switch value, and process the target business based on all target switch values ​​and all unmodified initial switch values.

[0098] The processor can also call the information and applications stored in the memory through the transmission device to perform the following steps: determine all business processes corresponding to each business; configure a main switch for each business, and configure a switch for each business process, wherein the main switch is used to control the execution of the business, and the switch is used to control the execution of the business process; record the switch identifier corresponding to each switch to a preset namespace in the distributed configuration center, wherein the distributed configuration center is used to receive modification requirements of the business, and modify the switch value corresponding to the switch identifier in the preset namespace based on the modification requirements.

[0099] The processor can also call the information and applications stored in the memory through the transmission device to perform the following steps: when the business needs to add business scenarios, build a new business process corresponding to the business scenario; configure a new switch for the new business process, and record the new switch identifier corresponding to the new switch to the preset namespace in the distributed configuration center.

[0100] The processor can also call the information and applications stored in the memory through the transmission device to perform the following steps: the server is used to monitor the preset namespace in the distributed configuration center, and when it is monitored that the switch value in the preset namespace is modified, the switch identifier corresponding to the modified switch value is recorded as the switch identifier to be modified, and all the switch identifiers to be modified are added to the preset cache.

[0101] The processor can also call the information and application stored in the memory through the transmission device to perform the following steps: the server matches the switch identifier with the switch identifier to be modified in the preset cache; if the switch identifier to be modified is successfully matched, the switch identifier to be modified is returned to the client.

[0102] The processor can also call the information and applications stored in the memory through the transmission device to perform the following steps: based on the business process set, retain the business process corresponding to the first preset value, and delete the business process corresponding to the second preset value to obtain the target business process set; execute all target business processes in the target business process set to complete the processing of the target business.

[0103] The processor can also call the information and applications stored in the memory through the transmission device to perform the following steps: when the front-end page of the client is refreshed or re-logged in, the client transmits the switch identifiers corresponding to all business processes involved in the business executed by the front-end page to the server; based on the switch identifier to be modified returned by the server, adjust all business processes involved in the business.

[0104] By adopting the embodiment of the present application, a solution for business processing is provided. By receiving a business processing request when the main switch of the target business is turned on, determining a business process set based on the request, and then transmitting the switch identifier in the set to the server, receiving the switch identifier to be modified returned by the server, the business process is dynamically adjusted. In this way, not only the flexibility and efficiency of business processing are improved, but also the changes in business needs can be responded to in real time, avoiding the problem of unavailability of business services due to business process modification and the need to suspend business processing, achieving the technical effect of efficient business processing, and thus solving the technical problem in the related technology that the server needs to be restarted when updating the business process, resulting in the unavailability of business services for a period of time.

[0105] It can be understood by those skilled in the art that Figure 4 The structure shown is for illustration only, and the electronic device may also be a terminal device such as a smart phone, a tablet computer, a PDA, and a mobile Internet device (Mobile Internet Devices, MID). Figure 4 The structure of the electronic device is not limited. Figure 4 More or fewer components (such as network interfaces, display devices, etc.) shown in, or having Figure 4 Different configurations are shown.

[0106] A person of ordinary skill in the art can understand that all or part of the steps in the various methods of the above embodiments can be completed by instructing the hardware related to the terminal device through a program, and the program can be stored in a computer-readable storage medium, and the storage medium may include: a flash drive, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, etc.

[0107] Example 4

[0108] The embodiment of the present application further provides a storage medium. Optionally, in this embodiment, the storage medium can be used to store the program code executed by the service processing method provided in the first embodiment.

[0109] Optionally, in this embodiment, the above storage medium may be located in any computer terminal in a computer terminal group in a computer network, or in any mobile terminal in a mobile terminal group.

[0110] The present application also provides a computer program product, which, when executed on a data processing device, is suitable for executing the program of the business processing method steps.

[0111] The serial numbers of the above-mentioned embodiments of the present application are for description only and do not represent the advantages or disadvantages of the embodiments.

[0112] In the above embodiments of the present application, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, please refer to the relevant description of other embodiments.

[0113] In the several embodiments provided in this application, it should be understood that the disclosed technical content can be implemented in other ways. Among them, the device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of units or modules, which can be electrical or other forms.

[0114] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0115] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.

[0116] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application, in essence, or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions to enable a computer device (which can be a personal computer, a server or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: U disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), mobile hard disk, disk or optical disk and other media that can store program codes.

[0117] The above is only a preferred implementation of the present application. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principles of the present application. These improvements and modifications should also be regarded as the scope of protection of the present application.

Claims

1. A business processing method, characterized in that: include: When a main switch of the target service is turned on, receiving a service processing request for the target service; Determine a business process set based on the business processing request, wherein each business process in the business process set corresponds to a switch identifier, and each switch indicated by the switch identifier corresponds to an initial switch value; Transmitting the switch identifiers corresponding to all the business processes to the server, and receiving the switch identifiers to be modified whose switch values ​​need to be modified returned by the server; The initial switch value indicated by the to-be-modified switch identifier is modified to obtain a target switch value, and the target service is processed based on all the target switch values ​​and all the unmodified initial switch values.

2. The service processing method according to claim 1, characterized in that: When the main switch of the target service is turned on, before receiving the service processing request for the target service, the method further includes: Determine all business processes corresponding to each business; Configuring a main switch for each of the services, and configuring a switch for each of the service processes, wherein the main switch is used to control the execution of the services, and the switch is used to control the execution of the service processes; The switch identifier corresponding to each of the switches is recorded in a preset namespace in a distributed configuration center, wherein the distributed configuration center is used to receive business modification requirements and modify the switch value corresponding to the switch identifier in the preset namespace based on the modification requirements.

3. The service processing method according to claim 2, characterized in that: After configuring a main switch for each of the services and configuring a switch for each of the service processes, the method further includes: In the case where the business needs to add a business scenario, construct a new business process corresponding to the business scenario; A new switch is configured for the new business process, and a new switch identifier corresponding to the new switch is recorded in the preset namespace in the distributed configuration center.

4. The service processing method according to claim 1, characterized in that: The server is used to monitor a preset namespace in a distributed configuration center, and when it is monitored that a switch value in the preset namespace is modified, the switch identifier corresponding to the modified switch value is recorded as the switch identifier to be modified, and all the switch identifiers to be modified are added to the preset cache.

5. The service processing method according to claim 4, characterized in that: After the switch identifiers corresponding to all the business processes are transmitted to the server, the method further includes: The server matches the switch identifier with the switch identifier to be modified in the preset cache; When the switch identifier to be modified is successfully matched, the switch identifier to be modified is returned to the client.

6. The service processing method according to claim 1, characterized in that: The initial switch value is a first preset value, the target switch value is a second preset value, and the step of processing the target service based on all the target switch values ​​and all the unmodified initial switch values ​​includes: Based on the business process set, retain the business process corresponding to the first preset value, and delete the business process corresponding to the second preset value, to obtain a target business process set; Execute all target business processes in the target business process set to complete the processing of the target business.

7. The service processing method according to claim 1, characterized in that: The business processing method further includes: When the front-end page of the client is refreshed or the client logs in again, the client transmits the switch identifiers corresponding to all business processes involved in the business executed by the front-end page to the server; Based on the switch identifier to be modified returned by the server, all business processes involved in the business are adjusted.

8. A service processing device, characterized in that: include: A receiving unit, configured to receive a service processing request for a target service when a main switch of the target service is turned on; A determination unit, configured to determine a business process set based on the business processing request, wherein each business process in the business process set corresponds to a switch identifier, and each switch indicated by the switch identifier corresponds to an initial switch value; A transmission unit, used to transmit the switch identifiers corresponding to all the business processes to a server, and receive the switch identifiers to be modified whose switch values ​​need to be modified, which are returned by the server; The processing unit is used to modify the initial switch value indicated by the to-be-modified switch identifier to obtain a target switch value, and process the target service based on all the target switch values ​​and all the unmodified initial switch values.

9. A computer program product, characterized in that It comprises a non-volatile computer-readable storage medium, wherein the non-volatile computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the business processing method according to any one of claims 1 to 7 is implemented.

10. An electronic device, characterized in that: It includes one or more processors and a memory, wherein the memory is used to store one or more programs, wherein when the one or more programs are executed by the one or more processors, the one or more processors implement the business processing method described in any one of claims 1 to 7.

Citation Information

Patent Citations

  • Access request processing method and apparatus, and server

    CN106375472A

  • Information notification method and device

    CN111581502A

  • Application program version switching method, device, equipment and system

    CN113360213A

  • Service request storage method and device, equipment and storage medium

    CN116132534A

  • Directional configuration issuing method and device, equipment and storage medium

    CN116319321A