CN110401706A - Service request processing method, device, storage medium and terminal - Google Patents

Service request processing method, device, storage medium and terminal Download PDF

Info

Publication number
CN110401706A
CN110401706A CN201910656406.8A CN201910656406A CN110401706A CN 110401706 A CN110401706 A CN 110401706A CN 201910656406 A CN201910656406 A CN 201910656406A CN 110401706 A CN110401706 A CN 110401706A
Authority
CN
China
Prior art keywords
cloud
cloud server
service provider
address
service request
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201910656406.8A
Other languages
Chinese (zh)
Inventor
郝海民
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Dami Technology Co Ltd
Original Assignee
Beijing Dami Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Dami Technology Co Ltd filed Critical Beijing Dami Technology Co Ltd
Priority to CN201910656406.8A priority Critical patent/CN110401706A/en
Publication of CN110401706A publication Critical patent/CN110401706A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/14Session management
    • H04L67/141Setup of application sessions
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/60Scheduling or organising the servicing of application requests, e.g. requests for application data transmissions using the analysis and optimisation of the required network resources
    • H04L67/63Routing a service request depending on the request content or context

Abstract

This application discloses a kind of service request processing methods, which is characterized in that the described method includes: receiving the service request from cloud terminal device;Wherein, the service request carries cloud service provider mark;Target Cloud Server is determined in multiple Cloud Servers according to cloud service provider mark;The service request is sent to the target Cloud Server;Wherein, the service request is used for the data channel established between the terminal device and the target Cloud Server, and the data channel is used for transmission business datum.Delay when due to carrying out data transmission between the cloud terminal device and the Cloud Server of identical cloud service provider of identical cloud service provider is relatively small, therefore above-mentioned service request processing method can reduce the waiting time when data between cloud terminal device and Cloud Server are transmitted in terms of existing technologies.

Description

Service request processing method, device, storage medium and terminal
Technical field
This application involves network technique field more particularly to service request processing method, device, storage medium and terminals.
Background technique
In existing transaction processing system, when user sends service request to Cloud Server using cloud host, if When being configured with multiple cloud terminal servers in operation system, service request usually is sent to each server, and by each clothes Business device judges itself whether belong to the corresponding purpose database of the service request.If it is, establishing communication link to operation system It connects and transmits corresponding data.There is no the time delay considered in data transfer in above-mentioned communications connection procedure, lead to user The time for obtaining business datum is longer.
Apply for content
The application provides a kind of service request processing method, device, storage medium and terminal, can be used for solving the relevant technologies In in transaction processing system, processing side's node obtains business datum time longer technical problem from database.
The application first aspect provides a kind of service request processing method, which comprises
Receive the service request from cloud terminal device;Wherein, the service request carries cloud service provider mark;
Target Cloud Server is determined in multiple Cloud Servers according to cloud service provider mark;
The service request is sent to the target Cloud Server;Wherein, the service request is for establishing the terminal Data channel between equipment and the target Cloud Server, and pass through the data channel transmission services data.
According to some embodiments, the cloud service provider mark includes cloud service provider title;
It is wherein, described that target Cloud Server is determined in multiple Cloud Servers according to cloud service provider mark, comprising:
Obtain pre-stored mapping table;
If inquiring Cloud Server IP address corresponding with the cloud service provider title in the mapping table;
It is determined in the multiple Cloud Server according to the corresponding Cloud Server IP address of the cloud service provider title The target Cloud Server.
According to some embodiments, when the quantity of the corresponding IP address of the cloud service provider title is multiple;
Wherein, described to be determined according to the corresponding Cloud Server IP address of the cloud service provider title in the multiple cloud The target Cloud Server is determined in server, comprising:
Measure the corresponding Cloud Server of Cloud Server IP address corresponding with the cloud service provider title Load parameter;
Select the Cloud Server most lightly loaded as the target Cloud Server according to the load parameter.
According to some embodiments, the method also includes:
If not inquiring the Cloud Server IP address corresponding with the cloud service provider title in the mapping table, visit Survey the corresponding round-trip delay of the multiple Cloud Server;
Using the least Cloud Server of round-trip delay as the target Cloud Server.
According to some embodiments, the cloud service provider mark includes Cloud Server IP address;
It is wherein, described that the determining target Cloud Server in multiple Cloud Servers is known according to the Cloud Server trade mark, comprising:
The target Cloud Server corresponding with the Cloud Server IP address is determined in multiple Cloud Servers.
According to some embodiments, the cloud service provider mark includes the cloud terminal device IP address;
It is wherein, described that the determining target Cloud Server in multiple Cloud Servers is known according to the Cloud Server trade mark, comprising:
Obtain pre-stored mapping table;
Inquiry and the associated Cloud Server IP address of the cloud terminal device IP address in the mapping table;
If inquiring the Cloud Server IP address corresponding with the cloud terminal device IP address in the mapping table;
The target Cloud Server is determined in the multiple Cloud Server according to the Cloud Server IP address.
According to some embodiments, the service request is http hypertext transfer protocol request, the cloud service provider mark In the HTTP request head of the service request.
The application second aspect additionally provides a kind of service request processing unit, and described device includes:
Receiving module, for receiving the service request from cloud terminal device, wherein the service request carries cloud service Trade mark is known;
Intermediate module, for determining target Cloud Server in multiple Cloud Servers according to cloud service provider mark, and The service request is sent to the target Cloud Server;Wherein, the service request is for establishing the terminal device and institute The data channel between target Cloud Server is stated, and passes through the data channel transmission services data.
The application third aspect additionally provides a kind of computer storage medium, and the computer storage medium is stored with a plurality of Instruction, described instruction are suitable for being loaded by processor and being executed the method and step of not familiar any one.
The application fourth aspect additionally provides a kind of terminal, comprising: processor and memory;Wherein, the memory is deposited Computer program is contained, the computer program is suitable for being loaded by the processor and being executed the method step such as above-mentioned any one Suddenly.
The application provides a kind of service request processing method, receives in the service request from cloud terminal device and carries cloud Service provider's mark, cloud service provider identify cloud terminal device and the cloud service for making identical cloud service provider after sending service request Device carries out data transmission.Due to being counted between the cloud terminal device and the Cloud Server of identical cloud service provider of identical cloud service provider Delay when according to transmission is relatively small, therefore above-mentioned service request processing method can reduce cloud terminal in terms of existing technologies Waiting time when data between equipment and Cloud Server are transmitted.
Detailed description of the invention
In order to illustrate the technical solutions in the embodiments of the present application or in the prior art more clearly, to embodiment or will show below There is attached drawing needed in technical description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only this Some embodiments of application for those skilled in the art without creative efforts, can also basis These attached drawings obtain other attached drawings.
Fig. 1 is a kind of network architecture diagram provided by the embodiments of the present application;
Fig. 2 is a kind of flow diagram for request processing method that a kind of embodiment of the application provides;
Fig. 3 is a kind of flow diagram for request processing method that the application another kind embodiment provides;
Fig. 4 is a kind of flow diagram for request processing method that another embodiment of the application provides;
Fig. 5 is a kind of flow diagram for request processing method that the application another embodiment provides;
Fig. 6 is a kind of structural schematic diagram for request processing unit that a kind of embodiment of the application provides;
Fig. 7 is a kind of structural schematic diagram for request processing unit that the application another kind embodiment provides.
Specific embodiment
To keep the purposes, technical schemes and advantages of the application clearer, below in conjunction with attached drawing to the embodiment of the present application Mode is described in further detail.
Fig. 1 shows the exemplary of the service request processing method that can be applied to the application or service request processing unit Transaction processing system.
As shown in Figure 1, system may include: cloud terminal device 100, intermediate equipment 200, Cloud Server 300, Cloud Server 400 and Cloud Server 500.It is communicated between cloud terminal device 100 and intermediate equipment 200, intermediate equipment 200 takes with cloud respectively It is communicated between business 300~Cloud Server of device 500.Above-mentioned communication link can be wireless communication link or wire communication chain Road, such as: wired communications links include optical fiber, twisted pair or coaxial cable, wireless communication link include bluetooth communications link, Wireless Fidelity (WIreless-FIdelity, Wi-Fi) communication link or microwave communications link etc..Wherein, cloud terminal device 100 It is the terminal device disposed using desktop cloud, various communication customer end applications can be installed on cloud terminal device 100, such as: Video record application, video playing application, interactive voice application, searching class application, timely means of communication, mailbox client, society Hand over platform software etc..
Wherein, display equipment and camera are also equipped on cloud terminal device 100, display equipment, which is shown, can be respectively The equipment that kind is able to achieve display function, camera is for acquiring video flowing;Such as: display equipment can be CRT Displays Device (Cathode ray tubedisplay, abbreviation CR), light emitting diode indicator (Light-emitting diode Display, abbreviation LED), electronic ink screen, liquid crystal display (Liquid crystal display, abbreviation LCD), plasma Display panel (Plasma displaypanel, abbreviation PDP) etc..
300~Cloud Server of Cloud Server 500 is using the server of virtual cloud deployment, and Cloud Server can be to provide respectively The server of kind service, Cloud Server may be implemented into the distributed server cluster of multiple servers compositions, also may be implemented At individual server.Multiple softwares or software module (such as providing Distributed Services) also may be implemented into Cloud Server, Also single software or software module may be implemented into, be not specifically limited herein.
It should be understood that the number of cloud terminal device, intermediate equipment and Cloud Server in Fig. 1 is only illustrative.According to reality It now needs, can be any number of cloud terminal device, intermediate equipment and Cloud Server.
Fig. 2 is a kind of flow chart of service request processing method shown according to an example embodiments, as shown in Fig. 2, This method specifically includes following procedure:
In step s 102, the service request from cloud terminal device is received.Wherein, which carries cloud service provider Mark.
In step S104, target Cloud Server 300 is determined in multiple Cloud Servers 300 according to cloud service provider mark.
In step s 106, service request is sent to target Cloud Server 300.Wherein, service request is for establishing terminal Data channel between equipment and target Cloud Server 300, and pass through data channel transmission services data.
Method provided in this embodiment, for solving data between prior art medium cloud terminal device and Cloud Server 300 Higher problem when propagation delay time.Wherein, cloud terminal device can specifically include cloud host 200 and the local device of user 100, user generates service request by local device 100, and service request passes through the cloud host with 100 communication connection of local device 200 are sent to Cloud Server 300, and Cloud Server 300 receives and establishes data channel with cloud host 200 after service request, take cloud The data that business device 300 stores are transmitted to cloud host 200 and will calculate after the data received are carried out analytical calculation by cloud host 200 As a result it is back to user's local device 100.
Since cloud terminal device often faces multiple Cloud Servers 300, therefore sent in cloud terminal device to Cloud Server 300 It is by service request while to be sent to multiple Cloud Servers 300, and by each server in the prior art when service request Judge itself whether belong to the corresponding purpose database of the service request, if it is, it is logical to establish data between cloud host 200 Road.The delay height that the data connection between Cloud Server 300 and cloud terminal device is not accounted in above-mentioned steps, leads to the time In data transmission procedure, data transmission efficiency is lower.
In method provided in this embodiment, when cloud terminal device sends service request to Cloud Server 300, need industry first Business request is sent to routing device 400, and routing device 400 asks the business according to parsing result after parsing to service request It asks and is sent to corresponding destination server, then establish the data channel of destination server Yu cloud terminal device.In this method, cloud Terminal device, which is sent in the service request of routing device 400, carries cloud service provider mark.Routing device 400 to service request into Cloud service provider mark is obtained after row parsing, then it is corresponded to according to cloud service provider mark asks to destination server transmission business It asks, which is used for the data channel established between terminal device and target Cloud Server 300, and is passed by data channel Defeated business datum.
Cloud service provider mark connects corresponding target cloud service according to the title of cloud service provider for making cloud terminal device Device 300.Such as when cloud terminal device faces the Cloud Server 300, the Cloud Server 300 of Ali and the cloud of Tencent of Huawei simultaneously When server 300, if efficiency highest when carrying out data transmission with the Cloud Server 300 of Huawei is determined in advance, cloud terminal is set It is standby then can be determined by cloud service provider mark and carry out communication connection with Huawei Cloud Server 300, it is passed with both reaching data Be delayed minimum purpose when defeated.
Particularly, in a kind of embodiment, can allow the identical cloud terminal device of cloud service provider title and Cloud Server 300 into Row communication connection.Such as when the cloud host 200 of user is the cloud host 200 of Huawei, it can be identified by setting cloud service provider, So that the cloud host 200 of Huawei is sent service request to the Cloud Server 300 of Huawei, and then realizes data transmission between the two. Since the service provider of the two is identical, therefore the data transmission efficiency of the two is mentioned compared to for transmitting across service provider with certain It rises.
Certainly, in other embodiments, if Cloud Server 300 not identical with the cloud service provider title of cloud host 200 In the presence of, efficiency of transmission when can be connect by testing this cloud host 200 in advance with the Cloud Server 300 of which cloud service provider Highest, it is subsequent to be identified by setting cloud service provider, make above-mentioned 200 next time of cloud host to the highest cloud clothes of above-mentioned efficiency of transmission Business device 300 carries out data connection.
It should be noted that the cloud terminal for making identical cloud service provider using cloud service provider mark mentioned in the above method In the method that equipment and Cloud Server 300 carry out data transmission, there is no imply that cloud service provider mark is cloud service provider Title.As long as judging destination service it is understood that being that by according to the title of the cloud service provider of Cloud Server 300 The cloud service provider of device identifies, it can be seen that being the cloud service provider mark in this method.I.e. cloud service provider identifies and not only limits to In the title for cloud service provider.
According to some embodiments, when cloud service provider mark is directly cloud service provider title, after receiving service request, First service request is parsed and obtains the cloud service provider title in cloud service provider mark.After obtaining cloud service provider title, adjust With pre-stored mapping table, the Cloud Server IP address of cloud service provider title with corresponding cloud service provider title is had recorded in mapping table Mapping relations, target Cloud Server IP address can be obtained according to cloud service provider title and above-mentioned mapping relations, according to The data connection with target Cloud Server 300 can be realized in target Cloud Server IP address.
In the above method, in fact it could happen that can not find Cloud Server IP address corresponding with cloud service provider title in the mapping table The case where.Such as entitled Ali of cloud service provider, the Cloud Server of alternative inner not Ali of Cloud Server 300 300, cloud terminal device just can not carry out data connection with the Cloud Server 300 of Ali at this time.It in the scenario above, can be direct Service request is sent to all Cloud Servers 300, and detects each Cloud Server 300 and carries out the round trip delay time after answering, choosing It selects the least Cloud Server 300 of delay and is used as target Cloud Server 300.
After having selected the least target Cloud Server 300 of delay, the IP of the available cloud terminal for sending service request The IP address of address and above-mentioned target Cloud Server 300, and above-mentioned two IP address is established into mapping relations write-in mapping table In, in this way, when the Cloud Server IP address carried in the service request that next time, above-mentioned cloud IP address of terminal was sent does not appear in When in mapping table, directly according to the cloud service corresponding with the cloud IP address of terminal for sending request of the mapping relationship searching of above-mentioned write-in The IP address of device 300, and it regard Cloud Server 300 corresponding with this Cloud Server IP address as target Cloud Server 300.Change sentence The step of talking about, needing to test the round trip delay time of each Cloud Server 300 before eliminating in the above method.
It is but corresponding with cloud service provider title when there is Cloud Server IP address corresponding with cloud service provider title in mapping table The quantity of Cloud Server IP address when being multiple, can be from multiple cloud services corresponding with above-mentioned multiple Cloud Server IP address An optimal Cloud Server 300 is found in device 300 is used as target Cloud Server 300.Such as it can measure and cloud service provider name Which the load parameter for claiming the corresponding corresponding Cloud Server 300 of Cloud Server IP address, judges according to load parameter Cloud Server 300 is optimal Cloud Server 300.
In a kind of embodiment, when cloud service is identified as cloud service provider title, for example, the mapping relations recorded in mapping table It can be such that
When the cloud service provider in service request is identified as Huawei, there is no the index in mapping table, therefore the service request quilt Being sent to all Cloud Servers 300, (also there may be the Cloud Servers of Huawei 300 in Cloud Server 300, are only not to be written in advance Mapping table), and detect each Cloud Server 300 and carry out the round trip delay time after answering, the least Cloud Server 300 of selection delay As target Cloud Server 300.
When the cloud service provider in service request is identified as Baidu, according to mapping table, the IP address of destination server is obtained For 111.111.111.111.
When the cloud service provider in service request is identified as Ali, due to the Cloud Server of corresponding two Ali of the index 300, the load parameter of the corresponding Cloud Server 300 of above-mentioned two Cloud Server IP address can be measured, is joined according to load Number is to judge which Cloud Server 300 for optimal Cloud Server 300.
Specifically, Fig. 3 is a kind of flow chart of service request processing method shown according to an example embodiments, is such as schemed Shown in 3, the method in the present embodiment can also include following procedure:
In step S202: receiving the service request from cloud terminal device.Wherein, which carries cloud service provider Title.
In step S204: obtaining pre-stored mapping table, multiple groups mapping group, each mapping group note are stored in mapping table The IP address of cloud service provider title with the Cloud Server 300 of corresponding cloud service provider title is recorded.For example, the cloud service provider name of Huawei Claim the IP address of Cloud Server 300, the cloud service provider title of Ali of mapping Huawei with mapping the IP of the Cloud Server 300 of Ali Location.Therefore by the mapping relations in cloud service provider title and mapping table, the IP address of destination server can be obtained.
In step S206: whether judgement can inquire Cloud Server IP corresponding with cloud service provider title in the mapping table Address is possible to the cloud service provider title for occurring not having to carry in service request in the index of mapping table.If energy in mapping table When enough finding the index of the cloud service provider title carried in service request, step S208 is executed.If there is no clouds to take in mapping table When the index for quotient's title of being engaged in.Execute step S212.
In step S208: judge the IP address of cloud service provider title mapped Cloud Server 300 quantity whether be It is multiple.It is possible to the cloud terminal device Cloud Server 300 towards multiple same cloud service provider titles simultaneously occur.Such as when cloud takes When entitled Huawei of business quotient, the Cloud Server 300 of multiple Huawei is existed simultaneously, at this point, this name of Huawei is found a great convenience in mapping table In have mapped multiple IP address.When the quantity of the corresponding Cloud Server IP address of cloud service provider title is not multiple, step is executed Rapid S210.When the quantity of the corresponding Cloud Server IP address of cloud service provider title is multiple, step S216 is executed.
In step S210: according to the corresponding Cloud Server IP address of cloud service provider title in multiple Cloud Servers 300 Determine target Cloud Server 300.After target Cloud Server 300 has been determined, step S220 is executed.
In step S212: when can not find the index of cloud service provider title in the mapping table, multiple cloud clothes can be detected The business corresponding round-trip delay of device 300.It obtains and service request is sent to each Cloud Server 300, Cloud Server 300 carries out Time delay during after response.
In step S214: regarding the least Cloud Server 300 of round-trip delay as target Cloud Server 300.Even map When not finding the Cloud Server 300 of corresponding cloud service provider title in table, the present embodiment is sent out to each existing Cloud Server 300 Send service request, compared with the prior art for, time delay that the application is transmitted using data carrys out selection target cloud clothes as judgment basis Business device 300.The a large amount of time can be saved for the method application scenarios biggish for volume of transmitted data.Selecting target After Cloud Server 300, step S220 is executed.
In step S216: if inquire server corresponding with cloud service provider title have it is multiple when, measurement with cloud take The load parameter of the corresponding corresponding Cloud Server 300 of Cloud Server IP address of quotient's title of being engaged in.
In step S218: selecting Cloud Server 300 most lightly loaded as target Cloud Server according to load parameter 300.Even if with cloud service provider title Cloud Server 300 have it is multiple, also can between the server of each same cloud service provider title With difference, the purpose of the above method is to find an optimal cloud in the Cloud Server 300 of each same cloud service provider title Server 300 carries out data transmission with cloud terminal device.
In step S220: after destination server has been determined, sending service request, business to target Cloud Server 300 The data channel for establishing between terminal device and target Cloud Server 300 is requested, and is transmitted by the data channel Business datum.
According to some embodiments, cloud service provider mark can also be directly Cloud Server IP address, at this point, according to cloud service 300 trade mark of device is known can be directly in multiple Cloud Servers 300 when determining target Cloud Server 300 in multiple Cloud Servers 300 Middle determination target Cloud Server 300 corresponding with Cloud Server IP address.I.e. as shown in figure 4, method in the present embodiment can be with Including following procedure:
In step s 302: receiving the service request from cloud terminal device, in service request with carrying Cloud Server IP Location.
In step s 304: target cloud service corresponding with Cloud Server IP address is determined in multiple Cloud Servers 300 Device 300.
In step S306: after destination server has been determined, sending service request, business to target Cloud Server 300 The data channel for establishing between terminal device and target Cloud Server 300 is requested, and is transmitted by the data channel Business datum.
According to some embodiments, cloud service provider mark can also be cloud terminal device IP address.When cloud service is identified as cloud When IP address of terminal, for example, the mapping relations recorded in mapping table can be such that
When the cloud service provider in service request is identified as 550.555.555.555, there is no the index in mapping table, therefore should Service request is sent to all Cloud Servers 300 Mapping table is not written in advance), and detect each Cloud Server 300 and carry out the round trip delay time after answering, selection delay is least Cloud Server 300 is used as target Cloud Server 300.
When the cloud service provider in service request is identified as 110.111.111.111, according to mapping table, destination service is obtained The IP address of device is 111.111.111.111.
When the cloud service provider in service request is identified as 220.222.222.222, due to corresponding two Ali of the index Cloud Server 300, the load parameter of the corresponding Cloud Server 300 of above-mentioned two Cloud Server IP address can be measured, Judged which Cloud Server 300 for optimal Cloud Server 300 according to load parameter.
Such as Fig. 5, the method in the present embodiment may include following procedure:
In step S402: receiving the service request from cloud terminal device;Wherein, which carries cloud terminal and sets Standby IP address.Above-mentioned IP address is to send the IP address of the cloud terminal device of request.
In step s 404: obtaining pre-stored mapping table, multiple groups mapping group, each mapping group note are stored in mapping table The IP address of cloud terminal device IP address with the Cloud Server 300 of corresponding cloud service provider title is recorded.Before establishing mapping relations, The IP address of Cloud Server 300 is with the entitled reference of cloud service provider, it is therefore an objective to establish the IP address of cloud terminal device with it is corresponding The mapping relations of the IP address of the Cloud Server 300 of cloud service provider, for example, when the cloud terminal device for sending request is Huawei, Its map the result is that in order to find the Cloud Server 300 of Huawei, and using it as target Cloud Server 300.
In step S406: whether judgement can inquire cloud service corresponding with cloud terminal device IP address in the mapping table Device IP address.It is possible to the cloud terminal device IP address for occurring not having to carry in service request in the index of mapping table.If reflecting When can find the index of the cloud terminal device IP address carried in service request in firing table, step S408 is executed.If mapping table In be not present cloud terminal device IP address index when.Execute step S412.
In step S408: judging the quantity of the IP address of cloud terminal device IP address mapped Cloud Server 300 is No is multiple.It is possible to the cloud terminal device Cloud Server 300 towards multiple same cloud service provider titles simultaneously occur.Such as when When entitled Huawei of cloud service provider, the Cloud Server 300 of multiple Huawei is existed simultaneously, at this point, cloud terminal device IP address is just Multiple IP address are had mapped in the mapping table.When the quantity of the corresponding Cloud Server IP address of cloud terminal device IP address is not more When a, step S410 is executed.When the quantity of the corresponding Cloud Server IP address of cloud terminal device IP address is multiple, step is executed Rapid S416.
In step S410: according to the corresponding Cloud Server IP address of cloud terminal device IP address in multiple Cloud Servers Target Cloud Server 300 is determined in 300.After target Cloud Server 300 has been determined, step 4S20 is executed.
In step S412: when can not find the index of cloud terminal device IP address in the mapping table, can detect multiple The corresponding round-trip delay of Cloud Server 300.It obtains and service request is sent to each Cloud Server 300, Cloud Server 300 Time delay during carrying out after response.
In step S414: regarding the least Cloud Server 300 of round-trip delay as target Cloud Server 300.Even map When not finding the Cloud Server 300 of corresponding cloud terminal device IP address in table, the present embodiment is to each existing Cloud Server 300 send service requests, compared with the prior art for, the application carrys out selection target as judgment basis using the time delay that data are transmitted Cloud Server 300.The a large amount of time can be saved for the method application scenarios biggish for volume of transmitted data.It is selecting After target Cloud Server 300, step S420 is executed.
In step S416: if inquire server corresponding with cloud terminal device IP address have it is multiple when, measurement with The load parameter of the corresponding Cloud Server 300 of the corresponding Cloud Server IP address of cloud terminal device IP address.
In step S418: selecting Cloud Server 300 most lightly loaded as target Cloud Server according to load parameter 300.Even if with cloud service provider title Cloud Server 300 have it is multiple, also can between the server of each same cloud service provider title With difference, the purpose of the above method is to find an optimal cloud in the Cloud Server 300 of each same cloud service provider title Server 300 carries out data transmission with cloud terminal device.
In the step s 420: after destination server has been determined, sending service request, business to target Cloud Server 300 The data channel for establishing between terminal device and target Cloud Server 300 is requested, and is transmitted by the data channel Business datum.
According to some embodiments, service request can request for http hypertext transfer protocol, and cloud service provider mark is located at In the HTTP request head of service request.In further embodiments, service request can also be domain names.Certainly, business is asked Other existence forms can also be had by asking, and be not described herein.
As shown in fig. 6, the embodiment of the present application also provides a kind of service request processing unit 6, device includes:
Receiving module 601, for receiving the service request from cloud terminal device, wherein service request carries cloud service Trade mark is known;
Intermediate module 602, for determining target Cloud Server in multiple Cloud Servers 300 according to cloud service provider mark 300, and service request is sent to target Cloud Server 300;Wherein, service request is for establishing terminal device and target cloud service Data channel between device 300, and pass through data channel transmission services data.
A kind of service request processing unit provided in this embodiment receives the industry from cloud terminal device using receiving module Cloud service provider mark is carried in business request.Intermediate module makes identical after parsing to the cloud service provider mark in service request The cloud terminal device of cloud service provider carries out data transmission with Cloud Server 300.Due to identical cloud service provider cloud terminal device with Delay when carrying out data transmission between the Cloud Server 300 of identical cloud service provider is relatively small, therefore above-mentioned service request is handled When method can reduce the waiting when data between cloud terminal device and Cloud Server 300 are transmitted in terms of existing technologies Between.
Optionally, further includes:
Enquiry module, the cloud service provider that enquiry module is used to be obtained according to parsing identify to inquire the mapping table prestored.
First judgment module judges to identify how corresponding index with the presence or absence of cloud service provider in mapping table.
Second judgment module judges whether Cloud Server IP address corresponding with cloud service provider mark is more in preset table It is a.
Determining module, when in mapping table exist it is corresponding with cloud service provider mark index and corresponding Cloud Server IP address When being one, using corresponding Cloud Server IP address as destination server.It is corresponding with cloud service provider mark when existing in mapping table Index and corresponding Cloud Server IP address when being multiple, it is each to measure corresponding with cloud service provider title Cloud Server IP address The load parameter of self-corresponding Cloud Server 300 judges which Cloud Server 300 for optimal Cloud Server according to load parameter 300.When in mapping table there is no corresponding index is identified with cloud service provider, business directly is sent to all Cloud Servers 300 Request, and detect each Cloud Server 300 and carry out the round trip delay time after answering, the least Cloud Server 300 of selection delay is made For target Cloud Server 300.
Sending module sends service request to target Cloud Server 300, and service request is for establishing terminal device and target Data channel between Cloud Server 300, and pass through data channel transmission services data.
The embodiment of the present application also provides a kind of computer storage mediums, are stored with computer program, the computer program For executing request processing method provided by the above embodiment.
The embodiment of the present application also provides a kind of computer program products comprising instruction, when it runs on computers When, so that computer executes request processing method provided by the above embodiment.
Fig. 7 is a kind of processing device structure diagram provided by the embodiments of the present application, hereinafter referred to as device 7, and device 7 can be with Integrating server, as shown in fig. 7, the device 7 includes: memory 702, processor 701 and transceiver 703.
Memory 702 can be independent physical unit, can be connect by bus with processor 701 and transceiver 703. Memory 702, processor 701, transceiver 703 also can integrate together, pass through hardware realization etc..
Memory 702 is used to store the program for realizing above method embodiment or Installation practice modules, processing Device 701 calls the program, executes the operation of above method embodiment.
Optionally, device 7 further includes input unit and output device, and input unit includes but is not limited to keyboard, mouse, touching Touch panel, camera and microphone;Output device includes but is limited to display screen.
For receiving and dispatching various types of message, communication interface includes but is not limited to wireless interface or wired connects communication interface Mouthful.
Optionally, when passing through software realization some or all of in the API Calls method of above-described embodiment, device can also To only include processor.Memory for storing program is located at except device, and processor is connected by circuit/electric wire and memory It connects, for reading and executing the program stored in memory.
Processor can be central processing unit (central processing unit, CPU), network processing unit The combination of (network processor, NP) or CPU and NP.
Processor can further include hardware chip.Above-mentioned hardware chip can be specific integrated circuit (application-specific integrated circuit, ASIC), programmable logic device (programmable Logic device, PLD) or combinations thereof.Above-mentioned PLD can be Complex Programmable Logic Devices (complex Programmable logic device, CPLD), field programmable gate array (field-programmable gate Array, FPGA), Universal Array Logic (generic array logic, GAL) or any combination thereof.
Memory may include volatile memory (volatile memory), such as access memory (random- Access memory, RAM);Memory also may include nonvolatile memory (non-volatile memory), such as fastly Flash memory (flash memory), hard disk (hard disk drive, HDD) or solid state hard disk (solid-state drive, SSD);Memory can also include the combination of the memory of mentioned kind.
The embodiment of the present application also provides a kind of computer storage mediums, are stored with computer program, the computer program For executing API Calls method provided by the above embodiment.
The embodiment of the present application also provides a kind of computer program products comprising instruction, when it runs on computers When, so that computer executes API Calls method provided by the above embodiment.
It should be understood by those skilled in the art that, embodiments herein can provide as method, system or computer program Product.Therefore, complete hardware embodiment, complete software embodiment or reality combining software and hardware aspects can be used in the application Apply the form of example.Moreover, it wherein includes the computer of computer usable program code that the application, which can be used in one or more, The computer program implemented in usable storage medium (including but not limited to magnetic disk storage, CD-ROM, optical memory etc.) produces The form of product.
The application is referring to method, the process of equipment (system) and computer program product according to the embodiment of the present application Figure and/or block diagram describe.It should be understood that every one stream in flowchart and/or the block diagram can be realized by computer program instructions The combination of process and/or box in journey and/or box and flowchart and/or the block diagram.It can provide these computer programs Instruct the processor of general purpose computer, special purpose computer, Embedded Processor or other programmable data processing devices to produce A raw machine, so that being generated by the instruction that computer or the processor of other programmable data processing devices execute for real The device for the function of being specified in present one or more flows of the flowchart and/or one or more blocks of the block diagram.
These computer program instructions, which may also be stored in, is able to guide computer or other programmable data processing devices with spy Determine in the computer-readable memory that mode works, so that it includes referring to that instruction stored in the computer readable memory, which generates, Enable the manufacture of device, the command device realize in one box of one or more flows of the flowchart and/or block diagram or The function of being specified in multiple boxes.
These computer program instructions also can be loaded onto a computer or other programmable data processing device, so that counting Series of operation steps are executed on calculation machine or other programmable devices to generate computer implemented processing, thus in computer or The instruction executed on other programmable devices is provided for realizing in one or more flows of the flowchart and/or block diagram one The step of function of being specified in a box or multiple boxes.

Claims (10)

1. a kind of service request processing method, which is characterized in that the described method includes:
Receive the service request from cloud terminal device;Wherein, the service request carries cloud service provider mark;
Target Cloud Server is determined in multiple Cloud Servers according to cloud service provider mark;
The service request is sent to the target Cloud Server;Wherein, the service request is for establishing the terminal device With the data channel between the target Cloud Server, the data channel is to transmission services data.
2. the method according to claim 1, wherein cloud service provider mark includes cloud service provider title;
It is wherein, described that target Cloud Server is determined in multiple Cloud Servers according to cloud service provider mark, comprising:
Obtain pre-stored mapping table;
If inquiring Cloud Server IP address corresponding with the cloud service provider title in the mapping table;
Described in being determined in the multiple Cloud Server according to the corresponding Cloud Server IP address of the cloud service provider title Target Cloud Server.
3. according to the method described in claim 2, it is characterized in that, the corresponding IP address of the cloud service provider title quantity When being multiple;
Wherein, it is described according to the corresponding Cloud Server IP address of the cloud service provider title in the multiple Cloud Server Determine the target Cloud Server, comprising:
Measure the negative of the corresponding Cloud Server of Cloud Server IP address corresponding with the cloud service provider title Carry parameter;
Select the Cloud Server most lightly loaded as the target Cloud Server according to the load parameter.
4. according to the method in claim 2 or 3, which is characterized in that further include:
If not inquiring the Cloud Server IP address corresponding with the cloud service provider title in the mapping table, institute is detected State the corresponding round-trip delay of multiple Cloud Servers;
Using the smallest Cloud Server of round-trip delay as the target Cloud Server.
5. the method according to claim 1, wherein cloud service provider mark includes Cloud Server IP address;
It is wherein, described that the determining target Cloud Server in multiple Cloud Servers is known according to the Cloud Server trade mark, comprising:
The target Cloud Server corresponding with the Cloud Server IP address is determined in multiple Cloud Servers.
6. the method according to claim 1, wherein cloud service provider mark includes the cloud terminal device IP Address;
It is wherein, described that the determining target Cloud Server in multiple Cloud Servers is known according to the Cloud Server trade mark, comprising:
Obtain pre-stored mapping table;
Inquiry and the associated Cloud Server IP address of the cloud terminal device IP address in the mapping table;
If inquiring the Cloud Server IP address corresponding with the cloud terminal device IP address in the mapping table;
The target Cloud Server is determined in the multiple Cloud Server according to the Cloud Server IP address.
7. according to claim 1 to method described in 6 any one, which is characterized in that the service request is HTTP hypertext Transport protocol request, the cloud service provider mark are located in the HTTP request head of the service request.
8. a kind of service request processing unit, which is characterized in that described device includes:
Receiving module, for receiving the service request from cloud terminal device, wherein the service request carries cloud service trade mark Know;
Intermediate module, for determining target Cloud Server in multiple Cloud Servers according to cloud service provider mark, and to institute It states target Cloud Server and sends the service request;Wherein, the service request is for establishing the terminal device and the mesh The data channel between Cloud Server is marked, the data channel is to transmission services data.
9. a kind of computer storage medium, which is characterized in that the computer storage medium is stored with a plurality of instruction, described instruction Suitable for being loaded by processor and being executed the method and step such as claim 1~7 any one.
10. a kind of terminal characterized by comprising processor and memory;Wherein, the memory is stored with computer journey Sequence, the computer program are suitable for being loaded by the processor and being executed the method and step such as claim 1~7 any one.
CN201910656406.8A 2019-07-19 2019-07-19 Service request processing method, device, storage medium and terminal Pending CN110401706A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910656406.8A CN110401706A (en) 2019-07-19 2019-07-19 Service request processing method, device, storage medium and terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910656406.8A CN110401706A (en) 2019-07-19 2019-07-19 Service request processing method, device, storage medium and terminal

Publications (1)

Publication Number Publication Date
CN110401706A true CN110401706A (en) 2019-11-01

Family

ID=68324836

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910656406.8A Pending CN110401706A (en) 2019-07-19 2019-07-19 Service request processing method, device, storage medium and terminal

Country Status (1)

Country Link
CN (1) CN110401706A (en)

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111258938A (en) * 2019-11-07 2020-06-09 深圳市远行科技股份有限公司 Method and equipment for processing application docking service provider to be adapted
CN111541766A (en) * 2020-04-21 2020-08-14 西安电子科技大学 Multi-server communication connection method
CN111858024A (en) * 2020-05-29 2020-10-30 福建凯米网络科技有限公司 Method, cloud and system for realizing intelligent access of terminal
CN112261514A (en) * 2020-10-22 2021-01-22 中国联合网络通信集团有限公司 Service processing method, device and equipment
CN113259476A (en) * 2021-06-10 2021-08-13 深圳市腾讯信息技术有限公司 Message pushing method and system
CN113282341A (en) * 2020-02-20 2021-08-20 浙江宇视科技有限公司 Service control method, device, equipment and medium
CN114070888A (en) * 2021-11-10 2022-02-18 中国联合网络通信集团有限公司 Service processing method, server, equipment and system based on cloud terminal
CN114244888A (en) * 2021-12-10 2022-03-25 珠海格力电器股份有限公司 Method and device for connecting equipment and server and connecting system
CN117130775A (en) * 2023-08-07 2023-11-28 国网冀北电力有限公司信息通信分公司 Task allocation method, system, storage medium and electronic equipment

Citations (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101102527A (en) * 2006-07-06 2008-01-09 李帜 Leading method and system for SMS service
CN102369714A (en) * 2011-08-31 2012-03-07 华为技术有限公司 Method of cloud terminal accessing cloud server in cloud computing system and cloud computing system
CN102377759A (en) * 2010-08-25 2012-03-14 中国移动通信有限公司 Service processing system, user identity identification method and related devices
TW201220189A (en) * 2010-08-16 2012-05-16 Ibm Method and apparatus for service deployment from a service registry
CN103370111A (en) * 2012-10-31 2013-10-23 华为技术有限公司 Method and device for sending cloud server address
CN104468240A (en) * 2014-12-29 2015-03-25 成都致云科技有限公司 Cloud terminal management method and device
US20160344732A1 (en) * 2014-01-03 2016-11-24 Ecovacs Robotics Co., Ltd. Terminal robot security system and operating method thereof
CN106302611A (en) * 2015-06-09 2017-01-04 深圳市腾讯计算机系统有限公司 Service request distribution system, method and apparatus
CN106941508A (en) * 2016-01-05 2017-07-11 阿里巴巴集团控股有限公司 Service calling method, device and system
CN108076112A (en) * 2016-11-15 2018-05-25 北京金山云网络技术有限公司 A kind of host dispatching method and device
CN108989384A (en) * 2018-05-31 2018-12-11 华为技术有限公司 A kind of method of data processing, cloudy management system and relevant device
CN109151025A (en) * 2018-08-22 2019-01-04 京信通信系统(中国)有限公司 Load-balancing method, device, computer storage medium and equipment based on URL
US20190097969A1 (en) * 2014-12-16 2019-03-28 Infoblox Inc. Cloud network automation for ip address and dns record management

Patent Citations (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101102527A (en) * 2006-07-06 2008-01-09 李帜 Leading method and system for SMS service
TW201220189A (en) * 2010-08-16 2012-05-16 Ibm Method and apparatus for service deployment from a service registry
CN102377759A (en) * 2010-08-25 2012-03-14 中国移动通信有限公司 Service processing system, user identity identification method and related devices
CN102369714A (en) * 2011-08-31 2012-03-07 华为技术有限公司 Method of cloud terminal accessing cloud server in cloud computing system and cloud computing system
CN103370111A (en) * 2012-10-31 2013-10-23 华为技术有限公司 Method and device for sending cloud server address
US20160344732A1 (en) * 2014-01-03 2016-11-24 Ecovacs Robotics Co., Ltd. Terminal robot security system and operating method thereof
US20190097969A1 (en) * 2014-12-16 2019-03-28 Infoblox Inc. Cloud network automation for ip address and dns record management
CN104468240A (en) * 2014-12-29 2015-03-25 成都致云科技有限公司 Cloud terminal management method and device
CN106302611A (en) * 2015-06-09 2017-01-04 深圳市腾讯计算机系统有限公司 Service request distribution system, method and apparatus
CN106941508A (en) * 2016-01-05 2017-07-11 阿里巴巴集团控股有限公司 Service calling method, device and system
CN108076112A (en) * 2016-11-15 2018-05-25 北京金山云网络技术有限公司 A kind of host dispatching method and device
CN108989384A (en) * 2018-05-31 2018-12-11 华为技术有限公司 A kind of method of data processing, cloudy management system and relevant device
CN109151025A (en) * 2018-08-22 2019-01-04 京信通信系统(中国)有限公司 Load-balancing method, device, computer storage medium and equipment based on URL

Cited By (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111258938A (en) * 2019-11-07 2020-06-09 深圳市远行科技股份有限公司 Method and equipment for processing application docking service provider to be adapted
CN113282341B (en) * 2020-02-20 2023-12-22 浙江宇视科技有限公司 Service control method, device, equipment and medium
CN113282341A (en) * 2020-02-20 2021-08-20 浙江宇视科技有限公司 Service control method, device, equipment and medium
CN111541766A (en) * 2020-04-21 2020-08-14 西安电子科技大学 Multi-server communication connection method
CN111858024B (en) * 2020-05-29 2023-11-28 福建凯米网络科技有限公司 Method, cloud end and system for realizing intelligent access of terminal
CN111858024A (en) * 2020-05-29 2020-10-30 福建凯米网络科技有限公司 Method, cloud and system for realizing intelligent access of terminal
CN112261514A (en) * 2020-10-22 2021-01-22 中国联合网络通信集团有限公司 Service processing method, device and equipment
CN112261514B (en) * 2020-10-22 2022-09-13 中国联合网络通信集团有限公司 Service processing method, device and equipment
CN113259476A (en) * 2021-06-10 2021-08-13 深圳市腾讯信息技术有限公司 Message pushing method and system
CN114070888A (en) * 2021-11-10 2022-02-18 中国联合网络通信集团有限公司 Service processing method, server, equipment and system based on cloud terminal
CN114070888B (en) * 2021-11-10 2024-04-12 中国联合网络通信集团有限公司 Service processing method, server, equipment and system based on cloud terminal
CN114244888A (en) * 2021-12-10 2022-03-25 珠海格力电器股份有限公司 Method and device for connecting equipment and server and connecting system
CN117130775A (en) * 2023-08-07 2023-11-28 国网冀北电力有限公司信息通信分公司 Task allocation method, system, storage medium and electronic equipment

Similar Documents

Publication Publication Date Title
CN110401706A (en) Service request processing method, device, storage medium and terminal
CN110365752A (en) Processing method, device, electronic equipment and the storage medium of business datum
US10284446B2 (en) Optimizing content management
US9071502B2 (en) Service provider optimization of content management
KR102076862B1 (en) Network performance indicator visualization method and apparatus, and system
CN108520454A (en) The method and system of readjustment order in real time
CN106657367A (en) Service data acquisition method, device and system
CN108833251B (en) Method and apparatus for controlling network interconnection
GB2373673A (en) Selecting and assigning a transaction level of service
US11936755B2 (en) Systems and methods for determining a destination location for transmission of packetized data in a network system based on an application server attribute
KR101491639B1 (en) Method for determining type of network and method for providing contents by using the same
CN110336865A (en) Service calling method, device, storage medium and electronic equipment
WO2002082727A1 (en) Method for collecting a network performance information, computer readable medium storing the same, and an analysis system and method for network performance
CN108234319A (en) The transmission method and device of a kind of data
CN110377440A (en) Information processing method and device
CN111556135A (en) Request scheduling method, system and device and electronic equipment
CN113259479A (en) Data processing method and equipment
CN107222365B (en) Data processing method and device and server
CN110719325A (en) Method and device for responding to user request
US9992073B2 (en) Network status measuring system and a method for measuring status of a network
CN109495319A (en) The fault message of CDN node determines method, device and equipment
JP2020005020A (en) Number management system, number management method, and number management device
CN112035760B (en) Task allocation method and computer equipment
CN113867946A (en) Method, device, storage medium and electronic equipment for accessing resources
KR20190054671A (en) A method of optimizing a domain of an API server responding to a call of a specific function and a terminal implementing the method

Legal Events

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

Application publication date: 20191101