CN109040263A - Method for processing business and device based on distributed system - Google Patents

Method for processing business and device based on distributed system Download PDF

Info

Publication number
CN109040263A
CN109040263A CN201810910360.3A CN201810910360A CN109040263A CN 109040263 A CN109040263 A CN 109040263A CN 201810910360 A CN201810910360 A CN 201810910360A CN 109040263 A CN109040263 A CN 109040263A
Authority
CN
China
Prior art keywords
customer service
service request
agent client
sent
server cluster
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201810910360.3A
Other languages
Chinese (zh)
Other versions
CN109040263B (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.)
Beijing Qihoo Technology Co Ltd
Original Assignee
Beijing Qihoo 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 Qihoo Technology Co Ltd filed Critical Beijing Qihoo Technology Co Ltd
Priority to CN201810910360.3A priority Critical patent/CN109040263B/en
Publication of CN109040263A publication Critical patent/CN109040263A/en
Application granted granted Critical
Publication of CN109040263B publication Critical patent/CN109040263B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

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/50Network services
    • H04L67/56Provisioning of proxy services
    • 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

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer And Data Communications (AREA)
  • Multi Processors (AREA)

Abstract

The invention discloses a kind of method for processing business and device based on distributed system.Wherein, method includes: the customer service request that receiving terminal apparatus is sent;Customer service request is supplied to agent client, customer service request is committed to corresponding server cluster by agent client and obtains the service processing result of server cluster return;The customer service response message that Receiving Agent client is sent according to the service processing result that server cluster returns;Customer service response message is sent to terminal device.This programme can realize the business processing in great amount of terminals equipment using less agent client, so as to avoid maintenance a large number of services processing client is needed in the prior art and bring maintenance load is high, maintenance cost is high, maintenance efficiency is low and maintenance effects are poor drawback.To save system resource, and advantageously reduce the maintenance cost of distributed system entirety.

Description

Method for processing business and device based on distributed system
Technical field
The present invention relates to field of computer technology, and in particular to a kind of method for processing business and dress based on distributed system It sets.
Background technique
With the continuous development of internet and computer technology, distributed system is with its high scalability, high availability, Gao Ke It is widely used by the features such as property and high efficiency.Currently, distributed system is the processing realized to business, usually in each terminal Setting and the one-to-one business processing client of terminal device in equipment, by the business processing client and clothes in terminal device Business device cluster communication, to realize the processing to business.
However, due to that need to be the corresponding business of each terminal equipment configuration in current distributed system method for processing business Client is handled, so large number of business processing client need to be safeguarded when terminal device is more, to cause biggish The wasting of resources, and client maintenance burden and maintenance cost is significantly increased;Also, it is tieed up to a large number of services processing client During shield, whole maintenance efficiency is low, and maintenance effects are poor, for example, if needing when need to upgrade to business processing client All business processing clients are upgraded, to substantially increase the upgrading effect of distributed system client entirety Rate, and it is easy to happen the phenomenon that part client upgrades not successfully, and then influence whole upgrading effect.
Summary of the invention
In view of the above problems, it proposes on the present invention overcomes the above problem or at least be partially solved in order to provide one kind State the method for processing business and device based on distributed system of problem.
According to an aspect of the invention, there is provided a kind of method for processing business based on distributed system, wherein described Distributed system includes: multiple server clusters and the agent client that is in communication with each other with the multiple server cluster, institute The method of stating includes:
The customer service request that receiving terminal apparatus is sent;
Customer service request is supplied to the agent client, by the agent client by the customer service Request is committed to corresponding server cluster and obtains the service processing result that the server cluster returns;
Receive the customer service that the agent client is sent according to the service processing result that the server cluster returns Response message;
The customer service response message is sent to the terminal device.
According to another aspect of the present invention, a kind of business processing device based on distributed system is provided, wherein described Distributed system includes: multiple server clusters and the agent client that is in communication with each other with the multiple server cluster, institute Stating device includes:
Request receiving module, the customer service request sent suitable for receiving terminal apparatus;
Module is provided, suitable for customer service request is supplied to the agent client, by the agent client Customer service request is committed to corresponding server cluster and obtains the business processing knot that the server cluster returns Fruit;
Response message receiving module, at the business returned according to the server cluster suitable for receiving the agent client Manage the customer service response message that result is sent;
Response message sending module, suitable for the customer service response message is sent to the terminal device.
According to another aspect of the invention, provide a kind of distributed system, comprising: multiple server clusters, with it is described The agent client and such as above-mentioned business processing device based on distributed system that multiple server clusters are in communication with each other.
According to another aspect of the invention, provide a kind of calculating equipment, comprising: processor, memory, communication interface and Communication bus, the processor, the memory and the communication interface complete mutual communication by the communication bus;
For the memory for storing an at least executable instruction, it is above-mentioned that the executable instruction executes the processor The corresponding operation of method for processing business based on distributed system.
In accordance with a further aspect of the present invention, provide a kind of computer storage medium, be stored in the storage medium to A few executable instruction, the executable instruction make processor execute such as the above-mentioned method for processing business pair based on distributed system The operation answered.
The method for processing business and device based on distributed system provided according to the present invention.Receiving terminal apparatus is sent out first The customer service request sent;And customer service request is supplied to agent client, customer service is requested by agent client It is committed to corresponding server cluster and obtains the service processing result of server cluster return;Further Receiving Agent client The customer service response message sent according to the service processing result that server cluster returns;Finally by customer service response message It is sent to terminal device.This programme can realize the business processing in great amount of terminals equipment using less agent client, from And avoid needs maintenance a large number of services processing client and bring maintenance load is high, maintenance cost is high, maintenance in the prior art The drawback of low efficiency and maintenance effects difference.To saving system resource, and advantageously reduce the maintenance of distributed system entirety at This.
The above description is only an overview of the technical scheme of the present invention, in order to better understand the technical means of the present invention, And it can be implemented in accordance with the contents of the specification, and in order to allow above and other objects of the present invention, feature and advantage can It is clearer and more comprehensible, the followings are specific embodiments of the present invention.
Detailed description of the invention
By reading the following detailed description of the preferred embodiment, various other advantages and benefits are common for this field Technical staff will become clear.The drawings are only for the purpose of illustrating a preferred embodiment, and is not considered as to the present invention Limitation.And throughout the drawings, the same reference numbers will be used to refer to the same parts.In the accompanying drawings:
Fig. 1 shows a kind of method for processing business based on distributed system provided according to an embodiment of the present invention Flow diagram;
Fig. 2 shows a kind of method for processing business based on distributed system provided according to a further embodiment of the invention Flow diagram;
Fig. 3 shows a kind of business processing device based on distributed system provided according to an embodiment of the present invention Illustrative view of functional configuration;
Fig. 4 shows a kind of structural schematic diagram of the calculating equipment provided according to an embodiment of the present invention.
Specific embodiment
Exemplary embodiments of the present disclosure are described in more detail below with reference to accompanying drawings.Although showing the disclosure in attached drawing Exemplary embodiment, it being understood, however, that may be realized in various forms the disclosure without should be by embodiments set forth here It is limited.On the contrary, these embodiments are provided to facilitate a more thoroughly understanding of the present invention, and can be by the scope of the present disclosure It is fully disclosed to those skilled in the art.
Fig. 1 shows a kind of method for processing business based on distributed system provided according to an embodiment of the present invention Flow diagram.Wherein, which includes: multiple server clusters and is in communication with each other with multiple server clusters Agent client.
As shown in Figure 1, this method comprises:
Step S110, the customer service request that receiving terminal apparatus is sent.
Wherein, the method for processing business provided in this embodiment based on distributed system can be executed by control server.No It is same as receiving user by business processing client for the corresponding business processing client of each terminal equipment configuration in the prior art Service request, and customer service request is sent to server cluster;The present embodiment be uniformly received by control server it is each The customer service request that terminal device is sent.
Customer service request is supplied to agent client by step S120, is proposed customer service request by agent client Hand over to corresponding server cluster and obtain the service processing result of server cluster return.
After control server receives the customer service request of terminal device transmission, the user that will further receive Service request is supplied to agent client.In the present embodiment, the number of the agent client in distributed system is set less than terminal Standby number, an agent client can receive the customer service that one or more terminal devices that control server provides are sent Request.
Further, the customer service request that control server provides is committed to corresponding server set by agent client After group, customer service request is handled by the corresponding server cluster, obtains business corresponding with customer service request Processing result.The service processing result of acquisition is further back to agent client by server cluster, and agent client is connecing After receiving the service processing result, step S130 and subsequent step are executed by control server.
Step S130, the customer service that Receiving Agent client is sent according to the service processing result that server cluster returns Response message.
After the service processing result that step S120 proxy server obtains that server cluster returns, agent client root Customer service response message is sent to control server according to the service processing result that server cluster returns.Control server is connecing After receiving the customer service response message that the service processing result that client is returned according to server cluster is sent, further hold Row step S140.
Customer service response message is sent to terminal device by step S140.
The customer service response message received is sent to corresponding terminal device by control server, to complete to this The customer service that terminal device is sent requests the processing of corresponding business.
It is asked it can be seen that uniformly receiving the customer service that each terminal device is sent by control server in the present embodiment It asks, and customer service request is supplied to the agent client that quantity is much smaller than terminal device quantity, by agent client and clothes Business device cluster is communicated, and customer service request is sent to server cluster and receives the business processing of server cluster return As a result;And the customer service response message of each agent client transmission is further uniformly received by control server, finally will The customer service response message is sent to corresponding terminal device.To realize a large amount of ends using less agent client Business processing in end equipment, avoid need in the prior art maintenance a large number of services processing client and bring maintenance load Drawback high, maintenance cost is high, maintenance efficiency is low and maintenance effects are poor.And then system resource is saved, and advantageously reduce distribution The maintenance cost of formula system entirety.
Fig. 2 shows a kind of method for processing business based on distributed system provided according to a further embodiment of the invention Flow diagram.Wherein, which includes: multiple server clusters and is in communication with each other with multiple server clusters Agent client.It is multiple with the agent client that multiple server clusters are in communication with each other, also, be distributed in the present embodiment The number of agent client is less than the number of terminal device in formula system.
As shown in Fig. 2, this method comprises:
Step S210, the customer service request that receiving terminal apparatus is sent, wherein comprising useful in customer service request Family authority information.
Wherein, the method for processing business provided in this embodiment based on distributed system can be executed by control server.Then The customer service request that each terminal device is sent uniformly is received in this step by control server.
In the specific implementation process, customer service request is sent by the default tool in terminal device, then this step Control server receiving terminal apparatus is requested by presetting the customer service that tool is sent in rapid.Wherein, default tool can be Command-line tool, WEB interface tool and/or SDK tool etc..Default tool in the present embodiment compared to the prior art in terminal The business processing client installed in equipment there is the small memory space occupied, installation and renewal process to be simple and efficient, Yi Jiyun The features such as row environment suitability is strong.For example, installed in each terminal device in Hadoop distributed system in the prior art The occupied memory space of Hadoop business processing client is usually up to a hundred million, and installation and renewal process complexity are inefficient, and The occupied memory space of command-line tool in the present embodiment is usually several million, to substantially save the storage in terminal device Space, and the running environment requirement that command-line tool is relied on is lower, suitable for the terminal device of different operating system, and pacifies Dress and renewal process are simple and easy.
Further, it is the accurate matching for realizing customer service request and agent client or server cluster, promotes industry Business treatment effeciency avoids requesting customer service to be supplied to the agent client or server set with user's lack of competence access Group, it include user right information in the customer service request that terminal device is sent in the present embodiment.For can in subsequent step Corresponding agent client (corresponding subsequent step S220) is requested with customer service according to the user right information is determining.
In a kind of optional embodiment, in this step before the customer service request that receiving terminal apparatus is sent, It need to first determine that customer service requests corresponding user right information.Specifically, terminal device is after receiving service trigger request, Pre-generated key is obtained, according to pre-generated key, to preset purview certification equipment sending permission inquiry request, with User right information corresponding with key is obtained, then the packet that the further receiving terminal apparatus of control server is sent in this step Customer service request containing user right information.Wherein, preset purview certification equipment is public server.Optionally, in advance The key of generation includes public key and private key, then can be according to the public key in pre-generated key, to preset purview certification equipment Sending permission inquiry request.In the specific implementation process, it is legal for verifying user's access to generate first in terminal device Property key, by the key storage in terminal device local, and by the key registration of generation to preset purview certification equipment, The key, and storage user right information corresponding with key are stored in preset purview certification equipment.Work as terminal Equipment accesses legitimacy when receiving service trigger request, according to pre-generated key authentication user, closes if user accesses Method, then according to pre-generated key, to preset purview certification equipment sending permission inquiry request, to obtain and key phase Corresponding user right information.
Optionally, it is asked due to uniformly receiving the customer service that each terminal device is sent in the present invention by control server It asks, then for the ease of the management of customer service request, realizes the efficient process of business, received in the present embodiment in control server To after customer service request, further customer service request is written in default distributed component, thus for subsequent step Middle agent client obtains customer service request from default distributed component, and is requested customer service by the agent client It is committed to corresponding server cluster and obtains the service processing result (corresponding step S230) of server cluster return.Wherein, Default distributed component can be zookeeper distributed component.
Step S220, obtain customer service request in include user right information, according to user right information determine with Customer service requests corresponding agent client.
According to elaboration in step S210 it is found that avoid that customer service is requested to be sent to the agency for having no right access with user The phenomenon that client, promotes business processing efficiency, and the user right for including in customer service request is further obtained in this step Information, and agent client corresponding with customer service request is determined according to user right information.
It specifically, include proxy client client information and/or server cluster corresponding to the user in user right information Information.For example, if in user right information including proxy client client information corresponding to the user, it can be directly according to the generation It manages client-side information and determines agent client corresponding with customer service request;If including in user right information and user couple The server cluster information answered, then can be further according to the corresponding relationship of each server cluster and each agent client, really Fixed agent client corresponding with customer service request.
Customer service request is supplied to agent client corresponding with customer service request, by the generation by step S230 Customer service request is committed to corresponding server cluster and obtains the business processing knot of server cluster return by reason client Fruit.
Specifically, customer service request is supplied to the agency corresponding with customer service request determined in step S220 Client.Wherein, if determining agent client corresponding with customer service request according to user right information in step S220 To be multiple, then according further to the workload for requesting corresponding each agent client with customer service, by user's industry Business request is supplied to agent client corresponding with customer service request.As according to corresponding each with customer service request Customer service request is supplied to work in agent client corresponding with customer service request by the workload of agent client Make to load the smallest agent client.To realize load balancing, lifting system stability, and improve business processing efficiency.
Optionally, if control server, will after the customer service request that receiving terminal apparatus is sent in step S210 Customer service request is written in default distributed component.Then customer service request is supplied in this step and is requested with customer service Corresponding agent client is specifically, agent client corresponding with customer service request is preset in distributed component from this Obtain customer service request.
Further, after the customer service request that agent client obtains that control server provides, agent client Customer service request is committed in server cluster corresponding with the agent client.Wherein, multiple agent clients with Multiple server clusters are corresponding, the present embodiment to specific corresponding to relationship without limitation.For example, some agency visitor can be set Family end is corresponding with three server clusters etc..
Server cluster handles the customer service request that agent client is submitted, and is obtaining at corresponding business After managing result, which is back to agent client.
Step S240, the customer service that Receiving Agent client is sent according to the service processing result that server cluster returns Response message.
Specifically, agent client is after obtaining the service processing result that server cluster returns, according further to this Service processing result generates corresponding customer service response message, and the customer service response message is sent to middle control and is serviced Device.Control server is in the customer service for receiving the service processing result transmission that agent client is returned according to server cluster After response message, step S250 is further executed.
Customer service response message is sent to terminal device by step S250.
The customer service response message received is sent to corresponding terminal device by control server, to complete to this The customer service that terminal device is sent requests the processing of corresponding business.
In a kind of optional embodiment, for the efficient management convenient for requesting customer service, and by customer service Response message is quickly and accurately back to corresponding terminal device, in the present embodiment in equipment and control server between with The form communication of long connection, after step S210 control server receives customer service request, according further to user Service request generates corresponding with customer service request task encoding, and in step S230 by customer service request and with Service request corresponding task encoding in family is supplied to agent client.And the further Receiving Agent client root in step S240 The customer service response message and corresponding with customer service request sent according to the service processing result that server cluster returns Task encoding finally in this step sends out customer service response message according to task encoding corresponding with customer service request Give corresponding terminal device.
It is asked it can be seen that uniformly receiving the customer service that each terminal device is sent by control server in the present embodiment Ask, and according to customer service request in include user right information, determine corresponding with customer service request proxy client End, and customer service request is provided to the agent client.To avoid by customer service request be supplied to the user without The agent client for weighing access, to promote business processing efficiency;And the agent client and clothes of terminal device are less than by quantity Business device cluster communication, obtains corresponding service processing result, and each proxy client is further uniformly received by control server The customer service response message sent is held, the customer service response message is finally sent to corresponding terminal device.To adopt The business processing in great amount of terminals equipment can be realized with less agent client, and avoid needs maintenance a large amount of in the prior art Business processing client and bring maintenance load is high, maintenance cost is high, maintenance efficiency is low and maintenance effects are poor drawback.In turn System resource is saved, and advantageously reduces the maintenance cost of distributed system entirety.
Also, the present embodiment pre-generates the key that legitimacy is accessed for verifying user, and key storage is set in terminal For local and by the key registration of generation to preset purview certification equipment, by means of the key of generation in preset purview certification User right information is obtained in equipment, is managed collectively in the present embodiment by preset purview certification equipment and distributed storage system User right information in system, consequently facilitating the management and update of user right information, also, only visited in user in the present embodiment Ask it is legal under the premise of, user right information is further obtained, to ensure the security implementation of business processing.
Fig. 3 shows a kind of business processing device based on distributed system provided according to an embodiment of the present invention Illustrative view of functional configuration.Wherein, wherein the distributed system include: multiple server clusters and with the multiple service The agent client that device cluster is in communication with each other, the device include: request receiving module 31, provide module 32, response message reception Module 33 and response message sending module 34.
Wherein, request receiving module 31, the customer service request sent suitable for receiving terminal apparatus;
Module 32 is provided, suitable for customer service request is supplied to the agent client, by the proxy client Customer service request is committed to corresponding server cluster and obtains the business processing that the server cluster returns by end As a result;
Response message receiving module 33, the business returned suitable for receiving the agent client according to the server cluster The customer service response message that processing result is sent;
Response message sending module 34, suitable for the customer service response message is sent to the terminal device.
It optionally, include user right information in the customer service request that the terminal device is sent.
Optionally, the agent client being in communication with each other with the multiple server cluster is multiple;
It then provides module 32 to be further adapted for: obtaining the user right information for including in the customer service request, according to The user right information determines agent client corresponding with customer service request, and customer service request is mentioned Corresponding agent client is requested for giving the customer service.
Optionally, described that proxy client corresponding with customer service request is determined according to the user right information End is multiple;
It then provides module 32 to be further adapted for: requesting corresponding each agent client according to the customer service Customer service request is supplied to agent client corresponding with customer service request by workload.
Optionally, request receiving module 31 is further adapted for: terminal device obtains pre- after receiving service trigger request The key first generated, according to the pre-generated key, to preset purview certification equipment sending permission inquiry request, to obtain Take user right information corresponding with the key;The user comprising the user right information that receiving terminal apparatus is sent Service request.
Optionally, the device further include:
Authentication module (not shown) is tested suitable for accessing legitimacy according to the pre-generated key pair user Card;
If user accesses legal (not shown), execute according to pre-generated key, to preset purview certification Equipment sending permission inquiry request, to obtain user right information corresponding with the key and subsequent step.
Optionally, it provides module 32 to be further adapted for: be requested according to the customer service, generation is asked with the customer service Seek corresponding task encoding;The customer service is requested and task encoding corresponding with customer service request is supplied to The agent client;
Response message receiving module 33 is further adapted for: being received the agent client and is returned according to the server cluster Service processing result send customer service response message and task encoding corresponding with customer service request;
Response message sending module 34 is further adapted for:, will according to task encoding corresponding with customer service request The customer service response message is sent to the terminal device.
Optionally, it provides module 32 to be further adapted for: customer service request is written in default distributed component, with The customer service request is obtained from the default distributed component for the agent client, and by the agent client Customer service request is committed to corresponding server cluster and obtains the business processing knot that the server cluster returns Fruit.
Optionally, request receiving module 31 is further adapted for: user's industry that receiving terminal apparatus is sent by presetting tool Business request.
Optionally, the default tool includes: command-line tool, WEB interface tool and/or SDK tool.
Wherein, the specific embodiment of modules can refer to embodiment of the method shown in Fig. 1 and/or Fig. 2 in the present embodiment In corresponding steps description, the present embodiment is it is not limited here.
It is requested it can be seen that uniformly receiving the customer service that each terminal device is sent by control server in the present apparatus, And customer service request is supplied to the agent client that quantity is much smaller than terminal device quantity, by agent client and server Cluster is communicated, and customer service request is sent to server cluster and receives the business processing knot of server cluster return Fruit;And the customer service response message of each agent client transmission is further uniformly received by control server, it finally should Customer service response message is sent to corresponding terminal device.To realize great amount of terminals using less agent client Business processing in equipment, avoid need maintenance a large number of services processing client in the prior art and bring maintenance load it is high, The drawback that maintenance cost is high, maintenance efficiency is low and maintenance effects are poor.And then system resource is saved, and advantageously reduce distributed system The maintenance cost for entirety of uniting.
A kind of distributed system provided according to an embodiment of the present invention.Distributed system includes: multiple server sets In group, the agent client being in communication with each other with multiple server clusters and embodiment illustrated in fig. 3 based on distributed system Business processing device.
A kind of nonvolatile computer storage media provided according to an embodiment of the present invention, the computer storage are situated between Matter is stored with an at least executable instruction, the computer executable instructions can be performed in above-mentioned any means embodiment based on point The method for processing business of cloth system.
Fig. 4 shows a kind of structural schematic diagram of the calculating equipment provided according to an embodiment of the present invention, present invention tool Body embodiment does not limit the specific implementation for calculating equipment.
As shown in figure 4, the calculating equipment may include: processor (processor) 402, communication interface (Communications Interface) 404, memory (memory) 406 and communication bus 408.
Wherein:
Processor 402, communication interface 404 and memory 406 complete mutual communication by communication bus 408.
Communication interface 404, for being communicated with the network element of other equipment such as client or other servers etc..
Processor 402 can specifically execute the above-mentioned business processing side based on distributed system for executing program 410 Correlation step in method embodiment.
Specifically, program 410 may include program code, which includes computer operation instruction.
Processor 402 may be central processor CPU or specific integrated circuit ASIC (Application Specific Integrated Circuit), or be arranged to implement the integrated electricity of one or more of the embodiment of the present invention Road.The one or more processors that equipment includes are calculated, can be same type of processor, such as one or more CPU;It can also To be different types of processor, such as one or more CPU and one or more ASIC.
Memory 406, for storing program 410.Memory 406 may include high speed RAM memory, it is also possible to further include Nonvolatile memory (non-volatile memory), for example, at least a magnetic disk storage.
Program 410 specifically can be used for so that processor 402 executes following operation:
The customer service request that receiving terminal apparatus is sent;
Customer service request is supplied to the agent client, by the agent client by the customer service Request is committed to corresponding server cluster and obtains the service processing result that the server cluster returns;
Receive the customer service that the agent client is sent according to the service processing result that the server cluster returns Response message;
The customer service response message is sent to the terminal device.
It include user right in the customer service request that the terminal device is sent in a kind of optional embodiment Information.
In a kind of optional embodiment, the agent client being in communication with each other with the multiple server cluster is It is multiple;
Then program 410 specifically can be used for so that processor 402 executes following operation:
The user right information for including in the customer service request is obtained, according to the user right information determination and institute It states customer service and requests corresponding agent client, customer service request is supplied to and requests phase with the customer service Corresponding agent client.
It is described to be requested according to the user right information is determining with the customer service in a kind of optional embodiment Corresponding agent client is multiple;
Then program 410 specifically can be used for so that processor 402 executes following operation:
According to the workload for requesting corresponding each agent client with the customer service, by the customer service Request is supplied to agent client corresponding with customer service request.
In a kind of optional embodiment, program 410 specifically can be used for so that processor 402 executes following operation:
Terminal device obtains pre-generated key after receiving service trigger request, according to described pre-generated Key, to preset purview certification equipment sending permission inquiry request, to obtain user right letter corresponding with the key Breath;
The customer service request comprising the user right information that receiving terminal apparatus is sent.
In a kind of optional embodiment, program 410 specifically can be used for so that processor 402 executes following operation:
Legitimacy is accessed according to the pre-generated key pair user to verify;
If user's access is legal, execute according to pre-generated key, to preset purview certification equipment sending permission Inquiry request, to obtain user right information corresponding with the key and subsequent step.
In a kind of optional embodiment, program 410 specifically can be used for so that processor 402 executes following operation:
It is requested according to the customer service, generates task encoding corresponding with customer service request;By the user Service request and task encoding corresponding with customer service request are supplied to the agent client;
Receive the customer service that the agent client is sent according to the service processing result that the server cluster returns Response message and task encoding corresponding with customer service request;
According to task encoding corresponding with customer service request, the customer service response message is sent to described Terminal device.
In a kind of optional embodiment, program 410 specifically can be used for so that processor 402 executes following operation:
Customer service request is written in default distributed component, so that the agent client is from described default point The customer service request is obtained in cloth component, and customer service request is committed to correspondence by the agent client Server cluster and obtain the service processing result that the server cluster returns.
In a kind of optional embodiment, program 410 specifically can be used for so that processor 402 executes following operation:
Receiving terminal apparatus is requested by presetting the customer service that tool is sent.
In a kind of optional embodiment, the default tool include: command-line tool, WEB interface tool and/or SDK tool.
Algorithm and display are not inherently related to any particular computer, virtual system, or other device provided herein. Various general-purpose systems can also be used together with teachings based herein.As described above, it constructs required by this kind of system Structure be obvious.In addition, the present invention is also not directed to any particular programming language.It should be understood that can use various Programming language realizes summary of the invention described herein, and the description done above to language-specific is to disclose this hair Bright preferred forms.
In the instructions provided here, numerous specific details are set forth.It is to be appreciated, however, that implementation of the invention Example can be practiced without these specific details.In some instances, well known method, structure is not been shown in detail And technology, so as not to obscure the understanding of this specification.
Similarly, it should be understood that in order to simplify the disclosure and help to understand one or more of the various inventive aspects, Above in the description of exemplary embodiment of the present invention, each feature of the invention is grouped together into single implementation sometimes In example, figure or descriptions thereof.However, the disclosed method should not be interpreted as reflecting the following intention: i.e. required to protect Shield the present invention claims features more more than feature expressly recited in each claim.More precisely, as following Claims reflect as, inventive aspect is all features less than single embodiment disclosed above.Therefore, Thus the claims for following specific embodiment are expressly incorporated in the specific embodiment, wherein each claim itself All as a separate embodiment of the present invention.
Those skilled in the art will understand that can be carried out adaptively to the module in the equipment in embodiment Change and they are arranged in one or more devices different from this embodiment.It can be the module or list in embodiment Member or component are combined into a module or unit or component, and furthermore they can be divided into multiple submodule or subelement or Sub-component.Other than such feature and/or at least some of process or unit exclude each other, it can use any Combination is to all features disclosed in this specification (including adjoint claim, abstract and attached drawing) and so disclosed All process or units of what method or apparatus are combined.Unless expressly stated otherwise, this specification is (including adjoint power Benefit require, abstract and attached drawing) disclosed in each feature can carry out generation with an alternative feature that provides the same, equivalent, or similar purpose It replaces.
In addition, it will be appreciated by those of skill in the art that although some embodiments described herein include other embodiments In included certain features rather than other feature, but the combination of the feature of different embodiments mean it is of the invention Within the scope of and form different embodiments.For example, in detail in the claims, embodiment claimed it is one of any Can in any combination mode come using.
Various component embodiments of the invention can be implemented in hardware, or to run on one or more processors Software module realize, or be implemented in a combination thereof.It will be understood by those of skill in the art that can be used in practice Microprocessor or digital signal processor (DSP) realize the business based on distributed system according to embodiments of the present invention The some or all functions of some or all components in processing unit.The present invention is also implemented as executing here Some or all device or device programs of described method are (for example, computer program and computer program produce Product).It is such to realize that program of the invention can store on a computer-readable medium, or can have one or more The form of signal.Such signal can be downloaded from an internet website to obtain, and perhaps be provided on the carrier signal or to appoint What other forms provides.
It should be noted that the above-mentioned embodiments illustrate rather than limit the invention, and ability Field technique personnel can be designed alternative embodiment without departing from the scope of the appended claims.In the claims, Any reference symbol between parentheses should not be configured to limitations on claims.Word "comprising" does not exclude the presence of not Element or step listed in the claims.Word "a" or "an" located in front of the element does not exclude the presence of multiple such Element.The present invention can be by means of including the hardware of several different elements and being come by means of properly programmed computer real It is existing.In the unit claims listing several devices, several in these devices can be through the same hardware branch To embody.The use of word first, second, and third does not indicate any sequence.These words can be explained and be run after fame Claim.
The invention discloses: a kind of method for processing business based on distributed system of A1., wherein the distributed system The agent client for including: multiple server clusters and being in communication with each other with the multiple server cluster, which comprises
The customer service request that receiving terminal apparatus is sent;
Customer service request is supplied to the agent client, by the agent client by the customer service Request is committed to corresponding server cluster and obtains the service processing result that the server cluster returns;
Receive the customer service that the agent client is sent according to the service processing result that the server cluster returns Response message;
The customer service response message is sent to the terminal device.
A2. method according to a1, wherein include user's power in the customer service request that the terminal device is sent Limit information.
A3. the method according to A2, wherein the agent client being in communication with each other with the multiple server cluster It is multiple;
Then described the step of customer service request is supplied to the agent client, specifically includes:
The user right information for including in the customer service request is obtained, according to the user right information determination and institute It states customer service and requests corresponding agent client, customer service request is supplied to and requests phase with the customer service Corresponding agent client.
A4. method according to a3, wherein described determined according to the user right information is asked with the customer service It is multiple for seeking corresponding agent client;
Then it is described by the customer service request be supplied to agent client corresponding with customer service request into One step includes: according to the workload for requesting corresponding each agent client with the customer service, by user's industry Business request is supplied to agent client corresponding with customer service request.
A5. the method according to any one of A2-A4, wherein the customer service that the receiving terminal apparatus is sent is asked It asks and further comprises:
Terminal device obtains pre-generated key after receiving service trigger request, according to described pre-generated Key, to preset purview certification equipment sending permission inquiry request, to obtain user right letter corresponding with the key Breath;
The customer service request comprising the user right information that receiving terminal apparatus is sent.
A6. method according to a5, wherein in the key that the basis pre-generates, set to preset purview certification Standby sending permission inquiry request, before obtaining user right information corresponding with the key, the method also includes:
Legitimacy is accessed according to the pre-generated key pair user to verify;
If user's access is legal, execute according to pre-generated key, to preset purview certification equipment sending permission Inquiry request, to obtain user right information corresponding with the key and subsequent step.
A7. the method according to any one of A1-A6, wherein it is described customer service request is supplied to it is described Agent client further comprises: being requested according to the customer service, generates task corresponding with customer service request and compile Code;The customer service is requested and task encoding corresponding with customer service request is supplied to the proxy client End;
The user for receiving the agent client and being sent according to the service processing result that the server cluster returns Service response message further comprises: receiving the service processing result that the agent client is returned according to the server cluster The customer service response message of transmission and task encoding corresponding with customer service request;
It is described the customer service response message is sent to the terminal device to further comprise: according to the user The customer service response message is sent to the terminal device by the corresponding task encoding of service request.
A8. the method according to any one of A1-A7, wherein it is described customer service request is supplied to it is described Customer service request is committed to described in corresponding server cluster and acquisition by agent client as the agent client The service processing result that server cluster returns further comprises:
Customer service request is written in default distributed component, so that the agent client is from described default point The customer service request is obtained in cloth component, and customer service request is committed to correspondence by the agent client Server cluster and obtain the service processing result that the server cluster returns.
A9. the method according to any one of A1-A8, wherein the customer service that the receiving terminal apparatus is sent is asked It asks and further comprises:
Receiving terminal apparatus is requested by presetting the customer service that tool is sent.
A10. the method according to A9, wherein the default tool include: command-line tool, WEB interface tool and/ Or SDK tool.
The invention also discloses: a kind of business processing device based on distributed system of B11., wherein the distributed system System includes: multiple server clusters and the agent client that is in communication with each other with the multiple server cluster, described device packet It includes:
Request receiving module, the customer service request sent suitable for receiving terminal apparatus;
Module is provided, suitable for customer service request is supplied to the agent client, by the agent client Customer service request is committed to corresponding server cluster and obtains the business processing knot that the server cluster returns Fruit;
Response message receiving module, at the business returned according to the server cluster suitable for receiving the agent client Manage the customer service response message that result is sent;
Response message sending module, suitable for the customer service response message is sent to the terminal device.
B12. the device according to B11, wherein include user in the customer service request that the terminal device is sent Authority information.
B13. device according to b12, wherein the proxy client being in communication with each other with the multiple server cluster End is multiple;
Then the module that provides is further adapted for: obtaining the user right information for including in the customer service request, root Agent client corresponding with customer service request is determined according to the user right information, and the customer service is requested It is supplied to agent client corresponding with customer service request.
B14. device according to b13, wherein described according to user right information determination and the customer service It is multiple for requesting corresponding agent client;
Then the offer module is further adapted for: according to each agent client corresponding with customer service request Workload, by the customer service request be supplied to agent client corresponding with customer service request.
B15. the device according to any one of B12-B14, wherein the request receiving module is further adapted for:
Terminal device obtains pre-generated key after receiving service trigger request, according to described pre-generated Key, to preset purview certification equipment sending permission inquiry request, to obtain user right letter corresponding with the key Breath;
The customer service request comprising the user right information that receiving terminal apparatus is sent.
B16. the device according to B15, wherein described device further include:
Authentication module is verified suitable for accessing legitimacy according to the pre-generated key pair user;
If user's access is legal, execute according to pre-generated key, to preset purview certification equipment sending permission Inquiry request, to obtain user right information corresponding with the key and subsequent step.
B17. the device according to any one of B11-B16, wherein the offer module is further adapted for: according to institute Customer service request is stated, task encoding corresponding with customer service request is generated;By the customer service request and with The customer service requests corresponding task encoding to be supplied to the agent client;
The response message receiving module is further adapted for: being received the agent client and is returned according to the server cluster The customer service response message and task encoding corresponding with customer service request that the service processing result returned is sent;
The response message sending module is further adapted for: according to task encoding corresponding with customer service request, The customer service response message is sent to the terminal device.
B18. the device according to any one of B11-B17, wherein the offer module is further adapted for:
Customer service request is written in default distributed component, so that the agent client is from described default point The customer service request is obtained in cloth component, and customer service request is committed to correspondence by the agent client Server cluster and obtain the service processing result that the server cluster returns.
B19. the device according to any one of B11-B18, wherein the request receiving module is further adapted for: being connect It receives terminal device and is requested by presetting the customer service that tool is sent.
B20. the device according to B19, wherein the default tool include: command-line tool, WEB interface tool and/ Or SDK tool.
The invention also discloses: a kind of distributed system of C21., comprising: multiple server clusters and the multiple service At the agent client that device cluster is in communication with each other and the business based on distributed system as described in any one of B11-B20 Manage device.
The invention also discloses: a kind of calculating equipment of D22., comprising: processor, memory, communication interface and communication are total Line, the processor, the memory and the communication interface complete mutual communication by the communication bus;
The memory executes the processor such as storing an at least executable instruction, the executable instruction The corresponding operation of method for processing business described in any one of A1-A10 based on distributed system.
The invention also discloses a kind of computer storage medium of E23., being stored at least one in the storage medium can be held Row instruction, the executable instruction execute processor at the business based on distributed system as described in any one of A1-A10 The corresponding operation of reason method.

Claims (10)

1. a kind of method for processing business based on distributed system, wherein the distributed system includes: multiple server clusters And the agent client being in communication with each other with the multiple server cluster, which comprises
The customer service request that receiving terminal apparatus is sent;
Customer service request is supplied to the agent client, is requested the customer service by the agent client It is committed to corresponding server cluster and obtains the service processing result that the server cluster returns;
The agent client is received to be responded according to the customer service that the service processing result that the server cluster returns is sent Message;
The customer service response message is sent to the terminal device.
2. according to the method described in claim 1, including user in the customer service request that the terminal device is sent wherein Authority information.
3. according to the method described in claim 2, wherein, the proxy client being in communication with each other with the multiple server cluster End is multiple;
Then described the step of customer service request is supplied to the agent client, specifically includes:
The user right information for including in the customer service request is obtained, according to user right information determination and the use Customer service request is supplied to corresponding with customer service request by the corresponding agent client of family service request Agent client.
It is described determining with the customer service according to the user right information 4. according to the method described in claim 3, wherein It is multiple for requesting corresponding agent client;
Then it is described by the customer service request be supplied to it is further with the corresponding agent client of customer service request It include: to be asked the customer service according to the workload for requesting corresponding each agent client with the customer service It asks and is supplied to agent client corresponding with customer service request.
5. the method according to any one of claim 2-4, wherein the customer service that the receiving terminal apparatus is sent is asked It asks and further comprises:
Terminal device obtains pre-generated key after receiving service trigger request, according to the pre-generated key, To preset purview certification equipment sending permission inquiry request, to obtain user right information corresponding with the key;
The customer service request comprising the user right information that receiving terminal apparatus is sent.
6. according to the method described in claim 5, wherein, in the key that the basis pre-generates, to preset purview certification Equipment sending permission inquiry request, before obtaining user right information corresponding with the key, the method also includes:
Legitimacy is accessed according to the pre-generated key pair user to verify;
If user's access is legal, executes according to pre-generated key, inquired to preset purview certification equipment sending permission Request, to obtain user right information corresponding with the key and subsequent step.
7. a kind of business processing device based on distributed system, wherein the distributed system includes: multiple server clusters And the agent client being in communication with each other with the multiple server cluster, described device include:
Request receiving module, the customer service request sent suitable for receiving terminal apparatus;
Module is provided, suitable for customer service request is supplied to the agent client, by the agent client by institute Customer service request is stated to be committed to corresponding server cluster and obtain the service processing result that the server cluster returns;
Response message receiving module, the business processing knot returned suitable for receiving the agent client according to the server cluster The customer service response message that fruit sends;
Response message sending module, suitable for the customer service response message is sent to the terminal device.
8. a kind of distributed system, comprising: multiple server clusters, the agency visitor being in communication with each other with the multiple server cluster Family end and as claimed in claim 7 based on the business processing device of distributed system.
9. a kind of calculating equipment, comprising: processor, memory, communication interface and communication bus, the processor, the storage Device and the communication interface complete mutual communication by the communication bus;
The memory executes the processor as right is wanted for storing an at least executable instruction, the executable instruction Ask the corresponding operation of method for processing business described in any one of 1-6 based on distributed system.
10. a kind of computer storage medium, an at least executable instruction, the executable instruction are stored in the storage medium Processor is set to execute such as the corresponding behaviour of the method for processing business of any of claims 1-6 based on distributed system Make.
CN201810910360.3A 2018-08-10 2018-08-10 Service processing method and device based on distributed system Active CN109040263B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810910360.3A CN109040263B (en) 2018-08-10 2018-08-10 Service processing method and device based on distributed system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810910360.3A CN109040263B (en) 2018-08-10 2018-08-10 Service processing method and device based on distributed system

Publications (2)

Publication Number Publication Date
CN109040263A true CN109040263A (en) 2018-12-18
CN109040263B CN109040263B (en) 2022-02-25

Family

ID=64632787

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810910360.3A Active CN109040263B (en) 2018-08-10 2018-08-10 Service processing method and device based on distributed system

Country Status (1)

Country Link
CN (1) CN109040263B (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110365752A (en) * 2019-06-27 2019-10-22 北京大米科技有限公司 Processing method, device, electronic equipment and the storage medium of business datum
CN110602136A (en) * 2019-09-25 2019-12-20 华为技术有限公司 Cluster access method and related product
CN111259227A (en) * 2020-01-16 2020-06-09 北京旷视科技有限公司 Method and apparatus for sharing target retrieval service between multiple retrieval clusters
CN111970240A (en) * 2020-07-10 2020-11-20 北京金山云网络技术有限公司 Cluster receiving and managing method and device and electronic equipment

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104618414A (en) * 2013-11-05 2015-05-13 阿里巴巴集团控股有限公司 Implementation method of distributed service, service agent device and distributed system
CN104639555A (en) * 2015-02-13 2015-05-20 广州华多网络科技有限公司 Request processing method, system and device
US9501493B1 (en) * 2015-12-04 2016-11-22 International Business Machines Corporation Instantiating virtualization unit on storage or proxy node for performing operation based on node having hardware characteristics for serving required file system role for operation
CN106603631A (en) * 2016-11-17 2017-04-26 北京奇艺世纪科技有限公司 Distributed message system and expansion method thereof
CN106878472A (en) * 2017-04-20 2017-06-20 广东马良行科技发展有限公司 A kind of distributed type assemblies data service method and system
CN107025409A (en) * 2017-06-27 2017-08-08 中经汇通电子商务有限公司 A kind of data safety storaging platform
CN107483495A (en) * 2017-09-21 2017-12-15 浪潮软件股份有限公司 A kind of big data cluster Host Administration method, management system and service end

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104618414A (en) * 2013-11-05 2015-05-13 阿里巴巴集团控股有限公司 Implementation method of distributed service, service agent device and distributed system
CN104639555A (en) * 2015-02-13 2015-05-20 广州华多网络科技有限公司 Request processing method, system and device
US9501493B1 (en) * 2015-12-04 2016-11-22 International Business Machines Corporation Instantiating virtualization unit on storage or proxy node for performing operation based on node having hardware characteristics for serving required file system role for operation
CN106603631A (en) * 2016-11-17 2017-04-26 北京奇艺世纪科技有限公司 Distributed message system and expansion method thereof
CN106878472A (en) * 2017-04-20 2017-06-20 广东马良行科技发展有限公司 A kind of distributed type assemblies data service method and system
CN107025409A (en) * 2017-06-27 2017-08-08 中经汇通电子商务有限公司 A kind of data safety storaging platform
CN107483495A (en) * 2017-09-21 2017-12-15 浪潮软件股份有限公司 A kind of big data cluster Host Administration method, management system and service end

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110365752A (en) * 2019-06-27 2019-10-22 北京大米科技有限公司 Processing method, device, electronic equipment and the storage medium of business datum
CN110365752B (en) * 2019-06-27 2022-04-26 北京大米科技有限公司 Service data processing method and device, electronic equipment and storage medium
CN110602136A (en) * 2019-09-25 2019-12-20 华为技术有限公司 Cluster access method and related product
CN110602136B (en) * 2019-09-25 2021-09-14 华为技术有限公司 Cluster access method and related product
CN111259227A (en) * 2020-01-16 2020-06-09 北京旷视科技有限公司 Method and apparatus for sharing target retrieval service between multiple retrieval clusters
CN111259227B (en) * 2020-01-16 2023-11-10 北京旷视科技有限公司 Method and apparatus for sharing a targeted search service among multiple search clusters
CN111970240A (en) * 2020-07-10 2020-11-20 北京金山云网络技术有限公司 Cluster receiving and managing method and device and electronic equipment

Also Published As

Publication number Publication date
CN109040263B (en) 2022-02-25

Similar Documents

Publication Publication Date Title
CN110402431B (en) Event driven scheduling using directed acyclic graphs
CN109040263A (en) Method for processing business and device based on distributed system
CN105579965B (en) Via the client guard station resources control of provider's defining interface
KR102045136B1 (en) Custom Communication Channels for Application Deployment
CN109120614A (en) Method for processing business and device based on distributed system
US8713147B2 (en) Matching a usage history to a new cloud
US11157318B2 (en) Optimizing timeouts and polling intervals
US9842004B2 (en) Adjusting resource usage for cloud-based networks
US8782233B2 (en) Embedding a cloud-based resource request in a specification language wrapper
US8904005B2 (en) Indentifying service dependencies in a cloud deployment
US20190260825A1 (en) Provisioning a bare-metal server
US10402227B1 (en) Task-level optimization with compute environments
US20190294636A1 (en) Providing microservice information
KR20200002034A (en) On-Device Machine Learning Platform
KR20210134822A (en) On-device machine learning platform
US20120254042A1 (en) Integrated Mobile/Server Applications
JP2018518744A (en) Automatic scaling of resource instance groups within a compute cluster
US11323317B1 (en) Software capabilities management from a service provider environment
CN108989430B (en) Load balancing method, device and storage medium
US11392675B2 (en) Request authorization using recipe-based service coordination
CN103391312B (en) Resource offline method for down loading and device
CN110602254A (en) Method, device and system for realizing load balance
US11048577B2 (en) Automatic correcting of computing cluster execution failure
KR20160013884A (en) Updating software components through online stores
CN108769083A (en) Login method, apparatus and system based on distributed server

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
GR01 Patent grant
GR01 Patent grant