CN110933160A - Data access method, server, terminal and storage medium - Google Patents

Data access method, server, terminal and storage medium Download PDF

Info

Publication number
CN110933160A
CN110933160A CN201911179558.XA CN201911179558A CN110933160A CN 110933160 A CN110933160 A CN 110933160A CN 201911179558 A CN201911179558 A CN 201911179558A CN 110933160 A CN110933160 A CN 110933160A
Authority
CN
China
Prior art keywords
client
server
indication information
service indication
information
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201911179558.XA
Other languages
Chinese (zh)
Inventor
黄松鹏
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing ByteDance Network Technology Co Ltd
Original Assignee
Beijing ByteDance Network Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing ByteDance Network Technology Co Ltd filed Critical Beijing ByteDance Network Technology Co Ltd
Priority to CN201911179558.XA priority Critical patent/CN110933160A/en
Publication of CN110933160A publication Critical patent/CN110933160A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/60Scheduling or organising the servicing of application requests, e.g. requests for application data transmissions using the analysis and optimisation of the required network resources
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/14Session management
    • H04L67/141Setup of application sessions

Abstract

The application relates to a data access method, a server, a terminal and a storage medium. The method comprises the following steps: determining that the client is in a target state; in the target state, the client can at least initiate an access request to the indicated first server based on the stored first service indication information; acquiring first position information corresponding to the currently stored client; matching to obtain second service indication information corresponding to the first position information; the second service indication information at least represents address information of a second server capable of supporting the access request of the client; and at least sending the second service indication information to a client, wherein the client can at least update the first service indication information based on the received second service indication information and store the second service indication information as the updated first service indication information. Therefore, a foundation can be laid for reducing the access delay, and a foundation is laid for improving the user experience.

Description

Data access method, server, terminal and storage medium
Technical Field
The present application relates to internet technologies, and in particular, to a data access method, a server, a terminal, and a storage medium.
Background
Generally, when a user installs a client, a corresponding server identifier is allocated, so that the client can use the server identifier to access a server capable of providing service support for the client, at this time, the server identifier written in the client is fixed, in other words, the server accessed by the client is fixed and does not change with the change of the location of the client, for example, the client a and the client B belong to the same application program, for example, both video playing application programs, but different servers provide services for the client a and the client B, that is, the server identifier written in the client a is the identifier a, the server identifier written in the client B is the identifier B, the server a corresponding to the identifier a provides services for the client a, the server a is deployed in a first city, the server B corresponding to the identifier B provides services for the client B, and the server B is deployed in a second city, the following problems can exist based on the existing processing mode: even if the city where the client a is located is the second city, the client a still needs to access the server a according to the written identifier a, and similarly, even if the city where the client B is located is the first city, the client B still needs to access the server B according to the written identifier B, so that the problem of high access delay due to cross-region occurs, and the user experience is reduced.
Disclosure of Invention
In order to solve the problems, the invention provides a data access method, a server, a terminal and a storage medium, which can lay a foundation for reducing access delay and also lay a foundation for improving user experience.
In a first aspect, an embodiment of the present application provides a data access method, which is applied to a server; the method comprises the following steps:
determining that the client is in a target state; in a target state, the client can at least initiate an access request to the indicated first server based on the stored first service indication information;
acquiring first position information corresponding to the currently stored client;
matching to obtain second service indication information corresponding to the first position information; the second service indication information at least represents address information of a second server capable of supporting the access request of the client, and the geographic position of the second server is matched with the first position information;
and at least sending the second service indication information to a client, wherein the client can at least update the first service indication information based on the received second service indication information and store the second service indication information as the updated first service indication information.
Therefore, the second service indication information can be distributed to the client again based on the first position information of the client, so that the aim of flexibly distributing the servers to be accessed to the client according to the position information of the client is achieved, the problem of high access delay caused by cross-region access is solved, the foundation is laid for reducing access delay time, the success rate of requests is improved, and meanwhile, the foundation is laid for improving user experience.
Moreover, the execution main body of the server to be accessed is flexibly distributed to be the server according to the position information of the client, the execution main body is not the client, and the client only needs to update the stored historical service indication information according to the service indication identifier distributed by the server, so that the client can not sense the user even if the server is switched to access, and the stability of user experience is ensured.
In an embodiment of the present application, the method further includes: determining network configuration information required by the client to access the second server based on the address information of the second server represented by the second service indication information; and sending the network configuration information to a client.
Here, after the server reallocates the service indication information, that is, the second service indication information, to the client, the server may also allocate network configuration information for accessing the second server indicated by the second service indication information, so that a realization foundation is laid for the client to be able to successfully access the reallocated second server, and a foundation is laid for improving the success rate of the request.
In an embodiment of the present application, the method further includes: acquiring the current position information of a client, updating the currently stored first position information based on the current position information of the client, and storing the current position information of the client as the updated first position information; alternatively, the first and second electrodes may be,
the method comprises the steps of obtaining position information of a terminal where a client is located, updating currently stored first position information based on the position information of the terminal where the client is located, and storing the position information of the terminal where the client is located as the updated first position information.
In an embodiment of the present application, the method further includes: selecting target position information meeting priority requirements from the acquired position information of the terminal where the client is located and the position information where the client is located by using a preset position priority strategy; and updating the currently stored first position information based on the target position information, and storing the target position information as the updated first position information.
Here, considering that the location information of the client is not fixed and may change in an actual scene, the server may update the first location information again according to the obtained location information of the client or the location information of the terminal where the client is located, so that the updated first location information can be matched with the location information corresponding to the client or the location information of the terminal where the client is located. Furthermore, in order to match with an actual scene and improve the applicability of the embodiment of the application, a position priority strategy is also set, that is, when a plurality of pieces of position information are obtained, the position priority strategy is adopted to select the target position information, and a foundation is laid for improving the accuracy of the first position information.
In an embodiment of the present application, the method further includes: after detecting that the data of the access requests of the first server and the second server supporting the client are different, performing data intercommunication processing to ensure that the processed data of the access requests of the first server and the second server supporting the client are the same; and/or after detecting that the service processing strategies aiming at the client in the first server and the second server are different, performing service processing strategy unification processing to ensure that the processed service processing strategies aiming at the client of the first server and the second server are the same.
Here, to ensure effective implementation of the solution of the embodiment of the present application, data and service processing logic, i.e., service processing policies, between the first server and the second server need to be synchronized and completed the same, so that stability of user experience can be ensured. Therefore, the embodiment of the application realizes the synchronization of the data and the service processing logic between the first server and the second server by adopting the data intercommunication processing and the service processing strategy unification processing scheme, so that the embodiment of the application ensures the stability of user experience on the basis of effective realization, further lays a foundation for improving the user experience, and also lays a foundation for engineering realization.
In an embodiment of the present application, the method further includes: acquiring a first user behavior characteristic corresponding to a first server before a client accesses a first server which is not subjected to service processing strategy unification processing, and acquiring a second user behavior characteristic corresponding to a second server after the client accesses the second server which is subjected to the service processing strategy unification processing; and comparing the first user behavior characteristic with the second user behavior characteristic, and determining the change trend characteristic of the user behavior characteristic after the service processing strategy is unified based on the comparison result.
The second method, the embodiment of the application provides a data access method, which is applied to a client; the method comprises the following steps:
after the client is in the target state, receiving second service indication information; in a target state, the client can at least initiate an access request to the indicated first server based on the stored first service indication information; the first service indication information at least represents address information of a first server capable of supporting an access request of a client; the second service indication information at least represents address information of a second server capable of supporting the access request of the client;
and updating the first service indication information based on the received second service indication information, and storing the second service indication information as the updated first service indication information.
Therefore, the client can acquire the second service indication information distributed by the server based on the position information of the client, so that the client can change the server to be accessed based on the change of the position information of the client, the problem of high access delay caused by cross-region access is solved, a foundation is laid for reducing access delay time, the success rate of requests is improved, and a foundation is laid for improving user experience.
Moreover, the execution main body of the server to be accessed is flexibly distributed to be the server according to the position information of the client, the execution main body is not the client, and the client only needs to update the stored historical service indication information according to the service indication identifier distributed by the server, so that the client can not sense the user even if the server is switched to access, and the stability of user experience is ensured.
In a third aspect, an embodiment of the present application provides a server, including:
the first processing unit is used for determining that the client is in a target state; acquiring first position information corresponding to the currently stored client; matching to obtain second service indication information corresponding to the first position information; the second service indication information at least represents address information of a second server capable of supporting the access request of the client; in a target state, the client can at least initiate an access request to the indicated first server based on the stored first service indication information;
and the first sending unit is used for sending at least the second service indication information to a client, wherein the client can update the first service indication information at least based on the received second service indication information, and stores the second service indication information as the updated first service indication information.
In this embodiment of the application, the first processing unit is further configured to determine, based on address information of the second server represented by the second service indication information, network configuration information required by the client to access the second server;
the first sending unit is further configured to send the network configuration information to a client.
In this embodiment of the application, the first processing unit is further configured to:
acquiring the current position information of a client, updating the currently stored first position information based on the current position information of the client, and storing the current position information of the client as the updated first position information; alternatively, the first and second electrodes may be,
the method comprises the steps of obtaining position information of a terminal where a client is located, updating currently stored first position information based on the position information of the terminal where the client is located, and storing the position information of the terminal where the client is located as the updated first position information.
In this embodiment of the application, the first processing information is further configured to:
selecting target position information meeting priority requirements from the acquired position information of the terminal where the client is located and the position information where the client is located by using a preset position priority strategy;
and updating the currently stored first position information based on the target position information, and storing the target position information as the updated first position information.
In this embodiment of the application, the first processing information is further configured to:
after detecting that the data of the access requests of the first server and the second server supporting the client are different, performing data intercommunication processing to ensure that the processed data of the access requests of the first server and the second server supporting the client are the same; and/or the presence of a gas in the gas,
and after detecting that the service processing strategies aiming at the client in the first server and the second server are different, performing service processing strategy unification processing to ensure that the processed service processing strategies aiming at the client of the first server and the second server are the same.
In this embodiment of the application, the first processing information is further configured to:
acquiring a first user behavior characteristic corresponding to a first server before a client accesses a first server which is not subjected to service processing strategy unification processing, and acquiring a second user behavior characteristic corresponding to a second server after the client accesses the second server which is subjected to the service processing strategy unification processing;
and comparing the first user behavior characteristic with the second user behavior characteristic, and determining the change trend characteristic of the user behavior characteristic after the service processing strategy is unified based on the comparison result.
In a fourth aspect, an embodiment of the present application provides a terminal configured with a client, where the terminal includes:
the receiving unit is used for receiving second service indication information after the client is in the target state; in a target state, the client can at least initiate an access request to the indicated first server based on the stored first service indication information; the first service indication information at least represents address information of a first server capable of supporting an access request of a client; the second service indication information at least represents address information of a second server capable of supporting the access request of the client;
and the second processing unit is used for updating the first service indication information based on the received second service indication information and storing the second service indication information as the updated first service indication information.
In a fifth aspect, an embodiment of the present application provides a server, including:
one or more processors;
a memory communicatively coupled to the one or more processors;
one or more applications, wherein the one or more applications are stored in the memory and configured to be executed by the one or more processors, the one or more programs configured to perform the above method applied to the server side.
In a sixth aspect, an embodiment of the present application provides a terminal, including:
one or more processors;
a memory communicatively coupled to the one or more processors;
one or more applications, wherein the one or more applications are stored in the memory and configured to be executed by the one or more processors, the one or more programs configured to perform the above method applied to the client side.
In a seventh aspect, an embodiment of the present application provides a computer-readable storage medium, which stores a computer program, and when the computer program is executed by a processor, the computer program implements the method applied to the server side; alternatively, the method described above as applied to the client side is implemented.
Therefore, the second service indication information can be distributed to the client again based on the first position information of the client, so that the aim of flexibly distributing the servers to be accessed to the client according to the position information of the client is achieved, the problem of high access delay caused by cross-region access is solved, the foundation is laid for reducing access delay time, the success rate of requests is improved, and meanwhile, the foundation is laid for improving user experience.
Moreover, the execution main body of the server to be accessed is flexibly distributed to be the server according to the position information of the client, the execution main body is not the client, and the client only needs to update the stored historical service indication information according to the service indication identifier distributed by the server, so that the client can not sense the user even if the server is switched to access, and the stability of user experience is ensured.
Drawings
FIG. 1 is a first schematic flow chart illustrating an implementation of a data access method according to an embodiment of the present invention;
FIG. 2 is a schematic diagram of a specific application scenario of the data access method according to the embodiment of the present application;
FIG. 3 is a schematic diagram of a second implementation flow of the data access method according to the embodiment of the present invention;
FIG. 4 is a schematic structural diagram of a logic unit of a server according to an embodiment of the present invention;
FIG. 5 is a diagram illustrating a hardware structure of a server according to an embodiment of the present invention;
fig. 6 is a schematic structural diagram of a logic unit of a terminal according to an embodiment of the present invention;
fig. 7 is a schematic diagram of a hardware structure of a terminal according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the present application and are not intended to limit the present application.
In some of the flows described in the specification and claims of the present application and in the above-described figures, a number of operations are included that occur in a particular order, but it should be clearly understood that the flows may include more or less operations, and that the operations may be performed sequentially or in parallel.
Fig. 1 is a first schematic flow chart of an implementation of a data access method according to an embodiment of the present application; the method is applied to a server side, and here, it should be noted that a server to which the method according to the embodiment of the present application is applied may be the same as or different from a first server and a second server described below, in other words, in an actual application, a server to which the method according to the embodiment of the present application is applied may be the first server or the second server, and at this time, the first server or the second server can not only support an access request of a client, but also implement the method according to the embodiment of the present application. Alternatively, the server to which the method according to the embodiment of the present application is applied is independent of other servers except the first server and the second server, and the present application is not limited thereto.
Specifically, as shown in fig. 1, the data access method includes:
step 101: the server determines that the client is in a target state; and in the target state, the client can at least initiate an access request to the indicated first server based on the stored first service indication information.
In this embodiment, the target state may be any one of the following states: a starting state, a foreground running state and a background running state; that is, the client installed in the terminal processes the start state, or the foreground operating state, or the background operating state, and at this time, the client may initiate an access request to the indicated first server based on the first service indication information stored by the client.
Here, the first service indication information is allocated by the server based on the location information of the client for the last time; for example, the client is installed for the first time, at this time, the client reports the initial position information of the client to the server, the server allocates first service indication information matched with the initial position information to the client based on the initial position information, the first service indication information at least represents address information of a first server capable of supporting an access request of the client, and the geographical position of the first server is matched with the initial position information; accordingly, the client receives and stores the first service indication information to be used for initiating an access request to the first server based on the address information of the first server characterized by the first service indication information. Of course, the first service indication information allocated to the client last time may not be when the client is installed for the first time, for example, the first service indication information may be any time after the client is installed for the first time, as long as the server is the service indication information allocated to the client based on the location information of the client. Here, it should be noted that the geographic location of the first server is matched with the initial location information, which may specifically be that the initial location information and the geographic location of the first server are in the same area, for example, the area where the initial location information is located is "beijing city", and the area where the geographic location of the first server is located is also "beijing city", and at this time, the two are considered to be matched; in practical applications, the area may be specifically determined according to actual requirements, for example, according to city division, or according to country division, and the like, which is not limited in the embodiment of the present application. Or in another example, there are at least two servers capable of providing the access service for the client, where the geographic location of the first server matches the initial location information, and may specifically be the geographic location of the first server, and is closest to the initial location information compared to other servers capable of providing the access service for the client, so as to implement the near access.
In this embodiment, the address information of the first server may specifically be a domain name, an Internet Protocol (IP) address, and the like.
In a specific scenario, the server does not actively acquire the state of the client from the client, but determines the state of the client based on whether the client initiates an access request, for example, if the client initiates an access request within a preset time period, a communication channel between the server and the client is in a connection state, and at this time, the client may be determined to be in a target state.
Step 102: and the server acquires the currently stored first position information corresponding to the client.
Here, in consideration of the delay problem of information transmission, the server may not be able to obtain the location information of the client in time, and service indication information is allocated to the client based on the real-time location information, so the server may store the first location information corresponding to the client, and when it is detected that the client is in the target state, allocate the service indication information to the client based on the first location information stored by the server.
Of course, the first location information may also be updated based on the location information of the client, so that the client can change the server to be accessed based on the change of the location information of the client, thereby avoiding the increase of access delay caused by cross-region access, and specifically, the first location information may be updated in the following manners, respectively:
the first method is as follows: the server obtains the current position information of the client, updates the currently stored first position information based on the current position information of the client, and stores the current position information of the client as the updated first position information. That is, the server updates the first location information stored by the server based on the acquired location information of the client currently located, so as to maximally ensure that the service indication information allocated to the client matches the location information of the client.
The second method comprises the following steps: the server acquires the position information of the terminal where the client is located, updates the currently stored first position information based on the position information of the terminal where the client is located, and stores the position information of the terminal where the client is located as the updated first position information. That is, the server updates the first location information stored in the server based on the acquired location information of the terminal where the client is located, so that it is also maximally ensured that the service indication information allocated to the client matches the location information where the client is located.
Here, in practical applications, the two modes can be performed alternatively.
Certainly, in a specific scenario, for the same client, the server may acquire a plurality of pieces of location information, so that the applicability of the embodiment of the present application is improved, and a location priority policy is also preset, so that target location information meeting a priority requirement is selected from the acquired location information of the terminal where the client is located and the location information where the client is located by using the preset location priority policy; and updating the currently stored first position information based on the target position information, and storing the target position information as the updated first position information.
In practical application, the location information corresponding to the client described in this embodiment is specifically a geographic location where an account of the login client is located; the location information of the terminal where the client is located may be determined based on a language set by the terminal, a Subscriber Identity Module (SIM) or an IP address corresponding to the terminal. In a specific embodiment, the priority of the geographic location of the account of the login client is higher than the location information of the terminal where the client is located.
Step 103: the server is matched to obtain second service indication information corresponding to the first position information; the second service indication information at least represents address information of a second server capable of supporting the access request of the client, and the geographic position of the second server is matched with the first position information.
In a specific example, the geographic location of the second server is matched with the first location information, which may specifically be that the first location information and the geographic location of the second server are in the same area, for example, the area where the first location information is located is "shanghai city", the area where the geographic location of the second server is located is also "shanghai city", and at this time, the two are considered to be matched; in practical applications, the area may be specifically determined according to actual requirements, for example, according to city division, or according to country division, and the like, which is not limited in the embodiment of the present application. Or in another example, there are at least two servers capable of providing the access service for the client, in this case, the geographic location of the second server matches the first location information, which may be specifically the geographic location of the second server, and is closest to the first location information compared to other servers capable of providing the access service for the client, so as to implement the near access.
In this embodiment, the address information of the second server may specifically be a domain name, an IP address, and the like.
Step 104: the server at least sends the second service indication information to the client, wherein the client can at least update the first service indication information based on the received second service indication information and store the second service indication information as the updated first service indication information.
Here, since the server can reallocate the second service indication information to the client based on the first location information of the client, the purpose of flexibly allocating a server to be accessed to the client according to the location information of the client is achieved; furthermore, after the client receives the second service indication information, the first service indication information is updated, and the second service indication information is stored as the updated first service indication information, so that when the server needs to be accessed next time, an access request is sent to the second server based on the second service indication information, and thus, the purpose of updating the server to be accessed based on the position information of the client is achieved, the problem of high access delay caused by cross-region access is solved, a foundation is laid for reducing access delay time, the success rate of requests is improved, and meanwhile, a foundation is laid for improving user experience.
In a specific example, to ensure that the client can successfully access the reallocated second server, in this embodiment, the client reallocates the service indication information for the client, that is, after the second service indication information is reallocated, network configuration information for accessing the second server indicated by the second service indication information is also allocated for the client, and specifically, the server determines, based on address information of the second server represented by the second service indication information, network configuration information required by the client to access the second server; and sending the network configuration information to a client. Correspondingly, after receiving the network configuration information, the client updates the network configuration information stored by the client, so that the server which is redistributed to the client, namely the second server, is accessed based on the updated network configuration information when the server needs to be accessed next time.
In this embodiment, to ensure stability of user experience, in this embodiment, data and service processing logic between the first server and the second server need to be synchronized in the same manner as follows:
the first method is as follows: data synchronization; and after detecting that the data of the access requests of the first server and the second server supporting the client are different, the server performs data intercommunication processing to ensure that the processed data of the access requests of the first server and the second server supporting the client are the same. In practical application, the account logs in the client and then accesses the server, and based on this, the synchronized data may be specifically data related to the account, so that the account stored between the first server and the second server is the same, and the data related to the account is the same. For example, if the first server stores related data for account A, B and the second server stores data for account A, C, D, the data for account a is merged so that the data for account a in the first server and the second server are the same. Meanwhile, the first server synchronizes the related data of the account B to the second server, and the second server synchronizes the data of the accounts C and D to the first server, so that the data in the first server and the data in the second server are identical for the accounts a, B, C and D.
The second method comprises the following steps: service processing logic synchronization; specifically, after detecting that the service processing strategies for the client in the first server and the second server are different, the server performs service processing strategy unification processing, so that the service processing strategies for the client of the processed first server and the processed second server are the same. In practical application, when the service processing policies are processed in a unified manner, a new service processing policy may be set for considering both the service processing logics of the first server and the second server, and then the new service processing policy is replaced with the service processing policies in the first server and the second server, so that the service processing policies of the first server and the second server are unified.
Here, it should be noted that the above two modes may be executed alternatively or simultaneously, and the embodiment of the present application is not limited thereto.
In practical application, after the business processing strategy is processed uniformly, the rationality and the acceptable degree of the unified business processing strategy can be evaluated by monitoring the subsequent user behavior, so that the unified business processing strategy is optimized subsequently, specifically, a server obtains a first user behavior characteristic corresponding to a first server before the client accesses the first server without the business processing strategy unification processing, and obtains a second user behavior characteristic corresponding to a second server after the client accesses the second server with the business processing strategy unification processing; and comparing the first user behavior characteristic with the second user behavior characteristic, and determining the change trend characteristic of the user behavior characteristic after the service processing strategy is unified based on the comparison result, so that the unified service processing strategy is evaluated by utilizing the change trend characteristic.
Therefore, the second service indication information can be distributed to the client again based on the first position information of the client, so that the aim of flexibly distributing the servers to be accessed to the client according to the position information of the client is achieved, the problem of high access delay caused by cross-region access is solved, the foundation is laid for reducing access delay time, the success rate of requests is improved, and meanwhile, the foundation is laid for improving user experience.
Moreover, the execution main body of the server to be accessed is flexibly distributed to be the server according to the position information of the client, the execution main body is not the client, and the client only needs to update the stored historical service indication information according to the service indication identifier distributed by the server, so that the client can not sense the user even if the server is switched to access, and the stability of user experience is ensured.
The embodiments of the present application are described in further detail below with reference to specific application scenarios; here, the concepts of region and idc are introduced, where region refers to a specific country (i.e., the above-mentioned region), and idc refers to a machine room where a server is located (i.e., the above-mentioned geographical location where the server capable of supporting the client access request and providing the access service for the client is located). Based on the method, the server can determine the corresponding idc according to the region corresponding to the client, and the client stores the idc matched with the region where the client is located, so that the server is accessed based on the stored idc, nearby access is achieved, and therefore, for the user, the time delay is reduced on the basis of function loss.
FIG. 2 is a schematic diagram of a specific application scenario of the data access method according to the embodiment of the present application; as shown in fig. 2, the method involves a server and a client, where the service account component, the network control component, and the ttregion service component are service components in the server; the service account component is used for injecting a store-idc to the client during new installation and transmitting the store-idc for the client to the ttregion service component; here, the store-idc is the idc corresponding to the region to which the client belongs when the client is installed for the first time. The ttregion service component is used for periodically monitoring the region where the client is located, determining the idc to which the client belongs based on the obtained region where the client is located, and further triggering the update of the idc corresponding to the client. The network control component is used for issuing corresponding network configuration information based on the idc to which the client belongs; here, the server also issues whether to start the ttnet proximity access function to the client, and when it is determined that the client starts the ttnet proximity access function, the server controls the service account component, the network control component, and the ttregion service component to implement the respective functions, thereby implementing the proximity access of the client.
The embodiment of the application also provides a data access method which is applied to the client; as shown in fig. 3, the method includes:
step 301: after the client is in the target state, receiving second service indication information; in a target state, the client can at least initiate an access request to the indicated first server based on the stored first service indication information; the first service indication information at least represents address information of a first server capable of supporting an access request of a client; the second service indication information characterizes at least address information of a second server capable of supporting the access request of the client.
Step 302: and the client updates the first service indication information based on the received second service indication information, and stores the second service indication information as the updated first service indication information.
Here, it should be noted that: the above description of the method embodiment item on the client side corresponds to the above description of the method applied to the server side, and belongs to a general inventive concept with the same beneficial effects, and therefore, the description thereof is omitted. For technical details that are not disclosed in the client-side method embodiment of the present invention, those skilled in the art should refer to the description of the client content in the server-side method embodiment of the present invention to understand that, for brevity, no further description is provided here.
In order to implement the method applied to the server side, an embodiment of the present application further provides a server, as shown in fig. 4, including:
a first processing unit 41, configured to determine that the client is in a target state; acquiring first position information corresponding to the currently stored client; matching to obtain second service indication information corresponding to the first position information; the second service indication information at least represents address information of a second server capable of supporting the access request of the client; in a target state, the client can at least initiate an access request to the indicated first server based on the stored first service indication information;
a first sending unit 42, configured to send at least the second service indication information to a client, where the client is capable of updating the first service indication information at least based on the received second service indication information, and stores the second service indication information as the updated first service indication information.
In a specific example, the first processing unit 41 is further configured to determine, based on address information of the second server represented by the second service indication information, network configuration information required by the client to access the second server;
the first sending unit 42 is further configured to send the network configuration information to a client.
In a specific example, the first processing unit 41 is further configured to:
acquiring the current position information of a client, updating the currently stored first position information based on the current position information of the client, and storing the current position information of the client as the updated first position information; alternatively, the first and second electrodes may be,
the method comprises the steps of obtaining position information of a terminal where a client is located, updating currently stored first position information based on the position information of the terminal where the client is located, and storing the position information of the terminal where the client is located as the updated first position information.
In a specific example, the first processing information 41 is further configured to:
selecting target position information meeting priority requirements from the acquired position information of the terminal where the client is located and the position information where the client is located by using a preset position priority strategy;
and updating the currently stored first position information based on the target position information, and storing the target position information as the updated first position information.
In a specific example, the first processing information 41 is further configured to:
after detecting that the data of the access requests of the first server and the second server supporting the client are different, performing data intercommunication processing to ensure that the processed data of the access requests of the first server and the second server supporting the client are the same; and/or the presence of a gas in the gas,
and after detecting that the service processing strategies aiming at the client in the first server and the second server are different, performing service processing strategy unification processing to ensure that the processed service processing strategies aiming at the client of the first server and the second server are the same.
In a specific example, the first processing information 41 is further configured to:
acquiring a first user behavior characteristic corresponding to a first server before a client accesses a first server which is not subjected to service processing strategy unification processing, and acquiring a second user behavior characteristic corresponding to a second server after the client accesses the second server which is subjected to the service processing strategy unification processing;
and comparing the first user behavior characteristic with the second user behavior characteristic, and determining the change trend characteristic of the user behavior characteristic after the service processing strategy is unified based on the comparison result.
An embodiment of the present application further provides a server, including: one or more processors; a memory communicatively coupled to the one or more processors; one or more application programs; wherein the one or more applications are stored in the memory and configured to be executed by the one or more processors, the one or more programs configured to perform the above method applied to the server side.
In a specific example, the server according to the embodiment of the present application may be embodied as the structure shown in fig. 5, and the server at least includes a processor 51, a storage medium 52, and at least one external communication interface 53; the processor 51, the storage medium 52 and the external communication interface 53 are all connected by a bus 54. The processor 51 may be a microprocessor, a central processing unit, a digital signal processor, a programmable logic array, or other electronic components with processing functions. The storage medium stores computer executable codes, and the computer executable codes can execute the data access method applied to the server side in any embodiment. In practical applications, the first processing unit 41 and the first sending unit 42 may be implemented by the processor 51.
Here, it should be noted that: the description of the server embodiment is similar to the description of the method applied to the server, and has the same beneficial effects as the method embodiment, and therefore, the description is omitted. For technical details that are not disclosed in the server embodiment of the present invention, those skilled in the art should refer to the description of the method embodiment of the present invention applied to the server side to understand that, for brevity, detailed description is omitted here.
In order to implement the above method applied to the client side, an embodiment of the present application further provides a terminal, as shown in fig. 6, including:
the receiving unit 61 is configured to receive the second service indication information after the client is in the target state; in a target state, the client can at least initiate an access request to the indicated first server based on the stored first service indication information; the first service indication information at least represents address information of a first server capable of supporting an access request of a client; the second service indication information at least represents address information of a second server capable of supporting the access request of the client;
and a second processing unit 62, configured to update the first service indication information based on the received second service indication information, and store the second service indication information as the updated first service indication information.
An embodiment of the present application further provides a terminal, including: one or more processors; a memory communicatively coupled to the one or more processors; one or more application programs; wherein the one or more application programs are stored in the memory and configured to be executed by the one or more processors, the one or more programs configured to be applied to a client-side method.
In a specific example, as shown in fig. 7, the terminal according to the embodiment of the present invention includes a processor 71 and a memory 72; the memory 72 is used for storing a program for executing the above-described method applied to the client side; the processor 71 is configured to execute programs stored in the memory 72. Further, as shown in fig. 7, the terminal provided in the embodiment of the present invention further includes an input device 73 (e.g., a touch screen, a camera, a microphone, etc.), an output device 74 (e.g., a display screen, a speaker, etc.), a communication module 75, and a power module 76.
The memory 72, the input device 73, the output device 74, the communication module 75, and the power module 76 are connected to the processor 71 through a serial port, a bus, or a USB interface.
Here, for a single processor terminal, the processor 71 is a CPU (central processing unit); for a dual-processor terminal, the processor 71 includes a master processor and a slave processor, the master processor executes an application program to implement the method of the client side provided by the embodiment of the present invention, and if the communication with the outside is required, the slave processor controls the communication module to cooperate with the communication module; for a terminal comprising a GPU (graphics processor) and a CPU, the processor 71 refers to the GPU and the CPU, and the GPU and the CPU cooperate to implement the method provided by the embodiment of the present invention on the client side.
It should be noted that different terminals (single-processor smart phone, dual-processor smart phone, smart wearable device, tablet computer, etc.) may include more or less hardware structures than the terminal shown in fig. 7, but it is within the protection scope of the present invention as long as the terminal includes the memory 72 and the processor 71 and can implement the functions applied to the embodiment of the client-side method.
Here, it is to be noted that: the above description of the terminal embodiment is similar to the above description of the method applied to the client side, and has the same beneficial effects as the method embodiment, and therefore, the description thereof is omitted. For technical details that are not disclosed in the terminal embodiment of the present invention, those skilled in the art should refer to the description of the method embodiment of the present invention applied to the client side for understanding, and for brevity, will not be described again here.
The embodiment of the application also provides a computer readable storage medium, which stores a computer program, and the program realizes the method applied to the server side when being executed by a processor; alternatively, a method as applied to the client side is implemented.
A computer-readable storage medium can be any means that can contain, store, communicate, propagate, or transport the program for use by or in connection with the instruction execution system, apparatus, or device. More specific examples (a non-exhaustive list) of the computer readable storage medium would include the following: an electrical connection (electronic device) having one or more wires, a portable computer diskette (magnetic device), a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber device, and a portable read-only memory (CDROM). Additionally, the computer-readable storage medium may even be paper or another suitable medium upon which the program is printed, as the program can be electronically captured, via for instance optical scanning of the paper or other medium, then compiled, interpreted or otherwise processed in a suitable manner if necessary, and then stored in a computer memory.
It should be understood that all or part of the steps carried by the method for implementing the above embodiments can be implemented by hardware related to instructions of a program, which can be stored in a computer readable storage medium, and the program includes one or a combination of the steps of the method embodiments when the program is executed.
In addition, functional units in the embodiments of the present invention may be integrated into one processing module, or each unit may exist alone physically, or two or more units are integrated into one module. The integrated module can be realized in a hardware mode, and can also be realized in a software functional module mode. The integrated module, if implemented in the form of a software functional module and sold or used as a separate product, may also be stored in a computer readable storage medium. The storage medium may be a read-only memory, a magnetic or optical disk, or the like.
The embodiments described above are only a part of the embodiments of the present invention, and not all of them. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.

Claims (12)

1. A data access method is applied to a server; the method comprises the following steps:
determining that the client is in a target state; in a target state, the client can at least initiate an access request to the indicated first server based on the stored first service indication information;
acquiring first position information corresponding to the currently stored client;
matching to obtain second service indication information corresponding to the first position information; the second service indication information at least represents address information of a second server capable of supporting the access request of the client, and the geographic position of the second server is matched with the first position information;
and at least sending the second service indication information to a client, wherein the client can at least update the first service indication information based on the received second service indication information and store the second service indication information as the updated first service indication information.
2. The method of claim 1, further comprising:
determining network configuration information required by the client to access the second server based on the address information of the second server represented by the second service indication information;
and sending the network configuration information to a client.
3. The method of claim 1, further comprising:
acquiring the current position information of a client, updating the currently stored first position information based on the current position information of the client, and storing the current position information of the client as the updated first position information; alternatively, the first and second electrodes may be,
the method comprises the steps of obtaining position information of a terminal where a client is located, updating currently stored first position information based on the position information of the terminal where the client is located, and storing the position information of the terminal where the client is located as the updated first position information.
4. The method of claim 1, further comprising:
selecting target position information meeting priority requirements from the acquired position information of the terminal where the client is located and the position information where the client is located by using a preset position priority strategy;
and updating the currently stored first position information based on the target position information, and storing the target position information as the updated first position information.
5. The method of claim 1, further comprising:
after detecting that the data of the access requests of the first server and the second server supporting the client are different, performing data intercommunication processing to ensure that the processed data of the access requests of the first server and the second server supporting the client are the same; and/or the presence of a gas in the gas,
and after detecting that the service processing strategies aiming at the client in the first server and the second server are different, performing service processing strategy unification processing to ensure that the processed service processing strategies aiming at the client of the first server and the second server are the same.
6. The method of claim 5, further comprising:
acquiring a first user behavior characteristic corresponding to a first server before a client accesses a first server which is not subjected to service processing strategy unification processing, and acquiring a second user behavior characteristic corresponding to a second server after the client accesses the second server which is subjected to the service processing strategy unification processing;
and comparing the first user behavior characteristic with the second user behavior characteristic, and determining the change trend characteristic of the user behavior characteristic after the service processing strategy is unified based on the comparison result.
7. A data access method is applied to a client; the method comprises the following steps:
after the client is in the target state, receiving second service indication information; in a target state, the client can at least initiate an access request to the indicated first server based on the stored first service indication information; the first service indication information at least represents address information of a first server capable of supporting an access request of a client; the second service indication information at least represents address information of a second server capable of supporting the access request of the client;
and updating the first service indication information based on the received second service indication information, and storing the second service indication information as the updated first service indication information.
8. A server, comprising:
the first processing unit is used for determining that the client is in a target state; acquiring first position information corresponding to the currently stored client; matching to obtain second service indication information corresponding to the first position information; the second service indication information at least represents address information of a second server capable of supporting the access request of the client; in a target state, the client can at least initiate an access request to the indicated first server based on the stored first service indication information;
and the first sending unit is used for sending at least the second service indication information to a client, wherein the client can update the first service indication information at least based on the received second service indication information, and stores the second service indication information as the updated first service indication information.
9. A terminal, configured with a client, the terminal comprising:
the receiving unit is used for receiving second service indication information after the client is in the target state; in a target state, the client can at least initiate an access request to the indicated first server based on the stored first service indication information; the first service indication information at least represents address information of a first server capable of supporting an access request of a client; the second service indication information at least represents address information of a second server capable of supporting the access request of the client;
and the second processing unit is used for updating the first service indication information based on the received second service indication information and storing the second service indication information as the updated first service indication information.
10. A server, comprising:
one or more processors;
a memory communicatively coupled to the one or more processors;
one or more applications, wherein the one or more applications are stored in the memory and configured to be executed by the one or more processors, the one or more programs configured to perform the method of any of claims 1-6.
11. A terminal, comprising:
one or more processors;
a memory communicatively coupled to the one or more processors;
one or more applications, wherein the one or more applications are stored in the memory and configured to be executed by the one or more processors, the one or more programs configured to perform the method of claim 7.
12. A computer-readable storage medium, in which a computer program is stored which, when being executed by a processor, carries out the method according to any one of claims 1 to 6; or, implementing the method of claim 7.
CN201911179558.XA 2019-11-27 2019-11-27 Data access method, server, terminal and storage medium Pending CN110933160A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911179558.XA CN110933160A (en) 2019-11-27 2019-11-27 Data access method, server, terminal and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911179558.XA CN110933160A (en) 2019-11-27 2019-11-27 Data access method, server, terminal and storage medium

Publications (1)

Publication Number Publication Date
CN110933160A true CN110933160A (en) 2020-03-27

Family

ID=69852044

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911179558.XA Pending CN110933160A (en) 2019-11-27 2019-11-27 Data access method, server, terminal and storage medium

Country Status (1)

Country Link
CN (1) CN110933160A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112965955A (en) * 2021-03-17 2021-06-15 北京奇艺世纪科技有限公司 Data migration method and device, computer equipment and storage medium
CN113190625A (en) * 2021-05-25 2021-07-30 中国工商银行股份有限公司 Request processing method, device, electronic equipment, medium and program product
CN113660168A (en) * 2021-10-19 2021-11-16 上海柯林布瑞信息技术有限公司 Multi-center research data processing method and device and server
CN115378801A (en) * 2022-08-10 2022-11-22 福州六察网络科技有限公司 Multi-server communication method and terminal

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106302434A (en) * 2016-08-11 2017-01-04 腾讯科技(深圳)有限公司 Server adaptation method, device and system
CN106534204A (en) * 2016-12-27 2017-03-22 Tcl集团股份有限公司 Connection method of client and server, system and server
CN106657132A (en) * 2017-01-09 2017-05-10 北京小米移动软件有限公司 Method and device for accessing website
CN106713495A (en) * 2017-01-20 2017-05-24 北京海泰方圆科技股份有限公司 Uploading method and apparatus, access method and apparatus, and access system of IP geographic position
CN106921699A (en) * 2015-12-25 2017-07-04 北京奇虎科技有限公司 A kind of Network Access Method, device and system
CN106973114A (en) * 2017-04-28 2017-07-21 腾讯科技(深圳)有限公司 Cut-in method, server and system
CN108111527A (en) * 2017-12-29 2018-06-01 深圳市艾特智能科技有限公司 Smart home client access request processing method, system, storage medium and computer equipment
CN109327542A (en) * 2018-11-19 2019-02-12 网易(杭州)网络有限公司 Game service access response method, request retransmission method, connection method, device

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106921699A (en) * 2015-12-25 2017-07-04 北京奇虎科技有限公司 A kind of Network Access Method, device and system
CN106302434A (en) * 2016-08-11 2017-01-04 腾讯科技(深圳)有限公司 Server adaptation method, device and system
CN106534204A (en) * 2016-12-27 2017-03-22 Tcl集团股份有限公司 Connection method of client and server, system and server
CN106657132A (en) * 2017-01-09 2017-05-10 北京小米移动软件有限公司 Method and device for accessing website
CN106713495A (en) * 2017-01-20 2017-05-24 北京海泰方圆科技股份有限公司 Uploading method and apparatus, access method and apparatus, and access system of IP geographic position
CN106973114A (en) * 2017-04-28 2017-07-21 腾讯科技(深圳)有限公司 Cut-in method, server and system
CN108111527A (en) * 2017-12-29 2018-06-01 深圳市艾特智能科技有限公司 Smart home client access request processing method, system, storage medium and computer equipment
CN109327542A (en) * 2018-11-19 2019-02-12 网易(杭州)网络有限公司 Game service access response method, request retransmission method, connection method, device

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112965955A (en) * 2021-03-17 2021-06-15 北京奇艺世纪科技有限公司 Data migration method and device, computer equipment and storage medium
CN112965955B (en) * 2021-03-17 2024-01-12 北京奇艺世纪科技有限公司 Data migration method, device, computer equipment and storage medium
CN113190625A (en) * 2021-05-25 2021-07-30 中国工商银行股份有限公司 Request processing method, device, electronic equipment, medium and program product
CN113660168A (en) * 2021-10-19 2021-11-16 上海柯林布瑞信息技术有限公司 Multi-center research data processing method and device and server
CN113660168B (en) * 2021-10-19 2021-12-31 上海柯林布瑞信息技术有限公司 Multi-center research data processing method and device and server
CN115378801A (en) * 2022-08-10 2022-11-22 福州六察网络科技有限公司 Multi-server communication method and terminal
CN115378801B (en) * 2022-08-10 2024-01-30 福州六察网络科技有限公司 Multi-server communication method and terminal

Similar Documents

Publication Publication Date Title
CN110933160A (en) Data access method, server, terminal and storage medium
CN109768871B (en) Method for configuring multiple virtual network cards, host machine and storage medium
CN109889621B (en) Configuration method and device of virtual private cloud service
EP3490224B1 (en) Data synchronization method and system
US9854045B2 (en) Generic cloud enabling of stateful applications
CN107528976B (en) Resource allocation method and related product
CN108989430B (en) Load balancing method, device and storage medium
KR102266089B1 (en) Mec(mobile edge computing) system and control method thereof
CN105791254B (en) Network request processing method and device and terminal
CN108900607B (en) SMB protocol request processing method and device and server
CN113900774B (en) Virtual machine control method and device of cloud operating system and storage medium
CN113238756B (en) Live broadcast service processing method and device, electronic equipment and storage medium
CN105763545B (en) A kind of BYOD method and device
CN107528977B (en) Resource allocation method and related product
CN111245939B (en) Data synchronization method, device and system
CN110113217B (en) Micro-service management method, device, management platform and storage medium
CN112905338A (en) Automatic allocation method and device for computing resources
CN110798358A (en) Distributed service identification method and device, computer readable medium and electronic equipment
CN110784510A (en) Method for accessing target service node to bus and information interaction method of service node
CN112153093B (en) Cluster-based task scheduling method, device, equipment and readable storage medium
CN115629909A (en) Service data processing method and device, electronic equipment and storage medium
US20210256600A1 (en) Connector leasing for long-running software operations
CN107147712B (en) Update the method and device of web application
CN108021459B (en) Method and device for sending dotting logs across processes
CN111416852A (en) Method for session synchronization among multiple load balancers and load balancer

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20200327