CN109120614A - Method for processing business and device based on distributed system - Google Patents
Method for processing business and device based on distributed system Download PDFInfo
- Publication number
- CN109120614A CN109120614A CN201810911459.5A CN201810911459A CN109120614A CN 109120614 A CN109120614 A CN 109120614A CN 201810911459 A CN201810911459 A CN 201810911459A CN 109120614 A CN109120614 A CN 109120614A
- Authority
- CN
- China
- Prior art keywords
- key
- customer service
- request
- right information
- distributed system
- 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
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L63/00—Network architectures or network communication protocols for network security
- H04L63/08—Network architectures or network communication protocols for network security for authentication of entities
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/10—Protocols in which an application is distributed across nodes in the network
- H04L67/1001—Protocols in which an application is distributed across nodes in the network for accessing one among a plurality of replicated servers
Abstract
The invention discloses a kind of method for processing business and device based on distributed system.Wherein, distributed system includes control server, multiple server clusters and agent client, and method includes: that pre-generated key is obtained after receiving service trigger request;According to pre-generated key, to preset purview certification equipment sending permission inquiry request, to obtain user right information corresponding with key;Customer service request comprising user right information is sent to control server, customer service request is sent to by corresponding agent client according to user right information for control server, customer service request is committed to corresponding server cluster by agent client and is handled.It can be convenient for the management of user right information using this programme, the drawbacks of avoiding distributed system poor expandability caused by terminal device IP address and business processing client and server one-to-one correspondence and load imbalance in the prior art, and system maintenance cost is greatly reduced.
Description
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, in each terminal device
Middle setting and the one-to-one business processing client of terminal device, and by the IP address of terminal device, business processing client
Mark and the binding of server set faciation.When user triggers business processing request, according to the terminal device IP of terminal local storage
The corresponding server cluster information in address determines server cluster corresponding with service request, by the business processing in terminal device
Client obtains business processing request, and is sent to corresponding server cluster.
However, at present in distributed system method for processing business terminal device IP address, client and server cluster
It corresponds, and since the IP address of terminal device is usually fixation, so that server set corresponding with terminal device
Group is constant always, is unfavorable for the quick dilatation of client, server cluster and/or terminal, influences the expansible of distributed system
Property, and easily cause the load imbalance of server cluster;Also, in the prior art the IP address, client of terminal device with
The corresponding relationship of server cluster is stored in terminal local, to be not easy to the management of user right information;Further, since existing
The business processing client terminal quantity of required maintenance in technology is more, thus be added significantly to client maintenance burden and safeguard at
This.
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: control server, multiple server clusters and the generation being in communication with each other with the multiple server cluster
Manage client, which comprises
After receiving service trigger request, pre-generated key is obtained;
According to the pre-generated key, to preset purview certification equipment sending permission inquiry request, with obtain with
The corresponding user right information of the key;
It will be sent to the control server comprising the request of the customer service of the user right information, for the middle control
Customer service request is sent to corresponding agent client according to the user right information by server, by the agency
Customer service request is committed to corresponding server cluster and handled by client.
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: control server, multiple server clusters and the generation being in communication with each other with the multiple server cluster
Client is managed, described device includes:
It obtains module and obtains pre-generated key after receiving service trigger request;
Enquiry module, suitable for being inquired to preset purview certification equipment sending permission according to the pre-generated key
Request, to obtain user right information corresponding with the key;
Sending module, suitable for will include that the customer service request of the user right information is sent to the middle control service
Device, so that customer service request is sent to corresponding agency visitor according to the user right information by the control server
Customer service request is committed to corresponding server cluster by the agent client and handled by family end.
According to another aspect of the invention, a kind of distributed system is provided, comprising: control server, multiple servers
Cluster, the agent client being in communication with each other with the multiple server cluster and such as above-mentioned business based on distributed system
Processing unit.
In accordance with a further aspect of the present 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.
According to another aspect of the 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.It is asked receiving business triggering
After asking, pre-generated key is obtained;According to pre-generated key, asked to the inquiry of preset purview certification equipment sending permission
It asks, to obtain user right information corresponding with key;Customer service request comprising user right information is sent to
Server is controlled, customer service request is sent to by corresponding agent client according to user right information for control server, by
Customer service request is committed to corresponding server cluster and handled by agent client.Using this programme, user can be convenient for
The management of authority information avoids in the prior art corresponding terminal device IP address and business processing client and server
Caused by distributed system poor expandability and the drawbacks of load imbalance, and system maintenance cost can be greatly reduced.
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, distributed system include: control server, multiple server clusters and with multiple server clusters
The agent client being in communication with each other.
As shown in Figure 1, this method comprises:
Step S110 after receiving service trigger request, obtains pre-generated key.
Wherein, the present embodiment can be executed in terminal equipment side.Before receiving service trigger request, it can pre-generate close
Key.Wherein, which can be for the key for verifying user's access legitimacy, the public affairs such as generated based on asymmetric encryption techniques
Key and private key etc..
Further, it after user triggers service trigger request in terminal device by predetermined registration operation, is connect in this step
Receive the service trigger request.Wherein, the present embodiment to the type of predetermined registration operation without limitation, for example, user can be pre- by clicking
If control triggers service trigger request, service trigger request can also be triggered by information such as input pre-set commands rows, can also led to
Cross preset gesture operation etc. triggering service trigger request.
Step S120, according to pre-generated key, to preset purview certification equipment sending permission inquiry request, to obtain
Take user right information corresponding with key.
Different from the prior art in terminal local storage terminal device and client and the binding relationship of server cluster,
By means of pre-generated key in the present embodiment, the storage user right letter in the purview certification equipment for being different from terminal local
Breath is conducive to improve the expansible of distributed system entirety consequently facilitating the dynamic of user right information updates and unified management
Property.
Specifically, according to the pre-generated key obtained in step S110, to preset purview certification equipment transmission route
Inquiry request is limited, so that user right information corresponding with the pre-generated key is found out in purview certification equipment,
And obtain the user right information corresponding with key found out.
Customer service request comprising user right information is sent to control server, for middle control clothes by step S130
Customer service request is sent to corresponding agent client according to user right information by business device, by agent client by user's industry
Business request is committed to corresponding server cluster and is handled.
Wherein, the number of the agent client in the present embodiment in distributed system be less than terminal device number, one
Agent client can receive the customer service request that one or more terminal devices that control server provides are sent.
In the specific implementation process, customer service request is sent to middle control by each terminal device in the present embodiment
Server is requested by the customer service that control server unified management receives terminal device transmission.Control server is according to this
User right information determines agent client corresponding with customer service request, and then customer service request is sent to and is used
Customer service request is further committed to corresponding server by the corresponding agent client of family service request, agent client
Cluster is handled, to realize the processing to business.
It can be seen that the present embodiment is different from prior art terminal equipment, client and corresponding server cluster one by one
It is corresponding, and corresponding informance is stored in terminal device local, the present embodiment is managed collectively by preset purview certification equipment
And the user right information in distributed storage system, consequently facilitating the management and update of user right information, also, this implementation
In example by customer service request decoupling in client and the one-to-one relationship of server cluster, thus using less generation
Reason client can realize the processing of business in distributed system, and system maintenance cost is greatly reduced.Using this programme, convenient for using
The management of family authority information avoids in the prior art drawing terminal device with business processing client and server one-to-one correspondence
The drawbacks of distributed system poor expandability and load imbalance for rising.
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, distributed system include: control server, multiple server clusters and with multiple server sets
The agent client of faciation mutual communication.
As shown in Fig. 2, this method comprises:
Step S210 generates the key that legitimacy is accessed for verifying user, and key storage is local in terminal device,
And by the key registration of generation to preset purview certification equipment.
Wherein, provided in this embodiment to be executed based on the method for processing business of distributed system in terminal equipment side.It is optional
, which is specifically executed by the default tool in terminal device.Wherein, default tool include: command-line tool,
WEB interface tool and/or SDK tool etc..Default tool in the present embodiment compared to the prior art in install in terminal device
Business processing client, have occupy memory space it is small, installation and renewal process be simple and efficient and running environment adaptation
The features such as property is strong.For example, at the Hadoop business installed in each terminal device in Hadoop distributed system in the prior art
Managing the occupied memory space of client is usually up to a hundred million, and installation and renewal process complexity are inefficient, and in the present embodiment
The occupied memory space of command-line tool is usually several million, to substantially save the memory space in terminal device, and is ordered
Running environment that row tool is relied on requires lower, suitable for the terminal device of different operating system, and installs and updated
Journey is simple and easy.
In the specific implementation process, the key that legitimacy is accessed for verifying user is firstly generated.Wherein, the present embodiment
Specific generation method and the type of key to key etc. are not construed as limiting, and those skilled in the art can be according to actual demand voluntarily
Setting.For example, asymmetric encryption techniques can be based on, corresponding key such as is generated using RSA Algorithm, includes public key in the key
And private key.Can realize the verifying that legitimacy is accessed user by the public key and private key.
Further, by the key storage of generation in terminal device local.Specifically, after generating key, for convenient for
The acquisition of the subsequent verifying and/or user right information for accessing user legitimacy, sets key storage in terminal in this step
In standby local.Wherein, the present embodiment is not construed as limiting specific storage location etc. of the key in terminal device.
Still further, by the key registration of generation to preset purview certification equipment.Wherein, purview certification equipment is public affairs
Server altogether.By the unified storage of purview certification equipment and management user right information in the present embodiment.Specifically, in preset power
The key of generation, and user right information corresponding with key are stored in limit authenticating device.Optionally, for convenient for subsequent step
Quickly find out user right information corresponding with key in rapid, can only store the public key in key in this step, and with public affairs
The corresponding user right information of key.Wherein, and the corresponding user right information of key is specially agency visitor corresponding with key
The information and/or server cluster information at family end, wherein server cluster information corresponding with key specifically includes server set
Certain part resource information in group identification, and/or server cluster etc..
Step S220 after receiving service trigger request, obtains pre-generated key.
After user triggers service trigger request in terminal device by predetermined registration operation, the business is received in this step
Trigger request.Wherein, the present embodiment to the type of predetermined registration operation without limitation.
Further, after receiving service trigger request, the pre-generated key that terminal device is locally stored is obtained.
Step S230 judges that user accesses legitimacy according to pre-generated key, if legal, then further executes step
S240。
To ensure that the safety of user right information safety and business processing carries out, obtained in this step according in step S220
The pre-generated key taken judges that user accesses legitimacy.Specifically, according in the key of acquisition public key and private key pass through
Public and private key verification method to user access legitimacy verify, the present embodiment to specific verification method without limitation.
If user's access is legal, step S240 is further executed;Otherwise, this method terminates.
Step S240, according to pre-generated key, to preset purview certification equipment sending permission inquiry request, to obtain
Take user right information corresponding with key.
Specifically, if what is stored in purview certification equipment is the public key in key, and user right corresponding with public key
Information is then asked according to the public key in pre-generated key to the inquiry of preset purview certification equipment sending permission in this step
It asks.
Purview certification equipment, according to the key information carried in inquiry request, is searched after receiving permission inquiry request
User right information corresponding with the key information, and it is sent to terminal device, so that terminal device acquisition be made to answer with key pair
User right information.
Customer service request comprising user right information is sent to control server, for middle control clothes by step S250
Customer service request is sent to corresponding agent client according to user right information by business device, by agent client by user's industry
Business request is committed to corresponding server cluster and is handled.
Specifically, the customer service request comprising user right information is sent to control server by terminal device, in
Control the unified reception of server and management customer service request.Optionally, by being received in this present embodiment by control server is unified
The customer service request that each terminal device is sent realizes the efficient place of business then for the ease of the management of customer service request
It manages, it is further that customer service request write-in is pre- in the present embodiment after control server receives customer service request
If in distributed component, so that customer service request is obtained from default distributed component for agent client, and by the agency
Customer service request is committed to corresponding server cluster and obtains the service processing result of server cluster return by client.
Wherein, default distributed component can be zookeeper distributed component.Default distributed component can by customer service request with
The modes such as queue carry out storage management, are easy to the efficient process of business.
Control server receive customer service request after, according in service request user right information determine with
Customer service requests corresponding agent client.By describing in step S210 it is found that including in user right information and user
Corresponding proxy client client information and/or server cluster information.Then in this step, if including in user right information and using
The corresponding proxy client client information in family, then control server can directly determining according to the proxy client client information and customer service
Request corresponding agent client;If in user right information including server cluster information corresponding to the user, middle control
Server can be determining to request with customer service further according to the corresponding relationship of each server cluster and each agent client
Corresponding agent client.
Further, after determining corresponding with customer service request agent client, control server is by user's industry
Business request is sent to the agent client.Optionally, if control server determines agency visitor corresponding with customer service request
Family end be it is multiple, then according further to the workload for requesting corresponding each agent client with customer service, will use
Family service request is supplied to agent client corresponding with customer service request.As according to corresponding with customer service request
Customer service request is supplied to agent client corresponding with customer service request by the workload of each agent client
The middle the smallest agent client of workload.To realize load balancing, lifting system stability, and improve business processing effect
Rate.It is further alternative, if in control server after the customer service request that receiving terminal apparatus is sent, by customer service
Request is written in default distributed component, then control server customer service request is sent to the agent client specifically,
Agent client corresponding with customer service request is preset from this and obtains customer service request in distributed component.
Still further, requesting corresponding agent client to receive user's industry that control server is sent in customer service
After business request, which is committed to corresponding server cluster for customer service request and handles.
Step S260 receives the business returned by agent client according to the server cluster that control server is sent
The customer service response message that processing result is sent.
Specifically, customer service request is committed at corresponding server cluster in step S250 agent client
After reason, the service processing result of acquisition is back to agent client by server cluster.Further basis should for agent client
Service processing result generates customer service response message and customer service response message is sent to control server.Middle control service
The customer service response message received is further sent to terminal device by device, so that terminal device be made to receive middle control service
The customer service response message sent by agent client according to the service processing result that server cluster returns that device is sent.
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, and terminal device is directly tieed up with control server in the present embodiment
Hold with long connection, after control server receives customer service request, requests to generate according further to customer service
Task encoding corresponding with customer service request, and by customer service request and task encoding corresponding with customer service request
It is supplied to corresponding agent client.Customer service response message that then control server is sent according to agent client and with
Customer service requests corresponding task encoding, by corresponding terminal device in the transmission of customer service response message.
It can be seen that the present embodiment pre-generates the key for accessing legitimacy for verifying user, by key storage in end
End equipment is local and by the key registration of generation to preset purview certification equipment, by means of the key of generation in preset permission
User right information is obtained in authenticating device, is managed collectively in the present embodiment by preset purview certification equipment and storage and distribution
User right information in formula system, consequently facilitating the management and update of user right information, also, in the present embodiment only with
Under the premise of family access is legal, user right information is further obtained, to ensure the security implementation of business processing.
Also, the present embodiment is by customer service request decoupling in client and the one-to-one relationship of server cluster
In, the customer service that each terminal device is sent is managed collectively by control server and is requested, and by quantity less than terminal device
Agent client and server set group communication, obtain corresponding service processing result.To use less agent client just
The business processing in great amount of terminals equipment can be achieved, avoiding needs maintenance a large number of services processing client in the prior art and bring
Maintenance load is high, maintenance cost is high, maintenance efficiency is low and maintenance effects are poor drawback.And then system resource is saved, and advantageous
In the maintenance cost for reducing distributed system entirety.
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, the distributed system include: control server, multiple server clusters and with it is described more
The agent client that a server cluster is in communication with each other, as shown in figure 3, the device include: obtain module 31, enquiry module 32 with
And sending module 33.
Wherein, it obtains module 32 and obtains pre-generated key after receiving service trigger request;
Enquiry module 32, suitable for being looked into preset purview certification equipment sending permission according to the pre-generated key
Request is ask, to obtain user right information corresponding with the key;
Sending module 33, suitable for will include that the customer service request of the user right information is sent to the middle control service
Device, so that customer service request is sent to corresponding agency visitor according to the user right information by the control server
Customer service request is committed to corresponding server cluster by the agent client and handled by family end.
Optionally, the device further include:
Generation module (not shown), suitable for generating the key for accessing legitimacy for verifying user;
Memory module (not shown) is suitable for the key storage in terminal device local;
Registration module (not shown), suitable for by the key registration of the generation to preset purview certification equipment.
Optionally, registration module is further adapted for: the key is stored in the preset purview certification equipment, and
User right information corresponding with the key.
Optionally, the device further include: authentication module (not shown), suitable for being tested according to the pre-generated key
It demonstrate,proves user and accesses legitimacy;
If user's access is legal, executes in enquiry module according to the pre-generated key, recognize to preset permission
Demonstrate,prove equipment sending permission inquiry request.
Optionally, the pre-generated key includes public key and private key;
Then enquiry module 32 is further adapted for: according to the public key in the pre-generated key, being recognized to preset permission
Demonstrate,prove equipment sending permission inquiry request.
Optionally, the device further include: receiving module (not shown), suitable for receiving the control server transmission
The customer service response message sent by agent client according to the service processing result that the server cluster returns.
Optionally, sending module 33 is further adapted for: will request to send comprising the customer service of the user right information
To the control server, requested so that the control server is generated according to the user right information with the customer service
Corresponding task encoding, and the customer service is requested and task encoding corresponding with customer service request is sent to
Corresponding agent client.
Optionally, the preset purview certification equipment is public server.
Optionally, described device is set in the default tool in terminal device.
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 can be seen that the present embodiment is different from the prior art for terminal device, client and corresponding server cluster one
One is corresponding, and corresponding informance is stored in terminal device local, and the present embodiment is uniformly managed by preset purview certification equipment
User right information in reason and distributed storage system, consequently facilitating the management and update of user right information, also, this reality
It applies in example by customer service request decoupling in client and the one-to-one relationship of server cluster, thus using less
Agent client can realize the processing of business in distributed system, and system maintenance cost is greatly reduced.It, can be just using this programme
In the management of user right information, avoid in the prior art corresponding terminal device and business processing client and server
Caused by distributed system poor expandability and the drawbacks of load imbalance.
A kind of distributed system provided according to an embodiment of the present invention.Distributed system includes: control server, more
In a server cluster, the agent client being in communication with each other with multiple server clusters and embodiment illustrated in fig. 3 based on point
The business processing device of cloth system.
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:
After receiving service trigger request, pre-generated key is obtained;
According to the pre-generated key, to preset purview certification equipment sending permission inquiry request, with obtain with
The corresponding user right information of the key;
It will be sent to the control server comprising the request of the customer service of the user right information, for the middle control
Customer service request is sent to corresponding agent client according to the user right information by server, by the agency
Customer service request is committed to corresponding server cluster and handled by client.
In a kind of optional embodiment, program 410 specifically can be used for so that processor 402 executes following operation:
The key that legitimacy is accessed for verifying user is generated, and by the key storage in terminal device local;
By the key registration of the generation to preset purview certification equipment.
In a kind of optional embodiment, program 410 specifically can be used for so that processor 402 executes following operation:
The key, and user right corresponding with the key are stored in the preset purview certification equipment
Information.
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 authentication user;
If user's access is legal, executes according to the pre-generated key, sent to preset purview certification equipment
Permission inquiry request and subsequent step.
In a kind of optional embodiment, the pre-generated key includes public key and private key;
Program 410 specifically can be used for so that processor 402 executes following operation:
According to the public key in the pre-generated key, to preset purview certification equipment sending permission inquiry request.
In a kind of optional embodiment, program 410 specifically can be used for so that processor 402 executes following operation:
Receive the business processing returned by agent client according to the server cluster that the control server is sent
As a result the customer service response message sent.
In a kind of optional embodiment, program 410 specifically can be used for so that processor 402 executes following operation:
The control server generates task corresponding with customer service request according to the user right information and compiles
Code, and by the customer service request and task encoding corresponding with customer service request to be sent to corresponding agency objective
Family end.
In a kind of optional embodiment, the preset purview certification equipment is public server.
In a kind of optional embodiment, the method is executed by the default tool in terminal device.
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
It include: control server, multiple server clusters and the agent client being in communication with each other with the multiple server cluster, institute
The method of stating includes:
After receiving service trigger request, pre-generated key is obtained;
According to the pre-generated key, to preset purview certification equipment sending permission inquiry request, with obtain with
The corresponding user right information of the key;
It will be sent to the control server comprising the request of the customer service of the user right information, for the middle control
Customer service request is sent to corresponding agent client according to the user right information by server, by the agency
Customer service request is committed to corresponding server cluster and handled by client.
A2. method according to a1, wherein it is described receive service trigger request after, obtain pre-generated close
Before key, the method also includes:
The key that legitimacy is accessed for verifying user is generated, and by the key storage in terminal device local;
By the key registration of the generation to preset purview certification equipment.
A3. the method according to A2, wherein the key registration by the generation to preset purview certification equipment
Further comprise: storing the key, and user corresponding with the key in the preset purview certification equipment
Authority information.
A4. the method according to any one of A1-A3, wherein described according to the pre-generated key, to pre-
If purview certification equipment sending permission inquiry request before, the method also includes:
Legitimacy is accessed according to the pre-generated key authentication user;
If user's access is legal, executes according to the pre-generated key, sent to preset purview certification equipment
Permission inquiry request and subsequent step.
A5. the method according to any one of A1-A4, wherein the pre-generated key includes public key and private key;
It is then described according to the pre-generated key, to preset purview certification equipment sending permission inquiry request into one
Step includes: according to the public key in the pre-generated key, to preset purview certification equipment sending permission inquiry request.
A6. the method according to any one of A1-A5, wherein will include user's industry of the user right information
Business request is sent to after the control server, the method also includes:
Receive the business processing returned by agent client according to the server cluster that the control server is sent
As a result the customer service response message sent.
A7. the method according to any one of A1-A6, wherein the control server is believed according to the user right
Customer service request is sent to corresponding agent client by breath:
The control server generates task corresponding with customer service request according to the user right information and compiles
Code, and by the customer service request and task encoding corresponding with customer service request to be sent to corresponding agency objective
Family end.
A8. the method according to any one of A1-A7, wherein the preset purview certification equipment is public service
Device.
A9. the method according to any one of A1-A8, wherein the method is held by the default tool in terminal device
Row.
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: control server, multiple server clusters and the agent client being in communication with each other with the multiple server cluster,
Described device includes:
It obtains module and obtains pre-generated key after receiving service trigger request;
Enquiry module, suitable for being inquired to preset purview certification equipment sending permission according to the pre-generated key
Request, to obtain user right information corresponding with the key;
Sending module, suitable for will include that the customer service request of the user right information is sent to the middle control service
Device, so that customer service request is sent to corresponding agency visitor according to the user right information by the control server
Customer service request is committed to corresponding server cluster by the agent client and handled by family end.
B12. the device according to B11, wherein described device further include:
Generation module, suitable for generating the key for accessing legitimacy for verifying user;
Memory module is suitable for the key storage in terminal device local;
Registration module, suitable for by the key registration of the generation to preset purview certification equipment.
B13. device according to b12, wherein the registration module is further adapted for: recognize in the preset permission
The key, and user right information corresponding with the key are stored in card equipment.
B14. the device according to any one of B11-B13, wherein described device further include:
Authentication module, suitable for accessing legitimacy according to the pre-generated key authentication user;
If user's access is legal, executes in enquiry module according to the pre-generated key, recognize to preset permission
Demonstrate,prove equipment sending permission inquiry request.
B15. the device according to any one of B11-B14, wherein the pre-generated key includes public key and private
Key;
Then the enquiry module is further adapted for: according to the public key in the pre-generated key, to preset permission
Authenticating device sending permission inquiry request.
B16. the device according to any one of B11-B15, wherein described device further include:
Receiving module, suitable for receiving being returned by agent client according to the server cluster for the control server transmission
The customer service response message that the service processing result returned is sent.
B17. the device according to any one of B11-B16, wherein the sending module is further adapted for: will include
The customer service request of the user right information is sent to the control server, so that the control server is according to
User right information generates corresponding with customer service request task encoding, and by the customer service request and with institute
Stating customer service requests corresponding task encoding to be sent to corresponding agent client.
B18. the device according to any one of B11-B17, wherein the preset purview certification equipment is public clothes
Business device.
B19. the device according to any one of B11-B18, wherein described device is set to default in terminal device
In tool.
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: control server, multiple server clusters and institute
It states agent client that multiple server clusters are in communication with each other and is based on distribution as described in any one of B11-B20
The business processing device of system.
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: control server, more
A server cluster and the agent client being in communication with each other with the multiple server cluster, which comprises
After receiving service trigger request, pre-generated key is obtained;
According to the pre-generated key, to preset purview certification equipment sending permission inquiry request, with obtain with it is described
The corresponding user right information of key;
It will be sent to the control server comprising the request of the customer service of the user right information, so that the middle control services
Customer service request is sent to corresponding agent client according to the user right information by device, by the proxy client
Customer service request is committed to corresponding server cluster and handled by end.
2. according to the method described in claim 1, wherein, it is described receive service trigger request after, obtain pre-generated
Before key, the method also includes:
The key that legitimacy is accessed for verifying user is generated, and by the key storage in terminal device local;
By the key registration of the generation to preset purview certification equipment.
3. according to the method described in claim 2, wherein, the key registration by the generation to preset purview certification is set
It is standby to further comprise: the key, and use corresponding with the key are stored in the preset purview certification equipment
Family authority information.
4. method according to any one of claim 1-3, wherein described according to the pre-generated key, to
Before preset purview certification equipment sending permission inquiry request, the method also includes:
Legitimacy is accessed according to the pre-generated key authentication user;
If user's access is legal, execute according to the pre-generated key, to preset purview certification equipment sending permission
Inquiry request and subsequent step.
5. method according to any of claims 1-4, wherein the pre-generated key includes public key and private
Key;
It is then described according to the pre-generated key, it is further wrapped to preset purview certification equipment sending permission inquiry request
It includes: according to the public key in the pre-generated key, to preset purview certification equipment sending permission inquiry request.
6. method according to any one of claims 1-5, wherein will include user's industry of the user right information
Business request is sent to after the control server, the method also includes:
Receive the service processing result returned by agent client according to the server cluster that the control server is sent
The customer service response message of transmission.
7. a kind of business processing device based on distributed system, wherein the distributed system includes: control server, more
A server cluster and the agent client being in communication with each other with the multiple server cluster, described device include:
It obtains module and obtains pre-generated key after receiving service trigger request;
Enquiry module, suitable for according to the pre-generated key, to preset purview certification equipment sending permission inquiry request,
To obtain user right information corresponding with the key;
Sending module, suitable for by include the user right information customer service request be sent to the control server, with
Customer service request is sent to by corresponding agent client according to the user right information for the control server,
Customer service request corresponding server cluster is committed to by the agent client to handle.
8. a kind of distributed system, comprising: control server, multiple server clusters, mutual with the multiple server cluster
The agent client of communication 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.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810911459.5A CN109120614B (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 |
---|---|---|---|
CN201810911459.5A CN109120614B (en) | 2018-08-10 | 2018-08-10 | Service processing method and device based on distributed system |
Publications (2)
Publication Number | Publication Date |
---|---|
CN109120614A true CN109120614A (en) | 2019-01-01 |
CN109120614B CN109120614B (en) | 2021-09-28 |
Family
ID=64852058
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810911459.5A Active CN109120614B (en) | 2018-08-10 | 2018-08-10 | Service processing method and device based on distributed system |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109120614B (en) |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110545173A (en) * | 2019-07-29 | 2019-12-06 | 大众问问(北京)信息科技有限公司 | method and device for safety verification and request sending |
CN110910233A (en) * | 2019-11-27 | 2020-03-24 | 王向远 | Internet financial platform credit risk monitoring method and device and electronic equipment |
CN111970240A (en) * | 2020-07-10 | 2020-11-20 | 北京金山云网络技术有限公司 | Cluster receiving and managing method and device and electronic equipment |
CN112668059A (en) * | 2021-03-16 | 2021-04-16 | 浙江华创视讯科技有限公司 | Conference authorization control method, device, electronic equipment, system and storage medium |
CN115865529A (en) * | 2023-02-20 | 2023-03-28 | 深圳融安网络科技有限公司 | Control method and device of embedded communication bus, terminal equipment and storage medium |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104539982A (en) * | 2014-12-18 | 2015-04-22 | 新浪网技术(中国)有限公司 | Method and system for dispatching of video resource point-to-point sharing and node terminal |
US20160142375A1 (en) * | 2014-11-19 | 2016-05-19 | Onavo Mobile Ltd. | Techniques to authenticate a client to a proxy through a domain name server intermediary |
CN107025409A (en) * | 2017-06-27 | 2017-08-08 | 中经汇通电子商务有限公司 | A kind of data safety storaging platform |
CN107528813A (en) * | 2016-06-22 | 2017-12-29 | 北京金山云网络技术有限公司 | Access system, method, control server and the proxy server of privately owned cluster |
CN107613030A (en) * | 2017-11-06 | 2018-01-19 | 网宿科技股份有限公司 | A kind of method and system of processing business request |
US20180091616A1 (en) * | 2014-02-19 | 2018-03-29 | Level 3 Communications, Llc | Content delivery network architecture with edge proxy |
-
2018
- 2018-08-10 CN CN201810911459.5A patent/CN109120614B/en active Active
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20180091616A1 (en) * | 2014-02-19 | 2018-03-29 | Level 3 Communications, Llc | Content delivery network architecture with edge proxy |
US20160142375A1 (en) * | 2014-11-19 | 2016-05-19 | Onavo Mobile Ltd. | Techniques to authenticate a client to a proxy through a domain name server intermediary |
CN104539982A (en) * | 2014-12-18 | 2015-04-22 | 新浪网技术(中国)有限公司 | Method and system for dispatching of video resource point-to-point sharing and node terminal |
CN107528813A (en) * | 2016-06-22 | 2017-12-29 | 北京金山云网络技术有限公司 | Access system, method, control server and the proxy server of privately owned cluster |
CN107025409A (en) * | 2017-06-27 | 2017-08-08 | 中经汇通电子商务有限公司 | A kind of data safety storaging platform |
CN107613030A (en) * | 2017-11-06 | 2018-01-19 | 网宿科技股份有限公司 | A kind of method and system of processing business request |
Non-Patent Citations (3)
Title |
---|
SONG WU: "A novel cache scheme for cluster-based streaming proxy server", 《IEEE》 * |
夏卓群等: "基于集群的流媒体缓存代理服务器体系结构", 《计算机应用》 * |
马云龙等: "电力调度系统广域分布式代理关键技术", 《电力系统及其自动化学报》 * |
Cited By (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110545173A (en) * | 2019-07-29 | 2019-12-06 | 大众问问(北京)信息科技有限公司 | method and device for safety verification and request sending |
CN110910233A (en) * | 2019-11-27 | 2020-03-24 | 王向远 | Internet financial platform credit risk monitoring method and device and electronic equipment |
CN110910233B (en) * | 2019-11-27 | 2022-07-29 | 华炫鼎盛(北京)科技有限公司 | Internet financial platform credit risk monitoring method and device and electronic equipment |
CN111970240A (en) * | 2020-07-10 | 2020-11-20 | 北京金山云网络技术有限公司 | Cluster receiving and managing method and device and electronic equipment |
CN112668059A (en) * | 2021-03-16 | 2021-04-16 | 浙江华创视讯科技有限公司 | Conference authorization control method, device, electronic equipment, system and storage medium |
CN115865529A (en) * | 2023-02-20 | 2023-03-28 | 深圳融安网络科技有限公司 | Control method and device of embedded communication bus, terminal equipment and storage medium |
CN115865529B (en) * | 2023-02-20 | 2023-05-12 | 深圳融安网络科技有限公司 | Control method and device of embedded communication bus, terminal equipment and storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN109120614B (en) | 2021-09-28 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109120614A (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 | |
AU2016264496B2 (en) | Custom communication channels for application deployment | |
US20180062942A1 (en) | Methods and Systems for Exception Detection and Reporting in a Distributed Network System | |
US9397902B2 (en) | Methods and systems of tracking and verifying records of system change events in a distributed network system | |
JP2021177428A (en) | On-device machine learning platform | |
US10972540B2 (en) | Requesting storage performance models for a configuration pattern of storage resources to deploy at a client computing environment | |
KR20200002034A (en) | On-Device Machine Learning Platform | |
CN109040263A (en) | Method for processing business and device based on distributed system | |
US11157318B2 (en) | Optimizing timeouts and polling intervals | |
US9846899B1 (en) | Dynamic software licensing | |
US11075983B2 (en) | Compliance aware service registry and load balancing | |
US20160173487A1 (en) | Controlling a discovery component, within a virtual environment, that sends authenticated data to a discovery engine outside the virtual environment | |
US11048577B2 (en) | Automatic correcting of computing cluster execution failure | |
US11323317B1 (en) | Software capabilities management from a service provider environment | |
CN109117252A (en) | Method, system and the container cluster management system of task processing based on container | |
WO2015065454A1 (en) | Aggregating, presenting, and fulfilling a number of catalogs | |
KR20180038515A (en) | Graphical processing virtualization on the provider network | |
US10176067B1 (en) | On-demand diagnostics in a virtual environment | |
US20240015213A1 (en) | Extend controller for multi-tenancy | |
US20200310895A1 (en) | Aggregation messaging within an integration environment | |
Neelima et al. | An experimental evaluation of running cost analysis for web application on cloud using queueing model | |
US20200167201A1 (en) | Process as a network service hub | |
CN116881238A (en) | Micro-service architecture-based SAAS (software as a service) platform and method for power market user management | |
CN114389998A (en) | Flow distribution method, system, computer equipment and storage medium |
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 |