Application calling method and device, electronic equipment and computer program product
Through distributed deployment and load balancing technology, the problems of SaaS service resource pool management and high performance requirements are solved, application calling efficiency and system security are improved, and rapid response and user experience are achieved.
Patent Information
- Application Number
- CN202410415872.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-04-08
- Publication Date
- 2024-10-18
- Estimated Expiration
- 2044-04-08
AI Technical Summary
Existing SaaS service resource pool management and performance requirements are high, and application calling efficiency is low, making it difficult to achieve fast and efficient SaaS service capability calling.
By distributing applications with SaaS service capabilities on multiple servers, using the service platform to authenticate users' platform login requests, dynamically adjusting servers to improve calling efficiency, and introducing load balancing prediction models and API gateway models to Improve system security and scalability.
It improves the calling efficiency of target applications, improves the security and scalability of the overall system, and achieves quick response and user experience.
Smart Images

Figure CN118796315A_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of computer technology, and in particular to a method, device, electronic device and computer program product for calling an application program. Background Art
[0002] Software as a Service (SaaS) means that there is no need to install the application on the user's computer or server. Users can directly call the corresponding application through the Internet through cloud services, and the corresponding SaaS service capabilities are provided to users through the application.
[0003] In the related art, it is generally possible to call a certain application by performing multiple authentications on user information. However, this calling method generally needs to rely on the SaaS service resource pool, which has high requirements on the management and performance of the SaaS service resource pool, and the calling efficiency of the application is low. Summary of the invention
[0004] In view of this, exemplary embodiments of the present disclosure provide a method, device, electronic device, and computer program product for calling an application program to solve the problems existing in the related art.
[0005] According to a first aspect of an exemplary embodiment of the present disclosure, a method for calling an application program is provided, which is applied to a service platform and includes:
[0006] receiving a platform login request sent by a user; wherein the platform login request carries the user login information of the user and a calling code of a target application, and the target application is used to provide a target service capability to the user;
[0007] When the user login information is verified, the target server is determined from multiple servers corresponding to the target application using the call code of the target application, and a service call request is sent to the target server; wherein the service call request is used to request the target server to send the call interface information of the target application to the service platform;
[0008] Receive the calling interface information of the target application, and call the target application using the calling interface information.
[0009] According to a second aspect of the exemplary embodiments of the present disclosure, there is provided a device for calling an application program, which is applied to a service platform and includes:
[0010] A communication module, used to receive a platform login request sent by a user; wherein the platform login request carries the user login information of the user and a call code of a target application, and the target application is used to provide a target service capability to the user;
[0011] A processing module, configured to determine a target server from a plurality of servers corresponding to the target application using a calling code of the target application when the user login information passes the verification;
[0012] The communication module is also used to send a service call request to the target server; wherein the service call request is used to request the target server to send the call interface information of the target application to the service platform;
[0013] The communication module is also used to receive the calling interface information of the target application program;
[0014] The calling module is used to call the target application program using the calling interface information.
[0015] According to a third aspect of the exemplary embodiments of the present disclosure, there is provided an electronic device, including:
[0016] at least one processor;
[0017] a memory for storing at least one processor executable instruction;
[0018] Wherein, at least one processor is used to execute instructions to implement the steps of the above method.
[0019] According to a fourth aspect of the exemplary embodiments of the present disclosure, a computer program product is provided, including a computer program, wherein the computer program implements the steps of the above-described method when executed by a processor.
[0020] At least one of the above-mentioned technical solutions adopted in the exemplary embodiment of the present disclosure can achieve the following beneficial effects: by receiving a platform login request sent by a user; wherein the platform login request carries the user login information of the user and the calling code of the target application, and the target application is used to provide the user with the target service capability; when the user login information is verified, the calling code of the target application is used to determine the target server from the multiple servers corresponding to the target application, and send a service call request to the target server; wherein the service call request is used to request the target server to send the calling interface information of the target application to the service platform; receiving the calling interface information of the target application, and calling the target application using the calling interface information, the target application providing the target service capability can be distributedly deployed on multiple servers, and the service platform is used to authenticate the platform login request sent by the user, so as to determine the target server from multiple servers to call the target application, provide the user with the target service capability, and improve the calling efficiency of the target application while improving the security and scalability of the overall system. BRIEF DESCRIPTION OF THE DRAWINGS
[0021] In order to more clearly illustrate the technical solutions in the exemplary embodiments of the present disclosure, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present disclosure. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.
[0022] Figure 1 A schematic diagram showing a flow chart of a method for calling an application program provided by an exemplary embodiment of the present disclosure;
[0023] Figure 2 A schematic diagram of the structure of a device for calling an application program provided by an exemplary embodiment of the present disclosure is shown;
[0024] Figure 3 A schematic diagram of the structure of an electronic device provided by an exemplary embodiment of the present disclosure is shown;
[0025] Figure 4 A schematic diagram of the structure of a computer system provided by an exemplary embodiment of the present disclosure is shown. DETAILED DESCRIPTION
[0026] Embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although certain embodiments of the present disclosure are shown in the accompanying drawings, it should be understood that the present disclosure can be implemented in various forms and should not be construed as being limited to the embodiments described herein, which are instead provided for a more thorough and complete understanding of the present disclosure. It should be understood that the drawings and embodiments of the present disclosure are only for exemplary purposes and are not intended to limit the scope of protection of the present disclosure.
[0027] It should be understood that the various steps described in the method embodiments of the present disclosure may be performed in different orders and / or in parallel. In addition, the method embodiments may include additional steps and / or omit the steps shown. The scope of the present disclosure is not limited in this respect.
[0028] The term "including" and its variations used in this document are open inclusions, that is, "including but not limited to". The term "based on" means "based at least in part on". The term "one embodiment" means "at least one embodiment"; the term "another embodiment" means "at least one other embodiment"; the term "some embodiments" means "at least some embodiments". Relevant definitions of other terms will be given in the description below. It should be noted that the concepts of "first", "second", etc. mentioned in this disclosure are only used to distinguish different devices, modules or units, and are not used to limit the order or interdependence of the functions performed by these devices, modules or units.
[0029] It should be noted that the modifications of "one" and "plurality" mentioned in the present disclosure are illustrative rather than restrictive, and those skilled in the art should understand that unless otherwise clearly indicated in the context, it should be understood as "one or more".
[0030] The names of the messages or information exchanged between multiple devices in the embodiments of the present disclosure are only used for illustrative purposes and are not used to limit the scope of these messages or information.
[0031] The invocation of SaaS service capabilities based on localized deployment means establishing a unified localized SaaS service resource pool, cloud-transforming the software and hardware corresponding to the SaaS service capabilities on the resource pool, and then invoking the SaaS service capabilities through a unified interface and unified login.
[0032] SaaS service capability invocation based on containerized deployment means packaging SaaS services into standardized software products by establishing standardized hardware container resources, and quickly deploying SaaS services into standardized containers through the Secure Access Service Edge (SASE) to achieve rapid invocation of SaaS services.
[0033] In the related art, the method of calling an application is generally to perform multiple authentications on user information, accurately determine the application that the user needs to call, and then present the corresponding SaaS service to the user through the Application Programming Interface (API) or other methods. However, this calling method has the following disadvantages: all user information needs to be saved in the SaaS service resource pool (or SaaS service platform) in advance, resulting in the over-reliance of the calling of SaaS service capabilities on the SaaS service resource pool (or SaaS service platform); and all applications corresponding to SaaS service capabilities must be designed according to the required specifications before they can be centrally deployed in the SaaS service resource pool (or SaaS service platform), so when the number of applications corresponding to SaaS service capabilities is large, the management and performance requirements of the SaaS service resource pool (or SaaS service platform) are high, which is not conducive to the rapid calling of SaaS service capabilities.
[0034] Therefore, in order to solve the above problems, the exemplary embodiment of the present invention provides a method for calling an application, which effectively reduces the load of the SaaS service platform and improves the efficiency of the SaaS service platform by distributing the applications corresponding to the SaaS service capabilities. At the same time, with the help of user authentication, the same SaaS service capability is provided to users through multiple application providers, which effectively improves the management efficiency of the SaaS service platform. Finally, through user authentication, the required SaaS service capabilities are quickly provided to users based on the application according to different user requests.
[0035] The method for calling an application program provided by the exemplary embodiment of the present disclosure may be executed by a service platform or by a chip applied to the service platform.
[0036] Exemplarily, the above-mentioned service platform can be an independent physical server, or a server cluster or distributed system composed of multiple physical servers, or a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, content delivery networks (Content Delivery Network, CDN), as well as big data and artificial intelligence platforms, but the exemplary embodiments of the present disclosure are not limited to this.
[0037] The SaaS service platform can pre-store call-related information of multiple applications, each application has corresponding call interface information, and establish an association between call-related information and call interface information; wherein, each application is used to provide users with corresponding SaaS service capabilities, and call-related information may include but is not limited to call codes, operation interfaces, etc.
[0038] The exemplary embodiment of the present disclosure can introduce a microservice architecture to deploy the application corresponding to each SaaS service capability as an independent microservice, and distribute the application on multiple servers, while the SaaS service platform becomes a "service grid" that manages and schedules the applications on these servers.
[0039] At this point, the SaaS service platform can be functionally connected with multiple applications by calling the association between relevant information and calling interface information, and the deep integration of the SaaS service platform and SaaS service capabilities can be achieved through applications distributedly deployed on multiple servers, providing a basis for the unified display and calling of different SaaS service capabilities through a SaaS service platform.
[0040] In actual applications, first, users can initiate a platform login request to the SaaS service platform. The platform login request can carry user login information and the call code of the target application. The target application is used to provide the target SaaS service capabilities to the user. After receiving the platform login request, the SaaS service platform performs identity authentication on the user login information.
[0041] Exemplarily, the user's authentication information can be saved in a third-party identity authentication center. After receiving the platform login request, the SaaS service platform interacts with the third-party identity authentication center through the OpenID Connect protocol, obtains the user's authentication information from the third-party identity authentication center, and uses the user's authentication information to perform identity authentication on the user's login information.
[0042] For example, blockchain can be used as a decentralized identity authentication system to encrypt the user's authentication information (or identity information) and store it on the blockchain to ensure that the user's identity is not tampered with or leaked. When a user needs to access SaaS service capabilities, the authentication process is automatically executed through smart contracts to verify the validity of the user's identity, thereby improving system efficiency and security.
[0043] Then, after the SaaS service platform authenticates the user's login information, it uses the call code of the target application to obtain multiple servers corresponding to the target application, and determines the target server from the multiple servers corresponding to the target application, and sends a service call request to the target server; wherein, the service call request is used to request the server to determine whether the user is a real user or an automated program to avoid invalid calls; after receiving the service call request, the target server authenticates the authenticity of the user's login operation.
[0044] Exemplarily, human-machine recognition may be introduced to authenticate the authenticity of the user's login operation through verification code authentication or image authentication, requiring the user to provide additional verification information to ensure the authenticity of the user's identity when performing the login operation.
[0045] Finally, after the target server authenticates the user's login operation, it returns the target application's calling interface information to the SaaS service platform.
[0046] For example, after receiving the call interface information of the target application returned by the target server, the SaaS service platform uses the API gateway mode to uniformly manage and schedule multiple preset call interfaces of the target SaaS service capabilities. Based on the API gateway, functions such as monitoring, authentication, and flow control of interface access can be implemented to improve the security and scalability of the system.
[0047] Through adaptive API interface technology, the API interface is dynamically adjusted according to user request data and network environment data to display the target SaaS service capabilities to users.
[0048] In actual applications, users can directly perform operation steps on the SaaS service platform, and all operation logs are returned to the SaaS service platform through the calling interface.
[0049] In some embodiments, when determining a target server from multiple servers corresponding to a target application, the SaaS service platform may first obtain the relative positions of each server and the user, and determine the server with the shortest relative position to the user among the multiple servers as the preset server; then, a load balancing prediction model based on machine learning is used to predict the call request judgment result of the target application in the preset server, so as to ensure that the SaaS service platform can respond to the user's service needs in a timely manner.
[0050] The historical service request data and historical network load data of the target application in the preset server can be collected as training samples, and the network model to be constructed can be trained to obtain a load balancing prediction model. Then, in the inference stage, the call code of the target application is used to obtain the preset server corresponding to the target application, and the current service request data and current network load data of the target application in the preset server, as well as the user's historical access data are obtained; the current service request data, the current network load data and the user's historical access data are input into the load balancing prediction model to obtain the call request judgment result of the target application in the preset server. Among them, the call request judgment result of the target application in the preset server is used to determine whether the target application can be successfully called from the preset server. Here, the call request judgment result is that the target application can be called from the corresponding server.
[0051] If the call request judgment result of the target application in the preset server meets the preset call request judgment result, the preset server is determined as the target server, and a service call request is sent to the target server.
[0052] In some embodiments, the preset server further includes multiple candidate applications that provide target SaaS service capabilities, and the call request judgment results of each candidate application in the preset server meet the preset call request judgment result; if the call request judgment result of the target application in the preset server does not meet the preset call request judgment result, the method further includes:
[0053] Acquire multiple candidate applications that provide target SaaS service capabilities in a preset server, and obtain the similarity between each candidate application and the target application; determine the candidate application with the highest similarity to the target application among the multiple candidate applications as the target application; determine the preset server as the target server, and send a service call request to the target server.
[0054] For example, when obtaining multiple candidate applications that provide target SaaS service capabilities in a preset server, you can first obtain multiple applications that provide target SaaS service capabilities in the preset server, and then use the load balancing prediction model to predict the call request judgment result of each application. When the call request judgment result meets the preset call request judgment result, the application is determined as a candidate application.
[0055] Then, after determining multiple candidate applications in the preset server that have the same target SaaS service capabilities as the target application, the similarity between each candidate application and the target application can be obtained; the candidate application with the highest similarity to the target application among the multiple candidate applications is determined as the target application; the preset server is determined as the target server, and a service call request is sent to the target server. At this time, the target application can be called preferentially from the server with the shortest relative position to the user to improve the calling efficiency; and it can be ensured that the application finally called has the highest similarity with the target application corresponding to the calling code carried in the user login request, thereby ensuring a good user experience.
[0056] In some embodiments, the plurality of servers further include a plurality of candidate servers; wherein each candidate server includes at least one candidate application that provides a target service capability, the similarity between the at least one candidate application and the target application satisfies a preset similarity, and the call request judgment result of at least one candidate application in each candidate server satisfies a preset call request judgment result; the method may further include:
[0057] If the call request judgment result of the target application in the preset server does not meet the preset call request judgment result, multiple candidate servers are obtained; the relative position between each candidate server and the user is obtained, and the candidate server with the shortest relative position to the user among the multiple candidate servers is updated as the preset server; among at least one candidate application included in the candidate server with the shortest relative position to the user among the multiple candidate servers, the candidate application with the highest similarity to the target application is updated as the target application.
[0058] Exemplarily, when obtaining multiple candidate servers corresponding to a target application, you can first obtain multiple servers corresponding to the target application, and then use the load balancing prediction model to predict the call request judgment result of the target application in each server. When the call request judgment result meets the preset call request judgment result, the server is determined as a candidate server.
[0059] It can be seen that the exemplary embodiment of the present disclosure can dynamically adjust the server that can call the target application by combining the real-time monitoring data of multiple servers before calling the target application from the server, so as to ensure that the SaaS service platform can respond to the user's service needs in a timely manner and provide the user with better response speed and user experience.
[0060] In some embodiments, to further ensure the security of the SaaS service platform, an abnormal login behavior detection mechanism can be introduced to establish a user login behavior model based on factors such as the user's login mode, geographic location, device information, etc. When an abnormal situation occurs (such as remote login, frequent login failures), the system will trigger an alarm or require the user to perform additional verification to prevent unauthorized access and fraud.
[0061] Based on this, the exemplary embodiment of the present disclosure provides a method for calling an application program, which is applied to a service platform and can be executed by the service platform or by a chip applied to the service platform. Here, the service platform can refer to the above text and will not be described in detail here.
[0062] Figure 1 FIG. 1 is a flow chart showing a method for calling an application program provided by an exemplary embodiment of the present disclosure. Figure 1 As shown, the calling method of the application includes:
[0063] S101, receiving a platform login request sent by a user; wherein the platform login request carries the user login information of the user and a calling code of a target application, and the target application is used to provide a target service capability to the user;
[0064] S102, when the user login information is verified, using the call code of the target application, determining the target server from multiple servers corresponding to the target application, and sending a service call request to the target server; wherein the service call request is used to request the target server to send the call interface information of the target application to the service platform;
[0065] S103, receiving the calling interface information of the target application, and calling the target application using the calling interface information.
[0066] Specifically, the above-mentioned service platform can be the SaaS service platform mentioned above. The exemplary embodiment of the present disclosure can pre-store the call codes of multiple applications in the SaaS service platform, and each application has corresponding call interface information; at the same time, an association relationship between the call code and the call interface information is established; wherein each application is used to provide users with corresponding SaaS service capabilities, and the same target SaaS service capability can be provided by multiple different applications. Here, the providers of multiple different applications corresponding to the same target SaaS service capability can be the same or different, and the exemplary embodiment of the present disclosure does not specifically limit this.
[0067] The above platform login request may carry user login information and a call code of a target application. The target application is used to provide a target service capability to the user. The target service capability may be the target SaaS service capability mentioned above.
[0068] For example, when a user wants to call a target SaaS service capability, he or she may select a call code of a target application from the call codes of multiple applications pre-stored on the SaaS service platform for providing the target SaaS service capability. At this time, the user login information and the call code of the target application may be added to a platform login request, and the platform login request may be sent to the SaaS service platform, which receives the platform login request.
[0069] When receiving the platform login request, the SaaS service platform decodes the platform login request to obtain the user login information and the call code of the target application. Then, the user login information is verified, and when the user login information passes the verification, the call code of the target application is used to determine the target server from the multiple servers corresponding to the target application, and send a service call request to the target server. Among them, the service call request can be used to request the target server to send the call interface information of the target application to the service platform, so that after receiving the call interface information of the target application, the SaaS service platform can use the call interface information to call the target application, and provide the corresponding target SaaS service capabilities to the user through the target application.
[0070] Here, since the target application is distributed and deployed in multiple servers, the target applications in multiple servers are uniformly managed and scheduled through the service platform, and when the service platform receives a platform login request sent by the user, the platform login request is authenticated to determine the target server from multiple servers to call the target application, provide users with target service capabilities, and improve the calling efficiency of the target application while improving the security and scalability of the overall system.
[0071] According to the technical solution of the exemplary embodiment of the present disclosure, by receiving a platform login request sent by a user; wherein the platform login request carries the user login information of the user and the calling code of the target application, and the target application is used to provide the user with the target service capability; when the user login information is verified, the calling code of the target application is used to determine the target server from multiple servers corresponding to the target application, and send a service call request to the target server; wherein the service call request is used to request the target server to send the calling interface information of the target application to the service platform; the calling interface information of the target application is received, and the target application is called using the calling interface information, so that the target application providing the target service capability can be distributedly deployed on multiple servers, and the service platform is used to authenticate the platform login request sent by the user, so as to determine the target server from multiple servers to call the target application, provide the user with the target service capability, and improve the calling efficiency of the target application while improving the security and scalability of the overall system.
[0072] In some embodiments, determining the target server from the multiple servers corresponding to the target application may include:
[0073] Using the call code of the target application, multiple servers corresponding to the target application are obtained, and the relative position between each server and the user is obtained;
[0074] Determining a preset server from a plurality of servers based on relative positions between each server and the user;
[0075] Predicting the result of the call request of the target application in the preset server;
[0076] If the call request judgment result of the target application in the preset server meets the preset call request judgment result, the preset server is determined as the target server.
[0077] Specifically, since the same target application can be distributedly deployed in multiple servers, the target application that the user wants to call can be determined according to the calling code of the target application, and then multiple servers corresponding to the target application can be obtained.
[0078] Considering that in the actual calling process, the target application is preferentially called from the server closest to the user, therefore, the exemplary embodiment of the present disclosure can also obtain the relative position between each server and the user after obtaining multiple servers corresponding to the target application; then determine the preset server from the multiple servers based on the relative position between each server and the user. For example, the server with the shortest relative position to the user among the multiple servers can be determined as the preset server.
[0079] Before calling the target application from the preset server, it is necessary to determine in advance whether the target application can be successfully called from the preset server to avoid invalid calls and waste of user time. Based on this, the exemplary embodiment of the present disclosure can predict in advance the result of the call request judgment of the target application in the preset server, and the result of the call request judgment of the target application in the preset server is used to determine whether the target application can be successfully called from the preset server.
[0080] If the call request judgment result of the target application in the preset server meets the preset call request judgment result, the preset server is determined as the target server. Here, the preset call request judgment result can be set as: the target application can be called from the corresponding server.
[0081] Based on this, the exemplary embodiment of the present disclosure pre-determines whether the target application can be successfully called from the preset server before calling the target application from the preset server. When the call request judgment result of the target application in the preset server meets the preset call request judgment result, the preset server is determined as the target server, thereby improving the call success rate of the target application and further improving the user experience.
[0082] In some embodiments, predicting the result of the call request of the target application in the preset server may include:
[0083] Obtain a pre-built load balancing prediction model, and obtain the current service request data and current network load data of the target application in the preset server, as well as the user's historical access data;
[0084] The current service request data, current network load data and historical access data are input into the load balancing prediction model to obtain the call request judgment result of the target application in the preset server.
[0085] Specifically, historical service request data and historical network load data of the target application in the preset server can be collected as training samples, and the network model to be constructed can be trained to obtain a load balancing prediction model. Here, the network model to be constructed can be a conventional load balancing prediction model to be constructed, or it can be a customized load balancing prediction model to be constructed, and the exemplary embodiments of the present disclosure do not specifically limit this.
[0086] In the inference stage, you can first obtain the preset server corresponding to the target application, and then obtain the current service request data and current network load data of the target application in the preset server, as well as the user's historical access data; input the current service request data, current network load data and the user's historical access data into the load balancing prediction model to obtain the call request judgment result of the target application in the preset server.
[0087] Based on this, the exemplary embodiment of the present disclosure can utilize a pre-built load balancing prediction model to predict the call request judgment result of the target application in the preset server, so as to improve the success rate of calling the target application from the preset server and respond to the user's demand for the target service in a timely manner.
[0088] In some embodiments, the preset server may further include multiple candidate applications that provide target service capabilities, and the call request judgment results of each candidate application in the preset server meet the preset call request judgment results; the method may further include:
[0089] If the call request judgment result of the target application in the preset server does not meet the preset call request judgment result, obtaining multiple candidate applications that provide the target service capability in the preset server;
[0090] Obtaining the similarity between each candidate application and the target application;
[0091] A candidate application program with the highest similarity to the target application program among the multiple candidate applications is determined as the target application program; and a preset server is determined as the target server.
[0092] Specifically, the preset server may also include multiple candidate applications that provide target service capabilities. The multiple candidate applications and the target application can provide the target service capabilities for users, but their respective providers are different, and their functional implementations may be the same or different.
[0093] Exemplarily, multiple applications that provide target service capabilities can be obtained from a preset server, and then a load balancing prediction model can be used to predict the call request judgment result of each application. When the call request judgment result meets the preset call request judgment result, the application is determined as a candidate application.
[0094] At this time, if the number of candidate applications is one, the candidate application can be updated as the target application; if the number of candidate applications is multiple, it is necessary to further screen the multiple candidate applications and re-determine the target application.
[0095] For example, the similarity between each candidate application and the target application may be obtained; and the candidate application with the highest similarity to the target application among the multiple candidate applications is determined as the target application.
[0096] Based on this, an exemplary embodiment of the present disclosure can prioritize calling other applications that provide target service capabilities from the server closest to the user when the target application corresponding to the call code carried by the platform login request cannot be successfully called, so as to quickly respond to the user's demand for the target service capabilities.
[0097] In some embodiments, the plurality of servers further include a plurality of candidate servers; wherein each candidate server includes at least one candidate application that provides a target service capability, the similarity between the at least one candidate application and the target application satisfies a preset similarity, and the call request judgment result of at least one candidate application in each candidate server satisfies a preset call request judgment result; the method may further include:
[0098] If the call request judgment result of the target application in the preset server does not meet the preset call request judgment result, obtaining multiple candidate servers;
[0099] Obtaining the relative position between each candidate server and the user, and re-determining the preset server from multiple candidate servers based on the relative position between each candidate server and the user;
[0100] Among at least one candidate application included in the preset server, a candidate application having the highest similarity to the target application is updated as the target application.
[0101] Specifically, if the preset server does not include other applications that provide the target service capability in addition to the target application, then other servers that provide the target service capability may be re-determined, and the applications that provide the target service capability are deployed in the other servers.
[0102] Exemplarily, multiple servers may be obtained first, and candidate servers may be screened out from the multiple servers, wherein the candidate servers include at least one candidate application that provides a target service capability, and the call request judgment result of the candidate application in the candidate server satisfies the preset call request judgment result. The call request judgment result of the candidate application in the candidate server may be predicted using the load balancing prediction model described above.
[0103] If the number of candidate servers is one, then when the call request judgment result of the target application in the preset server does not meet the preset call request judgment result, the candidate server is updated to the preset server, and the candidate application with the highest similarity to the target application among at least one candidate application included in the candidate server is updated to the target application.
[0104] If there are multiple candidate servers, when the call request judgment result of the target application in the preset server does not meet the preset call request judgment result, multiple candidate servers are obtained; the relative position between each candidate server and the user is obtained, and based on the relative position between each candidate server and the user, the preset server is re-determined from the multiple candidate servers. For example, the candidate server with the shortest relative position to the user among the multiple candidate servers can be determined as the preset server.
[0105] At the same time, among at least one candidate application included in the preset server, that is, among at least one candidate application included in the candidate server determined as the preset server, the candidate application with the highest similarity to the target application is updated as the target application.
[0106] Based on this, an exemplary embodiment of the present disclosure can prioritize calling other applications that provide target service capabilities from servers that are closer to the user when the target application corresponding to the calling code carried by the platform login request cannot be successfully called, so as to quickly respond to the user's demand for the target service capabilities.
[0107] It can be seen that the exemplary embodiment of the present disclosure can dynamically adjust the server that can call the target application by combining the real-time monitoring data of multiple servers before calling the target application from the server, so as to ensure that the SaaS service platform can respond to the user's service needs in a timely manner and provide the user with better response speed and user experience.
[0108] In some embodiments, the service call request may also be used to request the target server to verify the authenticity of the user's login operation; receiving the call interface information of the target application may include:
[0109] Receiving login operation verification information sent by the target server based on the service call request;
[0110] In response to the user's verification reply operation for the login operation verification information, sending verification reply information to the target server;
[0111] When the verification reply information satisfies the preset verification reply information, the calling interface information of the target application sent by the target server is received.
[0112] Specifically, the service call request can also be used to request the target server to verify the authenticity of the user's login operation. After receiving the login operation verification information sent by the target server based on the service call request, the exemplary embodiment of the present disclosure can send verification reply information to the target server in response to the user's verification reply operation for the login operation verification information; and when the verification reply information meets the preset verification reply information, receive the calling interface information of the target application sent by the target server.
[0113] Here, the login operation verification information may be the verification code authentication or image authentication mentioned above.
[0114] Based on this, the example embodiments of the present disclosure can introduce human-machine recognition on the server side, authenticate the authenticity of the user's login operation through verification code authentication or image authentication, and require the user to provide additional verification information to ensure the authenticity of the user's identity when performing the login operation.
[0115] In some embodiments, the method may further include:
[0116] Acquire pre-stored user authentication information of the user; verify the user login information using the user authentication information; and determine that the user login information has passed the verification if the user login information matches the user authentication information.
[0117] Specifically, the user's authentication information can be saved to a third-party identity authentication center. After receiving the platform login request, the service platform interacts with the third-party identity authentication center through the OpenID Connect protocol, obtains the user's authentication information from the third-party identity authentication center, and uses the user's authentication information to perform identity authentication on the user's login information. When the user login information matches the user authentication information, it is determined that the user login information has passed the verification.
[0118] Blockchain can also be used as a decentralized identity authentication system, where user authentication information is encrypted and stored on the blockchain to ensure that the user's identity is not tampered with or leaked. When a user needs to access the target service capability, the authentication process is automatically executed through a smart contract to verify the validity of the user's identity, thereby improving system efficiency and security.
[0119] Based on this, the example embodiments of the present disclosure can authenticate the user login information carried in the platform login request, determine the target server from multiple servers to call the target application, and provide users with better response speed and user experience while ensuring security.
[0120] At least one of the above-mentioned technical solutions adopted in the exemplary embodiment of the present disclosure can achieve the following beneficial effects: by receiving a platform login request sent by a user; wherein the platform login request carries the user login information of the user and the calling code of the target application, and the target application is used to provide the user with the target service capability; when the user login information is verified, the calling code of the target application is used to determine the target server from the multiple servers corresponding to the target application, and send a service call request to the target server; wherein the service call request is used to request the target server to send the calling interface information of the target application to the service platform; receiving the calling interface information of the target application, and calling the target application using the calling interface information, the target application providing the target service capability can be distributedly deployed on multiple servers, and the service platform is used to authenticate the platform login request sent by the user, so as to determine the target server from multiple servers to call the target application, provide the user with the target service capability, and improve the calling efficiency of the target application while improving the security and scalability of the overall system.
[0121] The above mainly introduces the solutions provided by the exemplary embodiments of the present disclosure. It is understandable that in order to implement the above functions, the electronic device includes hardware structures and / or software modules corresponding to the execution of each function. Those skilled in the art should easily realize that, in combination with the units and algorithm steps of each example described in the embodiments disclosed herein, the present disclosure can be implemented in the form of hardware or a combination of hardware and computer software. Whether a function is executed in the form of hardware or computer software driving hardware depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to exceed the scope of the present disclosure.
[0122] The exemplary embodiments of the present disclosure can divide the functional units of the electronic device according to the above method examples. For example, each functional module can be divided according to each function, or two or more functions can be integrated into one processing module. The above integrated modules can be implemented in the form of hardware or in the form of software functional modules. It should be noted that the division of modules in the exemplary embodiments of the present disclosure is schematic and is only a logical function division. There may be other division methods in actual implementation.
[0123] In the case of dividing each functional module according to each function, an exemplary embodiment of the present disclosure provides a device for calling an application program, and the device for calling the application program may be an electronic device or a chip applied to the electronic device. Figure 2 FIG. 2 shows a schematic diagram of a structure of a device for calling an application program provided by an exemplary embodiment of the present disclosure. Figure 2As shown, the device 200 includes:
[0124] The communication module 201 is used to receive a platform login request sent by a user; wherein the platform login request carries the user login information of the user and the calling code of the target application, and the target application is used to provide the target service capability to the user;
[0125] The processing module 202 is used to determine the target server from multiple servers corresponding to the target application using the calling code of the target application when the user login information passes the verification;
[0126] The communication module 201 is also used to send a service call request to the target server; wherein the service call request is used to request the target server to send the call interface information of the target application to the service platform;
[0127] The communication module 201 is also used to receive the calling interface information of the target application;
[0128] The calling module 203 is used to call the target application program using the calling interface information.
[0129] In some embodiments, the processing module 202 is also used to use the call code of the target application to obtain multiple servers corresponding to the target application, and obtain the relative position between each server and the user; based on the relative position between each server and the user, determine a preset server from multiple servers; predict the call request judgment result of the target application in the preset server; if the call request judgment result of the target application in the preset server meets the preset call request judgment result, the preset server is determined as the target server.
[0130] In some embodiments, the processing module 202 is also used to obtain a pre-built load balancing prediction model, and obtain the current service request data and current network load data of the target application in the preset server, as well as the user's historical access data; the current service request data, current network load data and historical access data are input into the load balancing prediction model to obtain the call request judgment result of the target application in the preset server.
[0131] In some embodiments, the preset server further includes a plurality of candidate applications that provide target service capabilities, and the call request judgment results of each candidate application in the preset server all meet the preset call request judgment results;
[0132] The processing module 202 is also used to obtain multiple candidate applications that provide target service capabilities in the preset server if the call request judgment result of the target application in the preset server does not meet the preset call request judgment result; obtain the similarity between each candidate application and the target application; determine the candidate application with the highest similarity to the target application among the multiple candidate applications as the target application; and determine the preset server as the target server.
[0133] In some embodiments, the plurality of servers further include a plurality of candidate servers; wherein each candidate server includes at least one candidate application that provides a target service capability, the similarity between the at least one candidate application and the target application satisfies a preset similarity, and the call request judgment result of at least one candidate application in each candidate server satisfies a preset call request judgment result;
[0134] The processing module 202 is also used to obtain multiple candidate servers if the call request judgment result of the target application in the preset server does not meet the preset call request judgment result; obtain the relative position between each candidate server and the user, and based on the relative position between each candidate server and the user, re-determine the preset server from multiple candidate servers; among at least one candidate application included in the preset server, update the candidate application with the highest similarity to the target application as the target application.
[0135] In some embodiments, the service call request is also used to request the target server to verify the authenticity of the user's login operation;
[0136] The communication module 201 is also used to receive login operation verification information sent by the target server based on the service call request; in response to the user's verification reply operation for the login operation verification information, send verification reply information to the target server; when the verification reply information meets the preset verification reply information, receive the calling interface information of the target application sent by the target server.
[0137] In some embodiments, the processing module 202 is further used to obtain pre-stored user authentication information of the user; verify the user login information using the user authentication information; and determine that the user login information has passed the verification when the user login information matches the user authentication information.
[0138] The exemplary embodiments of the present disclosure also provide an electronic device, comprising: at least one processor; a memory for storing at least one processor-executable instruction; wherein the at least one processor is used to execute the instruction to implement the steps of the above method disclosed in the exemplary embodiments of the present disclosure.
[0139] Figure 3FIG. 1 shows a schematic diagram of the structure of an electronic device provided by an exemplary embodiment of the present disclosure. Figure 3 As shown, the electronic device 300 includes at least one processor 301 and a memory 302 coupled to the processor 301 . The processor 301 can execute corresponding steps in the above method disclosed in the exemplary embodiment of the present disclosure.
[0140] The processor 301 may also be referred to as a central processing unit (CPU), which may be an integrated circuit chip having signal processing capabilities. Each step in the method disclosed in the exemplary embodiment of the present disclosure may be completed by an integrated logic circuit of hardware in the processor 301 or by instructions in the form of software. The processor 301 may be a general-purpose processor, a digital signal processor (DSP), an ASIC, a field-programmable gate array (FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components. A general-purpose processor may be a microprocessor or the processor may also be any conventional processor, etc. The steps of the method disclosed in conjunction with the exemplary embodiment of the present disclosure may be directly embodied as being executed by a hardware decoding processor, or may be executed by a combination of hardware and software modules in a decoding processor. The software module may be located in a memory 302, such as a random access memory, a flash memory, a read-only memory, a programmable read-only memory, or an electrically erasable programmable memory, a register, or other mature storage media in the art. The processor 301 reads the information in the memory 302 and completes the steps of the method in conjunction with its hardware.
[0141] In addition, when various operations / processes according to the present disclosure are implemented by software and / or firmware, they can be transmitted from a storage medium or a network to a computer system having a dedicated hardware structure, for example, Figure 4 The computer system 400 shown is installed with the programs constituting the software. When the various programs are installed, the computer system can perform various functions, including the functions described above. Figure 4 A schematic diagram of the structure of a computer system provided by an exemplary embodiment of the present disclosure is shown.
[0142] Computer system 400 is intended to represent various forms of digital electronic computer equipment, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. Electronic devices can also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present disclosure described and / or claimed herein.
[0143] like Figure 4 As shown, the computer system 400 includes a computing unit 401, which can perform various appropriate actions and processes according to a computer program stored in a read-only memory (ROM) 402 or a computer program loaded from a storage unit 408 into a random access memory (RAM) 403. In the RAM 403, various programs and data required for the operation of the computer system 400 can also be stored. The computing unit 401, the ROM 402, and the RAM 403 are connected to each other via a bus 404. An input / output (I / O) interface 405 is also connected to the bus 404.
[0144] A plurality of components in the computer system 400 are connected to the I / O interface 405, including: an input unit 406, an output unit 407, a storage unit 408, and a communication unit 409. The input unit 406 may be any type of device capable of inputting information to the computer system 400, and the input unit 406 may receive input digital or character information, and generate key signal inputs related to user settings and / or function control of the electronic device. The output unit 407 may be any type of device capable of presenting information, and may include, but is not limited to, a display, a speaker, a video / audio output terminal, a vibrator, and / or a printer. The storage unit 408 may include, but is not limited to, a disk, an optical disk. The communication unit 409 allows the computer system 400 to exchange information / data with other devices over a network such as the Internet, and may include, but is not limited to, a modem, a network card, an infrared communication device, a wireless communication transceiver, and / or a chipset, for example, a Bluetooth™ device, a WiFi device, a WiMax device, a cellular communication device, and / or the like.
[0145] The computing unit 401 may be a variety of general and / or special processing components with processing and computing capabilities. Some examples of the computing unit 401 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various dedicated artificial intelligence (AI) computing chips, various computing units running machine learning model algorithms, digital signal processors (DSPs), and any appropriate processors, controllers, microcontrollers, etc. The computing unit 401 performs the various methods and processes described above. For example, in some embodiments, the above methods disclosed in the exemplary embodiments of the present disclosure may be implemented as a computer software program, which is tangibly included in a machine-readable medium, such as a storage unit 408. In some embodiments, part or all of the computer program may be loaded and / or installed on an electronic device via ROM 402 and / or communication unit 409. In some embodiments, the computing unit 401 may be configured to perform the above methods disclosed in the exemplary embodiments of the present disclosure by any other appropriate means (e.g., by means of firmware).
[0146] The exemplary embodiments of the present disclosure also provide a computer-readable storage medium, wherein when instructions in the computer-readable storage medium are executed by a processor of an electronic device, the electronic device is enabled to execute the above method disclosed in the exemplary embodiments of the present disclosure.
[0147] The computer-readable storage medium in the exemplary embodiment of the present disclosure may be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, device, or equipment. The above-mentioned computer-readable storage medium may include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, devices, or equipment, or any suitable combination of the above. More specifically, the above-mentioned computer-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above.
[0148] The computer-readable medium may be included in the electronic device, or may exist independently without being incorporated into the electronic device.
[0149] The exemplary embodiments of the present disclosure further provide a computer program product, including a computer program, wherein when the computer program is executed by a processor, the above method disclosed in the exemplary embodiments of the present disclosure is implemented.
[0150] In embodiments of the present disclosure, computer program codes for performing the operations of the present disclosure may be written in one or more programming languages or combinations thereof, including but not limited to object-oriented programming languages, such as Java, Smalltalk, C++, and conventional procedural programming languages, such as "C" language or similar programming languages. The program code may be executed entirely on a user's computer, partially on a user's computer, as an independent software package, partially on a user's computer, partially on a remote computer, or entirely on a remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer via any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer.
[0151] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present disclosure. In this regard, each square box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and the module, the program segment or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some implementations as replacements, the functions marked in the square box can also occur in a sequence different from that marked in the accompanying drawings. For example, two square boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each square box in the block diagram and / or flow chart, and the combination of the square boxes in the block diagram and / or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.
[0152] The modules, components or units involved in the exemplary embodiments described in the present disclosure may be implemented by software or hardware, wherein the names of the modules, components or units do not, in some cases, limit the modules, components or units themselves.
[0153] The functions described above herein may be performed at least in part by one or more hardware logic components. For example, without limitation, exemplary hardware logic components that may be used include: field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chip (SOCs), complex programmable logic devices (CPLDs), and the like.
[0154] The above descriptions are only some embodiments of the present disclosure and an explanation of the technical principles used. Those skilled in the art should understand that the scope of disclosure involved in the present disclosure is not limited to the technical solutions formed by a specific combination of the above technical features, but should also cover other technical solutions formed by any combination of the above technical features or their equivalent features without departing from the above disclosed concept. For example, a technical solution formed by replacing the above features with the technical features with similar functions disclosed in the present disclosure (but not limited to).
[0155] Although some specific embodiments of the present disclosure have been described in detail by way of example, it should be understood by those skilled in the art that the above examples are for illustration only and are not intended to limit the scope of the present disclosure. It should be understood by those skilled in the art that the above embodiments may be modified without departing from the scope and spirit of the present disclosure. The scope of the present disclosure is defined by the appended claims.
Claims
1. A method for calling an application, characterized in that: Applied to service platforms, including: Receive a platform login request sent by a user; wherein the platform login request carries the user login information of the user and a calling code of a target application, and the target application is used to provide a target service capability to the user; In the case where the user login information is verified, the target server is determined from multiple servers corresponding to the target application using the call code of the target application, and a service call request is sent to the target server; wherein the service call request is used to request the target server to send the call interface information of the target application to the service platform; The calling interface information of the target application is received, and the target application is called using the calling interface information.
2. The method according to claim 1, characterized in that The step of using the calling code of the target application to determine the target server from a plurality of servers corresponding to the target application includes: Using the calling code of the target application, a plurality of servers corresponding to the target application are obtained, and a relative position between each of the servers and the user is obtained; Determining a preset server from the plurality of servers based on relative positions between the servers and the user; Predicting a call request judgment result of a target application in the preset server; If the call request judgment result of the target application in the preset server meets the preset call request judgment result, the preset server is determined as the target server.
3. The method according to claim 2, characterized in that The predicting of the result of the call request of the target application in the preset server includes: Obtaining a pre-built load balancing prediction model, and obtaining current service request data and current network load data of the target application in the preset server, and historical access data of the user; The current service request data, the current network load data and the historical access data are input into the load balancing prediction model to obtain a call request judgment result of the target application in the preset server.
4. The method according to claim 2, characterized in that: The preset server also includes a plurality of candidate applications that provide the target service capability, and the call request judgment result of each of the candidate applications in the preset server satisfies the preset call request judgment result; The method further comprises: If the call request judgment result of the target application in the preset server does not meet the preset call request judgment result, obtaining multiple candidate applications in the preset server that provide the target service capability; Obtaining the similarity between each of the candidate applications and the target application; A candidate application program among the multiple candidate applications that has the highest similarity to the target application program is determined as the target application program; and the preset server is determined as the target server.
5. The method according to claim 2, characterized in that: The multiple servers further include multiple candidate servers; wherein each of the candidate servers includes at least one candidate application that provides the target service capability, the similarity between the at least one candidate application and the target application satisfies a preset similarity, and a call request judgment result of at least one candidate application in each of the candidate servers satisfies the preset call request judgment result; the method further includes: If the call request judgment result of the target application in the preset server does not meet the preset call request judgment result, obtaining the multiple candidate servers; Obtaining a relative position between each of the candidate servers and the user, and re-determining a preset server from the plurality of candidate servers based on the relative position between each of the candidate servers and the user; Among the at least one candidate application included in the preset server, a candidate application having the highest similarity to the target application is updated as the target application.
6. The method according to any one of claims 1 to 5, characterized in that: The service call request is also used to request the target server to verify the authenticity of the user's login operation; the receiving of the call interface information of the target application includes: Receiving login operation verification information sent by the target server based on the service call request; In response to the user's verification reply operation for the login operation verification information, sending verification reply information to the target server; In a case where the verification reply information satisfies preset verification reply information, the calling interface information of the target application sent by the target server is received.
7. The method according to any one of claims 1 to 5, characterized in that: The method further comprises: Acquire pre-stored user authentication information of the user; Verifying the user login information using the user authentication information; In a case where the user login information matches the user authentication information, it is determined that the user login information passes the verification.
8. A device for calling an application, characterized in that: Applied to service platforms, including: A communication module, configured to receive a platform login request sent by a user; wherein the platform login request carries the user login information of the user and a calling code of a target application, and the target application is configured to provide a target service capability to the user; A processing module, configured to determine a target server from a plurality of servers corresponding to the target application using a calling code of the target application when the user login information passes verification; The communication module is also used to send a service call request to the target server; wherein the service call request is used to request the target server to send the call interface information of the target application to the service platform; The communication module is also used to receive the calling interface information of the target application; A calling module is used to call the target application program using the calling interface information.
9. An electronic device, characterized in that: include: at least one processor; a memory for storing the at least one processor-executable instruction; The at least one processor is configured to execute the instructions to implement the steps of the method according to any one of claims 1 to 7.
10. A computer program product, characterized in that The method comprises a computer program, wherein when the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 7 are implemented.
Citation Information
Patent Citations
Service calling request sending method and device, electronic equipment and readable storage medium
CN114827161A
Distributed server system and resource verification method of online game
CN115208882A
Server calling method and related equipment
CN115686812A
Distributed video conference system, application method, equipment and medium
CN115883772A
Systems and methods for authenticating access to a service by a mobile device
US20230254306A1
Cited By
Application control method and system
CN119690665A
An application control method and system
CN119690665B
