CN114358921A - System switching method, apparatus, device, medium, and program product - Google Patents

System switching method, apparatus, device, medium, and program product Download PDF

Info

Publication number
CN114358921A
CN114358921A CN202210019137.6A CN202210019137A CN114358921A CN 114358921 A CN114358921 A CN 114358921A CN 202210019137 A CN202210019137 A CN 202210019137A CN 114358921 A CN114358921 A CN 114358921A
Authority
CN
China
Prior art keywords
white list
user
service request
new system
old
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202210019137.6A
Other languages
Chinese (zh)
Inventor
杨铿
徐广强
郁巍
连煜伟
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Industrial and Commercial Bank of China Ltd ICBC
Original Assignee
Industrial and Commercial Bank of China Ltd ICBC
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Industrial and Commercial Bank of China Ltd ICBC filed Critical Industrial and Commercial Bank of China Ltd ICBC
Priority to CN202210019137.6A priority Critical patent/CN114358921A/en
Publication of CN114358921A publication Critical patent/CN114358921A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Hardware Redundancy (AREA)

Abstract

The present disclosure provides a system switching method, relating to the technical field of internet, and applied to the transition of a new system and an old system of a dual-system architecture, wherein the method comprises the following steps: receiving a service request of a user, and verifying whether the user belongs to a white list of a new system; when the user belongs to the white list, the service request is sent to the new system, so that the new system processes the service request; when the new system processes the service request and reports an error, the system is switched to the old system so that the old system processes the service request. The method can realize the switching of the old system and the new system at any time and ensure the stable transition of the old system and the new system during the system transformation period. The present disclosure also provides an apparatus, a device, a storage medium and a program product.

Description

System switching method, apparatus, device, medium, and program product
Technical Field
The present disclosure relates to the field of internet technologies, and in particular, to a system switching method, apparatus, device, medium, and program product.
Background
At present, a core bank system of a large-scale bank is mainly based on a host technology and adopts a host system with a centralized architecture. The host system is a core platform for processing business data in the system, has strong computing power and high stability, can process millions of transactions per minute, and can meet the large-scale business processing requirements of large-scale banks. However, the coupling degree between the host system modules is too high, one of the functional modules is upgraded, and the other modules need to be upgraded and deployed at the same time. And the host system needs to perform all operations, which results in slow response speed when there are many terminals. When the terminal users have different needs, the programs and resources of each user need to be configured separately, which is not efficient. The existing core bank system is basically constructed by adopting an IBM large-scale host as a foundation, and the cost investment of the host system is very expensive.
With the development of computer technology, especially the gradual maturity of technologies such as mobile internet, cloud computing and the like, a distributed system more suitable for marketization is developed. The distributed system can have the computing power of a plurality of computers, has higher processing speed and can be flexibly deployed in a distributed mode. Compared with a host system, the distributed system has the advantages of fast delivery, resource elasticity, low cost investment and the like. Thus, core banking systems are beginning to migrate gradually from host systems to distributed systems.
However, compared with a large host system which stably operates for many years, the stability of the currently developed distributed system is poor, and a bank needs to provide stable service for a user when performing system transformation. When the business runs in the distributed system, if the distributed system has a sudden problem, the normal business transaction of the bank can be influenced, and if no rollback preparation is made, the business paralysis can be caused.
Disclosure of Invention
In view of the above, the present disclosure provides a system switching method, apparatus, device, medium, and program product for achieving smooth transition of transitions between old and new systems.
According to a first aspect of the present disclosure, there is provided a system handover method applied to transition between new and old systems of a dual system architecture, the method comprising: receiving a service request of a user, and verifying whether the user belongs to a white list of a new system; when the user belongs to the white list, the service request is sent to the new system, so that the new system processes the service request; and when the new system processes the service request and reports an error, switching to an old system so that the old system processes the service request.
According to an embodiment of the present disclosure, further comprising: and after the new system processes the service request and reports an error, deleting the user from the white list.
According to an embodiment of the present disclosure, further comprising: and when all users of the white list normally process service requests through the new system, adding non-white list users related to the users in the white list to the white list so as to expand the user range of the white list.
According to an embodiment of the present disclosure, further comprising: and after one of the new system and the old system normally processes the service request, sending the generated service data to the other system so as to realize data synchronization of the new system and the old system.
According to an embodiment of the present disclosure, further comprising: after the new system is maintained, the user is added to the white list so that the new system provides services to the user again.
According to an embodiment of the present disclosure, the new system is a distributed system including a plurality of application nodes, and the method further includes: and correspondingly configuring a white list on each application node.
According to an embodiment of the present disclosure, further comprising: when the user does not belong to the white list, the service request is sent to the old system so that the old system processes the service request; adding the user to the white list to cause the new system to provide services to the user.
A second aspect of the present disclosure provides a system switching apparatus, which is applied to transition between a new system and an old system of a dual system architecture, and is characterized by including: the verification module is used for receiving a service request of a user and verifying whether the user belongs to a white list of a new system; the first switching module is used for sending the service request to the new system when the user belongs to the white list so as to enable the new system to process the service request; and the second switching module is used for switching to the old system when the new system processes the service request report error so as to enable the old system to process the service request.
A third aspect of the present disclosure provides an electronic device, comprising: one or more processors; a memory for storing one or more programs, wherein the one or more programs, when executed by the one or more processors, cause the one or more processors to perform the system switching method described above.
A fourth aspect of the present disclosure also provides a computer-readable storage medium having stored thereon executable instructions that, when executed by a processor, cause the processor to perform the above-described system switching method.
A fifth aspect of the present disclosure also provides a computer program product comprising a computer program which, when executed by a processor, implements the system switching method described above.
According to the system switching method provided by the first aspect of the disclosure, the white list is set to select to call the new system or the old system, and the new system can be switched to the old system after the new system reports an error, so that traffic paralysis caused by instability of the new system is avoided, and stable transition during transformation of the new system and the old system can be realized.
Drawings
The foregoing and other objects, features and advantages of the disclosure will be apparent from the following description of embodiments of the disclosure, which proceeds with reference to the accompanying drawings, in which:
FIG. 1 schematically illustrates an application scenario diagram of a system switching method, apparatus, device, medium and program product according to embodiments of the disclosure;
FIG. 2 schematically illustrates a first flowchart of a system switching method according to an embodiment of the present disclosure;
FIG. 3 schematically illustrates a second flowchart of a system switching method according to an embodiment of the present disclosure;
FIG. 4 schematically illustrates a third flowchart of a system switching method according to an embodiment of the present disclosure;
fig. 5 schematically shows a block diagram of a system switching apparatus according to an embodiment of the present disclosure;
fig. 6 schematically shows a block diagram of a system switching apparatus according to another embodiment of the present disclosure; and
fig. 7 schematically shows a block diagram of an electronic device adapted to implement a system switching method according to an embodiment of the present disclosure.
Detailed Description
Hereinafter, embodiments of the present disclosure will be described with reference to the accompanying drawings. It should be understood that the description is illustrative only and is not intended to limit the scope of the present disclosure. In the following detailed description, for purposes of explanation, numerous specific details are set forth in order to provide a thorough understanding of the embodiments of the disclosure. It may be evident, however, that one or more embodiments may be practiced without these specific details. Moreover, in the following description, descriptions of well-known structures and techniques are omitted so as to not unnecessarily obscure the concepts of the present disclosure.
The terminology used herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the disclosure. The terms "comprises," "comprising," and the like, as used herein, specify the presence of stated features, steps, operations, and/or components, but do not preclude the presence or addition of one or more other features, steps, operations, or components.
All terms (including technical and scientific terms) used herein have the same meaning as commonly understood by one of ordinary skill in the art unless otherwise defined. It is noted that the terms used herein should be interpreted as having a meaning that is consistent with the context of this specification and should not be interpreted in an idealized or overly formal sense.
Where a convention analogous to "at least one of A, B and C, etc." is used, in general such a construction is intended in the sense one having skill in the art would understand the convention (e.g., "a system having at least one of A, B and C" would include but not be limited to systems that have a alone, B alone, C alone, a and B together, a and C together, B and C together, and/or A, B, C together, etc.).
It should be noted that the system switching method and apparatus provided by the present disclosure may be used in the financial field to perform system switching between different systems, and may also be used in any field other than the financial field, that is, the application field of the system switching method and apparatus provided by the present disclosure is not limited.
In the technical scheme of the disclosure, the acquisition, storage, application and the like of the personal information of the related user all accord with the regulations of related laws and regulations, necessary security measures are taken, and the customs of the public order is not violated.
In the technical scheme of the disclosure, before the personal information of the user is acquired or collected, the authorization or the consent of the user is acquired.
The embodiment of the present disclosure provides a system switching method, which is applied to transition between a new system and an old system of a dual system architecture, and is characterized by including: receiving a service request of a user, and verifying whether the user belongs to a white list of a new system; when the user belongs to the white list, the service request is sent to the new system, so that the new system processes the service request; when the new system processes the service request and reports an error, the system is switched to the old system so that the old system processes the service request. The system switching method selects to call the new system or the old system by setting the white list, and can select to use the old system after the new system reports errors, thereby avoiding the business paralysis caused by the instability of the new system and realizing the stable transition during the transformation of the new system and the old system.
In a dual system architecture, two branches are connected by adding a shunting service node: one is a branch that calls new system services and the other is a branch that calls old system services. The traffic of the new system or the old system can be selected to be called by the shunting service node.
Fig. 1 schematically illustrates an application scenario diagram of a system switching method, apparatus, device, medium, and program product according to embodiments of the present disclosure.
As shown in fig. 1, an application scenario 100 according to this embodiment may include an information exchange scenario between systems, software and other services of different protocol types in financial or other fields. The offload service node 104 is used to provide an interface for switching between the new and old system services between the terminal devices 101, 102, 103 and the servers 105, 106. Breakout service node 104 may comprise various connection types, such as wired, wireless communication links, or fiber optic cables, among others.
The user may use the terminal devices 101, 102, 103 to interact with the servers 105, 106 through the breakout service node 104 to receive or send messages or the like. The terminal devices 101, 102, 103 may have various communication client applications installed thereon, such as a shopping application, a web browser application, a search application, an instant messaging tool, a mailbox client, social platform software, and the like.
The terminal devices 101, 102, 103 may be various electronic devices having a display screen and supporting web browsing, including but not limited to smart phones, tablet computers, laptop portable computers, desktop computers, and the like.
The server 105 is a server that provides a new system service, and the server 106 is a server that provides an old system service. The servers 105, 106 may be servers providing various types of services, such as application servers providing support for transaction transactions performed by users using the terminal devices 101, 102, 103. The application server may analyze and perform other processing on the received data such as the user request, and feed back a processing result (e.g., a web page, information, or data obtained or generated according to the user request) to the terminal device.
It should be noted that the system switching method provided by the embodiment of the present disclosure may be generally executed by the offload service node 104, and the offload service node 104 may also be a server. Accordingly, the system switching device provided by the embodiment of the present disclosure may be generally disposed in the server. The system switching device provided by the embodiment of the present disclosure may also be executed by a server or a server cluster different from the servers 105 and 106 and capable of communicating with the terminal devices 101, 102 and 103 and/or the servers 105 and 106. Accordingly, the system switching device provided by the embodiment of the present disclosure may also be disposed in a server or a server cluster different from the servers 105 and 106 and capable of communicating with the terminal devices 101, 102 and 103 and/or the servers 105 and 106.
It should be understood that the number of terminal devices, networks, and servers in fig. 1 is merely illustrative. There may be any number of terminal devices, networks, and servers, as desired for implementation.
The system switching method according to the embodiment of the present disclosure will be described in detail below with reference to fig. 2 to 4 based on the scenario described in fig. 1.
Fig. 2 schematically illustrates a first flowchart of a system switching method according to an embodiment of the present disclosure.
As shown in fig. 2, the system switching method of this embodiment includes operations S210 to S230, which are performed by the offload service node 104.
In operation S210, a service request of a user is received, and it is verified whether the user belongs to a white list of a new system.
In operation S220, when the user belongs to the white list, the service request is transmitted to the new system, so that the new system processes the service request.
In operation S230, when the new system processes the service request and reports an error, the old system is switched to process the service request.
In one embodiment of the present disclosure, the new system and the old system are both business transaction systems providing transaction services to users, wherein a white list is configured in the new system through an Apollo switch, and a test user transformed from the old system to the new system is recorded in the white list. A user A at a mobile phone end of certain bank software needs to perform a transfer service, a transfer request is sent out through the mobile phone end and sent to a shunting service node 104, so that the transfer request of the user is processed by calling the service of a new system branch or an old system branch through the shunting service node 104, before the service is called through the shunting service node 104, the bank card number of the user A is obtained, an Apollo switch is accessed to verify whether the bank card number of the user A belongs to a white list of a new system, and if the bank card number is in the white list, the transfer request is sent to the new system so as to process the transfer request. When the new system processes the transfer request and reports an error, the transfer request is sent to the old system, so that the user A uses the old system to process the transfer, and normal transfer of the user is guaranteed. And if the new system successfully processes the transfer request and the user A subsequently performs other services, re-executing the operations S210-S230. Further, the service request may include other types of requests, such as access requests, subscription requests, query requests, and the like.
When operation S230 is performed, after the new system processes the service request and reports an error, operation S240 is also performed.
In operation S240, after the new system processes the service request error, the user is deleted from the white list.
In one embodiment of the disclosure, when the user A uses the new system to process the transfer request error report, the configuration statement about the white list in the Apollo switch is modified at the moment, the card number of the user A is deleted from the new system white list about the transfer service, and the transfer request of the user A is directly sent to the old system to be processed, so that the normal transfer requirement of the user A is ensured, the service paralysis is avoided, and the stable switching during the system transformation period is ensured.
FIG. 3 schematically illustrates a second flowchart of a system switching method according to an embodiment of the present disclosure.
As shown in fig. 3, after operations S210 to S220 are performed, while the new system normally processes the full-flow service request of the user, a system transformation test of the full-flow service is performed on other users on the white list, so as to ensure that the users on the current white list can all use the new system to normally process the service. When all the users of the white list normally process the service request through the new system, operation S250 is also required to be performed.
In operation S250, when all users of the white list normally process service requests through the new system, non-white list users related to the users in the white list are added to the white list to expand the user range of the white list.
In one embodiment of the disclosure, the current white list users are all users who open an account in Guangzhou city, when the current white list users can all use the new system to process services normally, the configuration of the areas in the user rules of the white list is modified, the attribution area of the card number of the white list user is set to be expanded from Guangzhou city to Guangdong province, and when all the users of the white list after expansion can process service requests normally through the new system, the users in other areas are continuously added to the white list, so that the user range of the white list is gradually expanded until all the users transfer the service systems from the old system to the new system, and complete transfer from the old system to the new system is realized.
In another embodiment of the present disclosure, the current white list users are all users of the mobile phone client, when the current white list users can all use the new system to process services normally, the configuration of the user channels in the user rules of the white list is modified, the web page end users are added to the current white list, and when all the users of the enlarged white list can process service requests normally through the new system, the users of other user channels are continuously added to the white list, so that the user range of the white list is gradually enlarged until all the users' service systems are transferred from the old system to the new system, and the complete transfer from the old system to the new system is realized.
It should be understood that the modification of the user rules of the white list is determined according to the actual needs of the system transformation demander, with the aim of achieving an expansion of the user scope of the white list.
After the new system or the old system processes the service request normally, the service data of the service is generated in the database of the new system or the old system correspondingly. Because during the transformation of the new system and the old system, the two systems are parallel, the new system can not ensure the stability, the old system is ready to be used for processing the service request at any time, the data synchronization of the new system and the old system needs to be ensured, and the situation that a user can not obtain corresponding data in a certain link in the service process is avoided. Thus, operation S260 also needs to be performed.
Fig. 4 schematically illustrates a third flowchart of a system switching method according to an embodiment of the present disclosure.
As shown in fig. 4, in operation S260, after one of the new system and the old system normally processes a service request, the generated service data is transmitted to the other system to implement data synchronization of the new system and the old system.
In one embodiment of the present disclosure, the old system is a centralized framework IBM mainframe system and the new system is a distributed system, requiring bidirectional data synchronization of the IBM mainframe system and the distributed system. After a user processes a service request using the IBM host system, the service data is correspondingly generated in the host database, requiring data synchronization from the IBM host system to the distributed system. In the data synchronization process from the old system to the new system, business data are copied in an IBM host system through Q-REP or CDC technology and the like, the business data are processed, the latest business data are pushed in a quasi-real time mode through a middle message queue of Kafka, a background scheduling operation mode of Spring Quartz or Spring task is adopted in the distributed system, the business data change pushed by the middle message queue is received in a quasi-real time mode, and the latest business data are stored in a distributed system database. And after the user uses the new system to normally process the service request, generating service data and storing the service data in the distributed system database. Calling the host system service to acquire the latest business data of the distributed database, and performing addition and deletion modification on the IBM host system database based on the latest business data, so as to ensure that the data of the old system database is equal to that of the new system database, and realize data synchronization from the new system to the old system.
After the operations S210 to S230, the new system reports an error, and error data needs to be reported to perform corresponding maintenance on the new system. Thereafter, operation S270 is also required.
In operation S270, after the new system is maintained, the user is added to the white list so that the new system provides the service to the user again.
In one embodiment of the disclosure, after the new system processes the transfer request of the user A and reports an error, the user A is deleted from the white list, and an error report is generated at the same time. The system transformation demander examines the program fault of the new system according to the generated error report, and after the system maintenance is finished, adds the user a to the white list so that the service behind the user a is still executed by the new system, and executes the subsequent operation flow from operation S210 again.
According to the embodiment of the disclosure, the new system is a distributed system, and comprises a plurality of application nodes, and the system switching method further comprises: and correspondingly configuring a white list on each application node.
In one embodiment of the present disclosure, the distributed system is a transaction service system, and the bank identifies a service object and a service behavior through a medium, an account, an agreement, and the like, and splits the single system into a plurality of loosely-coupled, functionally-single, and mutually-collaborative applications, which may include a plurality of different applications such as internet banking, mobile banking, agreement application, medium application, debit card application node, credit card application, and the like. And setting a corresponding white list for each application node. Different application nodes can be configured with different white lists, so that different application nodes are tested respectively, and the stability of each application node in a new system can be debugged respectively. The transaction flow comprises various service requests such as transfer, detail inquiry, credit card repayment and the like, and corresponding white lists can be configured for different types of service requests.
According to the embodiment of the present disclosure, when the user service request is received, and it is verified that the user does not belong to the white list of the new system, operation S280 is further performed.
In operation S280, when the user does not belong to the white list, the service request is sent to the old system, so that the old system processes the service request; the user is added to the white list so that the new system provides services to the user.
In one embodiment of the present disclosure, the new system and the old system are both business transaction systems providing transaction services to users, wherein a white list is configured in the new system through an Apollo switch, and a test user transformed from the old system to the new system is recorded in the white list. A user B at a mobile phone end of certain bank software requests to perform transfer service, a transfer request is sent out through the mobile phone end and sent to the shunting service node 104, so that the transfer request of the user is processed by calling the service of a new system branch or an old system branch through the shunting service node 104, before the service is called through the shunting service node 104, the bank card number of the user B is obtained, the Apollo switch is accessed to verify whether the bank card number of the user B belongs to a white list of a new system, and if the bank card number does not belong to the white list, the transfer request is sent to the old system to process the transfer request. And after the new system provides stable service for other users, adding the user B to the white list so that the new system provides service for the user B.
The system switching method provided by the embodiment of the disclosure receives the user request, verifies whether the user belongs to the white list, further selects to call the new system or the old system to process the service request of the user, modifies the white list and switches to the old system when the new system service is called to process the service request failure, and realizes the stable transition of the new system and the old system during the transformation period. And when the new and old systems process the service requests in parallel, the quasi-real-time synchronization of the data is realized, and the stability of service operation during the transformation period of the new and old systems is further guaranteed. The user range of the new and old system transformation is gradually enlarged by modifying the user range of the white list, and the system transformation from the old system to the new system is promoted completely.
Based on the system switching method, the disclosure also provides a system switching device. This system will be described in detail below in conjunction with fig. 5.
Fig. 5 schematically shows a block diagram of a system switching apparatus according to an embodiment of the present disclosure.
As shown in fig. 5, the system switching apparatus 500 of this embodiment includes: an authentication module 510, a first switching module 520 and a second switching module 530.
The verification module 510 is configured to receive a service request of a user and verify whether the user belongs to a white list of a new system. In an embodiment, the verification module 510 may be configured to perform the operation S210 described above, which is not described herein again.
The first switching module 520 is configured to send the service request to the new system when the user belongs to the white list, so that the new system processes the service request. In an embodiment, the first switching module 520 may be configured to perform the operation S220 described above, which is not described herein again.
The second switching module 530 is configured to switch to the old system when the new system processes the service request and the service request is in error, so that the old system processes the service request. In an embodiment, the second switching module 530 may be configured to perform the operation S230 described above, which is not described herein again.
In this embodiment, the system switching apparatus 500 selects to invoke a new system or an old system by setting a white list, and can select to use the old system after the new system reports an error, thereby avoiding traffic paralysis caused by instability of the new system, and realizing smooth transition during transition of the new system and the old system.
Fig. 6 schematically shows a block diagram of a system switching apparatus according to another embodiment of the present disclosure.
According to an embodiment of the present disclosure, the system switching apparatus 600 further includes: and an expanding user module 540, configured to add non-white list users related to the users in the white list to the white list when all the users in the white list normally process service requests through the new system, so as to expand the user range of the white list. And when the new system normally processes the full-flow service request of the user, performing system transformation test on the full-flow service on other users on the white list to ensure that the user on the current white list can use the new system to normally process the service. In an embodiment, the enlarged user module 540 may be configured to perform the operation S250 described above, and is not described herein again.
As shown in fig. 6, the system switching apparatus 600 further includes: and a data synchronization module 550, configured to send the generated service data to the other system after one of the new system and the old system normally processes the service request, so as to implement data synchronization between the new system and the old system. The data synchronization module 550 can enable the data to be written into the databases of the new system and the old system, so as to ensure the quasi-real-time synchronization of the data of the two systems, and facilitate the stable transformation of the new system and the old system. In an embodiment, the data synchronization module 550 may be configured to perform the operation S260 described above, which is not described herein again.
The system switching device provided by the embodiment of the disclosure receives a user request through the verification module 510, verifies whether the user belongs to the white list, and further selects to invoke a new system or an old system to process the service request of the user, and when the service of invoking the new system fails to process the service request, modifies the white list and switches to the old system through the first switching module 520, thereby realizing the smooth transition of the new system and the old system during the transformation period. And when the new and old systems process the service requests in parallel, the data synchronization module 550 realizes the quasi-real-time synchronization of the data, thereby further guaranteeing the stability of service operation during the transformation period of the new and old systems. The user scope for the new and old system transformation is gradually enlarged by enlarging the user scope for the user module 540 to modify the white list, which helps to push the system to be completely transformed from the old system to the new system.
According to the embodiment of the present disclosure, any plurality of the authentication module 510, the first switching module 520, the second switching module 530, the enlarged user module 540, and the data synchronization module 550 may be combined and implemented in one module, or any one of them may be split into a plurality of modules. Alternatively, at least part of the functionality of one or more of these modules may be combined with at least part of the functionality of the other modules and implemented in one module. According to an embodiment of the present disclosure, at least one of the verification module 510, the first switching module 520, the second switching module 530, the enlarged user module 540, and the data synchronization module 550 may be implemented at least partially as a hardware circuit, such as a Field Programmable Gate Array (FPGA), a Programmable Logic Array (PLA), a system on a chip, a system on a substrate, a system on a package, an Application Specific Integrated Circuit (ASIC), or may be implemented in hardware or firmware in any other reasonable manner of integrating or packaging a circuit, or in any one of three implementations of software, hardware, and firmware, or in a suitable combination of any of them. Alternatively, at least one of the authentication module 510, the first switching module 520, the second switching module 530, the augmented user module 540, and the data synchronization module 550 may be implemented at least in part as a computer program module that, when executed, may perform a corresponding function.
Fig. 7 schematically shows a block diagram of an electronic device adapted to implement a system switching method according to an embodiment of the present disclosure.
As shown in fig. 7, an electronic device 700 according to an embodiment of the present disclosure includes a processor 701, which can perform various appropriate actions and processes according to a program stored in a Read Only Memory (ROM)702 or a program loaded from a storage section 708 into a Random Access Memory (RAM) 703. The processor 701 may include, for example, a general purpose microprocessor (e.g., a CPU), an instruction set processor and/or associated chipset, and/or a special purpose microprocessor (e.g., an Application Specific Integrated Circuit (ASIC)), among others. The processor 701 may also include on-board memory for caching purposes. The processor 701 may comprise a single processing unit or a plurality of processing units for performing the different actions of the method flows according to embodiments of the present disclosure.
In the RAM 703, various programs and data necessary for the operation of the electronic apparatus 700 are stored. The processor 701, the ROM 702, and the RAM 703 are connected to each other by a bus 704. The processor 701 performs various operations of the method flows according to the embodiments of the present disclosure by executing programs in the ROM 702 and/or the RAM 703. It is noted that the programs may also be stored in one or more memories other than the ROM 702 and RAM 703. The processor 701 may also perform various operations of method flows according to embodiments of the present disclosure by executing programs stored in the one or more memories.
Electronic device 700 may also include input/output (I/O) interface 705, which input/output (I/O) interface 705 is also connected to bus 704, according to an embodiment of the present disclosure. The electronic device 700 may also include one or more of the following components connected to the I/O interface 705: an input portion 706 including a keyboard, a mouse, and the like; an output section 707 including a display such as a Cathode Ray Tube (CRT), a Liquid Crystal Display (LCD), and the like, and a speaker; a storage section 708 including a hard disk and the like; and a communication section 709 including a network interface card such as a LAN card, a modem, or the like. The communication section 709 performs communication processing via a network such as the internet. A drive 710 is also connected to the I/O interface 705 as needed. A removable medium 711 such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, or the like is mounted on the drive 710 as necessary, so that a computer program read out therefrom is mounted into the storage section 708 as necessary.
The present disclosure also provides a computer-readable storage medium, which may be contained in the apparatus/device/system described in the above embodiments; or may exist separately and not be assembled into the device/apparatus/system. The computer-readable storage medium carries one or more programs which, when executed, implement a system switching method according to an embodiment of the present disclosure.
According to embodiments of the present disclosure, the computer-readable storage medium may be a non-volatile computer-readable storage medium, which may include, for example but is not limited to: a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the present disclosure, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. For example, according to embodiments of the present disclosure, a computer-readable storage medium may include the ROM 702 and/or the RAM 703 and/or one or more memories other than the ROM 702 and the RAM 703 described above.
Embodiments of the present disclosure also include a computer program product comprising a computer program containing program code for performing the method illustrated in the flow chart. When the computer program product runs in a computer system, the program code is used for causing the computer system to realize the system switching method provided by the embodiment of the disclosure.
The computer program performs the above-described functions defined in the system/apparatus of the embodiments of the present disclosure when executed by the processor 701. The systems, apparatuses, modules, units, etc. described above may be implemented by computer program modules according to embodiments of the present disclosure.
In one embodiment, the computer program may be hosted on a tangible storage medium such as an optical storage device, a magnetic storage device, or the like. In another embodiment, the computer program may also be transmitted in the form of a signal on a network medium, distributed, downloaded and installed via the communication section 709, and/or installed from the removable medium 711. The computer program containing program code may be transmitted using any suitable network medium, including but not limited to: wireless, wired, etc., or any suitable combination of the foregoing.
In such an embodiment, the computer program can be downloaded and installed from a network through the communication section 709, and/or installed from the removable medium 711. The computer program, when executed by the processor 701, performs the above-described functions defined in the system of the embodiment of the present disclosure. The systems, devices, apparatuses, modules, units, etc. described above may be implemented by computer program modules according to embodiments of the present disclosure.
In accordance with embodiments of the present disclosure, program code for executing computer programs provided by embodiments of the present disclosure may be written in any combination of one or more programming languages, and in particular, these computer programs may be implemented using high level procedural and/or object oriented programming languages, and/or assembly/machine languages. The programming language includes, but is not limited to, programming languages such as Java, C + +, python, the "C" language, or the like. The program code may execute entirely on the user computing device, partly on the user device, partly on a remote computing device, or entirely on the remote computing device or server. In the case of a remote computing device, the remote computing device may be connected to the user computing device through any kind of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or may be connected to an external computing device (e.g., through the internet using an internet service provider).
The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams or flowchart illustration, and combinations of blocks in the block diagrams or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
Those skilled in the art will appreciate that various combinations and/or combinations of features recited in the various embodiments and/or claims of the present disclosure can be made, even if such combinations or combinations are not expressly recited in the present disclosure. In particular, various combinations and/or combinations of the features recited in the various embodiments and/or claims of the present disclosure may be made without departing from the spirit or teaching of the present disclosure. All such combinations and/or associations are within the scope of the present disclosure.
The embodiments of the present disclosure have been described above. However, these examples are for illustrative purposes only and are not intended to limit the scope of the present disclosure. Although the embodiments are described separately above, this does not mean that the measures in the embodiments cannot be used in advantageous combination. The scope of the disclosure is defined by the appended claims and equivalents thereof. Various alternatives and modifications can be devised by those skilled in the art without departing from the scope of the present disclosure, and such alternatives and modifications are intended to be within the scope of the present disclosure.

Claims (11)

1. A system switching method is applied to transition of a new system and an old system of a dual-system architecture, and is characterized by comprising the following steps:
receiving a service request of a user, and verifying whether the user belongs to a white list of a new system;
when the user belongs to the white list, the service request is sent to the new system, so that the new system processes the service request;
and when the new system processes the service request and reports an error, switching to an old system so that the old system processes the service request.
2. The system switching method according to claim 1, further comprising:
and after the new system processes the service request and reports an error, deleting the user from the white list.
3. The system switching method according to claim 1, further comprising:
and when all users of the white list normally process service requests through the new system, adding non-white list users related to the users in the white list to the white list so as to expand the user range of the white list.
4. The system switching method according to claim 1, further comprising:
and after one of the new system and the old system normally processes the service request, sending the generated service data to the other system so as to realize data synchronization of the new system and the old system.
5. The system switching method according to claim 2, further comprising:
after the new system is maintained, the user is added to the white list so that the new system provides services to the user again.
6. The system switching method according to claim 1, wherein the new system is a distributed system including a plurality of application nodes, the method further comprising:
and correspondingly configuring a white list on each application node.
7. The system switching method according to claim 1, further comprising:
when the user does not belong to the white list, the service request is sent to the old system so that the old system processes the service request;
adding the user to the white list to cause the new system to provide services to the user.
8. A system switching apparatus for transition between old and new systems of a dual system architecture, comprising:
the verification module is used for receiving a service request of a user and verifying whether the user belongs to a white list of a new system;
the first switching module is used for sending the service request to the new system when the user belongs to the white list so as to enable the new system to process the service request;
and the second switching module is used for switching to the old system when the new system processes the service request report error so as to enable the old system to process the service request.
9. An electronic device, comprising:
one or more processors;
a storage device for storing one or more programs,
wherein the one or more programs, when executed by the one or more processors, cause the one or more processors to perform the method of any of claims 1-7.
10. A computer readable storage medium having stored thereon executable instructions which, when executed by a processor, cause the processor to perform the method of any one of claims 1 to 7.
11. A computer program product comprising a computer program which, when executed by a processor, implements a method according to any one of claims 1 to 7.
CN202210019137.6A 2022-01-07 2022-01-07 System switching method, apparatus, device, medium, and program product Pending CN114358921A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210019137.6A CN114358921A (en) 2022-01-07 2022-01-07 System switching method, apparatus, device, medium, and program product

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210019137.6A CN114358921A (en) 2022-01-07 2022-01-07 System switching method, apparatus, device, medium, and program product

Publications (1)

Publication Number Publication Date
CN114358921A true CN114358921A (en) 2022-04-15

Family

ID=81107473

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210019137.6A Pending CN114358921A (en) 2022-01-07 2022-01-07 System switching method, apparatus, device, medium, and program product

Country Status (1)

Country Link
CN (1) CN114358921A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114900531A (en) * 2022-04-29 2022-08-12 中国工商银行股份有限公司 Data synchronization method, device and system
CN115361435A (en) * 2022-07-13 2022-11-18 阿里巴巴(中国)有限公司 Data processing method
CN116455918A (en) * 2023-06-16 2023-07-18 北京江融信科技有限公司 Method and system for verifying trial operation of new credit card core system

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114900531A (en) * 2022-04-29 2022-08-12 中国工商银行股份有限公司 Data synchronization method, device and system
CN114900531B (en) * 2022-04-29 2024-02-27 中国工商银行股份有限公司 Data synchronization method, device and system
CN115361435A (en) * 2022-07-13 2022-11-18 阿里巴巴(中国)有限公司 Data processing method
CN116455918A (en) * 2023-06-16 2023-07-18 北京江融信科技有限公司 Method and system for verifying trial operation of new credit card core system
CN116455918B (en) * 2023-06-16 2023-08-18 北京江融信科技有限公司 Method and system for verifying trial operation of new credit card core system

Similar Documents

Publication Publication Date Title
CN114358921A (en) System switching method, apparatus, device, medium, and program product
CN112069265B (en) Synchronization method of configuration data, business data system, computer system and medium
US20180220292A1 (en) Blockchain-Based Subscription Management
CA3059719C (en) Payment processing method, device, medium and electronic device
CN107644075B (en) Method and device for collecting page information
CN110019496B (en) Data reading and writing method and system
CN113138774A (en) Gradation issuing method, gradation issuing apparatus, electronic device, gradation issuing medium, and program product
CN113282589A (en) Data acquisition method and device
CN113191889A (en) Wind control configuration method, configuration system, electronic device and readable storage medium
CN113010238A (en) Permission determination method, device and system for micro application call interface
CN116302561A (en) State control method, device, equipment and storage medium for application instance
US20230208659A1 (en) Blockchain apparatus and method for mobile edge computing
CN110489392A (en) Data access method, device, system, storage medium and equipment between multi-tenant
CN115080449A (en) Test method, device, equipment, medium and program product
CN112565340B (en) Service scheduling method, device, computer system and medium for distributed application
CN113760487B (en) Service processing method and device
CN114039981A (en) Message processing method, device, server and storage medium
CN110324425B (en) Hybrid cloud transaction route processing method and device
CN116503005A (en) Method, device, system and storage medium for dynamically modifying flow
CN111880831A (en) Method and device for synchronously updating server, computer equipment and storage medium
CN113486032A (en) Date switching method and device, electronic equipment and computer readable medium
CN111866171A (en) Message processing method and device, electronic equipment and medium
CN110336847B (en) Payment message transmission system and method
CN113282391B (en) Cluster switching method, cluster switching device, electronic equipment and readable storage medium
CN110430263B (en) Value added service processing system and method

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination