System access method and device, equipment, medium and program product
The user is diverted by the pre -determined diversion strategy, solving the problem of smooth switching of multiple versions of systems in the system architecture upgrade process, and improved the recognition ability and emergency response speed of user access.
Patent Information
- Application Number
- CN202411286653.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-13
- Publication Date
- 2025-01-28
AI Technical Summary
During the system architecture upgrade process, it is difficult for the existing technology to achieve smooth switching of multiple versions of the system, resulting in weak recognition capabilities when users access and excessive emergency response time.
Through the pre -determined diversion strategy, the user is diverted. If the user accesses the current version of the non -nationalized system, the access strategy is determined according to the user information. If the strategy points to the current version, it will be accessed. If an abnormalities appear, jump to the previous version.
The smooth switching of multi -version systems during the system architecture upgrade has improved the recognition ability and emergency response speed of user access.
Smart Images

Figure CN119376799A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of computer technology, and in particular to a system access method, device, equipment, medium and program product. Background Art
[0002] In recent years, with the in-depth promotion of domestic localization and information innovation construction, the upgrade of project architecture and deployment structure has become increasingly frequent. Faced with the current production system with a large number of users, how to smoothly switch to achieve architecture upgrade is a problem that must be considered in every system construction. As a front-end system, it is inevitable to face this scenario. At present, the load balancing Nginx diversion solution or server diversion solution is mostly adopted, but the Nginx diversion solution is too simple and can only rely on percentages to control traffic. It cannot be combined with business for diversion. The recognition ability is weak when problems occur. When problems are found, they can only be fully rolled back. The server diversion solution is to store the page on the server and return it dynamically. It puts a lot of pressure on the server and has poor problem collection capabilities. It can only wait for user feedback and then process it. The emergency response time is too long. Summary of the invention
[0003] The present application provides a system access method, apparatus, device, medium and program product, which can realize smooth switching of multi-version systems during the process of system architecture upgrade.
[0004] In a first aspect, the present application provides a system access method, comprising: if there is a user accessing a page of a current version of a non-domestic system, determining an access strategy corresponding to the user in a diversion strategy based on the user information of the user; if the access strategy points to the current version of the non-domestic system, allowing the user to enter the page to access the current version of the non-domestic system; if the access strategy points to a domestic system or a previous version of a non-domestic system, carrying the user information to jump to the domestic system or the previous version of the non-domestic system for access; if an abnormality occurs during the user's access to the domestic system and the current version of the non-domestic system, carrying the user information to jump to the previous version of the non-domestic system for access, so that the user can access the previous version of the non-domestic system that has been normally visited during the historical access process; wherein, the ratio of the total number of users pointing to the current version of the non-domestic system and the previous version of the non-domestic system to the number of users pointing to the domestic system in the diversion strategy is gradually adjusted from large to small over time.
[0005] In the second aspect, the present application provides a system access device, including: a policy determination module, which is used to determine the access policy corresponding to the user in the diversion strategy according to the user information of the user if there is a user accessing the page of the current version of the non-localized system; a system access module, which is used to allow the user to enter the page to access the current version of the non-localized system if the access policy points to the current version of the non-localized system; a first jump module, which is used to carry the user information to jump to the domestic system or the previous version of the non-localized system for access if the access policy points to the domestic system or the previous version of the non-localized system; a second jump module, which is used to carry the user information to jump to the previous version of the non-localized system for access if an abnormality occurs during the user's access to the domestic system and the current version of the non-localized system, so that the user can access the previous version of the non-localized system that has been normally visited during the historical access process; wherein, the ratio of the total number of users pointing to the current version of the non-localized system and the previous version of the non-localized system to the number of users pointing to the domestic system in the diversion strategy is gradually adjusted from large to small over time.
[0006] In a third aspect, the present application provides an electronic device, comprising: a processor, and a memory communicatively connected to the processor; the memory stores computer-executable instructions; the processor executes the computer-executable instructions stored in the memory to implement a system access method as described in any embodiment of the present application.
[0007] In a fourth aspect, the present application provides a computer-readable storage medium, wherein the computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a processor to implement the system access method described in any embodiment of the present application when executed.
[0008] In a fifth aspect, the present application provides a computer program product, which includes a computer program, and when the computer program is executed by a processor, it implements the system access method described in any embodiment of the present application.
[0009] The system access method, apparatus, equipment, medium and program product provided by the present application, if there is a user accessing the page of the current version of the non-localized system, then the access policy corresponding to the user is determined in the diversion strategy according to the user information of the user; if the access policy points to the current version of the non-localized system, the user is allowed to enter the page to access the current version of the non-localized system; if the access policy points to the domestic system or the previous version of the non-localized system, the user information is carried to jump to the domestic system or the previous version of the non-localized system for access; if an abnormality occurs during the user's access to the domestic system and the current version of the non-localized system, the user information is carried to jump to the previous version of the non-localized system for access, so that the user can access the previous version of the non-localized system that has been normally visited during the historical access process; wherein, the ratio of the total number of users pointing to the current version of the non-localized system and the previous version of the non-localized system to the number of users pointing to the domestic system in the diversion strategy is gradually adjusted from large to small over time. The technical solution of the embodiment of the present application diverts users accessing the system through a predetermined diversion strategy, and can achieve smooth switching of multi-version systems during the system architecture upgrade process. BRIEF DESCRIPTION OF THE DRAWINGS
[0010] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.
[0011] Figure 1 The process of the system access method provided in the embodiment of the present application Figure 1 ;
[0012] Figure 2 The process of the system access method provided in the embodiment of the present application Figure 2 ;
[0013] Figure 3 The process of the system access method provided in the embodiment of the present application Figure 3 ;
[0014] Figure 4 A schematic diagram of the structure of a system access device provided in an embodiment of the present application;
[0015] Figure 5 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application.
[0016] The above drawings have shown clear embodiments of the present application, which will be described in more detail later. These drawings and text descriptions are not intended to limit the scope of the present application in any way, but to illustrate the concept of the present application to those skilled in the art by referring to specific embodiments. DETAILED DESCRIPTION
[0017] The exemplary embodiments will be described in detail here, and examples thereof are shown in the accompanying drawings. When the following description refers to the drawings, unless otherwise indicated, the same numbers in different drawings represent the same or similar elements. The implementation methods described in the following exemplary embodiments do not represent all implementation methods consistent with the present application. On the contrary, they are only examples of devices and methods consistent with some aspects of the present application as detailed in the attached claims. The acquisition, transmission, storage, use, processing, etc. of data in the technical solution of this application comply with the relevant provisions of national laws and regulations.
[0018] It should be noted that in the embodiments of the present application, certain software, components, models and other existing solutions in the industry may be mentioned, and they should be regarded as exemplary. Their purpose is only to illustrate the feasibility of implementing the technical solution of the present application, but it does not mean that the applicant has or will necessarily use the solution.
[0019] The embodiment of the present application also provides a system access method. Figure 1 The process of the system access method provided in the embodiment of the present application Figure 1 The embodiment of the present application may be applicable to the case where a user access request received by the system is processed. Typically, the embodiment of the present application may be applicable to the case where a user access request received by the system is processed during a system architecture upgrade. The method may be executed by a system access device, which may be implemented in the form of hardware and / or software, and may be configured in an electronic device. Figure 1 As shown, the system access method includes:
[0020] S110. If there is a user accessing a page of a non-localized system of the current version, an access strategy corresponding to the user is determined according to the user information of the user in the diversion strategy.
[0021] Among them, non-localized systems usually refer to information technology systems, software, hardware or platforms that are not independently developed, designed or produced in China, such as operating systems, office software, industrial control systems, etc. Correspondingly, localized systems usually refer to information technology systems, software, hardware or platforms that are independently developed, designed or produced in China, aiming to meet the needs of domestic users, reduce dependence on external technologies, and improve the security and autonomous controllability of information systems.
[0022] Among them, the diversion strategy is a method of allocating resources, traffic or tasks to different paths, systems or processing units according to certain rules or requirements, aiming to achieve load balancing, improve system performance, optimize user experience, etc. The formulation of the diversion strategy is usually based on multiple factors such as the current system load, network performance requirements, user access patterns, etc. Common diversion strategies include polling, weighted polling, minimum links, etc. In the embodiment of the present application, the diversion strategy is used to characterize the mapping relationship between user information and access strategy, and its expression can be in the form of a table, key-value pair, etc. Through the predetermined diversion strategy, during the system architecture upgrade, users accessing the system can be diverted according to their user information, and access control of multi-version systems can be achieved to ensure business continuity and stability. Among them, the access policy is a set of rules used to determine which resources a user can access and in what way, aiming to protect sensitive data from unauthorized access, use, disclosure or modification.
[0023] The user information may include user ID, geographic location, device information, permission level, etc. The user ID is used to uniquely identify the user, and the geographic location, device information, permission level, etc. are used to determine the user's access policy. It is understandable that the access policies of different users may be the same or different, and the specific need is to be determined based on the mapping relationship between the user information and the access policy represented by the diversion strategy.
[0024] In an embodiment of the present application, it is possible to detect in real time whether there are users accessing the pages of the current version of the non-localized system by real-time log monitoring, embedding monitoring code in the page, or using third-party monitoring tools. When it is detected that a user has accessed the pages of the current version of the non-localized system, the user's access policy is determined based on the user information contained in the access request and the mapping relationship between the user information represented by the diversion policy and the access policy, so that the user can access the system based on the determined access policy, thereby achieving the purpose of diverting users accessing the system.
[0025] S120. If the access policy points to the current version of the non-localized system, the user is allowed to enter the page to access the current version of the non-localized system.
[0026] In an embodiment of the present application, if the access policy points to the current version of the non-localized system, the user is allowed to enter the page to access the current version of the non-localized system. Specifically, the corresponding routing or redirection rules can be configured according to the result pointed to by the access policy to ensure that the user is directed to the correct page. Exemplarily, if the system adopts a single-page application architecture, rules can be set in the front-end routing configuration, and when the user meets the conditions for accessing the current version of the non-localized system, it is automatically rendered or redirected to the corresponding page component; if the system depends on the back-end routing, the back-end service needs to decide which page to return or which operation to perform based on the user information and the access policy, and the back-end can send an HTTP redirect response to redirect the user's browser to the URL of the current version of the non-localized system. Optionally, before allowing the user to enter the page to access the current version of the non-localized system, it also includes: determining the user's authority level according to the user information, and determining the page or function of the current version of the non-localized system that the user has the right to access according to the authority level. Optionally, in the process of allowing the user to enter the page to access the current version of the non-localized system, it also includes: when an error or abnormality occurs in the access process, a clear error message and solution are provided to the user through a prompt message.
[0027] S130. If the access policy points to the domestic system or the previous version of the non-domestic system, the user information is carried to jump to the domestic system or the previous version of the non-domestic system for access.
[0028] In an embodiment of the present application, if the access policy points to a localized system or a previous version of a non-localized system, the user information is carried to jump to the localized system or the previous version of the non-localized system for access. Specifically, a jump URL pointing to the localized system or the previous version of the non-localized system can be constructed according to the result of the access policy. This URL should contain all necessary parameters so that the localized system or the previous version of the non-localized system can correctly identify the user and restore its session, so that the user can smoothly access the localized system or the previous version of the non-localized system. Optionally, if the localized system or the previous version of the non-localized system supports the transmission of user information through the URL, the user information is encoded and attached to the URL. Among them, the method of transmitting user information through the URL includes query parameters or hash fragments, etc. If the localized system or the previous version of the non-localized system does not support the transmission of user information through the URL, other mechanisms may need to be used to transmit user information, such as server-to-server communication, cookies, etc.
[0029] In the embodiment of the present application, carrying the user information to jump to the localized system or the previous version of the non-localized system for access includes:
[0030] Determine in the process of the user accessing the current version of the non-localized system, a token is generated after successful login based on the login information; carry the token and the user information to jump to the domesticated system or the previous version of the non-localized system for access.
[0031] In the embodiment of the present application, when the user accesses the non-localized system, he needs to log in the non-localized system. This step usually involves the user entering a username and password. After the non-localized system verifies its validity, it generates a token according to the user's login information and passes the token to the user, so that the user can carry the token and user information to jump to the localized system or the previous version of the non-localized system for access. The localized system or the previous version of the non-localized system can determine whether the user has access rights by verifying the token and user information. In the above manner, the user only needs to log in once in the current version of the non-localized system to seamlessly access the localized system or the previous version to the localized system without repeated login. At the same time, the token mechanism helps to reduce the transmission of user sensitive information and reduce the risk of information leakage. It should be noted that when using the token mechanism, it is necessary to ensure the security of the token during the generation, transmission and verification process to prevent the token from being tampered with or stolen. In addition, when implementing the jump, it is necessary to conduct sufficient compatibility testing to ensure normal access under different browsers and client environments.
[0032] S140. If an exception occurs during the user's access to the domestic system and the current version of the non-domestic system, the user information is carried to jump to the previous version of the non-domestic system for access, so that the user can access the previous version of the non-domestic system that has been normally accessed during the historical access process; wherein, the ratio of the total number of users pointing to the current version of the non-domestic system and the previous version of the non-domestic system to the number of users pointing to the domestic system in the diversion strategy is gradually adjusted from large to small over time.
[0033] Among them, the ratio of the total number of users pointing to the current version of non-domestic systems and the previous version of non-domestic systems in the diversion strategy to the number of users pointing to the domestic system gradually adjusts from large to small over time, which reflects a transition stage in the system upgrade process. In this transition stage, by reducing the total number of users pointing to the current version of non-domestic systems and the previous version of non-domestic systems in the diversion strategy and increasing the number of users pointing to the domestic system, users are guided to switch from non-domestic systems to domestic systems.
[0034] In an embodiment of the present application, if anomalies occur during the user's access to the domestic system and the current version of the non-domestic system, at this time, the user information can be carried to jump to the previous version of the non-domestic system for access, so that the user can access the previous version of the non-domestic system that has been normally accessed during the historical access process, ensuring that the user's access request can be processed normally, avoiding the adverse experience of access failure, and ensuring the normal execution of access.
[0035] In the scheme of the embodiment of the present application, if there is a user accessing the page of the current version of the non-localized system, the access strategy corresponding to the user is determined according to the user information of the user in the diversion strategy; if the access strategy points to the current version of the non-localized system, the user is allowed to enter the page to access the current version of the non-localized system; if the access strategy points to the localized system or the previous version of the non-localized system, the user information is carried to jump to the localized system or the previous version of the non-localized system for access; if an abnormality occurs during the user's access to the localized system and the current version of the non-localized system, the user information is carried to jump to the previous version of the non-localized system for access, so that the user can access the previous version of the non-localized system that has been normally accessed during the historical access process; wherein, the ratio of the total number of users pointing to the current version of the non-localized system and the previous version of the non-localized system to the number of users pointing to the localized system in the diversion strategy is gradually adjusted from large to small over time. The technical scheme of the embodiment of the present application, through the pre-determined diversion strategy to divert users accessing the system, can achieve a smooth switch of multi-version systems during the system architecture upgrade.
[0036] Figure 2 The process of the system access method provided in the embodiment of the present application Figure 2 .like Figure 2 As shown, the system access method includes the following steps:
[0037] S210. If there is a user accessing a page of a non-localized system of the current version, an access strategy corresponding to the user is determined according to the user information of the user in the diversion strategy.
[0038] In an embodiment of the present application, determining an access policy corresponding to the user in the diversion policy according to the user information of the user includes:
[0039] In the diversion strategy, whether there is an access policy corresponding to the user is retrieved according to the user information; if so, the time difference between the current time and the last access time of the user is determined; if the time difference is less than a preset time difference threshold, the access policy corresponding to the user is obtained from the diversion strategy.
[0040] The time difference between the current time of the user's current visit and the time of the user's last visit can be calculated by the timestamp on the last access request encrypted and stored in the local browser storage, and the current time of the current visit. The last access request encrypted and stored in the local browser storage is the one that the system adds a timestamp to the access request during the last visit and returns to the local browser together with the access policy.
[0041] In an embodiment of the present application, the access policy corresponding to the user is determined in the diversion strategy according to the user information of the user, and it can be performed by searching whether there is an access policy corresponding to the user in the diversion strategy according to the user information. Exemplarily, when determining the diversion strategy, the access policy corresponding to the user can be determined according to the user information, and the user ID in the user information is used as the key, and the access policy corresponding to the user is used as the value, and stored in the form of a key-value pair. Afterwards, according to the user ID in the user information, it can be retrieved in the diversion strategy whether there is a value corresponding to the user ID to determine whether there is an access policy corresponding to the user in the diversion strategy. Afterwards, if there is an access policy corresponding to the user in the diversion strategy, it is also necessary to determine the time difference between the current time and the user's last access time, and when the time difference between the current time and the user's last access time is less than the preset time difference threshold, the access policy corresponding to the user is obtained from the diversion strategy to ensure the timeliness of the access policy obtained from the system and avoid erroneous access due to expired access policies. Optionally, when the access policy corresponding to the user is obtained from the system, the last access request encrypted and saved in the local browser may be replaced according to the current access request with a timestamp returned together with the access policy.
[0042] In the embodiment of the present application, searching in the diversion strategy according to the user information whether there is an access policy corresponding to the user includes:
[0043] Based on the user information, query whether there is an access policy corresponding to the user in the diversion policy in the memory; if not, query whether there is an access policy corresponding to the user in the diversion policy in the cache; if not, query whether there is an access policy corresponding to the user in the diversion policy in the storage database.
[0044] In an embodiment of the present application, a multi-level cache method is adopted for storage of the diversion strategy, that is, the diversion strategy is stored in the system's memory, redis cache, and DB storage database. When retrieving whether there is an access strategy corresponding to the user in the diversion strategy based on user information, first query whether there is an access strategy corresponding to the user in the diversion strategy in the memory. If there is no access strategy corresponding to the user in the diversion strategy in the memory, query whether there is an access strategy corresponding to the user in the diversion strategy in the cache. If there is still no access strategy corresponding to the user in the diversion strategy in the cache, finally query whether there is an access strategy corresponding to the user in the diversion strategy in the storage database. In the above manner, some requests can be processed directly in the cache layer to reduce the pressure on the server to ensure that it can withstand large concurrent accesses.
[0045] Optionally, in an embodiment of the present application, the cache level of the diversion strategy can be dynamically adjusted according to the access volume. Exemplarily, when the access volume is lower than a first preset threshold, the diversion strategy in the storage database is retained; when the access volume is higher than the first preset threshold and lower than a second preset threshold, the diversion strategy in the storage database and cache is retained; when the access volume is higher than the second preset threshold, the diversion strategy in the storage database, cache, and memory is retained. In the above manner, the system can maintain optimal performance under different loads, reduce the occupancy of cache and memory under low load, and speed up the processing of access requests under high load.
[0046] Optionally, searching in the diversion strategy whether there is an access policy corresponding to the user according to the user information also includes: querying in the diversion strategy in the memory whether there is an access policy corresponding to the user according to the user information; if the access policy corresponding to the user queried exceeds the validity period, querying in the diversion strategy in the cache whether there is an access policy corresponding to the user; if the access policy corresponding to the user queried exceeds the validity period, querying in the diversion strategy in the storage database whether there is an access policy corresponding to the user. In the above manner, the timeliness of the access policy obtained from the system can be ensured, avoiding erroneous access due to expired access policies.
[0047] In an embodiment of the present application, the method also includes: if the access policy corresponding to the user is queried in the diversion strategy in the storage database, the cache is updated based on the access policy corresponding to the user; after the cache is updated based on the access policy corresponding to the user or the access policy corresponding to the user is queried in the diversion strategy in the cache, the memory is updated based on the access policy corresponding to the user.
[0048] In an embodiment of the present application, if the access policy corresponding to the user is queried in the diversion policy in the storage database, it means that the access policy corresponding to the user does not exist in the diversion policy in the cache and the memory. At this time, it is necessary to first update the diversion policy in the cache based on the queried access policy corresponding to the user, and after updating the diversion policy in the cache, update the diversion policy in the memory based on the access policy corresponding to the user; if the access policy corresponding to the user is queried in the diversion policy in the cache, it means that the access policy corresponding to the user does not exist in the diversion policy in the memory. At this time, it is necessary to update the diversion policy in the memory based on the queried access policy corresponding to the user. In the above manner, the consistency of the diversion policies in the caches at all levels of the multi-level cache can be ensured to improve the accuracy of the diversion policies and optimize system performance.
[0049] S220. If the access policy points to the current version of the non-localized system, the user is allowed to enter the page to access the current version of the non-localized system.
[0050] S230. If the access policy points to the domestic system or the previous version of the non-domestic system, the user information is carried to jump to the domestic system or the previous version of the non-domestic system for access.
[0051] S240. If an exception occurs during the user's access to the domestic system and the current version of the non-domestic system, the user information is carried to jump to the previous version of the non-domestic system for access, so that the user can access the previous version of the non-domestic system that has been normally accessed during the historical access process.
[0052] S250, performing tracking at the access unit of the system according to the tracking information; wherein the system includes a current version of a non-localized system, a localized system, and a previous version of a non-localized system.
[0053] Among them, the embedding point refers to the relevant technology and its implementation process for capturing, processing and sending specific user behaviors or events, and its purpose is to collect and analyze user behavior data to facilitate data-driven decision-making. In the embodiment of the present application, the embedding point information refers to the relevant information used to determine the embedding method at the access unit of the system, such as the menu information of the page menu in the access unit.
[0054] In the embodiment of the present application, the sampling rate of the tracking point can be determined according to the tracking point information, and the data tracking point can be implemented at the access unit of the system according to the sampling rate to collect the data of the user when accessing the current version of the non-domestic system, the domestic system and the previous version of the non-domestic system, including but not limited to user ID, operation time, operation type, operation result, etc. By analyzing the collected data, potential problems that may cause users to switch systems are identified, such as long response time, frequent errors, unavailable functions, etc. It should be noted that after tracking points at the access unit of the system according to the tracking point information, sufficient testing is required to ensure the accuracy and completeness of the tracking point data.
[0055] S260. Determine whether the user needs to switch systems for access based on the access processing result at the embedding point during the user's access to the system.
[0056] In an embodiment of the present application, after obtaining the access processing result at the tracking point during the user's access to the system, it is possible to determine whether the user needs to switch the system for access based on the pre-established access indicator standard and the value of the corresponding access indicator in the access processing result. Specifically, if the value of the access indicator can meet the access indicator standard, the user does not need to switch the system for access. If the value of the access indicator cannot meet the access indicator standard, the user needs to switch the system for access. Among them, the access indicators may include response time, error rate, success rate, page loading time, number of user interactions, etc. In the above manner, the process of user access to the system can be optimized and the user experience can be improved.
[0057] In an embodiment of the present application, determining whether the user needs to switch the system for access according to the access processing result at the embedding point during the process of the user accessing the system includes:
[0058] During the process of the user accessing the system, the access success rate of the user at the embedding point is determined; and based on the access success rate, it is determined whether the user needs to switch systems for access.
[0059] In the embodiment of the present application, the access success rate is a core indicator for measuring system performance and user experience. A high access success rate usually means that the system can stably process user requests and reduce access failures caused by system failures or errors, which is crucial for maintaining user trust and enhancing brand image. Therefore, redis can be used to count the access success rate of each access unit's buried point, and determine whether the user needs to switch the system for access based on the access success rate.
[0060] In an embodiment of the present application, determining whether the user needs to switch systems for access according to the access success rate includes:
[0061] The access success rate is compared with a preset success rate threshold; if the access success rate is higher than or equal to the preset success rate threshold, it is determined that the user does not need to switch the system for access; if the access success rate is lower than the preset success rate threshold, it is determined that the user needs to switch the system for access.
[0062] In an embodiment of the present application, the access success rate can be compared with a preset success rate threshold to determine whether the user needs to switch the system for access. Specifically, if the access success rate is higher than or equal to the preset success rate threshold, it is determined that the user does not need to switch the system for access; if the access success rate is lower than the preset success rate threshold, it is determined that the user needs to switch the system for access. Among them, the preset success rate threshold can be set according to actual conditions, and the present application is not limited to this. Optionally, determining the preset success rate threshold includes: training a machine learning algorithm through historical data to obtain a preset success rate threshold determination model, and dynamically adjusting the preset success rate threshold according to the preset success rate threshold determination model. In the above manner, the access success rate of users accessing the system can be improved, thereby improving the user experience.
[0063] In the embodiment of the present application, if the access success rate is lower than the preset success rate threshold, determining that the user needs to switch the system for access includes:
[0064] If the access success rate at the tracking point during the user's access to the domestic system is lower than the preset success rate threshold, the user is ordered to switch to access the current version of the non-domestic system, and the access policy corresponding to the user in the diversion strategy is modified to point to the current version of the non-domestic system; if the access success rate at the tracking point during the user's access to the current version of the non-domestic system is lower than the preset success rate threshold, the user is ordered to switch to access the previous version of the non-domestic system, and the access policy corresponding to the user in the diversion strategy is modified to point to the previous version of the non-domestic system; if there is no previous version of the non-domestic system, or if the access success rate at the tracking point during the user's access to the previous version of the non-domestic system is lower than the preset success rate threshold, an alarm message is sent.
[0065] In an embodiment of the present application, if the access success rate is lower than the preset success rate threshold, it is determined that the user needs to switch the system for access, and while switching the system for access, the access policy corresponding to the user is modified. Specifically, if the access success rate at the buried point is lower than the preset success rate threshold during the user's access to the domestic system, in order to improve the user's experience, the user can be allowed to switch to access the current version of the non-domestic system, and the access policy corresponding to the user in the diversion policy is modified to point to the current version of the non-domestic system; if the user accesses the current version of the non-domestic system, the access success rate at the buried point is still lower than the preset success rate threshold, then the user is allowed to switch to access the previous version of the non-domestic system, and the access policy corresponding to the user in the diversion policy is modified to point to the previous version of the non-domestic system; if there is no previous version of the non-domestic system, or the user accesses the previous version of the non-domestic system, the access success rate at the buried point is still lower than the preset success rate threshold, then send an alarm message to notify the technician to intervene manually. Through the automatic modification of the access policy by the buried point information, the dynamic adjustment of the access policy in the diversion policy can be realized, the pressure of manual intervention is reduced, and the high availability of the system is ensured. Optionally, after modifying the access policy corresponding to the user, the diversion policy in the memory, cache, and storage database needs to be updated to ensure that the local browser can obtain the latest version of the diversion policy from the system.
[0066] In the scheme of the embodiment of the present application, if there is a user accessing the page of the current version of the non-localized system, the access strategy corresponding to the user is determined according to the user information of the user in the diversion strategy; if the access strategy points to the current version of the non-localized system, the user is allowed to enter the page to access the current version of the non-localized system; if the access strategy points to the localized system or the previous version of the non-localized system, the user information is carried to jump to the localized system or the previous version of the non-localized system for access; if an exception occurs during the user's access to the localized system and the current version of the non-localized system, the user information is carried to jump to the previous version of the non-localized system for access, so that the user can access the previous version of the non-localized system that has been normally accessed during the historical access process; according to the buried point information, the access unit of the system is buried; wherein the system includes the current version of the non-localized system, the localized system and the previous version of the non-localized system; according to the access processing result at the buried point during the user's access to the system, it is determined whether the user needs to switch the system for access. The technical solution of the embodiment of the present application diverts users accessing the system through a predetermined diversion strategy, and can achieve smooth switching of multi-version systems during the system architecture upgrade. At the same time, the embedded information can be used to automatically determine whether the user needs to switch system access, optimize the process of user access to the system, and improve the user experience.
[0067] Figure 3The process of the system access method provided in the embodiment of the present application Figure 3 .like Figure 3 As shown, the system access method includes the following steps:
[0068] S310. For the access units on each system page, determine the corresponding policy content based on each access unit as a dimension; wherein the access unit includes a page menu or an access address; wherein each system includes a current version of a non-localized system, a localized system, and a previous version of a non-localized system.
[0069] Among them, the access unit refers to the component that can be accessed by the user on each system page. In the embodiment of the present application, the access unit includes a page menu or an access address. It can be understood that in a page, each access unit has a unique ID for subsequent management and reference.
[0070] In the embodiment of the present application, since the access rules of different access units may be different, the corresponding diversion strategy content can be determined for the access units on each system page with each access unit as the dimension. Specifically, for each access unit, its corresponding rule group is established as the policy content, and the mapping relationship between the ID identifier of the access unit and the corresponding rule group is determined, so as to achieve the purpose of determining the corresponding policy content with each access unit as the dimension. By determining the corresponding diversion strategy content with each access unit as the dimension, it is convenient to control the user's access request.
[0071] S320, global users, organizations, and customers are included in the policy content in ascending order of priority.
[0072] The elements in the rule group corresponding to the policy content, that is, the access unit, can be divided into three types, namely global users, organizations, and customers. Global users refer to users with unified identities and permissions within the system, and generally correspond to only one element, while organizations and customers are usually a collection of multiple users and can correspond to multiple elements. By treating organizations or customers as a type, the behavior consistency of the same customer is ensured, and logical disorder can be avoided.
[0073] In an embodiment of the present application, with respect to the diversion strategy, the priorities of global users, organizations, and customers increase in sequence. Therefore, the global users, organizations, and customers can be included in the policy content in a relationship of increasing priority. That is, the global users, organizations, and customers can be filled in the rule group corresponding to the access unit in a relationship of increasing priority to complete the determination of the diversion strategy.
[0074] S330: Store the diversion strategy according to the access unit dimension, and store the diversion strategy in the storage database and cache.
[0075] In an embodiment of the present application, after the diversion strategy is determined based on the access unit dimension, the diversion strategy can be stored according to the access unit dimension. Specifically, the diversion strategy can be stored in the DB storage database and the redis cache in sequence to achieve multi-level caching of the diversion strategy.
[0076] S340: Notify each node to store the diversion strategy in memory.
[0077] In an embodiment of the present application, after the diversion strategy is stored in the storage database and cache, each node can be notified to obtain the diversion strategy from the cache and store it in the memory of each node to further implement multi-level caching of the diversion strategy.
[0078] S350. If a user accesses a page of a non-localized system of the current version, an access strategy corresponding to the user is determined in the diversion strategy according to the user information of the user.
[0079] S360. If the access policy points to the current version of the non-localized system, the user is allowed to enter the page to access the current version of the non-localized system.
[0080] S370. If the access policy points to the domestic system or the previous version of the non-domestic system, the user information is carried to jump to the domestic system or the previous version of the non-domestic system for access.
[0081] S380. If an exception occurs when the user accesses the domestic system and the current version of the non-domestic system, the user information is carried to jump to the previous version of the non-domestic system for access, so that the user can access the previous version of the non-domestic system that has been normally accessed during the historical access process.
[0082] In an embodiment of the present application, the method further includes:
[0083] In the current system deployment environment, the code repository code of the domestic system is packaged and run; the code of the previous version of the non-domestic system is obtained through a script, a code directory of the previous version of the non-domestic system is created for storage, and the code repository code of the current version of the non-domestic system is packaged with the code directory.
[0084] Among them, the code of the previous version of the non-localized system only retains the business code part, reuse framework and public part, which can limit the size expansion of the code package. The code of the previous version of the non-localized system is obtained through the script, which does not affect the code warehouse and can avoid the complexity of submitting record queries.
[0085] In an embodiment of the present application, if the access policy points to the domestic system, the Git code repository code of the domestic system can be directly packaged and run in the domestic system deployment environment. If the access policy points to the current version of the non-domestic system, before packaging the Git code repository code of the current version of the non-domestic system, first obtain the code of the previous version of the non-domestic system through a script, create a code directory of the previous version of the non-domestic system for storage, and package the code repository code of the current version of the non-domestic system with the code directory. It can be understood that even if there is a previous version of the code, its essence is still the same project, which can avoid a series of problems such as permissions, value acquisition, and deployment.
[0086] The solution in the embodiment of the present application is to determine the corresponding policy content with each access unit as the dimension for the access unit on each system page; wherein the access unit includes a page menu or an access address; wherein each system includes a current version of a non-localized system, a localized system, and a previous version of a non-localized system; global users, institutions, and customers are included in the policy content in ascending order of priority; the diversion strategy is stored according to the access unit dimension, and the diversion strategy is stored in a storage database and a cache; each node is notified to store the diversion strategy in memory; if there is a user accessing a page of the current version of the non-localized system, in the diversion The access policy corresponding to the user is determined according to the user information of the user in the policy; if the access policy points to the current version of the non-domestic system, the user is allowed to enter the page to access the current version of the non-domestic system; if the access policy points to the domestic system or the previous version of the non-domestic system, the user information is carried to jump to the domestic system or the previous version of the non-domestic system for access; if an exception occurs during the user's access to the domestic system and the current version of the non-domestic system, the user information is carried to jump to the previous version of the non-domestic system for access, so that the user can access the previous version of the non-domestic system that has been normally accessed during the historical access process. The technical solution of the embodiment of the present application diverts users accessing the system through a predetermined diversion strategy, and can achieve smooth switching of multi-version systems during the system architecture upgrade. At the same time, by determining the corresponding diversion strategy content based on each access unit as a dimension, the granularity is fine, which is convenient for controlling the user's access request.
[0087] For example, the present application provides a specific implementation of a system access method, and the specific implementation process is as follows:
[0088] 1. Determine the diversion strategy. The strategy is designed based on the menu or route ID. Each ID corresponds to a rule group. The elements in each rule group can be divided into three types, namely global users, institutions, and customers, with increasing priorities. There can be multiple elements corresponding to institutions and customers.
[0089] 2. The backend receives the diversion strategy according to the menu dimension, updates the DB storage database and redis cache in turn, and sends messages to notify all nodes to update the diversion strategy in their own memory.
[0090] 3. The front end obtains user information and detects whether there is a corresponding diversion strategy in the browser storage. If the diversion strategy exists, if the local timestamp to the current time is less than the specified time, the diversion strategy in the browser is directly read; if the diversion strategy does not exist, the backend diversion strategy is called using the user information request, and the request return is timestamped and encrypted and saved to the browser storage, and the diversion strategy is returned.
[0091] 4. After receiving the request, the backend first queries the memory. If the diversion strategy in the memory exceeds the validity period, it queries the redis cache. If the diversion strategy in the cache exceeds the validity period, it queries the DB storage database and returns the queried diversion strategy to the frontend. If the result is found from the DB storage database, the redis cache is updated. If the redis cache is updated, a message is sent to notify all nodes to update their own memory.
[0092] 5. The front end determines the result based on the returned diversion strategy. If the access strategy in the diversion strategy points to the current version of the non-localized system, no other operations will be performed to continue execution. If the access strategy in the diversion strategy points to the current localized system or the previous version of the non-localized system, the user information and token will be carried to jump to the localized system or the previous version of the non-localized system to continue execution. If an exception occurs during the user's access to the localized system and the current version of the non-localized system, the user information will be carried to jump to the previous version of the non-localized system for access, so that the user can access the previous version of the non-localized system that has been normally accessed during the historical access process.
[0093] 6. Send a package request, collect the current environment, i.e. menu information, implement data tracking according to the sampling rate, and send the tracking information to the backend.
[0094] 7. For front-end project packaging, the domestic environment directly uses the git code repository code for packaging. For non-domestic environment, before using the git code repository for packaging, first obtain the previous version of the business code through the script and create a specific directory to save it. It is essentially a project that can reuse project resources.
[0095] 8. The backend receives the tracking information sent by the frontend, and uses redis to count the success rate of each menu request. When the access success rate of the user to the domestic system is lower than the preset threshold, the access policy corresponding to the user is modified to the current version of the non-domestic system. When the access success rate of the user to the current version of the non-domestic system is lower than the preset threshold, the access policy corresponding to the user is modified to the previous version of the non-domestic system. When there is no previous version of the non-domestic system, or the access success rate of the user to the previous version of the non-domestic system is still lower than the preset threshold, an alarm SMS is sent to notify the technical staff to intervene manually.
[0096] Figure 4 This is a schematic diagram of the structure of the system access device provided in the embodiment of the present application. Figure 4 As shown, the system access device includes: a policy determination module 410, a system access module 420, a first jump module 430, and a second jump module 440;
[0097] The strategy determination module 410 is used to determine the access strategy corresponding to the user in the diversion strategy according to the user information of the user if there is a user accessing the page of the current version of the non-localized system;
[0098] The system access module 420 is used to allow the user to enter the page to access the current version of the non-localized system if the access policy points to the current version of the non-localized system;
[0099] A first jump module 430 is used to carry the user information and jump to the localized system or the previous version of the non-localized system for access if the access policy points to the localized system or the previous version of the non-localized system;
[0100] The second jump module 440 is used to jump to the previous version of the non-domestic system with the user information for access if an exception occurs during the user's access to the domestic system and the current version of the non-domestic system, so that the user can access the previous version of the non-domestic system that has been normally accessed during the historical access process; wherein the ratio of the total number of users pointing to the current version of the non-domestic system and the previous version of the non-domestic system to the number of users pointing to the domestic system in the diversion strategy is gradually adjusted from large to small over time.
[0101] In some embodiments, the device also includes: a tracking module, which is used to track the access unit of the system according to the tracking information; wherein the system includes a current version of a non-domestic system, a domestic system, and a previous version of a non-domestic system; a system switching judgment module, which is used to determine whether the user needs to switch the system for access based on the access processing result at the tracking point during the user's access to the system.
[0102] In some embodiments, the system switching judgment module determines whether the user needs to switch the system for access based on the access processing results at the tracking point during the user's access to the system, specifically including: determining the access success rate of the user at the tracking point during the user's access to the system; and determining whether the user needs to switch the system for access based on the access success rate.
[0103] In some embodiments, determining whether the user needs to switch systems for access is based on the access success rate, specifically including: comparing the access success rate with a preset success rate threshold; if the access success rate is higher than or equal to the preset success rate threshold, determining that the user does not need to switch systems for access; if the access success rate is lower than the preset success rate threshold, determining that the user needs to switch systems for access.
[0104] In some embodiments, if the access success rate is lower than the preset success rate threshold, it is determined that the user needs to switch systems for access, specifically including: if the access success rate at the tracking point during the user's access to the domestic system is lower than the preset success rate threshold, the user is allowed to switch to access the current version of the non-domestic system, and the access policy corresponding to the user in the diversion strategy is modified to point to the current version of the non-domestic system; if the access success rate at the tracking point during the user's access to the current version of the non-domestic system is lower than the preset success rate threshold, the user is allowed to switch to access the previous version of the non-domestic system, and the access policy corresponding to the user in the diversion strategy is modified to point to the previous version of the non-domestic system; if there is no previous version of the non-domestic system, or if the access success rate at the tracking point during the user's access to the previous version of the non-domestic system is lower than the preset success rate threshold, an alarm message is sent.
[0105] In some embodiments, the process of determining the diversion strategy includes: for the access units on each system page, determining the corresponding policy content with each access unit as a dimension; wherein the access unit includes a page menu or an access address; each system includes a current version of a non-domestic system, a domestic system, and a previous version of a non-domestic system; and global users, institutions, and customers are included in the policy content in ascending order of priority.
[0106] In some embodiments, the device also includes: a first diversion strategy storage module, used to store the diversion strategy according to the access unit dimension, and store the diversion strategy in a storage database and cache; a second diversion strategy storage module, used to notify each node to store the diversion strategy in the memory.
[0107] In some embodiments, the policy determination module 410 determines the access policy corresponding to the user in the diversion policy based on the user information of the user, specifically including: searching the diversion policy based on the user information to see whether there is an access policy corresponding to the user; if so, determining the time difference between the current time and the last access time of the user; if the time difference is less than a preset time difference threshold, obtaining the access policy corresponding to the user from the diversion policy.
[0108] In some embodiments, the diversion strategy is retrieved based on the user information to determine whether there is an access policy corresponding to the user, specifically including: querying whether there is an access policy corresponding to the user in the diversion strategy in the memory based on the user information; if not, querying whether there is an access policy corresponding to the user in the diversion strategy in the cache; if not, querying whether there is an access policy corresponding to the user in the diversion strategy in the storage database.
[0109] In some embodiments, the method also includes: if the access policy corresponding to the user is queried in the diversion strategy in the storage database, the cache is updated based on the access policy corresponding to the user; after the cache is updated based on the access policy corresponding to the user or the access policy corresponding to the user is queried in the diversion strategy in the cache, the memory is updated based on the access policy corresponding to the user.
[0110] In some embodiments, the device also includes: a first code packaging module, used to package and run the code warehouse code of the domestic system in the current system deployment environment; a second code packaging module, used to obtain the code of the previous version of the non-domestic system through a script, create a code directory of the previous version of the non-domestic system for saving, and carry the code directory to package the code warehouse code of the current version of the non-domestic system.
[0111] In some embodiments, the first jump module 430 carries the user information to jump to the domestic system or the previous version of the non-domestic system for access, specifically including: determining a token generated after successful login based on the login information during the process of the user accessing the current version of the non-domestic system; carrying the token and the user information to jump to the domestic system or the previous version of the non-domestic system for access.
[0112] The system access device provided in the embodiment of the present application can be used to execute the technical solution of the system access method in the above embodiment. Its implementation principle and technical effect are similar and will not be repeated here.
[0113] It should be noted that it should be understood that the division of the various modules of the above device is only a division of logical functions. In actual implementation, they can be fully or partially integrated into one physical entity, or they can be physically separated. And these modules can all be implemented in the form of software called by processing elements; they can also be all implemented in the form of hardware; some modules can also be implemented in the form of software called by processing elements, and some modules can be implemented in the form of hardware. For example, the policy determination module 410 can be a separately established processing element, or it can be integrated in a chip of the above device. In addition, it can also be stored in the memory of the above device in the form of program code, and called and executed by a processing element of the above device. The function of the above policy determination module 410. The implementation of other modules is similar. In addition, these modules can be fully or partially integrated together, or they can be implemented independently. The processing element here can be an integrated circuit with signal processing capabilities. In the implementation process, each step of the above method or each module above can be completed by an integrated logic circuit of hardware in the processor element or instructions in the form of software.
[0114] Figure 5 This is a schematic diagram of the structure of an electronic device provided in an embodiment of the present application. Figure 5 As shown, the electronic device may include: a transceiver 121 , a processor 122 , and a memory 123 .
[0115] The processor 122 executes the computer execution instructions stored in the memory, so that the processor 122 executes the scheme in the above embodiment. The processor 122 can be a general-purpose processor, including a central processing unit CPU, a network processor (network processor, NP), etc.; it can also be a digital signal processor DSP, an application-specific integrated circuit ASIC, a field programmable gate array FPGA or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components.
[0116] The memory 123 is connected to the processor 122 via a system bus and completes communication between them. The memory 123 is used to store computer program instructions.
[0117] The transceiver 121 may be used to obtain tasks to be executed and configuration information of the tasks to be executed.
[0118] The system bus can be a peripheral component interconnect (PCI) bus or an extended industry standard architecture (EISA) bus, etc. The system bus can be divided into an address bus, a data bus, a control bus, etc. For ease of representation, only one thick line is used in the figure, but it does not mean that there is only one bus or one type of bus. The transceiver is used to realize the communication between the database access device and other computers (such as clients, read-write libraries, and read-only libraries). The memory may include random access memory (RAM) and may also include non-volatile memory.
[0119] The electronic device provided in the embodiment of the present application may be the terminal device of the above embodiment.
[0120] An embodiment of the present application also provides a chip for executing instructions, which is used to execute the technical solution of the system access method in the above embodiment.
[0121] An embodiment of the present application further provides a computer-readable storage medium, in which computer instructions are stored. When the computer instructions are executed on a computer, the computer executes the technical solution of the system access method of the above embodiment.
[0122] An embodiment of the present application also provides a computer program product, which includes a computer program stored in a computer-readable storage medium. At least one processor can read the computer program from the computer-readable storage medium. When at least one processor executes the computer program, the technical solution of the system access method in the above embodiment can be implemented.
[0123] Those skilled in the art will readily appreciate other embodiments of the present application after considering the specification and practicing the invention disclosed herein. The present application is intended to cover any modification, use or adaptation of the present application, which follows the general principles of the present application and includes common knowledge or customary techniques in the art that are not disclosed in the present application. The specification and examples are intended to be exemplary only, and the true scope and spirit of the present application are indicated by the following claims.
[0124] It should be understood that the present application is not limited to the precise structures that have been described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present application is limited only by the appended claims.
Claims
1. A system access method, characterized in that: include: If there is a user accessing a page of a non-localized system of the current version, an access strategy corresponding to the user is determined in the diversion strategy according to the user information of the user; If the access policy points to the current version of the non-localized system, the user is allowed to enter the page to access the current version of the non-localized system; If the access policy points to the domestic system or the previous version of the non-domestic system, then the user information is carried to jump to the domestic system or the previous version of the non-domestic system for access; If an exception occurs during the user's access to the localized system and the current version of the non-localized system, the user information is carried to jump to the previous version of the non-localized system for access, so that the user can access the previous version of the non-localized system that has been normally accessed during the historical access process; Among them, the ratio of the total number of users pointing to the current version of non-domestic systems and the previous version of non-domestic systems to the number of users pointing to domestic systems in the diversion strategy gradually adjusts from large to small over time.
2. The method according to claim 1, characterized in that During the process of the user accessing each system, the method further includes: Tracking is performed at the access unit of the system according to the tracking information; wherein the system includes a current version of a non-localized system, a localized system, and a previous version of a non-localized system; According to the access processing result at the embedding point during the process of the user accessing the system, it is determined whether the user needs to switch the system for access.
3. The method according to claim 2, characterized in that Determining whether the user needs to switch systems for access according to the access processing result at the tracking point during the process of the user accessing the system includes: During the process of the user accessing the system, determining the access success rate of the user at the embedding point; Determine whether the user needs to switch systems for access based on the access success rate.
4. The method according to claim 3, characterized in that Determining whether the user needs to switch systems for access according to the access success rate includes: Comparing the access success rate with a preset success rate threshold; If the access success rate is higher than or equal to the preset success rate threshold, it is determined that the user does not need to switch systems for access; If the access success rate is lower than the preset success rate threshold, it is determined that the user needs to switch systems for access.
5. The method according to claim 4, characterized in that If the access success rate is lower than the preset success rate threshold, determining that the user needs to switch systems for access includes: If the access success rate at the tracking point during the user's access to the domestic system is lower than the preset success rate threshold, the user is switched to access the current version of the non-domestic system, and the access policy corresponding to the user in the diversion policy is modified to point to the current version of the non-domestic system; If the access success rate at the tracking point is lower than the preset success rate threshold during the user's access to the current version of the non-localized system, the user is switched to access the previous version of the non-localized system, and the access policy corresponding to the user in the diversion policy is modified to point to the previous version of the non-localized system; If there is no previous version of the non-domesticated system, or if the access success rate at the embedding point is lower than the preset success rate threshold during the user's access to the previous version of the non-domesticated system, an alarm message is sent.
6. The method according to claim 1, characterized in that The process of determining the diversion strategy includes: For the access units on each system page, the corresponding policy content is determined based on each access unit as a dimension; wherein the access unit includes a page menu or an access address; each system includes a current version of a non-localized system, a localized system, and a previous version of a non-localized system; Global users, organizations, and customers are listed in the policy content in ascending order of priority.
7. The method according to claim 6, characterized in that After the diversion strategy is determined, the method further includes: The diversion strategy is stored according to the access unit dimension, and the diversion strategy is stored in a storage database and a cache; Notify each node to store the diversion strategy in memory.
8. The method according to claim 1, characterized in that Determining an access policy corresponding to the user in the diversion policy according to the user information of the user includes: In the diversion strategy, searching according to the user information whether there is an access policy corresponding to the user; If so, determining the time difference between the current time and the last access time of the user; If the time difference is less than a preset time difference threshold, the access policy corresponding to the user is obtained from the diversion policy.
9. The method according to claim 8, characterized in that Searching in the diversion strategy whether there is an access policy corresponding to the user according to the user information includes: According to the user information, query whether there is an access policy corresponding to the user in the diversion policy in the memory; If not, query whether there is an access policy corresponding to the user in the diversion policy in the cache; If not, query whether there is an access policy corresponding to the user in the diversion strategy in the storage database.
10. The method according to claim 9, characterized in that The method further comprises: If the access policy corresponding to the user is found in the diversion policy in the storage database, the cache is updated based on the access policy corresponding to the user; After the cache is updated based on the access policy corresponding to the user or the access policy corresponding to the user is queried in the diversion policy in the cache, the memory is updated based on the access policy corresponding to the user.
11. The method according to claim 1, characterized in that: The method further comprises: Under the current system deployment environment, package and run the code repository code of the domestic system; The code of the previous version of the non-localized system is obtained through a script, a code directory of the previous version of the non-localized system is created for storage, and the code repository code of the current version of the non-localized system is packaged with the code directory.
12. The method according to claim 10, characterized in that Carrying the user information to jump to the localized system or the previous version of the non-localized system for access, including: Determine a token generated after the user successfully logs in to the current version of the non-localized system based on the login information; Carry the token and the user information to jump to the domestic system or the previous version of the non-domestic system for access.
13. A system access device, characterized in that: include: A policy determination module, for determining an access policy corresponding to a user in a diversion strategy according to the user information of the user if a user accesses a page of a non-localized system of the current version; A system access module, used for allowing the user to enter the page to access the current version of the non-localized system if the access policy points to the current version of the non-localized system; A first jump module, used for carrying the user information to jump to the domestic system or the previous version of the non-domestic system for access if the access policy points to the domestic system or the previous version of the non-domestic system; The second jump module is used to jump to the previous version of the non-domestic system with the user information for access if an exception occurs during the user's access to the domestic system and the current version of the non-domestic system, so that the user can access the previous version of the non-domestic system that has been normally accessed during the historical access process; wherein the ratio of the total number of users pointing to the current version of the non-domestic system and the previous version of the non-domestic system to the number of users pointing to the domestic system in the diversion strategy is gradually adjusted from large to small over time.
14. An electronic device, characterized in that: include: A processor, and a memory communicatively connected to the processor; The memory stores computer-executable instructions; The processor executes the computer-executable instructions stored in the memory to implement the system access method according to any one of claims 1 to 12.
15. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer-executable instructions, and when the computer-executable instructions are executed by a processor, they are used to implement the system access method according to any one of claims 1 to 12.
16. A computer program product, characterized in that The invention comprises a computer program, which implements the system access method according to any one of claims 1 to 12 when being executed by a processor.
Citation Information
Patent Citations
Service switching method, system and device, equipment, storage medium and program product
CN114416366A
Shunting method and system for synchronous operation of new system and old system, electronic equipment and medium
CN115361452A
Service access method, device and system and electronic equipment
CN115454490A
AB test shunting management method and device, equipment and storage medium
CN117520683A
Cache resource dynamic adjustment method and system based on page view
CN117992221A