CN103475743A - Method, device and system used for cloud service - Google Patents

Method, device and system used for cloud service Download PDF

Info

Publication number
CN103475743A
CN103475743A CN2013104613147A CN201310461314A CN103475743A CN 103475743 A CN103475743 A CN 103475743A CN 2013104613147 A CN2013104613147 A CN 2013104613147A CN 201310461314 A CN201310461314 A CN 201310461314A CN 103475743 A CN103475743 A CN 103475743A
Authority
CN
China
Prior art keywords
user
cloud
logical server
cloud logical
server
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.)
Granted
Application number
CN2013104613147A
Other languages
Chinese (zh)
Other versions
CN103475743B (en
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.)
Guangzhou Boguan Information Technology Co Ltd
Original Assignee
Guangzhou Boguan Information 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 Guangzhou Boguan Information Technology Co Ltd filed Critical Guangzhou Boguan Information Technology Co Ltd
Priority to CN201310461314.7A priority Critical patent/CN103475743B/en
Publication of CN103475743A publication Critical patent/CN103475743A/en
Application granted granted Critical
Publication of CN103475743B publication Critical patent/CN103475743B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The embodiment of the invention provides a method used for a cloud service. The method comprises the steps that an access request of a first user accepting a first cloud logical server to a second user is responded, and a second cloud logical server corresponding to the second user is found out in the saved correspondence between users and cloud logical servers; the address of the second cloud logical server is sent to the first cloud logical server so that the first cloud logical server can have access to the second cloud logical server according to the address of the second cloud logical server to achieve data interaction between the first user and the second user together with the second cloud logical server. According to the method used for the cloud service, due to the fact that data interaction can be achieved between the first cloud logical server and the second cloud logical server corresponding to the second user, and trans-cloud-logical-server interaction between the users is achieved. In addition, the embodiment of the invention further provides a device and system used for the cloud service.

Description

A kind of method for cloud service, Apparatus and system
Technical field
Embodiments of the present invention relate to the cloud service field, and more specifically, embodiments of the present invention relate to a kind of method for cloud service, Apparatus and system.
Background technology
The embodiments of the present invention that be intended to for stating in claims this part provide background or context.Description herein can comprise the concept that can probe into, but the concept of having expected or having probed into not necessarily.Therefore, unless at this, point out, otherwise for the application's specification and claims, be not prior art in the content of describing in this part, and not because be included in just admit it is prior art in this part.
Cloud service is by the Internet, the computational resource of distribution to be offered to a kind of method of service of user by user's demand.For example, the mobile phone games cloud service, the user can send logging request to the cloud central server by mobile phone, signs in to any one in distributed cloud logical server.The user who signs in on same cloud logical server can carry out interaction, enters same game.
Summary of the invention
But, when the user need to another cloud logical server on user interaction or during common game, need to exit current logined cloud logical server, then sign in to this another cloud logical server could with this another logical server on the user carry out interaction, affect the user and experience.
Therefore in the prior art, how making the user carry out interaction across the cloud logical server is very bothersome problem.
For this reason, be starved of a kind of method for cloud service, to realize the making user carry out interactive purpose across the cloud logical server.
In the present context, the embodiments of the present invention expectation provides a kind of method for cloud service, Apparatus and system.
In the first aspect of embodiment of the present invention, a kind of method for cloud service is provided, can be applied to the cloud central server, for example, can comprise: the access request in response to the first user that receives the first cloud logical server to the second user, in corresponding relation between preserved user and cloud logical server, inquire the second cloud logical server corresponding to described the second user; Send the address of the second cloud logical server to described the first cloud logical server so that the first cloud logical server according to this address have access to the second cloud logical server, and the second cloud logical server carry out the data interaction between first user and the second user.
In the second aspect of embodiment of the present invention, a kind of device for cloud service is provided, can be disposed at the cloud central server, for example, can comprise: query unit, can be configured for the access request to the second user in response to the first user that receives the first cloud logical server, in the corresponding relation between preserved user and cloud logical server, inquire the second cloud logical server corresponding to described the second user; Transmitting element, can be configured for the address that sends the second cloud logical server to described the first cloud logical server so that the first cloud logical server according to this address have access to the second cloud logical server, and the second cloud logical server carry out the data interaction between first user and the second user.
In the third aspect of embodiment of the present invention, a kind of method for cloud service is provided, can be applied to the first cloud logical server, for example, can comprise: in response to receiving the mutual request of first user to the second user, send the access request to the second user to the cloud central server, so that described cloud central server is according to this access request in the corresponding relation between preserved user and cloud logical server, inquire the second cloud logical server corresponding to described the second user, and return to the address of the second cloud logical server; The address of the second cloud logical server that reception cloud central server returns; Have access to the second cloud logical server according to described address, and the second cloud logical server carries out the data interaction between first user and the second user.
In the fourth aspect of embodiment of the present invention, a kind of device for cloud service is provided, can be disposed at the first cloud logical server, for example, can comprise: request reception unit, can be configured in response to receiving the mutual request of first user to the second user, send the access request to the second user to the cloud central server, so that described cloud central server is according to this access request in the corresponding relation between preserved user and cloud logical server, inquire the second cloud logical server corresponding to described the second user, and return to the address of the second cloud logical server, the address receiving element, can be configured for the address that receives the second cloud logical server that the cloud central server returns, mutual performance element, can be configured for according to described address have access to the second cloud logical server, and the second cloud logical server carry out the data interaction between first user and the second user.
Embodiment of the present invention the 5th aspect in, a kind of method for cloud service is provided, can be applied to client, for example, can comprise: the mutual request in response to first user to the second user, the the first cloud logical server signed in to first user sends described mutual request, so that described the first cloud logical server sends the access request to the second user to the cloud central server, so that the access request that the cloud central server sends according to the first cloud logical server, inquire the second cloud logical server corresponding to described the second user in the corresponding relation between preserved user and cloud logical server, return to the address of the second cloud logical server to the first cloud logical server, receive the first cloud logical server and have access to the second cloud logical server, and the second cloud logical server feedback of carrying out the data interaction between first user and the second user according to described address.
Embodiment of the present invention the 6th aspect in, a kind of device for cloud service is provided, can be disposed at client, for example, can comprise: the interaction response unit, can be configured for the mutual request to the second user in response to first user, the the first cloud logical server signed in to first user sends described mutual request, so that described the first cloud logical server sends the access request to the second user to the cloud central server, so that the access request that the cloud central server sends according to the first cloud logical server, inquire the second cloud logical server corresponding to described the second user in the corresponding relation between preserved user and cloud logical server, return to the address of the second cloud logical server to the first cloud logical server, the feedback receiving element, can be configured for and receive the first cloud logical server and have access to the second cloud logical server, and the second cloud logical server feedback of carrying out the data interaction between first user and the second user according to described address.
Embodiment of the present invention the 7th aspect in, a kind of system for cloud service is provided, for example, can comprise: the cloud central server of applying the method for cloud service as described as above-mentioned embodiment, apply the cloud logical server of the method for cloud service as described as above-mentioned embodiment, and the client of the application method for cloud service as described as above-mentioned embodiment.
The method for cloud service according to embodiment of the present invention, Apparatus and system, can make first user send the mutual request to the second user by client to the first cloud logical server, the first cloud logical server can send the access request to the second user to the cloud central server according to this mutual request, the cloud central server can be according to this access request, corresponding relation at preserved user and cloud logical server, inquire the second cloud logical server corresponding to the second user, and return to the address of the second cloud logical server to the first cloud logical server, the the first cloud logical server that has encapsulated the communication protocol between the cloud logical server can send access to the address of the second cloud logical server, and the second cloud logical server that has encapsulated communication protocol carries out the data interaction between first user and the second user, realized between the user purpose across the interaction of cloud logical server.
summary of the invention
In prior art, owing between the cloud logical server, lacking communication mechanism, cause the user can only with the user interaction of same cloud logical server, when the user need to be with the user interaction of another cloud logical server or common game, can only exit current logined cloud logical server, signing in to another cloud logical server could carry out interaction with the user of another cloud logical server again, has affected user's experience.
For this problem, the inventor finds that the user is at cloud central server unified login, the cloud central server can be preserved user and the corresponding relation of the cloud logical server of logining and the address of cloud logical server, the cloud logical server that the user logins can know that the user wants the address of cloud logical server and the cloud logical server at another mutual user place by the cloud central server, as long as set up communication mechanism between the cloud logical server, the cloud logical server that the user logins just can carry out the data interaction between first user and the second user, no matter make the user on same cloud logical server, or across can be interactive between any user of cloud logical server, the user who reaches full cloud service system appears in same server and carries out interactive effect.
After having introduced basic principle of the present invention, lower mask body is introduced various non-limiting execution mode of the present invention.
the application scenarios overview
At first with reference to figure 2, embodiment of the present invention can be applied in mobile phone games cloud service system as shown in Figure 2, comprises cloud central server 201, two or more logical servers of cloud for the treatment of game logic such as the first cloud logical server 202 and the second cloud logical server 203, client 204 etc.
Certainly can also there be other to be applicable to application scenarios of the present invention, do not limited in the present invention.
one of illustrative methods
Below in conjunction with the application scenarios of Fig. 2, be described with reference to Figure 3 one of method for cloud service according to exemplary embodiment of the invention.It should be noted that above-mentioned application scenarios is only to illustrate for the ease of understanding spirit of the present invention and principle, embodiments of the present invention are unrestricted in this regard.On the contrary, any scene that embodiments of the present invention can be applied to be suitable for.
Referring to Fig. 3, one of a kind of method flow diagram for cloud service provided for the embodiment of the present invention.The method that this embodiment provides can be applied to the cloud central server, and wherein said cloud central server has been preserved the corresponding relation between user and cloud logical server.For example, as shown in the figure, this embodiment can comprise:
S310, the access request in response to the first user that receives the first cloud logical server to the second user, in the corresponding relation between preserved user and cloud logical server, inquire the second cloud logical server corresponding to described the second user;
For example, the corresponding relation of the described user of the embodiment of the present invention and cloud logical server can be the corresponding relation between the address of cloud logical server of user account and its login.Specifically can be when the cloud central server receive user's logging request, the user account of recording user and the corresponding relation for the address of the cloud logical server of the user assignment of request login according to default allocation rule.
The second user user that can be first user identify at the user account of client input wherein, can be also that the cloud central server is after first user signs in to the first cloud logical server, the cloud central server returns to the user in the user list of the first cloud logical server, and wherein user list can be the user's of all cloud logical servers list.
Take the mobile phone games cloud service as example, when the first user of mobile phone games is want to carry out interaction with the second user, can input the second user's user account, also can from user list, select a user to carry out interaction for selecteed user.Can receive for the treatment of the first cloud logical server of game logic the mutual request for the second user that first user place client sends, and then correspondingly to the cloud central server, send the access request to the second user.The cloud central server is when receiving the access request to the second user of the first cloud logical server transmission, can from this access request, extract its second user's who carries user account, in corresponding relation between preserved user account and cloud logical server address, inquire described the second user's the second cloud logical server address corresponding to user account.
S320, send the address of the second cloud logical server to described the first cloud logical server so that the first cloud logical server according to this address have access to the second cloud logical server, and the second cloud logical server carry out the data interaction between first user and the second user.
The method that the application embodiment of the present invention provides, because the cloud central server has been preserved the corresponding relation between user and cloud logical server, therefore, the cloud central server can be at the first user that receives the first cloud logical server after the access request to the second user, in corresponding relation between preserved user and cloud logical server, inquire the second cloud logical server corresponding to described the second user, send the address of the second cloud logical server to described the first cloud logical server, because the first cloud logical server has obtained the address of the second cloud logical server, therefore, the the first cloud logical server that has encapsulated the communication protocol between cloud logical server device can send access to the address of the second cloud logical server, and the second cloud logical server that has encapsulated same communication protocol carries out the data interaction between first user and the second user, realized between the user purpose across the interaction of cloud logical server.
In a kind of possible implementation of the present invention, the corresponding relation between the user that the cloud central server is preserved and cloud logical server can be set up when the user logins the cloud logical server first.Particularly, for example, the embodiment of the present invention can also comprise the flow process of following login:
The cloud central server receives the logging request that first user sends; The cloud central server judges that whether described first user is for logining first; If so, for this first user distributes the cloud logical server, described first user is signed in to this cloud logical server, and preserve the corresponding relation of this first user and this cloud logical server; If not, according to the corresponding relation of preserved first user and cloud logical server, inquire the cloud logical server corresponding with this first user, described first user is signed in to corresponding cloud logical server.
Visible, apply this login process, the cloud central server can be preserved the corresponding relation of user and cloud logical server when the user logins first, and, can also be the user be non-while logining first, automatically log the user into corresponding cloud logical server, without user oneself, select the cloud logical server, saved user's operation.
Wherein, the specific implementation that first user is signed in to corresponding cloud logical server can be: the first user that the user account that described logging request is carried identifies signs in to the cloud logical server, wherein, described user account can be the equipment unique identification of described first user place client, wherein said equipment unique identification can be at first user first to the buffer memory that produces and be stored in described client before the cloud central server sends logging request, when described first user sends logging request to the cloud central server, read out described equipment unique identification and it is carried in described logging request from buffer memory by described client.
In this implementation, the equipment unique identification that the user account that logging request is carried is client, and the equipment of client originally just has been assigned with this unique identification and together has been stored in other hardware informations on the hard disk of equipment when dispatching from the factory, therefore, before the user sends logging request to the cloud central server first, can read out this equipment unique identification by engine cocos2dx interface, need to add other signs in conjunction with concrete enforcement again, automatically generate the desired equipment unique identification of the embodiment of the present invention, it is user account, without the user, input, saved the operation of user when login.
In addition, before the first user by the user account sign signs in to the cloud logical server, can also carry out legitimate verification to this user account, after being verified, just the first user of user account sign be signed in to the cloud logical server.It should be noted that, the cloud central server signs in to first user other details of the specific implementation of corresponding cloud logical server can be according to the implementation of the user of general server login, for example, the address of cloud logical server that can first user is corresponding returns to first user, the notice first user enters dependent game, message from the first user login to the cloud logical server that first user is corresponding that send, so that this cloud logical server changes the state of first user into and logins etc., does not repeat them here.And, the cloud central server can also be analyzed in order to provide and can be improved the service that the user experiences all users' behavior, perhaps for the user distribute some special datas (as, the user profile of certain cloud logical server), information of each cloud logical server (as, the IP address of certain cloud logical server) etc.
For the user who signs in to the cloud logical server or sent logging request but also do not signed in to the user of cloud logical server, the cloud central server can be its cloud logical server that can login of user assignment according to the load of each cloud logical server, plays the effect of load balancing.Particularly, for example, the cloud central server can be in response to judging cloud logical server load superthreshold corresponding to described first user, again distribute another cloud logical server for this first user, described first user is signed in to this another cloud logical server, and it is corresponding that this first user and the corresponding relation of cloud logical server are updated to another cloud logical server of this first user and this.
The situation that the user can't give user account for change may occur in consideration, and for example, user's client device is lost, and the user account be kept in the client device buffer memory can't be given for change.The method that the embodiment of the present invention provides can also provide the account binding function.For example, the cloud central server can be when receiving the account bind request of first user transmission, other accounts of the user account of the described first user that described account bind request is carried and the indication of described account bind request are bound, for example can be bound with Netease pass account, QQ account, 91 accounts, Mac game center account etc., and then first user also can be used described other accounts to be logined by the cloud central server.
In addition, the cloud central server that the embodiment of the present invention provides can also receive the cloud logical server information that each cloud logical server sends when starting, wherein said cloud logical server information can comprise that the IP address, port numbers, load capacity of unique identification, the cloud logical server of cloud logical server, as information such as maximum numbers of connections, preserve described cloud logical server information.For example, for the ease of reading fast at any time cloud logical server information, cloud logical server information can be stored in to the buffer memory of cloud central server.The cloud central server can also receive the maintenance link information of each cloud logical server timed sending in running, when being user assignment cloud logical server, for the cloud logical server of user assignment normal timing transmission maintenance link information, and the user that normal timing does not send on the cloud logical server that keeps link information signs in on the cloud logical server of other normal timings transmission maintenance link informations.
It should be noted that, the described method that is applied to the cloud central server of the embodiment of the present invention, because it has comprised communicating by letter between communicating by letter between communicating by letter between cloud central server and client, cloud central server and cloud logical server, cloud logical server and cloud logical server, therefore, need to set up the communication mechanism between communication mechanism, cloud central server and the cloud logical server of client and cloud center server, the communication mechanism between the cloud logical server.For example, client for the server end that uses the C language and use LUA language, need to adopt C and LUA is bilingual that socket network service is encapsulated at server end, to realize the support to server end and client communication agreement, also need in the cocos2dx of client engine, encapsulate communication protocol, to support the communication of client and server, guarantee that cross-platform type can login identical cloud logical server.
one of exemplary means
After one of method of having introduced exemplary embodiment of the invention, next, with reference to one of device for cloud service of 4 pairs of exemplary embodiment of the invention of figure, describe in detail.
One of a kind of schematic diagram of the apparatus structure for cloud service that the embodiment of the present invention shown in Figure 4 provides.This device can be disposed at the cloud central server.As shown in the figure, for example, this embodiment can comprise:
Query unit 410, can be configured for the access request to the second user in response to the first user that receives the first cloud logical server, in corresponding relation between preserved user and cloud logical server, inquire the second cloud logical server corresponding to described the second user;
Transmitting element 420, can be configured for the address that sends the second cloud logical server to described the first cloud logical server so that the first cloud logical server according to this address have access to the second cloud logical server, and the second cloud logical server carry out the data interaction between first user and the second user.
Visible, the device that the configuration embodiment of the present invention provides, because the cloud central server has been preserved the corresponding relation between user and cloud logical server, therefore, query unit 410 can be at the first user that receives the first cloud logical server after the access request to the second user, in corresponding relation between preserved user and cloud logical server, inquire the second cloud logical server corresponding to described the second user, sent the address of the second cloud logical server to described the first cloud logical server by transmitting element 420, because the first cloud logical server has obtained the address of the second cloud logical server, therefore, can be by the communication mechanism between logical server, access is sent in address to the second cloud logical server, and the second cloud logical server carries out the data interaction between first user and the second user, realized between the user purpose across the interaction of cloud logical server.
In a kind of possible implementation of the present invention, the corresponding relation between the user that the cloud central server is preserved and cloud logical server can be set up when the user logins the cloud logical server first.Particularly, for example, the device that the embodiment of the present invention provides can also comprise login unit 430, can be configured for and receive the logging request that first user sends, judge that whether described first user is for logining first, if, for this first user distributes the cloud logical server, described first user is signed in to this cloud logical server, and preserve the corresponding relation of this first user and this cloud logical server, if not, corresponding relation according to preserved first user and cloud logical server, inquire the cloud logical server corresponding with this first user, described user is signed in to corresponding cloud logical server.
Visible, when logining first, the user preserves the corresponding relation of user and cloud logical server due to this login unit 430, and, also the user is non-while logining first, automatically log the user into corresponding cloud logical server, without user oneself, select the cloud logical server, saved user's operation.
Wherein, described login unit 430, specifically can be configured for the first user that user account that described logging request is carried identifies and sign in to the cloud logical server; Wherein, the equipment unique identification that described user account is described first user place client, wherein said equipment unique identification at first user first to the buffer memory that produces and be stored in described client before the cloud central server sends logging request, when described first user sends logging request to the cloud central server, by described client, read out described equipment unique identification and it is carried in described logging request from buffer memory.In this implementation, the equipment unique identification that the user account carried due to logging request is client, without user's input, saved the operation of user when login.
In addition, the fortune central server that has configured the device that the embodiment of the present invention provides can also play the effect of load balancing between the cloud logical server, for example, wherein said login unit 430, can also be configured in response to judging cloud logical server load superthreshold corresponding to described first user, again be another cloud logical server of this user assignment, described first user is signed in to this another cloud logical server, and it is corresponding that this first user and the corresponding relation of cloud logical server are updated to another cloud logical server of this first user and this.
Situation about can't login owing to giving user account for change for fear of the user, the device that the embodiment of the present invention provides can also comprise binding unit 440, can be configured for when receiving the account bind request of first user transmission, other accounts of the user account of the described first user that described account bind request is carried and the indication of described account bind request are bound.Like this, the user can use other bound accounts to be logined.
Can understand in time the dynamic of cloud logical server in order to make the cloud central server, in order to be user's reasonable distribution cloud logical server, the device that the embodiment of the present invention provides can also comprise: information collection unit 450, can be configured for and receive the cloud logical server information that each cloud logical server sends when starting, preserve described cloud logical server information.For example, for the ease of reading fast at any time cloud logical server information, cloud logical server information can be stored in to the buffer memory of cloud central server.
two of illustrative methods
Below, then be described with reference to Figure 5 according to two of the method for cloud service of exemplary embodiment of the invention.
Referring to Fig. 5, two of the flow chart of a kind of method for cloud service provided for the embodiment of the present invention.The method that this embodiment provides can be applied to the first cloud logical server.For example, as shown in the figure, this embodiment can comprise:
S510, the mutual request in response to the reception first user to the second user, send the access request to the second user to the cloud central server, so that described cloud central server is according to this access request in the corresponding relation between preserved user and cloud logical server, inquire the second cloud logical server corresponding to described the second user, and return to the address of the second cloud logical server;
For example, after first user signs in to the first cloud logical server, the first cloud logical server can enter game request etc. in response to receiving the plusing good friend request of first user to the second user, inviting, and is not limited in the present invention.
The address of the second cloud logical server that S520, reception cloud central server return;
S530, according to described address, have access to the second cloud logical server, and the second cloud logical server carries out the data interaction between first user and the second user.
Visible, the method that the application embodiment of the present invention provides, the first cloud logical server is after receiving the mutual request of first user to the second user, can send the access request to the second user to the cloud central server, so that described cloud central server is according to this access request in the corresponding relation between preserved user and cloud logical server, inquire the second cloud logical server corresponding to described the second user, and return to the address of the second cloud logical server, behind the address of the second cloud logical server that the first cloud logical server reception cloud central server returns, can have access to the second cloud logical server according to described address by the communication mechanism between the cloud logical server, and the second cloud logical server carries out the data interaction between first user and the second user, realization can be interactive across the user between the cloud logical server purpose.
The first user of below take describes in detail to the embodiment of the present invention as example for asking for the second User Detail to the second user's mutual request.For example, the embodiment of the present invention can comprise:
In response to receiving the ask for details request of first user to the second user, send the access request to the second user to the cloud central server, so that the cloud central server is according to this access request in the corresponding relation between preserved user and cloud logical server, inquire the second cloud logical server corresponding to described the second user, and return to the address of the second cloud logical server;
The address of the second cloud logical server that reception cloud central server returns;
Send the access request to the second user according to described address to the second cloud logical server, make the second cloud logical server return to the second user's the pet name, user class and the default disclosed information of permission according to this request;
Receive the second user's that the second cloud logical server returns the pet name, user class and the default disclosed information of permission;
Return to the second user's the pet name, user class and the default disclosed information of permission to first user.
The first user of below take asks as example, the embodiment of the present invention to be described in detail as the good friend for adding the second user to the second user's mutual request.For example, the embodiment of the present invention can comprise:
In response to receiving the plusing good friend request of first user to the second user, send the access request to the second user to the cloud central server, so that the cloud central server is according to this access request in the corresponding relation between preserved user and cloud logical server, inquire the second cloud logical server corresponding to described the second user, and return to the address of the second cloud logical server;
The address of the second cloud logical server that reception cloud central server returns;
Send the access request to the second user according to described address to the second cloud logical server, make the second cloud logical server send first user according to this request to the second user and add the message that the second user is the good friend;
The buddy list that the second user is added to first user, and the spendable authority of good friend from first user to the second user that decontrol.
In addition, the described cloud logical server of the embodiment of the present invention can also encapsulate the resolution rules of spendable execution instruction between the cloud logical server in the communication protocol of encapsulation.For example, when the cloud logical server end of use LUA or other language encapsulates socket network service, wherein can also encapsulate the resolution rules of operable execution instruction between the cloud logical server.Owing to having encapsulated the resolution rules of carrying out instruction in communication protocol, in the data exchange process of carrying out between first user and the second user, the first cloud logical server can need to produce the execution instruction to the second user's data according to the mutual of first user and the second user, and then, after sending the execution instruction to the second cloud logical server, the second cloud logical server can parse to be carried out instruction and carries out this execution instruction.Particularly, for example, the embodiment of the present invention is described has access to the second cloud logical server according to address, and the data interaction that the second cloud logical server carries out between first user and the second user can comprise:
Send the execution instruction for the second user's data according to described address to the second cloud logical server, make the second cloud logical server carry out the execution instruction for the second user's data; Receive the execution result that the second cloud logical server returns; Return to described execution result to first user.
Below take first user to the second user's mutual request as inviting the second user to enter same scene of game, the data interaction between first user and the second user comprises that the first cloud logical server transmission is that example describes in detail to the present invention to the execution instruction of the second user's data.For example:
The first cloud logical server invites the second user to enter the request of same game in response to receiving first user, send the access request to the second user to the cloud central server, so that described cloud central server is according to this access request in the corresponding relation between preserved user and cloud logical server, inquire the second cloud logical server corresponding to described the second user, and return to the address of the second cloud logical server;
The address of the second cloud logical server that the first cloud logical server reception cloud central server returns;
The first cloud logical server has access to the second cloud logical server according to described address, make the second cloud logical server send the message that enters same game to the second user, after the second user enters same game, to the first cloud logical server, return to the message that the second user enters same game;
The first cloud logical server after definite first user and the second user enter same game, the impact of the game logic of carrying out according to first user on the second user's game data, the execution instruction of corresponding generation to the second user's game data;
Send the execution instruction for the second user's game data according to described address to the second cloud logical server, make the second cloud logical server carry out the execution instruction for the second user's game data;
Receive the game data of the second user's that the second cloud logical server returns renewal;
Return to the game data of described the second user's renewal to first user.
Visible, apply the effect that this embodiment can realize entering across the user of cloud logical server the Same Scene game, greatly improved user's experience.Certainly, in the embodiment of the present invention, the first cloud logical server produces execution instruction for the second user's data, sends application scenarios for the execution instruction of the second user's data to the second cloud logical server and be not limited to first user and the second user this is a kind of at same scene of game, specifically can implement according to actual needs, do not limited in the present invention.
In addition, in order to make the cloud logical server, when newly starting, can be user's service in time, the first cloud logical server is when starting, can also send to the cloud central server relevant information of described the first cloud logical server, for example, can comprise IP address, port numbers, load capacity of the first cloud logical server etc., so that the cloud central server is preserved the relevant information of described the first cloud logical server, be rationally user assignment cloud logical server.
two of exemplary means
The method of having introduced exemplary embodiment of the invention two after, next, with reference to two of the device for cloud service of 6 pairs of exemplary embodiment of the invention of figure, describe in detail.
Two of a kind of schematic diagram of the apparatus structure for cloud service that the embodiment of the present invention shown in Figure 6 provides.This device can be disposed at the first cloud logical server.As shown in the figure, for example, this embodiment can comprise:
Request reception unit 610, can be configured in response to receiving the mutual request of first user to the second user, send the access request to the second user to the cloud central server, so that described cloud central server is according to this access request in the corresponding relation between preserved user and cloud logical server, inquire the second cloud logical server corresponding to described the second user, and return to the address of the second cloud logical server;
Address receiving element 620, can be configured for the address that receives the second cloud logical server that the cloud central server returns;
Mutual performance element 630, can be configured for according to described address have access to the second cloud logical server, and the second cloud logical server carry out the data interaction between first user and the second user.
Visible, the device that the configuration embodiment of the present invention provides, can be by request reception unit 610 after receiving the mutual request of first user to the second user, send the access request to the second user to the cloud central server, so that described cloud central server is according to this access request in the corresponding relation between preserved user and cloud logical server, inquire the second cloud logical server corresponding to described the second user, and return to the address of the second cloud logical server, behind the address of the second cloud logical server returned by address receiving element 620 reception cloud central servers, have access to second cloud logical server by the communication mechanism between the cloud logical server according to described address by mutual performance element 630, and the second cloud logical server carries out the data interaction between first user and the second user, realization can be interactive across the user between the cloud logical server purpose.
In a kind of possible implementation, what described request receiving element 610 received is the request that first user is asked for the second User Detail, correspondingly, described mutual performance element 630, can be configured for according to described address and send the access request to the second user to the second cloud logical server, make the second cloud logical server return to the second user's the pet name, user class and the default disclosed information of permission according to this request; Receive the second user's that the second cloud logical server returns the pet name, user class and the default disclosed information of permission; Return to the second user's the pet name, user class and the default disclosed information of permission to first user.
At another kind in possible implementation, what described request receiving element 610 received is the plusing good friend request of first user to the second user, correspondingly, described mutual performance element 630, can be configured for according to described address and send the access request to the second user to the second cloud logical server, make the second cloud logical server send first user according to this request to the second user and add the message that the second user is the good friend; The buddy list that the second user is added to first user, and the spendable authority of good friend from first user to the second user that decontrol.
At another in possible implementation, also encapsulated the resolution rules of operable execution instruction between the cloud logical server in the communication protocol of the described cloud logical server encapsulation of the embodiment of the present invention, correspondingly, described mutual performance element 630, can be configured for according to described address and send the execution instruction for the second user's data to the second cloud logical server, make the second cloud logical server carry out the execution instruction for the second user's data; Receive the execution result that the second cloud logical server returns; Return to described execution result to first user.Wherein, the generating mode of described execution instruction is not limited in the present invention.For example, take first user and the second user is example in same scene of game, described execution instruction can be by the first cloud logical server after definite first user and the second user enter same game, the impact of the game logic of carrying out according to first user on the second user's game data, the execution instruction of corresponding generation to the second user's game data.Visible, this implementation of the present invention can realize entering across the user of cloud logical server the effect of Same Scene game, has greatly improved user's experience.
In addition, in order to make the cloud logical server, when newly starting, can be user's service in time, the device that the embodiment of the present invention provides can also comprise start unit 640, can be configured for when starting, send the relevant information of described the first cloud logical server to the cloud central server, so that the cloud central server is stored in buffer memory by the relevant information of described the first cloud logical server.
three of illustrative methods
Below, then be described with reference to Figure 7 according to three of the method for cloud service of exemplary embodiment of the invention.
Referring to Fig. 7, three of the flow chart of a kind of method for cloud service provided for the embodiment of the present invention.The method that this embodiment provides can be applied to client.For example, as shown in the figure, this embodiment can comprise:
S710, the mutual request in response to first user to the second user, the the first cloud logical server signed in to first user sends described mutual request, so that described the first cloud logical server sends the access request to the second user to the cloud central server, so that the access request that the cloud central server sends according to the first cloud logical server, inquire the second cloud logical server corresponding to described the second user in the corresponding relation between preserved user and cloud logical server, return to the address of the second cloud logical server to the first cloud logical server;
For example, first user can be inputted at client end interface the second user's user account, or what be chosen in the client demonstration returns to the second user in user list by server end, and the client respective response is the mutual request to the second user in first user.
Wherein, this mutual request such as can be ask for the second User Detail, add the second user for the good friend, invite mutual requests such as adding game.
S720, receive the first cloud logical server and have access to the second cloud logical server, and the second cloud logical server feedback of carrying out the data interaction between first user and the second user according to described address.
For example, in described mutual request when asking for the second User Detail, described feedback can comprise the second user's the pet name, user class and default disclosed information of permission etc., when described mutual request is the good friend for adding the second user, described feedback can comprise the buddy list of renewal, when described mutual request is played for inviting the second user to add, described feedback can comprise the game data by execution instruction renewal of the second user of feedback after the second logical server is carried out of the game data to the second user of the game logic generation of first user.
Visible, the application this embodiment of the invention, client can the mutual request to the second user in response to first user, the the first cloud logical server signed in to first user sends described mutual request, send the access request to the second user because the first cloud logical server is corresponding to the cloud central server, the access request that makes the cloud central server send according to the first cloud logical server, the cloud central server inquires the second cloud logical server corresponding to described the second user in the corresponding relation between preserved user and cloud logical server, the cloud central server returns to the address of the second cloud logical server to the first cloud logical server, therefore, client can receive the first cloud logical server and have access to the second cloud logical server according to described address, and the second cloud logical server carries out the feedback of the data interaction between first user and the second user, realization can be interactive across the user between the cloud logical server purpose.
In a kind of possible implementation of the present invention, first user can send logging request to the cloud central server by client, and user and the corresponding relation between the cloud logical server that the cloud central server is preserved can be set up when the user logins the cloud logical server first.Particularly, for example, the embodiment of the present invention can also comprise the flow process of following login:
Register in response to first user, send logging request to the cloud central server, so that described cloud central server judges that whether first user is for logining first, if, for first user distributes the cloud logical server, first user is signed in to this cloud logical server, and preserve the corresponding relation of this first user and this cloud logical server, if not, corresponding relation according to preserved first user and cloud logical server, inquire the cloud logical server that this first user is corresponding, first user is signed in to corresponding cloud logical server.
Visible, apply this login process, can make the cloud central server preserve the corresponding relation of user and cloud logical server when the user logins first, and, due to the user is non-while logining first, the cloud central server logs the user into corresponding cloud logical server automatically, therefore, the user, without in client, selecting the cloud logical server, has saved user's operation.
Wherein, before to the cloud central server, sending logging request, can also from the buffer memory of client, read out the equipment unique identification, described equipment unique identification produced and was stored in the buffer memory of client before first user is logined first; Described equipment unique identification is carried in logging request as user account.In this implementation, the equipment unique identification that the user account that logging request is carried is client, and the equipment of client originally just has been assigned with this unique identification and together has been stored in other hardware informations on the hard disk of equipment when dispatching from the factory, therefore, before the user sends logging request to the cloud central server first, can read out by the open interface of engine cocos2dx this equipment unique identification, need to add other signs in conjunction with concrete enforcement again, automatically generate the desired equipment unique identification of the embodiment of the present invention, it is user account, without the user, input, saved the operation of user when login.
The situation that the user can't give user account for change may occur in consideration, and for example, user's client device is lost, and the user account be kept in the client device buffer memory can't be given for change.Therefore, the method that the embodiment of the present invention provides can also provide the account binding function.For example, the client of the method that the application embodiment of the present invention provides can, in response to the account bindings of first user, be obtained the user account of described first user and need other bound accounts; The user account of described first user is carried in the account bind request with needing other bound accounts, and described account bind request is sent to described the first cloud logical server.Wherein, described other accounts, such as thinking the capable card of Hi Fly account, QQ account, 91 accounts, Mac game center account etc., are not limited in the present invention.First user can be used described other accounts to carry out register.
The first user of below take describes in detail to the embodiment of the present invention as example for asking for the second User Detail to the second user's mutual request.For example, the embodiment of the present invention can comprise:
The details request of asking in response to first user to the second user, the the first cloud logical server signed in to first user sends described mutual request, so that described the first cloud logical server sends the access request to the second user to the cloud central server, so that the access request that the cloud central server sends according to the first cloud logical server, inquire the second cloud logical server corresponding to described the second user in the corresponding relation between preserved user and cloud logical server, return to the address of the second cloud logical server to the first cloud logical server;
Receive the second user's of the first cloud logical server feedback the pet name, user class and the default disclosed information of permission, wherein, described the second user's the pet name, user class and the default disclosed information of permission are that the first cloud logical server sends the data of the second user to receiving from the second cloud logical server after the second user's access request according to described address to the second cloud logical server.
The first user of below take asks as example, the embodiment of the present invention to be described in detail as the good friend for adding the second user to the second user's mutual request.For example, the embodiment of the present invention can comprise:
Plusing good friend request in response to first user to the second user, the the first cloud logical server signed in to first user sends the described request of the plusing good friend to the second user, so that described the first cloud logical server sends the access request to the second user to the cloud central server, so that the access request that the cloud central server sends according to the first cloud logical server, inquire the second cloud logical server corresponding to described the second user in the corresponding relation between preserved user and cloud logical server, return to the address of the second cloud logical server to the first cloud logical server,
Receive the buddy list of the renewal of the first cloud logical server feedback, wherein, the buddy list of described renewal is that the first cloud logical server sends the buddy list of the corresponding renewal of returning of buddy list to after the second user's access request, the second user being added to first user according to described address to the second cloud logical server.
In addition, the embodiment of the present invention can also encapsulate the resolution rules of spendable execution instruction between the cloud logical server in the communication protocol of cloud logical server end encapsulation.Owing to having encapsulated the resolution rules of carrying out instruction in communication protocol, in the data exchange process of carrying out between first user and the second user, the first cloud logical server can need to produce the execution instruction to the second user's data according to the mutual of first user and the second user, and then send and carry out instruction to the second cloud logical server, the second cloud logical server can parse to be carried out instruction and carries out this execution instruction, and first user place client can receive the execution result that the first cloud logical server returns.Particularly, for example, described reception the first cloud logical server according to described address have access to the second cloud logical server, and the second cloud logical server feedback of carrying out the data interaction between first user and the second user can comprise:
Receive the execution result of the first cloud logical server feedback, wherein, described execution result is the first cloud logical server according to described address after the second cloud logical server sends the execution instruction for the second user's data, by the second cloud logical server, carries out the execution result that the execution instruction of the described data for the second user produces.
The first user of below take describes in detail to the embodiment of the present invention as example as inviting the second user to enter same scene of game to the second user's mutual request.Particularly, for example:
Client end response invites the second user to enter the request of same game in first user, the the first cloud logical server signed in to first user sends the request that described invitation the second user enters same game, so that described the first cloud logical server sends the access request to the second user to the cloud central server, so that the access request that the cloud central server sends according to the first cloud logical server, inquire the second cloud logical server corresponding to described the second user in the corresponding relation between preserved user and cloud logical server, return to the address of the second cloud logical server to the first cloud logical server,
Receive the second user's of the first cloud logical server feedback the game data of renewal, wherein, the game data of described the second user's renewal is the first cloud logical server after definite first user and the second user enter same game, the impact of the game logic of carrying out according to first user on the second user's game data, the execution instruction of corresponding generation to the second user's game data, send the execution instruction for the second user's game data according to described address to the second cloud logical server, after making the second execution instruction of cloud logical server execution for the second user's game data, the game data of the second user's who obtains renewal.
Visible, apply the effect that this embodiment can realize entering across the user of cloud logical server the Same Scene game, greatly improved user's experience.
three of exemplary means
The method of having introduced exemplary embodiment of the invention three after, next, with reference to three of the device for cloud service of 8 pairs of exemplary embodiment of the invention of figure, describe in detail.
Three of a kind of schematic diagram of the apparatus structure for cloud service that the embodiment of the present invention shown in Figure 8 provides.This device can be disposed at client.As shown in the figure, for example, this embodiment can comprise:
Interaction response unit 810, can be configured for the mutual request to the second user in response to first user, the the first cloud logical server signed in to first user sends described mutual request, so that described the first cloud logical server sends the access request to the second user to the cloud central server, so that the access request that the cloud central server sends according to the first cloud logical server, inquire the second cloud logical server corresponding to described the second user in the corresponding relation between preserved user and cloud logical server, return to the address of the second cloud logical server to the first cloud logical server,
Feedback receiving element 820, can be configured for and receive the first cloud logical server and have access to the second cloud logical server, and the second cloud logical server feedback of carrying out the data interaction between first user and the second user according to described address.
Visible, configure device provided by the invention, because interaction response unit 810 can be in the mutual request to the second user in response to first user, the the first cloud logical server signed in to first user sends described mutual request, so that described the first cloud logical server sends the access request to the second user to the cloud central server, so that the cloud center service is returned to the address of the second cloud logical server corresponding to the second user according to the user with the corresponding relation of cloud logical server to the first cloud logical server, therefore, feedback receiving element 820 can receive the first cloud logical server and have access to the second cloud logical server according to described address, and the second cloud logical server carries out the feedback of the data interaction between first user and the second user, realization can be interactive across the user between the cloud logical server purpose.
In a kind of possible implementation of the present invention, first user can send logging request to the cloud central server by client, and user and the corresponding relation between the cloud logical server that the cloud central server is preserved can be set up when the user logins the cloud logical server first.Particularly, for example, the device that the embodiment of the present invention provides can also comprise login response unit 830, can be configured for the register in response to first user, send logging request to the cloud central server, so that described cloud central server judges that whether first user is for logining first, if, for first user distributes the cloud logical server, first user is signed in to this cloud logical server, and preserve the corresponding relation of this first user and this cloud logical server, if not, corresponding relation according to preserved first user and cloud logical server, inquire the cloud logical server that this first user is corresponding, first user is signed in to corresponding cloud logical server.
Visible, this login response unit 830 can make the cloud central server preserve the corresponding relation of user and cloud logical server when the user logins first, and, due to the user is non-while logining first, the cloud central server logs the user into corresponding cloud logical server automatically, therefore, the user, without in client, selecting the cloud logical server, has saved user's operation.
Wherein, described login response unit 830, can also be configured for and read out the equipment unique identification from the buffer memory of client, described equipment unique identification produced and was stored in the buffer memory of client before first user is logined first, and described equipment unique identification is carried in logging request as user account.In this implementation, the equipment unique identification that the user account that logging request is carried is client, without user's input, saved the operation of user when login.
The situation that the user can't give user account for change may occur in consideration, the device that the embodiment of the present invention provides can also comprise binding response unit 840, can be configured for the account bindings in response to first user, obtain the user account of described first user and need other bound accounts; The user account of described first user is carried in the account bind request with needing other bound accounts, and described account bind request is sent to described the first cloud logical server.
The first user of below take describes in detail to the embodiment of the present invention as example for asking for the second User Detail to the second user's mutual request.For example, the described feedback receiving element 820 of the embodiment of the present invention, can be configured for the pet name, user class and the default disclosed information of permission that receive the second user that the first cloud logical server returns, wherein, described the second user's the pet name, user class and the default disclosed information of permission are that the first cloud logical server sends the data of the second user to receiving from the second cloud logical server after the second user's access request according to described address to the second cloud logical server.
The first user of below take asks as example, the embodiment of the present invention to be described in detail as the good friend for adding the second user to the second user's mutual request.For example, the described feedback receiving element 820 of the embodiment of the present invention, can be configured for the buddy list of the renewal that receives the first cloud logical server feedback, wherein, the buddy list of described renewal is that the first cloud logical server sends the buddy list of the corresponding renewal of returning of buddy list to after the second user's access request, the second user being added to first user according to described address to the second cloud logical server.
In addition, the embodiment of the present invention can also encapsulate the resolution rules of spendable execution instruction between the cloud logical server in the communication protocol of cloud logical server end encapsulation.Owing to having encapsulated the resolution rules of carrying out instruction in communication protocol, in the data exchange process of carrying out between first user and the second user, the first cloud logical server can need to produce the execution instruction to the second user's data according to the mutual of first user and the second user, and then send and carry out instruction to the second cloud logical server, the second cloud logical server can parse to be carried out instruction and carries out this execution instruction, and first user place client can receive the execution result that the first cloud logical server returns.Particularly, for example, the described feedback receiving element 820 of the embodiment of the present invention, can be configured for the execution result that receives the first cloud logical server feedback, wherein, described execution result is the first cloud logical server according to described address after the second cloud logical server sends the execution instruction for the second user's data, by the second cloud logical server, carries out the execution result that the execution instruction of the described data for the second user produces.
example system
The method for cloud service that is applied to client of two and illustrative embodiments of the method for cloud service that is applied to the first cloud logical server of having introduced one of method for cloud service that is applied to the cloud central server of exemplary embodiment of the invention, illustrative embodiments three after, next, the system for cloud service with reference to 2 pairs of exemplary embodiment of the invention of figure is introduced.
A kind of schematic diagram of the system configuration for cloud service that the embodiment of the present invention shown in Figure 2 provides.As shown in the figure, for example, this embodiment can comprise:
Apply the cloud central server 201 of one of method for cloud service as described as above-mentioned embodiment, apply two cloud logical server 202,203 of the method for cloud service as described as above-mentioned embodiment, and three client 204 of the application method for cloud service as described as above-mentioned embodiment.
It should be noted that, the system that the embodiment of the present invention provides can comprise two cloud logical server of the method for cloud service of two or more application above-described embodiments, wherein, each cloud logical server has encapsulated the communication protocol between the cloud logical server, to support the communication between any two cloud logical servers.
Visible, the system that the application embodiment of the present invention provides, can make first user send the mutual request to the second user by client 204 to the first cloud logical server 202, the first cloud logical server 202 can send the access request to the second user to cloud central server 201 according to this mutual request, cloud central server 201 can be according to this access request, corresponding relation according to preserved user and cloud logical server, inquire the second cloud logical server 203 corresponding to the second user, and return to the address of the second cloud logical server 203 to the first cloud logical server 202, the the first cloud logical server 202 that has encapsulated the communication protocol between the cloud logical server can send access to the address of the second cloud logical server 203, and the second cloud logical server 203 that has encapsulated the communication protocol between the cloud logical server carries out the data interaction between first user and the second user, realized between the user purpose across the interaction of cloud logical server.
Although it should be noted that some unit or the subelement mentioned for the device of cloud service in above-detailed, this division is only not enforceable.In fact, according to the embodiment of the present invention, the feature of above-described two or more unit and function can be specialized in a unit.Otherwise, the feature of an above-described unit and function can Further Division for to be specialized by a plurality of unit.
In addition, although described in the accompanying drawings the operation of the inventive method with particular order,, this not requires or hint must be carried out these operations according to this particular order, or the operation shown in must carrying out all could realize the result of expectation.On the contrary, the step of describing in flow chart can change execution sequence.Additionally or alternatively, can omit some step, a plurality of steps be merged into to a step and carry out, and/or a step is decomposed into to a plurality of steps carries out.
The verb of mentioning in application documents " comprises ", those elements or the element step or the existence of step of putting down in writing in application documents do not got rid of in " comprising " and paradigmatic use thereof.The existence that article " " before element or " one " do not get rid of a plurality of this elements.
Although with reference to some embodiments, described spirit of the present invention and principle, but should be appreciated that, the present invention is not limited to disclosed embodiment, division to each side does not mean that the feature in these aspects can not combine to be benefited yet, and this division is only the convenience in order to explain.The present invention is intended to contain interior included various modifications and the equivalent arrangements of spirit and scope of claims.The scope of claims meets the most wide in range explanation, thereby comprises all such modifications and equivalent structure and function.
The accompanying drawing explanation
Read detailed description hereinafter by reference to accompanying drawing, above-mentioned and other purposes of exemplary embodiment of the invention, the feature and advantage easy to understand that will become.In the accompanying drawings, in exemplary and nonrestrictive mode, show some execution modes of the present invention, wherein:
Fig. 1 schematically shows the block diagram of the exemplary computer system 100 that is suitable for realizing embodiment of the present invention;
Fig. 2 schematically shows the structural representation of the mobile phone games cloud service system that is suitable for applying embodiment of the present invention;
One of schematic flow sheet of the method for cloud service provided according to the embodiment of the present invention is be provided Fig. 3;
One of structural representation of the device for cloud service provided according to the embodiment of the present invention is be provided Fig. 4;
Fig. 5 schematically show the method for cloud service provided according to the embodiment of the present invention schematic flow sheet two;
Fig. 6 schematically show the device for cloud service provided according to the embodiment of the present invention structural representation two;
Fig. 7 schematically show the method for cloud service provided according to the embodiment of the present invention schematic flow sheet three;
Fig. 8 schematically show the device for cloud service provided according to the embodiment of the present invention structural representation three;
In the accompanying drawings, identical or corresponding label means identical or corresponding part.
Embodiment
Below with reference to some illustrative embodiments, principle of the present invention and spirit are described.Should be appreciated that providing these execution modes is only in order to make those skilled in the art can understand better and then realize the present invention, and not limit the scope of the invention by any way.On the contrary, it is in order to make the disclosure more thorough and complete that these execution modes are provided, and the scope of the present disclosure intactly can be conveyed to those skilled in the art.
Fig. 1 shows the block diagram of the exemplary computer system 100 that is suitable for realizing embodiment of the present invention.As shown in Figure 1, computing system 100 can comprise: CPU (CPU) 101, random-access memory (ram) 102, read-only memory (ROM) 103, system bus 104, hard disk controller 105, keyboard controller 106, serial interface controller 107, parallel interface controller 108, display controller 109, hard disk 110, keyboard 111, serial external equipment 112, parallel external equipment 113 and display 114.In these equipment, with system bus 104 coupling CPU101, RAM102, ROM103, hard disk controller 105, keyboard controller 106, serialization controller 107, parallel controller 108 and display controller 109 arranged.Hard disk 110 and hard disk controller 105 couplings, keyboard 111 and keyboard controller 106 couplings, serial external equipment 112 and serial interface controller 107 couplings, parallel external equipment 113 and parallel interface controller 108 couplings, and display 114 and display controller 109 couplings.Should be appreciated that the described structured flowchart of Fig. 1 is only the purpose for example, rather than limitation of the scope of the invention.In some cases, can increase as the case may be or reduce some equipment.
Art technology technical staff knows, embodiments of the present invention can be implemented as a kind of system, method or computer program.Therefore, the disclosure can specific implementation be following form, that is: hardware, software (comprising firmware, resident software, microcode etc.), or the form of hardware and software combination completely completely, this paper is commonly referred to as " circuit ", " module " or " system ".In addition, in certain embodiments, the present invention can also be embodied as the form of the computer program in one or more computer-readable mediums, comprises computer-readable program code in this computer-readable medium.
Can adopt the combination in any of one or more computer-readable media.Computer-readable medium can be computer-readable signal media or computer-readable recording medium.Computer-readable recording medium for example may be, but not limited to,, electricity, magnetic, light, electromagnetism, infrared ray or semi-conductive system, device or device, or the combination arbitrarily.The example more specifically of computer-readable recording medium (non exhaustive example) for example can comprise: have the electrical connection, portable computer diskette, hard disk, random-access memory (ram), read-only memory (ROM), erasable type programmable read only memory (EPROM or flash memory), optical fiber, Portable, compact disk read-only memory (CD-ROM), light storage device, magnetic memory device of one or more wires or the combination of above-mentioned any appropriate.In presents, computer-readable recording medium can be any comprising or stored program tangible medium, and this program can be used or be combined with it by instruction execution system, device or device.
Computer-readable signal media can be included in base band or the data-signal of propagating as a carrier wave part, has wherein carried computer-readable program code.The data-signal of this propagation can adopt various ways, includes but not limited to the combination of electromagnetic signal, light signal or above-mentioned any appropriate.Computer-readable signal media can also be any computer-readable medium beyond computer-readable recording medium, and this computer-readable medium can send, propagates or transmit the program for by instruction execution system, device or device, being used or be combined with it.
The program code comprised on computer-readable medium can be with any suitable medium transmission, includes but not limited to wireless, electric wire, optical cable, RF etc., or the combination of above-mentioned any appropriate.
Can combine to write for carrying out the computer program code of the present invention's operation with one or more programming languages or its, described programming language comprises object-oriented programming language-such as Java, Smalltalk, C++, also comprises conventional process type programming language-such as " C " language or similar programming language.Program code can fully be carried out, partly carries out on subscriber computer, as an independently software kit execution, part part on subscriber computer, carry out on remote computer or carry out on remote computer or server fully on subscriber computer.In relating to the situation of remote computer, remote computer can be connected to subscriber computer by the network (comprising local area network (LAN) (LAN) or wide area network (WAN)) of any kind, perhaps, can be connected to outer computer (for example utilizing the ISP to pass through Internet connection).
Below with reference to the flow chart of the method for the embodiment of the present invention and the block diagram of equipment (or system), embodiments of the present invention are described.The combination that should be appreciated that each square frame in each square frame of flow chart and/or block diagram and flow chart and/or block diagram can be realized by computer program instructions.These computer program instructions can offer the processor of all-purpose computer, special-purpose computer or other programmable data processing unit, thereby produce a kind of machine, these computer program instructions are carried out by computer or other programmable data processing unit, have produced the device of the function stipulated in the square frame in realization flow figure and/or block diagram/operation.
Also can be stored in these computer program instructions can make in computer or the computer-readable medium of other programmable data processing unit with ad hoc fashion work, like this, be stored in instruction in computer-readable medium and just produce a product that comprises the command device of the function stipulated in the square frame in realization flow figure and/or block diagram/operation.
Also can be loaded into computer program instructions on computer, other programmable data processing unit or miscellaneous equipment, make and carry out the sequence of operations step on computer, other programmable data processing unit or miscellaneous equipment, to produce computer implemented process, thereby make the process of the function stipulated in the square frame of the instruction of carrying out during realization flow figure and/or block diagram can be provided/operation on computer or other programmable device.
According to the embodiment of the present invention, a kind of method for cloud service, Apparatus and system have been proposed.
In this article, it will be appreciated that, any number of elements in accompanying drawing is all unrestricted for example, and any name is all only for distinguishing, and does not have any limitation.
Below with reference to some representative embodiments of the present invention, explain in detail principle of the present invention and spirit.

Claims (33)

1. the method for cloud service, be applied to the cloud central server, and wherein said cloud central server has been preserved the corresponding relation between user and cloud logical server, and described method comprises:
Access request in response to the first user that receives the first cloud logical server to the second user, in the corresponding relation between preserved user and cloud logical server, inquire the second cloud logical server corresponding to described the second user;
Send the address of the second cloud logical server to described the first cloud logical server so that the first cloud logical server according to this address have access to the second cloud logical server, and the second cloud logical server carry out the data interaction between first user and the second user.
2. method according to claim 1 also comprises:
Receive the logging request that first user sends;
Judge that whether described first user is for logining first, if, for this first user distributes the cloud logical server, described first user is signed in to this cloud logical server, and preserve the corresponding relation of this first user and this cloud logical server, if not, according to the corresponding relation of preserved first user and cloud logical server, inquire the cloud logical server corresponding with this first user, described first user is signed in to corresponding cloud logical server.
3. method according to claim 2, also comprise: in response to judging cloud logical server load superthreshold corresponding to described first user, again distribute another cloud logical server for this first user, described first user is signed in to this another cloud logical server, and it is corresponding that this first user and the corresponding relation of cloud logical server are updated to another cloud logical server of this first user and this.
4. method according to claim 2 wherein saidly signs in to cloud logical server specific implementation by first user and is: the first user that the user account that described logging request is carried identifies signs in to the cloud logical server;
Wherein, the equipment unique identification that described user account is described first user place client, wherein said equipment unique identification at first user first to the buffer memory that produces and be stored in described client before the cloud central server sends logging request, when described first user sends logging request to the cloud central server, by described client, read out described equipment unique identification and it is carried in described logging request from buffer memory.
5. method according to claim 1 also comprises:
When receiving the account bind request of first user transmission, other accounts of the user account of the described first user that described account bind request is carried and the indication of described account bind request are bound.
6. method according to claim 1 also comprises:
Receive the cloud logical server information that each cloud logical server sends when starting;
Preserve described cloud logical server information.
7. the device for cloud service, be disposed at the cloud central server, comprising:
Query unit, be configured for the access request to the second user in response to the first user that receives the first cloud logical server, in corresponding relation between preserved user and cloud logical server, inquire the second cloud logical server corresponding to described the second user;
Transmitting element, be configured for the address that sends the second cloud logical server to described the first cloud logical server so that the first cloud logical server according to this address have access to the second cloud logical server, and the second cloud logical server carry out the data interaction between first user and the second user.
8. device according to claim 7 also comprises:
The login unit, be configured for and receive the logging request that first user sends, judge that whether described first user is for logining first, if, for this first user distributes the cloud logical server, described first user is signed in to this cloud logical server, and preserve the corresponding relation of this first user and this cloud logical server, if not, corresponding relation according to preserved first user and cloud logical server, inquire the cloud logical server corresponding with this first user, described user is signed in to corresponding cloud logical server.
9. device according to claim 8, wherein said login unit, be configured in response to judging cloud logical server load superthreshold corresponding to described first user, again be another cloud logical server of this user assignment, described first user is signed in to this another cloud logical server, and it is corresponding that this first user and the corresponding relation of cloud logical server are updated to another cloud logical server of this first user and this.
10. device according to claim 8, wherein said login unit, be configured for the first user that user account that described logging request is carried identifies and sign in to the cloud logical server; Wherein, the equipment unique identification that described user account is described first user place client, wherein said equipment unique identification at first user first to the buffer memory that produces and be stored in described client before the cloud central server sends logging request, when described first user sends logging request to the cloud central server, by described client, read out described equipment unique identification and it is carried in described logging request from buffer memory.
11. device according to claim 7 also comprises:
The binding unit, be configured for when receiving the account bind request of first user transmission, and other accounts of the user account of the described first user that described account bind request is carried and the indication of described account bind request are bound.
12. device according to claim 7 also comprises:
Information collection unit, be configured for and receive the cloud logical server information that each cloud logical server sends when starting, and described cloud logical server information is stored in to buffer memory.
13. the method for cloud service, be applied to the first cloud logical server, comprising:
In response to receiving the mutual request of first user to the second user, send the access request to the second user to the cloud central server, so that described cloud central server is according to this access request in the corresponding relation between preserved user and cloud logical server, inquire the second cloud logical server corresponding to described the second user, and return to the address of the second cloud logical server;
The address of the second cloud logical server that reception cloud central server returns;
Have access to the second cloud logical server according to described address, and the second cloud logical server carries out the data interaction between first user and the second user.
14. method according to claim 13, wherein saidly have access to the second cloud logical server according to address, and the data interaction that the second cloud logical server carries out between first user and the second user comprises:
Send the access request to the second user according to described address to the second cloud logical server, make the second cloud logical server return to the second user's the pet name, user class and the default disclosed information of permission according to this request;
Receive the second user's that the second cloud logical server returns the pet name, user class and the default disclosed information of permission;
Return to the second user's the pet name, user class and the default disclosed information of permission to first user.
15. method according to claim 13, wherein saidly have access to the second cloud logical server according to address, and the data interaction that the second cloud logical server carries out between first user and the second user comprises:
Send the execution instruction for the second user's data according to described address to the second cloud logical server, make the second cloud logical server carry out the execution instruction for the second user's data;
Receive the execution result that the second cloud logical server returns;
Return to described execution result to first user.
16. method according to claim 13 also comprises:
When starting, send the relevant information of described the first cloud logical server to the cloud central server, so that the cloud central server is preserved the relevant information of described the first cloud logical server.
17. the device for cloud service, be disposed at the first cloud logical server, comprising:
Request reception unit, be configured in response to receiving the mutual request of first user to the second user, send the access request to the second user to the cloud central server, so that described cloud central server is according to this access request in the corresponding relation between preserved user and cloud logical server, inquire the second cloud logical server corresponding to described the second user, and return to the address of the second cloud logical server;
The address receiving element, be configured for the address that receives the second cloud logical server that the cloud central server returns;
Mutual performance element, be configured for according to described address have access to the second cloud logical server, and the second cloud logical server carry out the data interaction between first user and the second user.
18. device according to claim 17, wherein said mutual performance element, be configured for according to described address and send the access request to the second user to the second cloud logical server, make the second cloud logical server return to the second user's the pet name, user class and the default disclosed information of permission according to this request; Receive the second user's that the second cloud logical server returns the pet name, user class and the default disclosed information of permission; Return to the second user's the pet name, user class and the default disclosed information of permission to first user.
19. device according to claim 17, wherein said mutual performance element, be configured for according to described address and send the execution instruction for the second user's data to the second cloud logical server, make the second cloud logical server carry out the execution instruction for the second user's data; Receive the execution result that the second cloud logical server returns; Return to described execution result to first user.
20. device according to claim 17 also comprises:
Start unit, be configured for when starting, and sends the relevant information of described the first cloud logical server to the cloud central server, so that the cloud central server is stored in buffer memory by the relevant information of described the first cloud logical server.
21. the method for cloud service, be applied to client, comprising:
Mutual request in response to first user to the second user, the the first cloud logical server signed in to first user sends described mutual request, so that described the first cloud logical server sends the access request to the second user to the cloud central server, so that the access request that the cloud central server sends according to the first cloud logical server, inquire the second cloud logical server corresponding to described the second user in the corresponding relation between preserved user and cloud logical server, return to the address of the second cloud logical server to the first cloud logical server;
Receive the first cloud logical server and have access to the second cloud logical server, and the second cloud logical server feedback of carrying out the data interaction between first user and the second user according to described address.
22. method according to claim 21 also comprises:
Register in response to first user, send logging request to the cloud central server, so that described cloud central server judges that whether first user is for logining first, if, for first user distributes the cloud logical server, first user is signed in to this cloud logical server, and preserve the corresponding relation of this first user and this cloud logical server, if not, corresponding relation according to preserved first user and cloud logical server, inquire the cloud logical server that this first user is corresponding, first user is signed in to corresponding cloud logical server.
23. method according to claim 22 wherein, before to the cloud central server, sending logging request, also comprises:
Read out the equipment unique identification from the buffer memory of client, described equipment unique identification produced and was stored in the buffer memory of client before first user is logined first;
Described equipment unique identification is carried in logging request as user account.
24. method according to claim 21 also comprises:
In response to the account bindings of first user, obtain the user account of described first user and need other bound accounts;
The user account of described first user is carried in the account bind request with needing other bound accounts, and described account bind request is sent to described the first cloud logical server.
25. method according to claim 21, wherein said reception the first cloud logical server according to described address have access to the second cloud logical server, and the second cloud logical server feedback of carrying out the data interaction between first user and the second user comprise:
Receive the second user's of the first cloud logical server feedback the pet name, user class and the default disclosed information of permission, wherein, described the second user's the pet name, user class and the default disclosed information of permission are that the first cloud logical server sends the data of the second user to receiving from the second cloud logical server after the second user's access request according to described address to the second cloud logical server.
26. method according to claim 21, wherein said reception the first cloud logical server according to described address have access to the second cloud logical server, and the second cloud logical server feedback of carrying out the data interaction between first user and the second user comprise:
Receive the execution result of the first cloud logical server feedback, wherein, described execution result is the first cloud logical server according to described address after the second cloud logical server sends the execution instruction for the second user's data, by the second cloud logical server, carries out the execution result that the execution instruction of the described data for the second user produces.
27. the device for cloud service, be applied to client, comprising:
The interaction response unit, be configured for the mutual request to the second user in response to first user, the the first cloud logical server signed in to first user sends described mutual request, so that described the first cloud logical server sends the access request to the second user to the cloud central server, so that the access request that the cloud central server sends according to the first cloud logical server, inquire the second cloud logical server corresponding to described the second user in the corresponding relation between preserved user and cloud logical server, return to the address of the second cloud logical server to the first cloud logical server,
The feedback receiving element, be configured for and receive the first cloud logical server and have access to the second cloud logical server, and the second cloud logical server feedback of carrying out the data interaction between first user and the second user according to described address.
28. device according to claim 27 also comprises:
The login response unit, be configured for the register in response to first user, send logging request to the cloud central server, so that described cloud central server judges that whether first user is for logining first, if, for first user distributes the cloud logical server, first user is signed in to this cloud logical server, and preserve the corresponding relation of this first user and this cloud logical server, if not, corresponding relation according to preserved first user and cloud logical server, inquire the cloud logical server that this first user is corresponding, first user is signed in to corresponding cloud logical server.
29. device according to claim 28, wherein said login response unit, be configured for and read out the equipment unique identification from the buffer memory of client, described equipment unique identification produced and was stored in the buffer memory of client before first user is logined first, and described equipment unique identification is carried in logging request as user account.
30. device according to claim 27 also comprises:
The binding response unit, be configured for the account bindings in response to first user, obtains the user account of described first user and need other bound accounts; The user account of described first user is carried in the account bind request with needing other bound accounts, and described account bind request is sent to described the first cloud logical server.
31. device according to claim 27, wherein said feedback receiving element, be configured for the pet name, user class and the default disclosed information of permission that receive the second user that the first cloud logical server returns, wherein, described the second user's the pet name, user class and the default disclosed information of permission are that the first cloud logical server sends the data of the second user to receiving from the second cloud logical server after the second user's access request according to described address to the second cloud logical server.
32. device according to claim 27, wherein said feedback receiving element, be configured for the execution result that receives the first cloud logical server feedback, wherein, described execution result is the first cloud logical server according to described address after the second cloud logical server sends the execution instruction for the second user's data, by the second cloud logical server, carries out the execution result that the execution instruction of the described data for the second user produces.
33. the system for cloud service comprises:
Application is as the cloud central server of the described method of claim 1-6 any one, and application is as the cloud logical server of the described method of claim 13-16 any one, and application is as the client of the described method of claim 21-26 any one.
CN201310461314.7A 2013-09-30 2013-09-30 A kind of method, apparatus and system for cloud service Active CN103475743B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310461314.7A CN103475743B (en) 2013-09-30 2013-09-30 A kind of method, apparatus and system for cloud service

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310461314.7A CN103475743B (en) 2013-09-30 2013-09-30 A kind of method, apparatus and system for cloud service

Publications (2)

Publication Number Publication Date
CN103475743A true CN103475743A (en) 2013-12-25
CN103475743B CN103475743B (en) 2018-01-23

Family

ID=49800436

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310461314.7A Active CN103475743B (en) 2013-09-30 2013-09-30 A kind of method, apparatus and system for cloud service

Country Status (1)

Country Link
CN (1) CN103475743B (en)

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105991751A (en) * 2015-03-06 2016-10-05 天津铂创国茂电子科技发展有限公司 Direct access method through center server based on embed cloud branch server
CN106302827A (en) * 2016-10-25 2017-01-04 聚好看科技股份有限公司 Communication means based on distributed system, equipment and distributed system
CN107756395A (en) * 2016-08-19 2018-03-06 腾讯科技(深圳)有限公司 Control system, the method and apparatus of intelligent robot
CN108961004A (en) * 2018-07-06 2018-12-07 北京金山云网络技术有限公司 Processing method, device, system, electronic equipment and the medium of cloud service order
CN109587191A (en) * 2017-09-29 2019-04-05 杭州海康威视系统技术有限公司 Data transmission method, interconnection cloud center, cloud domain and interconnection cloud system across cloud domain
CN111083179A (en) * 2018-10-19 2020-04-28 北京奇虎科技有限公司 Internet of things cloud platform, and equipment interaction method and device based on same
CN111124459A (en) * 2018-10-31 2020-05-08 阿里巴巴集团控股有限公司 Method and device for updating service logic of FPGA cloud server
CN111617487A (en) * 2020-05-22 2020-09-04 腾讯科技(深圳)有限公司 Account access method and device in game application, storage medium and electronic equipment

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101247384A (en) * 2007-02-15 2008-08-20 株式会社日立制作所 Content management system and method
CN101719880A (en) * 2009-11-13 2010-06-02 东南大学 Fusion system for multi-protocol multi-account instant messages and working method thereof
CN102045399A (en) * 2010-12-30 2011-05-04 中国联合网络通信集团有限公司 Cloud computing mode file system and file reading method
CN102325192A (en) * 2011-09-30 2012-01-18 上海宝信软件股份有限公司 Cloud computing implementation method and system
CN102882968A (en) * 2012-09-27 2013-01-16 广东电子工业研究院有限公司 Method for dynamically distributing cloud desktops
CN103327100A (en) * 2013-06-21 2013-09-25 华为技术有限公司 Resource processing method and site server

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101247384A (en) * 2007-02-15 2008-08-20 株式会社日立制作所 Content management system and method
CN101719880A (en) * 2009-11-13 2010-06-02 东南大学 Fusion system for multi-protocol multi-account instant messages and working method thereof
CN102045399A (en) * 2010-12-30 2011-05-04 中国联合网络通信集团有限公司 Cloud computing mode file system and file reading method
CN102325192A (en) * 2011-09-30 2012-01-18 上海宝信软件股份有限公司 Cloud computing implementation method and system
CN102882968A (en) * 2012-09-27 2013-01-16 广东电子工业研究院有限公司 Method for dynamically distributing cloud desktops
CN103327100A (en) * 2013-06-21 2013-09-25 华为技术有限公司 Resource processing method and site server

Cited By (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105991751A (en) * 2015-03-06 2016-10-05 天津铂创国茂电子科技发展有限公司 Direct access method through center server based on embed cloud branch server
CN107756395B (en) * 2016-08-19 2020-12-01 腾讯科技(深圳)有限公司 Control system, method and device of intelligent robot
CN107756395A (en) * 2016-08-19 2018-03-06 腾讯科技(深圳)有限公司 Control system, the method and apparatus of intelligent robot
CN106302827A (en) * 2016-10-25 2017-01-04 聚好看科技股份有限公司 Communication means based on distributed system, equipment and distributed system
CN106302827B (en) * 2016-10-25 2019-09-17 聚好看科技股份有限公司 Communication means, equipment and distributed system based on distributed system
CN109587191A (en) * 2017-09-29 2019-04-05 杭州海康威视系统技术有限公司 Data transmission method, interconnection cloud center, cloud domain and interconnection cloud system across cloud domain
CN109587191B (en) * 2017-09-29 2022-04-05 杭州海康威视系统技术有限公司 Cross-cloud-domain data transmission method, interconnected cloud center, cloud domain and interconnected cloud system
CN108961004A (en) * 2018-07-06 2018-12-07 北京金山云网络技术有限公司 Processing method, device, system, electronic equipment and the medium of cloud service order
CN108961004B (en) * 2018-07-06 2021-08-06 北京金山云网络技术有限公司 Cloud service order processing method, device and system, electronic equipment and medium
CN111083179A (en) * 2018-10-19 2020-04-28 北京奇虎科技有限公司 Internet of things cloud platform, and equipment interaction method and device based on same
CN111083179B (en) * 2018-10-19 2023-02-17 北京奇虎科技有限公司 Internet of things cloud platform, and equipment interaction method and device based on same
CN111124459A (en) * 2018-10-31 2020-05-08 阿里巴巴集团控股有限公司 Method and device for updating service logic of FPGA cloud server
CN111124459B (en) * 2018-10-31 2023-04-07 阿里巴巴集团控股有限公司 Method and device for updating service logic of FPGA cloud server
CN111617487A (en) * 2020-05-22 2020-09-04 腾讯科技(深圳)有限公司 Account access method and device in game application, storage medium and electronic equipment
CN111617487B (en) * 2020-05-22 2021-03-16 腾讯科技(深圳)有限公司 Account access method and device in game application, storage medium and electronic equipment

Also Published As

Publication number Publication date
CN103475743B (en) 2018-01-23

Similar Documents

Publication Publication Date Title
CN103475743A (en) Method, device and system used for cloud service
CN110365491B (en) Service processing method, device, equipment, storage medium and data sharing system
CN109067728B (en) Access control method and device for application program interface, server and storage medium
CN108897691A (en) Data processing method, device, server and medium based on interface analog service
CN109413096B (en) A kind of login method and device more applied
CN104092644A (en) Interaction method, device, client and server
US20160337344A1 (en) Providing multi-factor authentication credentials via device notifications
CN109635550B (en) Permission verification method, gateway and system for cluster data
CN108881228A (en) Cloud registration activation method, device, equipment and storage medium
CN103139137B (en) Network service provider method and device
CN107172196B (en) A kind of business interaction methods, devices and systems
CN109379742A (en) A kind of cut-in method of WLAN, device and storage medium
CN106357609A (en) User creation method and system, public network server and private cloud equipment
US10841297B2 (en) Providing multi-factor authentication credentials via device notifications
CN109002349A (en) Application program exchange method, implementation method, device, equipment and medium
CN111049946A (en) Portal authentication method, Portal authentication system, electronic equipment and storage medium
CN109274705A (en) Service providing method, apparatus and system based on user identity
CN111404695A (en) Token request verification method and device
CN105187429B (en) Character two dimensional code terminal landing method and system based on ASCII character
CN103997437A (en) Cloud server registration function testing method
CN103473379A (en) Method, device and system used for electronic map
KR20130077682A (en) Recording medium, method and system for log-in confirmation use of smart phone
CN110430478B (en) Networking communication method, device, terminal equipment and storage medium
US8447839B2 (en) Three-layer web management protocol device emulation
CN109104472B (en) Block chain network networking method, device, equipment and computer readable storage medium

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant