CN103475743B - A kind of method, apparatus and system for cloud service - Google Patents

A kind of method, apparatus and system for cloud service Download PDF

Info

Publication number
CN103475743B
CN103475743B CN201310461314.7A CN201310461314A CN103475743B CN 103475743 B CN103475743 B CN 103475743B CN 201310461314 A CN201310461314 A CN 201310461314A CN 103475743 B CN103475743 B CN 103475743B
Authority
CN
China
Prior art keywords
user
cloud
logical server
server
cloud logical
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.)
Active
Application number
CN201310461314.7A
Other languages
Chinese (zh)
Other versions
CN103475743A (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

Landscapes

  • Information Transfer Between Computers (AREA)

Abstract

Embodiments of the present invention provide a kind of method for cloud service.This method can include:The first user in response to receiving the first cloud logical server in the corresponding relation between the user and cloud logical server preserved, inquires the second cloud logical server corresponding to second user to the access request of second user;The address of the second cloud logical server is sent to the first cloud logical server, so that the data interaction that the first cloud logical server is had access between the second cloud logical server and the second cloud logical server the first user of progress and second user according to the address.Due to the first cloud logical server can corresponding with second user the second cloud logical server carry out data interaction, realize the interactive purpose of the span cloud logical server of user.In addition, embodiments of the present invention provide a kind of apparatus and system for cloud service.

Description

A kind of method, apparatus and system for cloud service
Technical field
Embodiments of the present invention are related to cloud service field, are used for more specifically, embodiments of the present invention are related to one kind The method, apparatus and system of cloud service.
Background technology
This part is it is intended that the embodiments of the present invention stated in claims provide background or context.Herein Description may include the concept that can be probed into, but the concept for having contemplated that or having probed into before being not necessarily.Therefore, unless This points out that otherwise the content described in this part is not existing skill for the description and claims of this application Art, and not because being included in this part just recognize it is prior art.
Cloud service is that the computing resource of distribution is supplied to a kind of service side of user by internet by the demand of user Formula.For example, mobile phone games cloud service, user can send logging request by mobile phone to cloud central server, sign in distribution Any one in the cloud logical server of formula.Interaction can be carried out by signing in the user on same cloud logical server, be entered Same game.
The content of the invention
But when the user interaction or common game on user's needs and another cloud logical server, then need to move back Go out the cloud logical server currently logged in, then sign in another cloud logical server could with another logical server User carry out interactive, influence Consumer's Experience.
Therefore in the prior art, it is very bothersome for how allowing users to across cloud logical server and carrying out interaction Problem.
Therefore, a kind of method for cloud service is highly desirable to, to realize that allowing users to across cloud logical server is carried out Interactive purpose.
In the present context, embodiments of the present invention it is expected to provide a kind of method, apparatus and system for cloud service.
In the first aspect of embodiment of the present invention, there is provided a kind of method for cloud service, can apply to cloud Central server, for example, can include:In response to receiving access of the first user of the first cloud logical server to second user Request, in the corresponding relation between the user and cloud logical server preserved, inquire corresponding to the second user the Two cloud logical servers;The address of the second cloud logical server is sent to the first cloud logical server, so that the first cloud is patrolled Server is collected to have access to the second cloud logical server according to the address, carry out the first user and second with the second cloud logical server Data interaction between user.
In the second aspect of embodiment of the present invention, there is provided a kind of device for cloud service, cloud can be configured at Central server, for example, can include:Query unit, may be configured in response to receive the first cloud logical server the One user is to the access request of second user, in the corresponding relation between the user and cloud logical server preserved, inquiry Go out the second cloud logical server corresponding to the second user;Transmitting element, it may be configured to take to the first cloud logic Business device sends the address of the second cloud logical server, so that the first cloud logical server has access to the second cloud logic according to the address Server and the second cloud logical server carry out the data interaction between the first user and second user.
In the third aspect of embodiment of the present invention, there is provided a kind of method for cloud service, can apply to One cloud logical server, for example, can include:In response to receiving interaction request of first user to second user, to cloud center Server is sent to the access request of second user so that the cloud central server according to the access request in the use preserved In corresponding relation between family and cloud logical server, the second cloud logical server corresponding to the second user is inquired, and Return to the address of the second cloud logical server;Receive the address for the second cloud logical server that cloud central server returns;According to The address has access to the second cloud logical server, is carried out with the second cloud logical server between the first user and second user Data interaction.
In the fourth aspect of embodiment of the present invention, there is provided a kind of device for cloud service, can be configured at One cloud logical server, for example, can include:Request reception unit, it may be configured in response to receiving the first user to the The interaction request of two users, the access request to second user is sent to cloud central server, so that the cloud central server According in corresponding relation of the access request between the user and cloud logical server preserved, the second user is inquired Corresponding second cloud logical server, and return to the address of the second cloud logical server;Address receiving unit, may be configured to Receive the address for the second cloud logical server that cloud central server returns;Interaction execution unit, may be configured to according to institute State the number that address is had access between the second cloud logical server and the second cloud logical server the first user of progress and second user According to interaction.
In the 5th aspect of embodiment of the present invention, there is provided a kind of method for cloud service, can apply to visitor Family end, for example, can include:Interaction request in response to the first user to second user, first signed in to the first user Cloud logical server sends the interaction request, so that the first cloud logical server is sent to second to cloud central server The access request of user, so that the access request that cloud central server is sent according to the first cloud logical server, what is preserved The corresponding second cloud logical server of the second user is inquired in corresponding relation between user and cloud logical server, to First cloud logical server returns to the address of the second cloud logical server;The first cloud logical server is received to be visited according to the address Ask the data interaction between the second cloud logical server and the second cloud logical server the first user of progress and second user Feedback.
In the 6th aspect of embodiment of the present invention, there is provided a kind of device for cloud service, visitor can be configured at Family end, for example, can include:Interaction response unit, may be configured to please in response to interaction of first user to second user Ask, the first cloud logical server signed in to the first user sends the interaction request, so that the first cloud logical services Device sends the access request to second user to cloud central server, so that cloud central server is according to the first cloud logical server The access request of transmission, the second user is inquired in the corresponding relation between the user and cloud logical server preserved Corresponding second cloud logical server, the address of the second cloud logical server is returned to the first cloud logical server;Feedback reception Unit, it may be configured to receive the first cloud logical server and the second cloud logical server had access to, with the according to the address Two cloud logical servers carry out the feedback of the data interaction between the first user and second user.
In the 7th aspect of embodiment of the present invention, there is provided a kind of system for cloud service, for example, can wrap Include:Using the cloud central server of the method for cloud service as described in above-mentioned embodiment, using as described in above-mentioned embodiment The method for cloud service cloud logical server, and the method for cloud service of the application as described in above-mentioned embodiment Client.
According to the method, apparatus and system for cloud service of embodiment of the present invention, the first user can be made to pass through visitor Family end sends the interaction request to second user to the first cloud logical server, and the first cloud logical server can be according to the interaction Ask to send access request to second user to cloud central server, cloud central server can according to the access request, The user preserved and the corresponding relation of cloud logical server, inquire the second cloud logical server corresponding to second user, and The address of the second cloud logical server is returned to the first cloud logical server, encapsulates the communication protocol between cloud logical server The first cloud logical server can be sent to the address of the second cloud logical server access, with encapsulate the second of communication protocol Cloud logical server carries out the data interaction between the first user and second user, realizes the span cloud logical server of user Interactive purpose.
Brief description of the drawings
Detailed description below, above-mentioned and other mesh of exemplary embodiment of the invention are read by reference to accompanying drawing , feature and advantage will become prone to understand.In the accompanying drawings, if showing the present invention's by way of example, and not by way of limitation Dry embodiment, wherein:
Fig. 1 schematically shows the block diagram for the exemplary computer system 100 for being adapted for carrying out embodiment of the present invention;
Fig. 2 schematically shows the structural representation for the mobile phone games cloud service system for being suitable for the application of embodiment of the present invention Figure;
Fig. 3 schematically show the method for cloud service provided according to embodiments of the present invention schematic flow sheet it One;
Fig. 4 schematically show the device for cloud service provided according to embodiments of the present invention structural representation it One;
Fig. 5 schematically show the method for cloud service provided according to embodiments of the present invention schematic flow sheet it Two;
Fig. 6 schematically show the device for cloud service provided according to embodiments of the present invention structural representation it Two;
Fig. 7 schematically show the method for cloud service provided according to embodiments of the present invention schematic flow sheet it Three;
Fig. 8 schematically show the device for cloud service provided according to embodiments of the present invention structural representation it Three;
In the accompanying drawings, identical or corresponding label represents identical or corresponding part.
Embodiment
The principle and spirit of the present invention is described below with reference to some illustrative embodiments.It should be appreciated that provide this A little embodiments are not with any just for the sake of better understood when those skilled in the art and then realize the present invention Mode limits the scope of the present invention.On the contrary, these embodiments are provided so that the disclosure is more thorough and complete, and energy It is enough that the scope of the present disclosure is intactly communicated to those skilled in the art.
Fig. 1 shows the block diagram for the exemplary computer system 100 for being adapted for carrying out embodiment of the present invention.As shown in figure 1, meter Calculation system 100 can include:CPU(CPU)101st, random access memory(RAM)102nd, read-only storage(ROM) 103rd, system bus 104, hard disk controller 105, KBC 106, serial interface controller 107, parallel interface controller 108th, display controller 109, hard disk 110, keyboard 111, serial peripheral equipment 112, concurrent peripheral equipment 113 and display 114. In these equipment, what is coupled with system bus 104 has CPU101, RAM102, ROM103, hard disk controller 105, KBC 106th, serialization controller 107, parallel controller 108 and display controller 109.Hard disk 110 couples with hard disk controller 105, key Disk 111 couples with KBC 106, and serial peripheral equipment 112 couples with serial interface controller 107, concurrent peripheral equipment 113 couple with parallel interface controller 108, and display 114 couples with display controller 109.It should be appreciated that described in Fig. 1 Structured flowchart be used for the purpose of example purpose, without limiting the scope of the present invention.In some cases, can basis Concrete condition increases or decreases some equipment.
Art technology technical staff knows that embodiments of the present invention can be implemented as a kind of system, method or calculating Machine program product.Therefore, the disclosure can be implemented as following form, i.e.,:Complete hardware, complete software(Including solid Part, resident software, microcode etc.), or the form that hardware and software combines, it is referred to generally herein as " circuit ", " module " or " is System ".In addition, in certain embodiments, the present invention is also implemented as the calculating in one or more computer-readable mediums The form of machine program product, computer-readable program code is included in the computer-readable medium.
Any combination of one or more computer-readable media can be used.Computer-readable medium can be calculated Machine readable signal medium or computer-readable recording medium.Computer-readable recording medium for example may be, but not limited to, Electricity, magnetic, optical, electromagnetic, system, device or the device of infrared ray or semiconductor, or it is any more than combination.It is computer-readable The more specifically example of storage medium(Non-exhaustive examples)Such as it can include:Electrical connection with one or more wires, just Take formula computer disk, hard disk, random access memory(RAM), read-only storage (ROM), erasable type may be programmed read-only storage Device (EPROM or flash memory), optical fiber, portable compact disc read-only storage (CD-ROM), light storage device, magnetic memory device, Or above-mentioned any appropriate combination.In this document, computer-readable recording medium can any include or store journey The tangible medium of sequence, the program can be commanded the either device use or in connection of execution system, device.
Computer-readable signal media can include in a base band or as carrier wave a part propagation data-signal, Wherein carry computer-readable program code.The data-signal of this propagation can take various forms, including but unlimited In electromagnetic signal, optical signal or above-mentioned any appropriate combination.Computer-readable signal media can also be that computer can Any computer-readable medium beyond storage medium is read, the computer-readable medium, which can send, propagates or transmit, to be used for By instruction execution system, device either device use or program in connection.
The program code included on computer-readable medium can use any appropriate medium to transmit, including but not limited to without Line, electric wire, optical cable, RF etc., or above-mentioned any appropriate combination.
It can be write with one or more programming languages or its combination for performing the computer that operates of the present invention Program code, described program design language include object oriented program language-such as Java, Smalltalk, C++, Also include conventional procedural programming language-such as " C " language or similar programming language.Program code can be with Fully perform, partly perform on the user computer on the user computer, the software kit independent as one performs, portion Divide and partly perform or performed completely on remote computer or server on the remote computer on the user computer. It is related in the situation of remote computer, remote computer can pass through the network of any kind(Including LAN (LAN) or wide area Net (WAN))Subscriber computer is connected to, or, it may be connected to outer computer(Such as using ISP come Pass through Internet connection).
Below with reference to the flow chart and equipment of the method for the embodiment of the present invention(Or system)Block diagram description the present invention Embodiment.It should be appreciated that in each square frame and flow chart and/or block diagram of flow chart and/or block diagram each square frame combination It can be realized by computer program instructions.These computer program instructions can be supplied to all-purpose computer, special-purpose computer Or the processor of other programmable data processing units, so as to produce a kind of machine, these computer program instructions pass through meter Calculation machine or other programmable data processing units perform, and generate work(specified in the square frame in implementation process figure and/or block diagram The device of energy/operation.
These computer program instructions can also be stored in can cause computer or other programmable data processing units In the computer-readable medium to work in a specific way, so, the instruction being stored in computer-readable medium just produces one The product of the command device of function/operation specified in the individual square frame including in implementation process figure and/or block diagram.
Computer program instructions can also be loaded into computer, other programmable data processing units or miscellaneous equipment On so that series of operation steps is performed on computer, other programmable data processing units or miscellaneous equipment, in terms of producing The process that calculation machine is realized, so that the instruction performed on computer or other programmable devices can provide implementation process figure And/or the process of function/operation specified in the square frame in block diagram.
According to the embodiment of the present invention, it is proposed that a kind of method, apparatus and system for cloud service.
Herein, it is to be understood that any number of elements in accompanying drawing is used to example and unrestricted and any Name is only used for distinguishing, without any restrictions implication.
Below with reference to the principle and spirit of some representative embodiments of the present invention, in detail the explaination present invention.
Summary of the invention
In the prior art, due to lacking communication mechanism between cloud logical server, cause user can only be with same cloud logic The user interaction of server, when user needs user interaction or common game with another cloud logical server, it can only move back Go out the cloud logical server currently logged in, then sign in another cloud logical server could be with the use of another cloud logical server Family carries out interaction, have impact on Consumer's Experience.
For this problem, the inventors discovered that user is in cloud central server unified login, cloud central server can be with Preserve user and the corresponding relation of cloud logical server logged in and the address of cloud logical server, the cloud that user is logged in Logical server can be known by cloud central server user want interaction another user where cloud logical server with And the address of cloud logical server, as long as establishing communication mechanism between cloud logical server, the cloud logic that user is logged in takes Business device can be carried out the data interaction between the first user and second user so that no matter the use on same cloud logical server Family, or can be interactive between any user of cloud logical server, the user for reaching full cloud service system appears in together One server carries out interactive effect.
After the general principle of the present invention is described, lower mask body introduces the various non-limiting embodiment party of the present invention Formula.
Application scenarios overview
With reference first to Fig. 2, embodiment of the present invention can be applied in mobile phone games cloud service system as shown in Figure 2, bag Include cloud central server 201, two or more cloud logical server such as first cloud logics for being used to handle game logic The cloud logical server 203 of server 202 and second, client 204 etc..
Certainly the application scenarios that can also have other to be applied to the present invention, in the present invention and are not limited.
One of illustrative methods
With reference to Fig. 2 application scenarios, it is described with reference to Figure 3 and is taken according to the cloud that is used for of exemplary embodiment of the invention One of method of business.Understand spirit and principles of the present invention it should be noted that above-mentioned application scenarios are for only for ease of and show Go out, embodiments of the present invention are unrestricted in this regard.On the contrary, embodiments of the present invention can apply to it is applicable Any scene.
It is a kind of one of method flow diagram for cloud service provided in an embodiment of the present invention referring to Fig. 3.The embodiment carries The method of confession can apply to cloud central server, wherein the cloud central server save user and cloud logical server it Between corresponding relation.For example, as illustrated, the embodiment can include:
S310, the first user in response to receiving the first cloud logical server are being protected to the access request of second user In corresponding relation between the user deposited and cloud logical server, the second cloud logical services corresponding to the second user are inquired Device;
For example, the user and the corresponding relation of cloud logical server described in the embodiment of the present invention can be user account and its Corresponding relation between the address of the cloud logical server of login.The login of user can be specifically received in cloud central server During request, the user account of user and the cloud logical services distributed according to default allocation rule for the user that request logs in are recorded The corresponding relation of the address of device.
Wherein second user can be user that the first user is identified in the user account that client inputs or For cloud central server after the first user signs in the first cloud logical server, cloud central server returns to the first cloud logic clothes The user being engaged in the user list of device, wherein user list can be the list of the user of all cloud logical servers.
, can be with when the first user of mobile phone games wants to carry out interactive with second user by taking mobile phone games cloud service as an example The user account of second user is inputted, a user can also be selected to be carried out for selected user from user list mutual It is dynamic.What client where the first cloud logical server for handling game logic can receive the first user was sent is directed to second The interaction request of user, and then accordingly send the access request to second user to cloud central server.Cloud central server exists Receive the transmission of the first cloud logical server to the access request of second user when, it can be extracted from the access request The user account of the second user of carrying, the corresponding relation between the user account and cloud logical server address preserved In, inquire the second cloud logical server address corresponding to the user account of the second user.
S320, the address to the first cloud logical server the second cloud logical server of transmission, so that the first cloud logic Server has access to the second cloud logical server according to the address, the first user and the second use is carried out with the second cloud logical server Data interaction between family.
Using method provided in an embodiment of the present invention, due to cloud central server save user and cloud logical server it Between corresponding relation, therefore, cloud central server can be used second receive the first user of the first cloud logical server After the access request at family, in the corresponding relation between the user and cloud logical server preserved, described second is inquired Second cloud logical server corresponding to user, the address of the second cloud logical server is sent to the first cloud logical server, Because the first cloud logical server obtains the address of the second cloud logical server, therefore, encapsulate cloud logical server device it Between communication protocol the first cloud logical server can be sent to the address of the second cloud logical server access, with encapsulate it is same Second cloud logical server of the communication protocol of sample carries out the data interaction between the first user and second user, realizes user The interactive purpose of span cloud logical server.
In a kind of possible implementation of the present invention, user and cloud logical server that cloud central server is preserved it Between corresponding relation can be established when user first logs into cloud logical server.Specifically, for example, the embodiment of the present invention may be used also With including the flow logged in as follows:
Cloud central server receives the logging request that the first user sends;Cloud central server judges that first user is No is to first log into;If it is, distributing cloud logical server for first user, first user is signed in into the cloud logic Server, and preserve the corresponding relation of first user and the cloud logical server;If not, according to the first user preserved With the corresponding relation of cloud logical server, cloud logical server corresponding with first user is inquired, by first user Cloud logical server corresponding to signing in.
It can be seen that using the login process, cloud central server can preserve user and cloud logic when user first logs into The corresponding relation of server, also, can also user is non-first log into when, log the user into automatically corresponding to cloud logic clothes Business device, cloud logical server is selected without user oneself, save user's operation.
Wherein, by the first user sign in corresponding to the specific implementation of cloud logical server can be:Please by the login The first user for asking the user account of carrying to be identified signs in cloud logical server, wherein, the user account can be institute The equipment unique mark of client where stating the first user, wherein the equipment unique mark can be in the first user first to cloud Central server produces before sending logging request and is stored in the caching of the client, at the first user Xiang Yun centers When server sends logging request, the equipment unique mark is read out from caching by the client and is carried in institute State in logging request.
In the implementation, the user account that logging request carries is the equipment unique mark of client, and client Equipment the unique mark has been assigned when dispatching from the factory in itself and has together been stored in other hardware informations on the hard disk of equipment, Therefore, before user sends logging request to cloud central server first, can be read out by engine cocos2dx interfaces The equipment unique mark, need to add other marks in conjunction with specific implementation, automatically generate setting required by the embodiment of the present invention Standby unique mark, i.e. user account, are inputted without user, save operation of the user when logging in.
In addition, before the first user for identifying user account signs in cloud logical server, can also be to the user Account carries out legitimate verification, and after being verified, the first user that user account identifies just is signed in into cloud logical server. It should be noted that cloud central server by the first user sign in corresponding to cloud logical server specific implementation other are thin The implementation that section can log according to the user of general server, for example, can be by cloud logical services corresponding to the first user The address of device returns to the first user, notifies the first user to enter dependent game, to by cloud logical services corresponding to the first user Device sends the message of the first user login so that the state of the first user is changed to have logged in by the cloud logical server etc., herein Repeat no more.Also, cloud central server can also be analyzed to offer to the behavior of all users can improve user The service of experience, or distribute some special datas for user(Such as, the user profile of some cloud logical server), each cloud patrols Collect the information of server(Such as, the IP address of some cloud logical server)Deng.
For being already logged into the user of cloud logical server or having sent logging request but be also not logged into cloud logic For the user of server, cloud central server can distribute it for user according to the load of each cloud logical server and can log in Cloud logical server, play a part of load balancing.Specifically, for example, cloud central server can be in response to described in judgement Cloud logical server corresponding to first user loads superthreshold, distributes another cloud logical server again for first user, will First user signs in another cloud logical server, and by the corresponding relation of first user and cloud logical server more It is newly corresponding with another cloud logical server for first user.
User, which may occur, for consideration can not give the situation of user account for change, for example, the client device of user is lost, protect The user account existed in client device caching can not be given for change.Method provided in an embodiment of the present invention can also provide account and tie up Determine function.For example, cloud central server can be bound the account when receiving the account bind request that the first user sends Other accounts that the user account for first user for asking to carry indicates with the account bind request are bound, such as It can be bound with Netease pass account, QQ accounts, 91 accounts, Mac game center account etc., and then the first user Other described accounts can also be used to be logged in by cloud central server.
Sent out on startup in addition, cloud central server provided in an embodiment of the present invention can also receive each cloud logical server The cloud logical server information sent, wherein the cloud logical server information can include cloud logical server unique mark, The information such as the IP address of cloud logical server, port numbers, load capacity such as maximum number of connections, preserve the cloud logical server letter Breath.For example, for the ease of quickly reading cloud logical server information at any time, cloud logical server information can be stored in cloud The caching of central server.Cloud central server can also receive the holding that each cloud logical server is regularly sent in the process of running Link information, when distributing cloud logical server for user, distribute normal timing transmission for user and keep the cloud of link information to patrol Volume server, and to sign in other normal by the user that non-normal timing is sent on the cloud logical server for keeping link information Timing is sent on the cloud logical server for keeping link information.
It should be noted that the method applied to cloud central server described in the embodiment of the present invention, due to it comprises The communication between communication, cloud central server and cloud logical server, cloud logic clothes between cloud central server and client The communication being engaged between device and cloud logical server, therefore, it is necessary to establish the communication mechanism of client and cloud center server, cloud The communication mechanism between communication mechanism, cloud logical server between central server and cloud logical server.For example, for making It is for server end with C language and the client using LUA language, it is necessary to bilingual right using C and LUA in server end Socket network services encapsulate, to realize the support to server end and client communication protocol, it is also necessary in client Communication protocol is encapsulated in cocos2dx engines, to support the communication of client and server, ensures that cross-platform type can be stepped on Record identical cloud logical server.
One of exemplary means
After one of method for describing exemplary embodiment of the invention, next, with reference to figure 4 to example of the present invention One of device for cloud service of property embodiment describes in detail.
A kind of one of apparatus structure schematic diagram for cloud service provided in an embodiment of the present invention shown in Figure 4.The dress Cloud central server can be configured at by putting.As illustrated, for example, the embodiment can include:
Query unit 410, it may be configured to use second in response to receiving the first user of the first cloud logical server The access request at family, in the corresponding relation between the user and cloud logical server preserved, inquire the second user Corresponding second cloud logical server;
Transmitting element 420, it may be configured to send the second cloud logical server to the first cloud logical server Address, so that the first cloud logical server has access to the second cloud logical server and the second cloud logical server according to the address Carry out the data interaction between the first user and second user.
It can be seen that configuring device provided in an embodiment of the present invention, taken because cloud central server saves user with cloud logic The corresponding relation being engaged between device, therefore, query unit 410 can receive the first user of the first cloud logical server to the After the access request of two users, in the corresponding relation between the user and cloud logical server preserved, inquire described Second cloud logical server corresponding to second user, the second cloud is sent from transmitting element 420 to the first cloud logical server The address of logical server, because the first cloud logical server obtains the address of the second cloud logical server, therefore, Ke Yitong The communication mechanism crossed between logical server, access and the second cloud logical services are sent to the address of the second cloud logical server Device carries out the data interaction between the first user and second user, realizes the interactive mesh of the span cloud logical server of user 's.
In a kind of possible implementation of the present invention, user and cloud logical server that cloud central server is preserved it Between corresponding relation can be established when user first logs into cloud logical server.Specifically, for example, the embodiment of the present invention provides Device can also include logging in unit 430, may be configured to receive the logging request that the first user sends, judge described the Whether one user is to first log into, if it is, distributing cloud logical server for first user, first user is signed in The cloud logical server, and preserve the corresponding relation of first user and the cloud logical server, if not, according to being preserved First user and the corresponding relation of cloud logical server, inquire cloud logical server corresponding with first user, by described in User signs in corresponding cloud logical server.
It can be seen that because the login unit 430 preserves when user first logs into, user is corresponding with cloud logical server to close System, also, also user is non-first log into when, log the user into automatically corresponding to cloud logical server, without user oneself Cloud logical server is selected, saves user's operation.
Wherein, the login unit 430, specifically may be configured to be marked the user account that the logging request carries The first user known signs in cloud logical server;Wherein, the user account is setting for client where first user Standby unique mark, wherein the equipment unique mark is produced before the first user sends logging request to cloud central server first Give birth to and be stored in the caching of the client, when the first user Xiang Yun central servers send logging request, by described Client reads out the equipment unique mark from caching and carried in the logging request.In the implementation In, due to the equipment unique mark that the user account that logging request carries is client, inputted without user, save user and exist Operation during login.
In addition, cloud logical server can also be played by being configured with the fortune central server of device provided in an embodiment of the present invention Between load balancing effect, for example, wherein described login unit 430, can also be configured in response to judging described the Cloud logical server corresponding to one user loads superthreshold, is that the user distributes another cloud logical server again, by described the One user signs in another cloud logical server, and the corresponding relation of first user and cloud logical server is updated into this First user is corresponding with another cloud logical server.
In order to avoid user is due to the situation that can not be given user account for change and can not log in, dress provided in an embodiment of the present invention Binding unit 440 can also be included by putting, and may be configured to when receiving the account bind request that the first user sends, by described in The user account for first user that account bind request carries and other accounts of account bind request instruction are carried out Binding.So, user can use other bound accounts to be logged in.
In order that cloud central server can understand the dynamic of cloud logical server in time, to be user's reasonable distribution cloud Logical server, device provided in an embodiment of the present invention can also include:Information collection unit 450, it may be configured to receive The cloud logical server information that each cloud logical server is sent on startup, preserves the cloud logical server information.For example, it is It is easy to quickly read cloud logical server information at any time, cloud logical server information can be stored in cloud central server Caching.
The two of illustrative methods
Below, two of the method for cloud service according to exemplary embodiment of the invention is described referring again to Fig. 5.
It is the two of a kind of flow chart of method for cloud service provided in an embodiment of the present invention referring to Fig. 5.The embodiment The method of offer can apply to the first cloud logical server.For example, as illustrated, the embodiment can include:
S510, the interaction request in response to the first user of reception to second user, send to second to cloud central server The access request of user so that the cloud central server according to the access request in the user that is preserved and cloud logical server Between corresponding relation in, inquire the second cloud logical server corresponding to the second user, and return to the second cloud logic clothes The address of business device;
For example, after the first user signs in the first cloud logical server, the first cloud logical server can be in response to connecing Receive the first user to ask the plusing good friend of second user, invite and enter game request etc., in the present invention and be not limited.
S520, the address for receiving the second cloud logical server that cloud central server returns;
S530, the second cloud logical server is had access to according to the address, carrying out first with the second cloud logical server uses Data interaction between family and second user.
It can be seen that using method provided in an embodiment of the present invention, the first cloud logical server is receiving the first user to second After the interaction request of user, the access request to second user can be sent to cloud central server, so that genuinely convinced in the cloud Device be engaged in according in corresponding relation of the access request between the user and cloud logical server preserved, inquires described second Second cloud logical server corresponding to user, and the address of the second cloud logical server is returned to, the first cloud logical server receives Behind the address for the second cloud logical server that cloud central server returns, the communication mechanism between cloud logical server can be passed through Second cloud logical server is had access to according to the address, with the second cloud logical server carry out the first user and second user it Between data interaction, realize the purpose that user between across cloud logical server can be interactive.
Below to the present invention so that the first user is to ask for second user details to the interaction request of second user as an example Embodiment describes in detail.For example, the embodiment of the present invention can include:
Detail information request is asked for second user in response to receiving the first user, sent to cloud central server to the The access request of two users so that cloud central server according to the access request the user that is preserved and cloud logical server it Between corresponding relation in, inquire the second cloud logical server corresponding to the second user, and return to the second cloud logical services The address of device;
Receive the address for the second cloud logical server that cloud central server returns;
Access request to second user is sent to the second cloud logical server according to the address, takes the second cloud logic Business device returns to information disclosed in the pet name, user class and the default permission of second user according to the request;
Receive the pet name of second user of the second cloud logical server return, user class and default allow disclosure Information;
Information disclosed in the pet name, user class and the default permission of second user is returned to the first user.
Below to the present invention so that the first user is to the interaction request of second user plus second user is good friend's request as an example Embodiment describes in detail.For example, the embodiment of the present invention can include:
The plusing good friend of second user is asked in response to receiving the first user, sent to cloud central server to second user Access request so that pair of the cloud central server according to the access request between the user and cloud logical server preserved In should being related to, the second cloud logical server corresponding to the second user is inquired, and return to the ground of the second cloud logical server Location;
Receive the address for the second cloud logical server that cloud central server returns;
Access request to second user is sent to the second cloud logical server according to the address, takes the second cloud logic Business device adds the message that second user is good friend according to the request to second user the first user of transmission;
Second user is added to the buddy list of the first user, and can be made to the good friend of second user the first user of relieving Authority.
In addition, the cloud logical server described in the embodiment of the present invention can also encapsulate cloud logic in the communication protocol of encapsulation The resolution rules of workable execute instruction between server.For example, the cloud logical server end using LUA or other language When being encapsulated to socket network services, wherein the parsing for the execute instruction that can be used between cloud logical server can also be encapsulated Rule.Due to encapsulating the resolution rules of execute instruction in communication protocol, carrying out between the first user and second user In data exchange process, the first cloud logical server can be produced to second according to the first user with the needs that interact of second user The execute instruction of the data of user, so to the second cloud logical server send execute instruction after, the second cloud logical server can To parse execute instruction and perform the execute instruction.Specifically, for example, having access to according to address described in the embodiment of the present invention Two cloud logical servers, carrying out the data interaction between the first user and second user with the second cloud logical server can wrap Include:
The execute instruction of the data for second user is sent to the second cloud logical server according to the address, makes second Cloud logical server performs the execute instruction of the data for second user;Receive the execution knot of the second cloud logical server return Fruit;The implementing result is returned to the first user.
Below using the first user to the interaction request of second user to invite second user to enter same scene of game, first Data interaction between user and second user includes the execution that the first cloud logical server is sent to the data of second user and referred to The present invention is described in detail exemplified by order.Such as:
The request that first cloud logical server invites second user to enter same game in response to receiving the first user, Xiang Yun Central server sends the access request to second user, so that the cloud central server is being preserved according to the access request User and cloud logical server between corresponding relation in, inquire the second cloud logical services corresponding to the second user Device, and return to the address of the second cloud logical server;
First cloud logical server receives the address for the second cloud logical server that cloud central server returns;
First cloud logical server has access to the second cloud logical server according to the address, makes the second cloud logical server The message of same game is transmitted into second user, after second user enters same game, to the first cloud logical server Return to the message that second user enters same game;
First cloud logical server is after it is determined that the first user and second user enter same game, according to the first user Influence of the game logic of execution to the game data of second user, accordingly produce the execution to the game data of second user and refer to Order;
The execute instruction of the game data for second user is sent to the second cloud logical server according to the address, is made Second cloud logical server performs the execute instruction of the game data for second user;
Receive the game data of the renewal of the second user of the second cloud logical server return;
The game data of the renewal of the second user is returned to the first user.
It can be seen that can realize that the user across cloud logical server enters the effect of Same Scene game using the embodiment, Substantially increase Consumer's Experience.Certainly, the first cloud logical server produces the data for second user in the embodiment of the present invention Execute instruction, send to the second cloud logical server data for second user execute instruction application scenarios not office Being limited to the first user, in same scene of game, this is a kind of with second user, can specifically implement according to being actually needed, in the present invention In and be not limited.
In addition, in order that cloud logical server can be user service in time in new start, the first cloud logical server On startup, the relevant information of the first cloud logical server can also be sent to cloud central server, for example, can include The IP address of first cloud logical server, port numbers, load capacity etc., so that cloud central server preserves the first cloud logic The relevant information of server, rationally distribute cloud logical server for user.
The two of exemplary means
After describing the two of method of exemplary embodiment of the invention, next, with reference to figure 6 to example of the present invention The two of the device for cloud service of property embodiment describe in detail.
The two of a kind of apparatus structure schematic diagram for cloud service provided in an embodiment of the present invention shown in Figure 6.The dress The first cloud logical server can be configured at by putting.As illustrated, for example, the embodiment can include:
Request reception unit 610, it may be configured in response to receiving interaction request of first user to second user, to Cloud central server sends the access request to second user, so that the cloud central server is being protected according to the access request In corresponding relation between the user deposited and cloud logical server, the second cloud logical services corresponding to the second user are inquired Device, and return to the address of the second cloud logical server;
Address receiving unit 620, it may be configured to receive the second cloud logical server that cloud central server returns Address;
Interaction execution unit 630, it may be configured to have access to the second cloud logical server and second according to the address Cloud logical server carries out the data interaction between the first user and second user.
It can be seen that configuring device provided in an embodiment of the present invention, the first user couple can received by request reception unit 610 After the interaction request of second user, the access request to second user is sent to cloud central server, so that genuinely convinced in the cloud Device be engaged in according in corresponding relation of the access request between the user and cloud logical server preserved, inquires described second Second cloud logical server corresponding to user, and the address of the second cloud logical server is returned to, received by address receiving unit 620 Behind the address for the second cloud logical server that cloud central server returns, cloud logical server is passed through by interaction execution unit 630 Between communication mechanism the second cloud logical server is had access to according to the address, with the second cloud logical server carry out first use Data interaction between family and second user, realize the purpose that user between across cloud logical server can be interactive.
In a kind of possible implementation, what the request reception unit 610 received is that the first user asks for the second use The request of family details, correspondingly, the interactive execution unit 630, it may be configured to according to the address to the second cloud Logical server sends the access request to second user, the second cloud logical server is returned to second user according to the request The pet name, user class and information disclosed in default permission;Receive the close of the second user of the second cloud logical server return Claim, information disclosed in user class and default permission;To the first user return the pet name of second user, user class, with And information disclosed in default permission.
In alternatively possible implementation, what the request reception unit 610 received is that the first user is used second The plusing good friend request at family, correspondingly, the interactive execution unit 630, may be configured to be patrolled to the second cloud according to the address Volume server sends the access request to second user, the second cloud logical server is sent the to second user according to the request One user adds the message that second user is good friend;Second user is added to the buddy list of the first user, and to second user Authority workable for decontroling the good friend of the first user.
In another possible implementation, in the communication protocol that cloud logical server described in the embodiment of the present invention encapsulates The resolution rules for the execute instruction that can be used between cloud logical server are also encapsulated, correspondingly, the interactive execution unit 630, the execution that may be configured to be sent for the data of second user to the second cloud logical server according to the address refers to Order, the second cloud logical server is set to perform the execute instruction of the data for second user;The second cloud logical server is received to return The implementing result returned;The implementing result is returned to the first user.Wherein, the generating mode of the execute instruction is in the present invention And it is not limited.For example, so that the first user and second user are in same scene of game as an example, the execute instruction can be by First cloud logical server is after it is determined that the first user and second user enter same game, the trip that is performed according to the first user Influence of the logic of playing to the game data of second user, the corresponding execute instruction produced to the game data of second user.It can be seen that The implementation of the present invention can realize that the user across cloud logical server enters the effect of Same Scene game, greatly improve Consumer's Experience.
In addition, in order that cloud logical server can be user service in time in new start, the embodiment of the present invention provides Device can also include start unit 640, may be configured on startup, first cloud sent to cloud central server The relevant information of logical server so that cloud central server the relevant information of the first cloud logical server is stored in it is slow Deposit.
The three of illustrative methods
Below, three of the method for cloud service according to exemplary embodiment of the invention is described referring again to Fig. 7.
It is the three of a kind of flow chart of method for cloud service provided in an embodiment of the present invention referring to Fig. 7.The embodiment The method of offer can apply to client.For example, as illustrated, the embodiment can include:
S710, the interaction request in response to the first user to second user, the first cloud logic signed in to the first user Server sends the interaction request, so that the first cloud logical server is sent to second user to cloud central server Access request so that the access request that cloud central server is sent according to the first cloud logical server, the user preserved with The second cloud logical server corresponding to the second user is inquired in corresponding relation between cloud logical server, to the first cloud Logical server returns to the address of the second cloud logical server;
For example, the first user can input the user account of second user in client end interface, or, select in client The second user returned by server end in user list of display, client respective response is in the first user to second user Interaction request.
Wherein, the interaction request for example can be to ask for second user details plus second user for good friend, invitation to add Enter the interaction requests such as game.
S720, the first cloud logical server of reception have access to the second cloud logical server and the second cloud according to the address Logical server carries out the feedback of the data interaction between the first user and second user.
For example, in the interaction request for when asking for second user details, the feedback can include second user The pet name, information disclosed in user class and default permission etc., the interaction request for plus second user be good friend When, the feedback can include the buddy list of renewal, described anti-when the interaction request is invites second user addition game Feedback can include the execute instruction of the game data as caused by the game logic of the first user to second user in the second logic The game data of the renewal for the second user that server feeds back after performing.
It can be seen that using this embodiment of the invention, interaction request that client can be in response to the first user to second user, The the first cloud logical server signed in to the first user sends the interaction request, due to the first cloud logical server accordingly to Cloud central server sends the access request to second user so that cloud central server is sent according to the first cloud logical server Access request, cloud central server inquires described in the corresponding relation between the user and cloud logical server preserved Second cloud logical server corresponding to second user, cloud central server return to the second cloud logic clothes to the first cloud logical server The address of business device, therefore, client can receive the first cloud logical server and have access to the second cloud logic according to the address Server and the second cloud logical server carry out the feedback of the data interaction between the first user and second user, realize across cloud User between logical server can be interactive purpose.
In a kind of possible implementation of the present invention, the first user can be sent by client to cloud central server Logging request, allow the corresponding relation between user that cloud central server is preserved and cloud logical server in user first Established when logging in cloud logical server.Specifically, for example, the embodiment of the present invention can also include the flow logged in as follows:
In response to the register of the first user, logging request is sent to cloud central server, so that genuinely convinced in the cloud Business device judges whether the first user is to first log into, if it is, distributing cloud logical server for the first user, the first user is stepped on The cloud logical server is recorded, and preserves the corresponding relation of first user and the cloud logical server, if not, according to being protected The first user for depositing and the corresponding relation of cloud logical server, inquire cloud logical server corresponding to first user, by the One user signs in corresponding cloud logical server.
It can be seen that using the login process, cloud central server can be made to preserve user when user first logs into and patrolled with cloud The corresponding relation of volume server, also, due to user is non-first log into when, cloud central server logs the user into pair automatically The cloud logical server answered, therefore, user save user's operation without selecting cloud logical server in client.
Wherein, before logging request is sent to cloud central server, it can also read out and set from the caching of client Standby unique mark, the equipment unique mark produce before the first user first logs into and are stored in the caching of client;Will The equipment unique mark is carried in logging request as user account.In the implementation, the use of logging request carrying Family account is the equipment unique mark of client, and the equipment of client has been assigned the unique mark when dispatching from the factory simultaneously in itself Together it is stored in other hardware informations on the hard disk of equipment, therefore, sending login to cloud central server first in user please Before asking, the equipment unique mark can be read out by engine cocos2dx open interface, is needed in conjunction with specific implementation Other marks are added, automatically generate the equipment unique mark required by the embodiment of the present invention, i.e. user account, it is defeated without user Enter, save operation of the user when logging in.
User, which may occur, for consideration can not give the situation of user account for change, for example, the client device of user is lost, protect The user account existed in client device caching can not be given for change.Therefore, method provided in an embodiment of the present invention can also provide Account binding function.For example, can be in response to the account of the first user using the client of method provided in an embodiment of the present invention Bindings, obtain the user account of first user and need other bound accounts;By the use of first user Family account is sent to institute with needing other bound accounts to carry in account bind request, and by the account bind request State the first cloud logical server.Wherein, other described accounts for example can be that Hi Fly row demonstrate,proves account, QQ accounts, 91 accounts, apple Fruit game center account etc., in the present invention and is not limited.First user can use other described accounts to be logged in Operation.
Below to the present invention so that the first user is to ask for second user details to the interaction request of second user as an example Embodiment describes in detail.For example, the embodiment of the present invention can include:
Detail information request is asked for second user in response to the first user, patrolled to the first cloud that the first user signs in Collect server and send the interaction request, so that the first cloud logical server is sent to second user to cloud central server Access request so that the access request that cloud central server is sent according to the first cloud logical server, in the user preserved The corresponding second cloud logical server of the second user is inquired in corresponding relation between cloud logical server, to first Cloud logical server returns to the address of the second cloud logical server;
Receive the pet name of second user of the first cloud logical server feedback, user class and default allow disclosure Information, wherein, the pet name of the second user, user class and information disclosed in default permission are the first cloud logic Server is sent to the access request of second user afterwards from the second cloud logic according to the address to the second cloud logical server The data for the second user that server receives.
Below to the present invention so that the first user is to the interaction request of second user plus second user is good friend's request as an example Embodiment describes in detail.For example, the embodiment of the present invention can include:
The plusing good friend of second user is asked in response to the first user, the first cloud logical services signed in to the first user Device sends the plusing good friend to second user and asked, so that the first cloud logical server is sent pair to cloud central server The access request of second user, so that the access request that cloud central server is sent according to the first cloud logical server, is being protected The corresponding second cloud logical services of the second user are inquired in corresponding relation between the user deposited and cloud logical server Device, the address of the second cloud logical server is returned to the first cloud logical server;
The buddy list of the renewal of the first cloud logical server feedback is received, wherein, the buddy list of the renewal is the One cloud logical server according to the address to the second cloud logical server send to after the access request of second user by the The buddy list for the renewal that the buddy list that two users add the first user accordingly returns.
In addition, the embodiment of the present invention can also encapsulate cloud logical services in the communication protocol that cloud logical server end seal fills The resolution rules of workable execute instruction between device.Due to encapsulating the resolution rules of execute instruction in communication protocol, entering In data exchange process between the user of row first and second user, the first cloud logical server can be according to the first user and the The interaction of two users needs to produce the execute instruction to the data of second user, and then sends and perform to the second cloud logical server Instruction, the second cloud logical server can parse execute instruction and perform the execute instruction, and client where the first user is then The implementing result of the first cloud logical server return can be received.Specifically, for example, the first cloud logical server of the reception Second cloud logical server is had access to according to the address, the first user and second user are carried out with the second cloud logical server it Between the feedback of data interaction can include:
The implementing result of the first cloud logical server feedback is received, wherein, the implementing result is the first cloud logical services After device sends the execute instruction for the data of second user according to the address to the second cloud logical server, by the second cloud Logical server performs implementing result caused by the execute instruction for the data of second user.
Below so that the first user enters same scene of game to the interaction request of second user for invitation second user as an example The embodiment of the present invention is described in detail.Specifically, such as:
Client end response invites second user to enter the request of same game in the first user, signs in to the first user First cloud logical server sends the request for inviting second user to enter same game, so that the first cloud logical services Device sends the access request to second user to cloud central server, so that cloud central server is according to the first cloud logical server The access request of transmission, the second user is inquired in the corresponding relation between the user and cloud logical server preserved Corresponding second cloud logical server, the address of the second cloud logical server is returned to the first cloud logical server;
The game data of the renewal of the second user of the first cloud logical server feedback is received, wherein, the second user The game data of renewal be the first cloud logical server after it is determined that the first user and second user enter same game, root According to influence of the game logic that the first user performs to the game data of second user, the game number to second user is accordingly produced According to execute instruction, the execution sent according to the address to the second cloud logical server for the game data of second user refers to Order, after the second cloud logical server is performed the execute instruction for the game data of second user, the second user of acquisition The game data of renewal.
It can be seen that can realize that the user across cloud logical server enters the effect of Same Scene game using the embodiment, Substantially increase Consumer's Experience.
The three of exemplary means
After describing the three of method of exemplary embodiment of the invention, next, with reference to figure 8 to example of the present invention The three of the device for cloud service of property embodiment describe in detail.
The three of a kind of apparatus structure schematic diagram for cloud service provided in an embodiment of the present invention shown in Figure 8.The dress Client can be configured at by putting.As illustrated, for example, the embodiment can include:
Interaction response unit 810, the interaction request to second user in response to the first user is may be configured to, to first The first cloud logical server that user signs in sends the interaction request, so that the first cloud logical server is to cloud center Server sends the access request to second user, so that the access that cloud central server is sent according to the first cloud logical server Ask, the second user corresponding second is inquired in the corresponding relation between the user preserved and cloud logical server Cloud logical server, the address of the second cloud logical server is returned to the first cloud logical server;
Feedback reception unit 820, may be configured to receive the first cloud logical server and has access to the according to the address Two cloud logical servers and the second cloud logical server carry out the feedback of the data interaction between the first user and second user.
It can be seen that configure device provided by the invention, due to interaction response unit 810 can in response to the first user to The interaction request of two users, the first cloud logical server signed in to the first user sends the interaction request, so that described First cloud logical server sends the access request to second user to cloud central server, so that cloud center service is according to user With the corresponding relation of cloud logical server the corresponding second cloud logical server of second user is returned to the first cloud logical server Address, therefore, feedback reception unit 820 can receive the first cloud logical server and have access to the second cloud according to the address Logical server and the second cloud logical server carry out the feedback of the data interaction between the first user and second user, realize User between across cloud logical server can be interactive purpose.
In a kind of possible implementation of the present invention, the first user can be sent by client to cloud central server Logging request, allow the corresponding relation between user that cloud central server is preserved and cloud logical server in user first Established when logging in cloud logical server.Specifically, for example, device provided in an embodiment of the present invention can also include login response list Member 830, may be configured to the register in response to the first user, logging request be sent to cloud central server, so that institute State cloud central server and judge whether the first user is to first log into, if it is, cloud logical server is distributed for the first user, will First user signs in the cloud logical server, and preserves the corresponding relation of first user and the cloud logical server, if It is no, according to the first user preserved and the corresponding relation of cloud logical server, inquire cloud logic corresponding to first user Server, the first user is signed in into corresponding cloud logical server.
It can be seen that the login response unit 830 can make cloud central server preserve user and cloud when user first logs into The corresponding relation of logical server, also, due to user is non-first log into when, cloud central server logs the user into automatically Corresponding cloud logical server, therefore, user save user's operation without selecting cloud logical server in client.
Wherein, the login response unit 830, can also be configured to read out equipment from the caching of client unique Mark, the equipment unique mark produce before the first user first logs into and are stored in the caching of client, set described Standby unique mark is carried in logging request as user account.In the implementation, the user account of logging request carrying For the equipment unique mark of client, inputted without user, save operation of the user when logging in.
User, which may occur, for consideration can not give the situation of user account for change, and device provided in an embodiment of the present invention can be with Including binding response unit 840, the account bindings in response to the first user are may be configured to, obtain first user User account and need other bound accounts;By the user account of first user with needing other bound accounts Number carrying is sent to the first cloud logical server in account bind request, and by the account bind request.
Below to the present invention so that the first user is to ask for second user details to the interaction request of second user as an example Embodiment describes in detail.For example, the feedback reception unit 820 of the embodiment of the present invention, may be configured to reception Information disclosed in the pet name of second user, user class and the default permission that one cloud logical server returns, wherein, institute State information disclosed in the pet name, user class and the default permission of second user for the first cloud logical server according to Address to the second cloud logical server send to received after the access request of second user from the second cloud logical server the The data of two users.
Below to the present invention so that the first user is to the interaction request of second user plus second user is good friend's request as an example Embodiment describes in detail.For example, the feedback reception unit 820 of the embodiment of the present invention, may be configured to reception The buddy list of the renewal of one cloud logical server feedback, wherein, the buddy list of the renewal is the first cloud logical server Second user is added first after sending the access request to second user to the second cloud logical server according to the address The buddy list for the renewal that the buddy list of user accordingly returns.
In addition, the embodiment of the present invention can also encapsulate cloud logical services in the communication protocol that cloud logical server end seal fills The resolution rules of workable execute instruction between device.Due to encapsulating the resolution rules of execute instruction in communication protocol, entering In data exchange process between the user of row first and second user, the first cloud logical server can be according to the first user and the The interaction of two users needs to produce the execute instruction to the data of second user, and then sends and perform to the second cloud logical server Instruction, the second cloud logical server can parse execute instruction and perform the execute instruction, and client where the first user is then The implementing result of the first cloud logical server return can be received.Specifically, for example, the feedback described in the embodiment of the present invention connects Unit 820 is received, may be configured to receive the implementing result of the first cloud logical server feedback, wherein, the implementing result is The execution that first cloud logical server is sent for the data of second user according to the address to the second cloud logical server refers to After order, for performing knot caused by the execute instruction of the data of second user as described in performing the second cloud logical server Fruit.
Example system
Describe exemplary embodiment of the invention the method for cloud service applied to cloud central server it First, two and exemplary reality of the method for cloud service applied to the first cloud logical server of illustrative embodiments After apply the method for cloud service applied to client of mode three, next, with reference to figure 2 to the exemplary implementation of the present invention The system for cloud service of mode is introduced.
A kind of system structure diagram for cloud service provided in an embodiment of the present invention shown in Figure 2.As illustrated, For example, the embodiment can include:
Using the cloud central server 201 of one of the method for cloud service as described in above-mentioned embodiment, using as above State the cloud logical server 202,203 of two of the method for cloud service described in embodiment, and application such as above-mentioned embodiment Three client 204 of the described method for cloud service.
It should be noted that system provided in an embodiment of the present invention can apply above-mentioned implementation including two or more Two cloud logical server of the method for cloud service of example, wherein, each cloud logical server encapsulates cloud logic Communication protocol between server, to support the communication between any two cloud logical server.
It can be seen that using system provided in an embodiment of the present invention, the first user can be made to be patrolled by client 204 to the first cloud Volume server 202 sends the interaction request to second user, and the first cloud logical server 202 can be according to the interaction request to cloud Central server 201 sends the access request to second user, cloud central server 201 can according to the access request, according to The user preserved and the corresponding relation of cloud logical server, inquire the second cloud logical server 203 corresponding to second user, And the address of the second cloud logical server 203 is returned to the first cloud logical server 202, encapsulate between cloud logical server First cloud logical server 202 of communication protocol can send access, with encapsulating to the address of the second cloud logical server 203 Second cloud logical server 203 of the communication protocol between cloud logical server carries out the number between the first user and second user According to interaction, the interactive purpose of the span cloud logical server of user is realized.
It should be noted that although some units or son list of the device for cloud service are referred in above-detailed Member, but this division is only not enforceable.In fact, according to the embodiment of the present invention, above-described two or More multiunit feature and function can embody in a unit.Conversely, the feature and work(of an above-described unit It can be further divided into being embodied by multiple units.
In addition, although the operation of the inventive method is described with particular order in the accompanying drawings, still, this do not require that or Hint must perform these operations according to the particular order, or the operation having to carry out shown in whole could realize it is desired As a result.On the contrary, the step of describing in flow chart can change execution sequence.Additionally or alternatively, it is convenient to omit some steps, Multiple steps are merged into a step to perform, and/or a step is decomposed into execution of multiple steps.
Verb " comprising ", "comprising" and its paradigmatic use referred in application documents is not excluded for except application documents Described in those elements or the element outside step or the presence of step.Article "a" or "an" before element is not excluded for more The presence of individual this element.
Although describe spirit and principles of the present invention by reference to some embodiments, it should be appreciated that, this Invention is not limited to disclosed embodiment, and the division to each side does not mean that the feature in these aspects can not yet Combination is to be benefited, and this division is merely to the convenience of statement.It is contemplated that cover appended claims spirit and In the range of included various modifications and equivalent arrangements.Scope of the following claims meets broadest explanation, so that comprising All such modifications and equivalent structure and function.

Claims (29)

  1. A kind of 1. method for cloud service, applied to cloud central server, wherein the cloud central server saves user With the corresponding relation between cloud logical server, the corresponding relation is:The cloud logical server that user account logs in it Corresponding relation between address;Methods described includes:
    Receive the logging request of the first user transmission;
    Judge whether first user is to first log into, if it is, the first cloud logical server is distributed for first user, will First user signs in the first cloud logical server, and preserves first user and the first cloud logical server Corresponding relation;If not, according to the first user for being preserved and the corresponding relation of cloud logical server, inquire with this first First cloud logical server corresponding to user, first user is signed in into corresponding first cloud logical server;
    In response to receiving access request of the first cloud logical server to second user, in the user preserved and cloud logic In corresponding relation between server, the second cloud logical server corresponding to the second user is inquired;The access request For:After the interaction request for second user that client where the first cloud logical server receives the first user is sent, The access request sent to the cloud central server;The second cloud logical server is sent to the first cloud logical server Address, so that the first cloud logical server has access to the second cloud logical server and the second cloud logical server according to the address Carry out the data interaction between the first user and second user.
  2. 2. the method according to claim 11, in addition to:In response to judging cloud logical server corresponding to first user Superthreshold is loaded, another cloud logical server is distributed for first user again, first user is signed in into another cloud Logical server, and the corresponding relation of first user and cloud logical server are updated to first user and patrolled with another cloud It is corresponding to collect server.
  3. 3. according to the method for claim 1, wherein described sign in the first cloud logical services utensil by the first user Body is embodied as:The first user that the user account that the logging request carries is identified signs in the first cloud logical services Device;
    Wherein, the user account is the equipment unique mark of client where first user, wherein the equipment is unique Mark produces before the first user sends logging request to cloud central server first and is stored in the caching of the client, When the first user Xiang Yun central servers send logging request, the equipment is read out from caching by the client Unique mark is simultaneously carried in the logging request.
  4. 4. the method according to claim 11, in addition to:
    When receiving the account bind request that the first user sends, by first user's of account bind request carrying Other accounts that user account indicates with the account bind request are bound.
  5. 5. the method according to claim 11, in addition to:
    Receive the cloud logical server information that each cloud logical server is sent on startup;
    Preserve the cloud logical server information.
  6. 6. a kind of device for cloud service, cloud central server is configured at, including:
    Unit is logged in, is configured to receive the logging request that the first user sends, judges whether first user is to step on first Record, if it is, distributing the first cloud logical server for first user, first user is signed in into the first cloud logic clothes Business device, and preserve the corresponding relation of first user and the first cloud logical server;If not, used according to first preserved The corresponding relation of family and cloud logical server, inquires the first cloud logical server corresponding with first user, by described the One user signs in corresponding first cloud logical server;
    Query unit, it is configured in response to receiving access request of the first cloud logical server to second user, in institute In corresponding relation between the user of preservation and cloud logical server, inquire the second cloud logic corresponding to the second user and take Business device;The corresponding relation is:Corresponding relation between the address of user account and its cloud logical server logged in;The visit Ask that request is:The interaction for second user that client where the first cloud logical server receives the first user is sent please After asking, to the access request of cloud central server transmission;
    Transmitting element, it is configured to send the address of the second cloud logical server to the first cloud logical server, so that the One cloud logical server has access to the second cloud logical server according to the address, carries out the first user with the second cloud logical server Data interaction between second user.
  7. 7. device according to claim 6, wherein the login unit, is configured in response to judging first user Corresponding cloud logical server loads superthreshold, another cloud logical server is distributed again for the user, by first user Sign in another cloud logical server, and the corresponding relation of first user and cloud logical server are updated to first use Family is corresponding with another cloud logical server.
  8. 8. device according to claim 6, wherein the login unit, is configured to the use for carrying the logging request The first user that family account is identified signs in the first cloud logical server;Wherein, the user account is described first The equipment unique mark of client where user, wherein the equipment unique mark in the first user first to cloud central server Produce before sending logging request and be stored in the caching of the client, sent in the first user Xiang Yun central servers During logging request, the equipment unique mark is read out from caching by the client and is carried in the logging request In.
  9. 9. device according to claim 6, in addition to:
    Binding unit, it is configured to, when receiving the account bind request that the first user sends, the account bind request be taken Other accounts that the user account of first user of band indicates with the account bind request are bound.
  10. 10. device according to claim 6, in addition to:
    Information collection unit, it is configured to receive the cloud logical server information that each cloud logical server is sent on startup, will The cloud logical server information is stored in caching.
  11. 11. a kind of method for cloud service, applied to the first cloud logical server, including:
    After the first user signs in the first cloud logical server, the first cloud logical server is in response to receiving described first User sends the access request to second user, so that in the cloud to the interaction request of second user to cloud central server Central server is according in corresponding relation of the access request between the user and cloud logical server preserved, inquiring Second cloud logical server corresponding to second user, and return to the address of the second cloud logical server;The corresponding relation is:With Corresponding relation between the address of family account and its cloud logical server logged in;
    Receive the address for the second cloud logical server that cloud central server returns;
    Second cloud logical server is had access to according to the address, carry out the first user with the second cloud logical server uses with second Data interaction between family.
  12. 12. according to the method for claim 11, wherein the base area location has access to the second cloud logical server, with second The data interaction that cloud logical server is carried out between the first user and second user includes:
    Access request to second user is sent to the second cloud logical server according to the address, makes the second cloud logical server The information according to disclosed in the request returns to the pet name, user class and the default permission of second user;
    Receive the disclosed letter of the pet name, user class and default permission of the second user of the second cloud logical server return Breath;
    Information disclosed in the pet name, user class and the default permission of second user is returned to the first user.
  13. 13. according to the method for claim 11, wherein the base area location has access to the second cloud logical server, with second The data interaction that cloud logical server is carried out between the first user and second user includes:
    The execute instruction of the data for second user is sent to the second cloud logical server according to the address, patrols the second cloud Collect the execute instruction that server performs the data for second user;
    Receive the implementing result of the second cloud logical server return;
    The implementing result is returned to the first user.
  14. 14. the method according to claim 11, in addition to:
    On startup, the relevant information of the first cloud logical server is sent to cloud central server, so that cloud center service Device preserves the relevant information of the first cloud logical server.
  15. 15. a kind of device for cloud service, the first cloud logical server is configured at, including:
    Request reception unit, it is configured to after the first user signs in the first cloud logical server, in response to receiving described the One user sends the access request to second user, so that the cloud to the interaction request of second user to cloud central server Central server inquires institute according in corresponding relation of the access request between the user and cloud logical server preserved The second cloud logical server corresponding to second user is stated, and returns to the address of the second cloud logical server;The corresponding relation is: Corresponding relation between the address of user account and its cloud logical server logged in;
    Address receiving unit, it is configured to receive the address for the second cloud logical server that cloud central server returns;
    Interaction execution unit, it is configured to have access to the second cloud logical server and the second cloud logical services according to the address Device carries out the data interaction between the first user and second user.
  16. 16. device according to claim 15, wherein the interactive execution unit, it is configured to according to the address to Two cloud logical servers send the access request to second user, the second cloud logical server is returned to second according to the request and use The pet name at family, user class and information disclosed in default permission;Receive the second user of the second cloud logical server return The pet name, information disclosed in user class and default permission;The pet name, the user class of second user are returned to the first user Not and information disclosed in default permission.
  17. 17. device according to claim 15, wherein the interactive execution unit, it is configured to according to the address to Two cloud logical servers send the execute instruction of the data for second user, perform the second cloud logical server and are directed to second The execute instruction of the data of user;Receive the implementing result of the second cloud logical server return;Held to described in the first user return Row result.
  18. 18. device according to claim 15, in addition to:
    Start unit, is configured on startup, and sending the related of the first cloud logical server to cloud central server believes Breath, so that the relevant information of the first cloud logical server is stored in caching by cloud central server.
  19. 19. a kind of method for cloud service, applied to client, including:
    In response to the register of the first user, logging request is sent to cloud central server, so that the cloud central server Judge whether the first user is to first log into, if it is, distributing the first cloud logical server for the first user, the first user is stepped on The first cloud logical server is recorded, and preserves the corresponding relation of first user and the first cloud logical server, if not, According to the first user preserved and the corresponding relation of cloud logical server, the first cloud logic corresponding to first user is inquired Server, the first user is signed in into corresponding first cloud logical server;
    Interaction request in response to the first user to second user, the first cloud logical server signed in to the first user are sent The interaction request, so that the first cloud logical server sends the access request to second user to cloud central server, So that the access request that cloud central server is sent according to the first cloud logical server, in the user preserved and cloud logical services The second cloud logical server corresponding to the second user is inquired in corresponding relation between device, to the first cloud logical server Return to the address of the second cloud logical server;The corresponding relation is:The ground for the cloud logical server that user account logs in it Corresponding relation between location;
    Receive the first cloud logical server and the second cloud logical server and the second cloud logical server are had access to according to the address Carry out the feedback of the data interaction between the first user and second user.
  20. 20. according to the method for claim 19, wherein before logging request is sent to cloud central server, in addition to:
    Equipment unique mark is read out from the caching of client, the equipment unique mark is before the first user first logs into Produce and be stored in the caching of client;
    Carried the equipment unique mark as user account in logging request.
  21. 21. the method according to claim 11, in addition to:
    In response to the account bindings of the first user, the user account of first user and needing is bound other are obtained Account;
    By the user account of first user with needing other bound accounts to carry in account bind request, and by institute State account bind request and be sent to the first cloud logical server.
  22. 22. according to the method for claim 19, wherein the first cloud logical server of the reception accesses according to the address The anti-of the data interaction between the first user and second user is carried out to the second cloud logical server and the second cloud logical server Feedback includes:
    Receive the disclosed letter of the pet name, user class and default permission of the second user of the first cloud logical server feedback Breath, wherein, the pet name of the second user, user class and information disclosed in default permission are the first cloud logical services Device is sent to the access request of second user afterwards from the second cloud logical services according to the address to the second cloud logical server The data for the second user that device receives.
  23. 23. according to the method for claim 19, wherein the first cloud logical server of the reception accesses according to the address The anti-of the data interaction between the first user and second user is carried out to the second cloud logical server and the second cloud logical server Feedback includes:
    The implementing result of the first cloud logical server feedback is received, wherein, the implementing result is the first cloud logical server root After sending the execute instruction for the data of second user to the second cloud logical server according to the address, by the second cloud logic Server performs implementing result caused by the execute instruction for the data of second user.
  24. 24. a kind of device for cloud service, applied to client, including:
    Login response unit, the register in response to the first user is configured to, logging request is sent to cloud central server, So that the cloud central server judges whether the first user is to first log into, patrolled if it is, distributing the first cloud for the first user Server is collected, the first user is signed in into the first cloud logical server, and preserves first user and is taken with the first cloud logic Be engaged in the corresponding relation of device, if not, according to the first user for being preserved and the corresponding relation of cloud logical server, inquire this First cloud logical server corresponding to one user, the first user is signed in into corresponding first cloud logical server;
    Interaction response unit, the interaction request to second user in response to the first user is configured to, is signed in to the first user The first cloud logical server send the interaction request so that the first cloud logical server is sent to cloud central server To the access request of second user, so that the access request that cloud central server is sent according to the first cloud logical server, in institute The second user corresponding second cloud logic clothes are inquired in corresponding relation between the user of preservation and cloud logical server Business device, the address of the second cloud logical server is returned to the first cloud logical server;The corresponding relation is:User account and its Corresponding relation between the address of the cloud logical server of login;
    Feedback reception unit, it is configured to the first cloud logical server of reception and the second cloud logical services is had access to according to the address Device and the second cloud logical server carry out the feedback of the data interaction between the first user and second user.
  25. 25. device according to claim 24, wherein the login response unit, is configured to from the caching of client Equipment unique mark is read out, the equipment unique mark produces before the first user first logs into and is stored in client Caching, carried the equipment unique mark as user account in logging request.
  26. 26. device according to claim 24, in addition to:
    Binding response unit, the account bindings in response to the first user are configured to, obtain the user of first user Other accounts that account and needs are bound;By the user account of first user with needing other bound accounts to carry The first cloud logical server is sent in account bind request, and by the account bind request.
  27. 27. device according to claim 24, wherein the feedback reception unit, is configured to receive the first cloud logic clothes It is engaged in information disclosed in the pet name of second user, user class and the default permission that device returns, wherein, the second user The pet name, information disclosed in user class and default permission be the first cloud logical server according to the address to second Cloud logical server sends the number of the second user received after the access request to second user from the second cloud logical server According to.
  28. 28. device according to claim 24, wherein the feedback reception unit, is configured to receive the first cloud logic clothes The implementing result for device feedback of being engaged in, wherein, the implementing result is that the first cloud logical server is patrolled according to the address to the second cloud After volume server sends the execute instruction for the data of second user, performed by the second cloud logical server described for the Implementing result caused by the execute instruction of the data of two users.
  29. 29. a kind of system for cloud service, including:
    Using the cloud central server of the method as described in claim any one of 1-5, using such as any one of claim 11-14 The cloud logical server of described method, using the client of the method as described in claim any one of 19-23.
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 CN103475743A (en) 2013-12-25
CN103475743B true 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)

Families Citing this family (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
CN107756395B (en) * 2016-08-19 2020-12-01 腾讯科技(深圳)有限公司 Control system, method and device of intelligent robot
CN106302827B (en) * 2016-10-25 2019-09-17 聚好看科技股份有限公司 Communication means, equipment and distributed system based on distributed system
CN109587191B (en) * 2017-09-29 2022-04-05 杭州海康威视系统技术有限公司 Cross-cloud-domain data transmission method, interconnected cloud center, cloud domain and interconnected cloud system
CN108961004B (en) * 2018-07-06 2021-08-06 北京金山云网络技术有限公司 Cloud service order processing method, device and system, electronic equipment and medium
CN111083179B (en) * 2018-10-19 2023-02-17 北京奇虎科技有限公司 Internet of things cloud platform, and equipment interaction method and device based on same
CN111124459B (en) * 2018-10-31 2023-04-07 阿里巴巴集团控股有限公司 Method and device for updating service logic of FPGA cloud server
CN111617487B (en) * 2020-05-22 2021-03-16 腾讯科技(深圳)有限公司 Account access method and device in game application, storage medium and electronic equipment

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
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

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101247384B (en) * 2007-02-15 2012-01-11 株式会社日立制作所 Content management system and method
CN103327100B (en) * 2013-06-21 2017-04-19 华为技术有限公司 Resource processing method and site server

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
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

Also Published As

Publication number Publication date
CN103475743A (en) 2013-12-25

Similar Documents

Publication Publication Date Title
CN103475743B (en) A kind of method, apparatus and system for cloud service
CN104137520B (en) A kind of information push method and device
CN104380278B (en) Equipment, system and method for client-side management session continuity
CN104348777B (en) The access control method and system of a kind of mobile terminal to third-party server
CN109067728A (en) Access control method, device, server and the storage medium of application programming interfaces
CN104090825B (en) Dynamic migration computer network
CN105518611B (en) A kind of remote direct data access method, equipment and system
CN108924125A (en) Control method, device, computer equipment and the storage medium of interface calling permission
CN104468487B (en) Communication authentication method and device, terminal device
CN108009028A (en) Message treatment method, device, equipment and computer-readable recording medium
CN104158818B (en) A kind of single-point logging method and system
CN110266480A (en) Data transmission method, device and storage medium
CN105959177A (en) Game server stress test script generation method and device
CN110247784A (en) The method and apparatus for determining network topology structure
CN106330816A (en) Method and system for logging in cloud desktop
CN106850789A (en) Game player's dynamic allocation system and method based on server load detection
CN109544243A (en) A kind of processing method and system of lottery information
CN103634159B (en) A kind of traffic playback method and device based on simulation login
KR20120034570A (en) Online game system and method of data resource handling for an online game
CN110198530A (en) Exempt from scheduling processing method, device, equipment and the storage medium of traffic service
CN108141409A (en) Communication system, address notice device, communication control unit, terminal, communication means and program
CN107959891A (en) A kind of live broadcast system
CN109905474A (en) Data safety sharing method and device based on block chain
CN109246138A (en) Resource access method and device, VPN terminal and medium based on Virtual Private Network
CN109598550A (en) A kind of Internet advertising put-on method and device

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