CN110430255A - The processing method of service request, system and electronic equipment in distributed type assemblies - Google Patents

The processing method of service request, system and electronic equipment in distributed type assemblies Download PDF

Info

Publication number
CN110430255A
CN110430255A CN201910701938.9A CN201910701938A CN110430255A CN 110430255 A CN110430255 A CN 110430255A CN 201910701938 A CN201910701938 A CN 201910701938A CN 110430255 A CN110430255 A CN 110430255A
Authority
CN
China
Prior art keywords
service request
node
mapping relations
logical node
logical
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201910701938.9A
Other languages
Chinese (zh)
Inventor
李龙
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Advanced New Technologies Co Ltd
Advantageous New Technologies Co Ltd
Original Assignee
Alibaba Group Holding 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 Alibaba Group Holding Ltd filed Critical Alibaba Group Holding Ltd
Priority to CN201910701938.9A priority Critical patent/CN110430255A/en
Publication of CN110430255A publication Critical patent/CN110430255A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/1001Protocols in which an application is distributed across nodes in the network for accessing one among a plurality of replicated servers
    • 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/50Network services
    • H04L67/60Scheduling or organising the servicing of application requests, e.g. requests for application data transmissions using the analysis and optimisation of the required network resources
    • H04L67/63Routing a service request depending on the request content or context

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The embodiment of the present application discloses a kind of processing method of service request in distributed type assemblies, it include: that the first mapping relations of the service request and logical node are established according to the information of logical node in the information of service request in request agency module and logical group management module;First mapping relations are the corresponding logical node of a service request, and a logical node corresponds to more than one service request;According to the information of the information of physical cluster management module physical node and the logical node, the second mapping relations of the physical node and logical node are established, second mapping relations are one-to-one relationship;Utilize first mapping relations and the second mapping relations, the service request and the physical node are associated, by executing the service request that there are first mapping relations with the logical node with the physical node of second mapping relations with the logical node, to complete the processing to service request in distributed type assemblies.

Description

The processing method of service request, system and electronic equipment in distributed type assemblies
Technical field
This specification embodiment is related to a kind of processing side of service request in computer field more particularly to distributed type assemblies Method, system and electronic equipment.
Background technique
The service request during calling function in existing distributed environment is in realization usually where service request Agent is directly corresponding with execute server side, i.e. generation mapping relations.When execute server side is server cluster (physics collection Group) when, due to consideration that the equilibrium of load and the problems such as disaster tolerance, thus be directly with each server in the server cluster (physical node) mapping, when service request is called, stochastic route to some server in cluster, i.e., in random call cluster Some server.But in this case, when the read-write service that physical cluster externally provides is stateful, i.e. service request It is assigned on fixed physical node (machine) and executes, can guarantee the serialization processing that data are write in this way, but sometimes simultaneously It cannot accomplish that all stateful service requests can meet this kind of situation.When physical cluster is stateless, by this The statelessness of physical node can accomplish the flexible switching of server node in class physical cluster, service request be also not by It is assigned to and is executed on fixed physical machine, this statelessness can be because thrashing or the reasons such as concurrently cause once Request is handled by more physical machines, such as when secondary request has data write operation, then it is inconsistent or write to may cause data The problems such as bad data or database have a large amount of hot spots.
Summary of the invention
In order to solve the above technical problems, the main purpose of this specification embodiment is to provide in a kind of distributed type assemblies Processing method, system and the electronic equipment of service request, with the primary service in distributed type assemblies in the prior art of solution Request may be executed by more physical machines, the caused technical problem for mistake occur.
The technical solution of one or more embodiments of this specification is achieved in the following ways:
The embodiment of the present application provides a kind of processing method of service request in distributed type assemblies, comprising:
According to the information of logical node in the information of service request in request agency module and logical group management module, build Found the first mapping relations of the service request and logical node;First mapping relations are that a service request is one corresponding Logical node, and a logical node corresponds to more than one service request;
According to the information of the information of physical node and the logical node in physical cluster management module, the physics is established Second mapping relations of node and logical node, second mapping relations are one-to-one relationship;
Using first mapping relations and the second mapping relations, the service request and the physical node are closed Connection, by being executed with the logical node with the physical node of second mapping relations with described with the logical node The service request of first mapping relations, to complete the processing to service request in distributed type assemblies.
The embodiment of the present application also provides a kind of processing methods of service request in distributed type assemblies, are establishing the service Before the mapping relations of request and logical node, further includes:
The configuring request white list in the request agency module, the service request are the clothes in the request white list Business request.
The embodiment of the present application also provides a kind of processing methods of service request in distributed type assemblies, are establishing the service Before the mapping relations of request and logical node, further includes: the request agency module obtains the information of the logical node.
It is described to be asked according to service the embodiment of the present application also provides a kind of processing method of service request in distributed type assemblies The information of the information and logical node asked establishes the first mapping relations of the service request and logical node, specifically:
It is calculated by parameter of the preset computation rule to the service request;
The result of the calculating is matched with the number of the logical node, establishes the service request and logic section First mapping relations of point.
It is described according to physics collection the embodiment of the present application also provides a kind of processing method of service request in distributed type assemblies The information of physical node and the information of the logical node in group's management module establish the of the physical node and logical node Two mapping relations, specifically include:
The Universally Unique Identifier information of the physical node is added to the logical node, establishes the physical node With the one-to-one relationship of the logical node.
The embodiment of the present application also provides a kind of processing methods of service request in distributed type assemblies, when the physical node When changing, by the Universally Unique Identifier information update of the physical node after variation into the logical node, institute is established The one-to-one relationship of physical node and the logical node after stating variation.
The embodiment of the present application also provides a kind of processing methods of service request in distributed type assemblies, are utilizing described first Mapping relations and the second mapping relations, before the service request and the physical node are associated, further includes:
The request agency module subscribes to the information of the logical node to the logical group management module;
The logical group management module judges whether the logical node changes, when the logical node becomes When change, the logical group management module sends update notification to the request agency module, and the request agency module updates Logical node after variation.
The embodiment of the present application also provides a kind of processing method of service request in distributed type assemblies, by with the logic Node executes the clothes for having first mapping relations with the logical node with the physical node of second mapping relations Business request, to complete the processing to service request in distributed type assemblies, specifically:
When the service request initiates call request, the corresponding logical node of the service request is called;
The corresponding logical node of the service request calls corresponding physical node;
The physical node judges the general unique identification in the Universally Unique Identifier and the logical node of its own Whether code is consistent;
When the two is consistent, the corresponding physical node of the logical node handles the service request;
Otherwise, the physical node is not handled the service request, and the information is passed through the logical node It is back to the request agency module.
The embodiment of the present application also provides a kind of processing systems of service request in distributed type assemblies, comprising:
First mapping relations establish module, manage mould according to the information of service request in request agency module and logical group The information of logical node in block establishes the first mapping relations of the service request and logical node;First mapping relations A logical node is corresponded to for a service request, and a logical node corresponds to more than one service request;
Second mapping relations establish module, according to the information of physical node in physical cluster management module and the logic section The information of point, establishes the second mapping relations of the physical node and logical node, and second mapping relations are to correspond Relationship;
Execution module, using first mapping relations and the second mapping relations, by the service request and the physics Node is associated, by having the physical node of second mapping relations to execute and the logic section with the logical node Point has the service request of first mapping relations, to complete the processing to service request in distributed type assemblies.
The embodiment of the present application also provides a kind of processing systems of service request in distributed type assemblies, further includes:
White list configuration module is requested, is asked before establishing the mapping relations of the service request and logical node described Configuring request white list in proxy module is sought, the service request is the service request in the request white list.
The embodiment of the present application also provides a kind of electronic equipment, comprising:
Memory, for storing program instruction;
Processor, it is above-mentioned to realize described in above-mentioned the embodiment of the present application to realize for executing described program instruction Service clear processing method.
Compared with the prior art, at least one above-mentioned technical solution that the embodiment of the present application uses can reach following beneficial Effect:
The embodiment of the present application provides a kind of processing method of Distributed Services request, by creating for each physical node One unique logical node realizes physical node and the decoupling that service request is called, so that the corresponding physical node of logic circle is It is stateless, so that physical node can be changed flexibly;It is stateful between the calling and logical node of service request , the service request of user can be distributed in fixed logical node, to guarantee the calling and treatment process of service request It can guarantee the serialization write.It allows service request to be uniformly dispersed in physical node different in physical cluster, ensure that one Service request can only be executed by a physical node or processing, solves a service request under stateless by multiple physics sections Point processing is to the technical problem of mistake occur.
Meanwhile embodiments herein provide processing method also solve service request where service request act on behalf of mould It is directly corresponding with physical node when block has the function of logical group management module simultaneously, that is, calling directly physics section When point, needs to establish the mapping relations with physical node and need the behaviour such as reading or increase and decrease, the update of maintenance physical node Make, the very big problem of caused service request proxy module workload.
Detailed description of the invention
In order to illustrate more clearly of this specification embodiment or technical solution in the prior art, below will to embodiment or Attached drawing needed to be used in the description of the prior art is briefly described, it should be apparent that, the accompanying drawings in the following description is only The some embodiments recorded in this specification, for those of ordinary skill in the art, in not making the creative labor property Under the premise of, it is also possible to obtain other drawings based on these drawings.
The stream of the processing method of service request in a kind of distributed type assemblies that Fig. 1 provides for one embodiment of this specification Journey schematic diagram;
The entirety side of the processing of service request in a kind of distributed type assemblies that Fig. 2 provides for one embodiment of this specification Case structural schematic diagram;
The knot of the processing system of service request in a kind of distributed type assemblies that Fig. 3 provides for one embodiment of this specification Structure schematic diagram.
Specific embodiment
To keep the purposes, technical schemes and advantages of the application clearer, below in conjunction with the application specific embodiment and Technical scheme is clearly and completely described in corresponding attached drawing.Obviously, described embodiment is only the application A part of the embodiment, instead of all the embodiments.Based on this specification embodiment, those of ordinary skill in the art are not making Every other embodiment obtained under the premise of creative work out, shall fall within the protection scope of the present application.
Embodiments herein is further described in conjunction with attached drawing.
As shown in Figure 1, for the processing of service request in a kind of distributed type assemblies for providing of one embodiment of this specification The flow diagram of method, method includes the following steps:
Before carrying out the method, first configuring request white list is needed, request white list configures in request agency module, By the service request configuration for needing to handle by this method in request white list, the service request in the present embodiment is that request is white Service request in list.The purpose of the step is the service request that selection needs to carry out this method, does not need to execute this method Service request no longer request in white list, can guarantee in this way request white list in service request by execute this method A service request, which may be implemented, to be executed by physical node, from without a service request by multiple physics The case where node execution leads to error.The service request in request white list is not executed by the prior art.The step It is equivalent to and judges whether service request is the service request requested in white list, if so, executing this method.If it is not, then Do not execute this method.
Step S100 establishes service request and logical node according to the information of the information of service request and logical node First mapping relations, the first mapping relations are the corresponding logical node of a service request, and a logical node is one corresponding The above service request.Physical node can be the execution units such as server, physical terminal machine, logical node in the present embodiment It is the intermediate tie for playing function served as bridge abstracted in the present embodiment as between service request and physical node, logic section Point can be an intermediate file, and service request is assigned to corresponding physical node by logical node and is executed.
The step specifically includes:
It is calculated by parameter of the preset computation rule to service request.Include in each service request and the request Corresponding parameter information, certain information in customized selection parameter information are handled as needed, in the present embodiment, can To be that user identity proves (UID), process identity mark (PID) etc., the parameter of different service requests may be different.It is default Computation rule can be hash algorithm, by hash algorithm in service request parameter key value carry out Hash calculation, tool The calculation of the hash algorithm of body be equally can according to need carry out it is customized, select in the present embodiment be choose Inverse the 2nd, 3 calculation method as Hash that user identity proves, inverse 1,2 for choosing process identity mark are used as Kazakhstan Uncommon calculation method.It is corresponding with the number of logical node after the parameter key value of service request is calculated by hash algorithm , the result after the parameter key value of a service request is calculated by hash algorithm can be with the number of a logical node It is corresponding.Certainly it is also an option that other Hash calculation methods calculate the parameter key value of service request.Service is asked The parameter key value asked is can be with the parameter key value of the unique identification service request.
The result of calculating is matched with the number of logical node, establishes the first mapping of service request and logical node Relationship.Logical node is that have certain number, and logical node is numbered according to the title of logical node and address, such as There are 100 logical nodes, this hundred logical nodes can be numbered according to the title and address of logical node, from 00 To 99.The parameter of service request by hash algorithm calculate after obtain result be with the number of logical node can be corresponding, That is the number that the parameter of each service request has a logical node by hash algorithm calculating later is corresponding. Service request is matched with logical node thus, establishes the first mapping relations of service request and logical node.No Same service request can be different Hash calculation methods, be selected according to service request and the information of logical node corresponding Hash calculation method, further establish the first mapping relations between the two.
Multiple and different service requests may obtain identical knot after above-mentioned hash algorithm calculating parameter key value Fruit, the corresponding same logical node, that is, multiple service requests can map the same logical node, be not a logic section Point can only correspond to a service request.
It is worth noting that further including the steps that the information for obtaining logical node before executing the step.It is patrolled in acquisition It just can establish the first mapping relations between service request and logical node after the information of volume node.The step, which can be, is asking Proxy module starting is asked to carry out when requesting.
Step S200 establishes physical node and logical node according to the information of the information of physical node and logical node Second mapping relations, the second mapping relations are one-to-one relationship.Physical node is mapped in logical node one by one, one Physical node maps a logical node, the Universally Unique Identifier (UUID) of physical node is written in logical node, UUID It can be and generated according to the address Mac of server network interface card.Include in logical node physical node Universally Unique Identifier it Afterwards, illustrate that this logical node physical node corresponding with this Universally Unique Identifier establishes mapping relations.Decision logic When whether having had existed Universally Unique Identifier in node, sentenced by the logical group management module where logical node It is disconnected, it include logical node in logical group management module, logical node can regard one in logical group management module as A file.Logical group management module has lock mechanism, and the process of mapping relations is established between physical node and logical node In, the one-to-one correspondence between logical node and physical node can be guaranteed by lock mechanism, that is, guarantee a logic section Point can only correspond to a physical node, and the Universally Unique Identifier of a physical node can only be saved in a logical node.But It is that when the corresponding physical node of logical node can send change, such as physical node damage, physics section can be replaced Point, physical node and logical node or one-to-one relationship after replacement.
The corresponding physical node of one logical node, when physical node changes, saved in logical node it The Universally Unique Identifier of preceding physical node also needs to be changed, physics after changing several points it is general unique Identification code write-in is without in the logical node of corresponding newest physical node.Newest physical node refers to general unique identification Code physical node identical with the Universally Unique Identifier saved in logical node.There is no coupling between physical node and service request Conjunction relationship, that is to say, that decoupled service request and physical node by logical node in the technical solution of the application, often The corresponding unique logical node of a physical node, physical node is that do not have unique corresponding relation directly with service request 's.It, can be corresponding by logical node when physical node corresponding with logical node changes (such as situations such as damage) Physical node is replaced or is updated, and physical node can be changed flexibly.
The second mapping relations in the step are established during physical node starting.
Step S300, using first mapping relations and the second mapping relations, by the service request and the physics Node is associated, by having the physical node of second mapping relations to execute and the logic section with the logical node Point has the service request of first mapping relations, to complete the processing to service request in distributed type assemblies.
Before service request and physical node are associated further include: request agency module is to logical group management module The information of logical node is subscribed to, whether logical group management module decision logic node changes, when logical node becomes When change, logical group management module sends update notification to request agency module, and request agency module logic node is prompted to occur Variation, request agency module receive the logical node after update notification after more new change.Such as when logical node has increase, Need to subscribe to the information of the logical node after increasing.Only in logical node, logical group management module will be patrolled after changing The change information of volume node is sent to request agency module, request agency module by the logical node information after received variation into Logical node after row caching, service request and variation establishes mapping relations.Subscribe to logical node information purpose be in order to Request agency module, that is, client does not have to per the full dose logical node letter pulled in logical group management module at regular intervals Breath, further improves the working efficiency of request agency module, improves the performance of request agency module.
When the service request initiates call request, the corresponding logical node of the service request is called;The service is asked Corresponding logical node is asked to call physical node corresponding with the service request, logical node pair corresponding with this service request The physical node answered judges the Universally Unique Identifier of its own and has with it logical in logical node of the second mapping relations It is whether consistent with unique identifier.When the two is consistent, the corresponding physical node of the logical node to current service request into Row processing;Otherwise, this physical node is not handled current service request, and physical node with it by having second to reflect The information not handled current service request is sent to request agency module by the logical node for penetrating relationship.Work as physical node After the information for receiving logical node, whether the Universally Unique Identifier in decision logic node is general with physical node itself Unique identifier is consistent.When consistent, physical node execute service request, otherwise do not execute and by the information not executed by with Its corresponding logical node is sent to request agency module, and request agency module decides whether to re-start calling as needed Request.When there is inconsistency, illustrate that physical node is changed, such as physical node there is a problem, after changing The information of physical node updates in logical node not yet.The general unique identification of physical node after needing to change at this time In code information update to logical node not corresponding with original physical node, one of physical node and logical node after establishing variation One-to-one correspondence.
Logical node save physical node Universally Unique Identifier after, the information of logical node include title, The Universally Unique Identifier of location and physical node.
Wherein, a side of service requester and subscription logical node information is client, process of the client in starting The middle information for subscribing to all logical nodes, for logical node after changing, client will be updated the information of logical node, That is the subscription of service request and logical message executes in the client.Equally, judge whether service request asks Asking the request in white list is also to execute in the client.Physical node in the embodiment of the present application is in physical node management In module, logical node is in logical group management module, and client can be service request proxy module.With reference to Fig. 2.
The embodiment of the present application provides a kind of processing method of Distributed Services request, by creating for each physical node One unique logical node realizes physical node and the decoupling that service request is called, so that the corresponding physical node of logical node Be it is stateless (the corresponding physical node of a logical node only one, but the corresponding physical node of this logical node Can replace), so that physical node can be changed flexibly;It is to have shape between the calling and logical node of service request State (namely a service request can only correspond to some logical node, this logical node cannot change, and be equivalent to one Service request and some logical node are bound, but can only be bound with a service request not equal to this logical node, one A logical node can be to a reply service request), the service request of user can be distributed in fixed logical node, thus The calling and treatment process for guaranteeing service request can guarantee the serialization write.It ensure that a service request can only be by an object It manages node to execute or handle, solves a service request and handled mistake occur by multiple physical nodes under stateless Technical problem.
Meanwhile embodiments herein provide processing method also solve service request where service request act on behalf of mould Block has the function of logical group management module simultaneously, directly corresponding with physical node, that is, is calling directly physical node When, it needs to establish the mapping relations with physical node and increase and decrease, the update etc. for needing to read or safeguard physical node operates, The very big problem of caused service request proxy module workload.The task of service request proxy module is simplified, so that in reality Using effect in the application of border is more preferable.
The service request in request white list not can be used the prior art and carry out random process.
Present invention also provides a kind of embodiment of concrete application scene, the application scenarios can be mail intelligent recommendation, The scene of the functions such as contact person's search.It is illustrated for the application scenarios of one mail intelligent recommendation of the present embodiment.
Intelligent recommendation function in mail is according to information such as the good friends for sending and receiving, contacting of history mail of user User information retrieval database is set up, when user scans for, user is pushed to most according to user information retrieval database It is possible that interested content (such as addressee etc.).Since this functionality is constructed according to the historical data of user, The searching database for needing to construct oneself for each user realizes that upper by the construction database sharing of each user is one in system A file, is stored in distributed file system, and the building of this retrieval file is increment type building.When user often receives one When sealing mail, which will be parsed, then relevant information is added in the user information retrieval database of foundation, The original corresponding file of user information retrieval database can thus be modified.Such user information retrieval database is corresponding The write operation of file is if there is parallel when the enterprising row write of multiple servers operates, it is more likely that will lead to data entanglement, shadow Normal service function is rung, so to guarantee the serialization processing of retrieval file building, that is, user information retrieval database The write operation of corresponding file can only be executed in a server.
In order to solve the problems, such as above-mentioned file write operation it is possible that the case where, in building user information retrieval database When, to the calling of building service request, we can be in the white list of request agency module configuration service request, mark service Request is to need to carry out the service request of stateful processing.When a service start request, whether this service request is judged For the service request in service request white list, if it is, carrying out the method in embodiments herein.Where service request Client (request agency module) information that pulls logical node, by service request by scheduled algorithm in service request Parameter key value calculated, the result of calculating is matched with the number of logical node, establishes service request and logic section The first mapping relations between point.The number of logical node is editted before carrying out the first mapping relations.Service request Call logical node that there are the first mapping relations with it, service request and logical node are stateful, that is, clothes Business request can only correspond to a logical node, this logical node cannot change, but a logical node can correspond to it is multiple Service request.Physical node is established on startup and the second mapping relations of logical node, between physical node and logical node The second mapping relations be stateless, that is, the corresponding logical node of physical node, but logical node is corresponding Physical node can change.After logical node receives the calling of service request, calling with logical node there is the second mapping to close The physical node of system, Universally Unique Identifier in physical node decision logic node whether be oneself itself general unique knowledge Other code, if it is, executing service request.Otherwise it does not execute.Above-mentioned steps are re-executed, until can execute.
Embodiment provided by the present application can guarantee that the service request for having the first mapping relations with logical node can be only It is handled by a physical node, solves the problems of the prior art.
The above method realizes the processing to service request, solve in the prior art a service request by multiple physics Node executes the problem for mistake occur, has reached corresponding technical effect, this specification embodiment also provides a kind of realization The system of the above method can realize the above method by the system.The system can solve technology same as the above method Problem can achieve technical effect same as mentioned above, with reference to Fig. 3.
The system includes:
First mapping relations establish module 1, according to the information of service request in request agency module and logical group management The information of logical node in module establishes the first mapping relations of the service request and logical node;
Second mapping relations establish module 2, according to the information of physical node in physical cluster management module and the logic The information of node, establishes the second mapping relations of the physical node and logical node, and second mapping relations are one a pair of The relationship answered;
Execution module 3, using first mapping relations and the second mapping relations, by the service request and the physics Node is associated, by having the physical node of second mapping relations to execute and the logic section with the logical node Point has the service request of first mapping relations, to complete the processing to service request in distributed type assemblies.
Further include: request white list configuration module 4, before establishing the mapping relations of the service request and logical node Configuring request white list, the service request are the service request in the request white list.
This specification embodiment additionally provides a kind of electronic equipment, comprising: more than one memory and more than one processing Device.Wherein,
Memory (not shown), for storing program instruction, memory can be of short duration storage or persistent storage.
Processor (not shown), for executing described program instruction, to realize distributed type assemblies in the technical program The processing method of middle service request.
In the 1990s, the improvement of a technology can be distinguished clearly be on hardware improvement (for example, Improvement to circuit structures such as diode, transistor, switches) or software on improvement (improvement for method flow).So And with the development of technology, the improvement of current many method flows can be considered as directly improving for hardware circuit. Designer nearly all obtains corresponding hardware circuit by the way that improved method flow to be programmed into hardware circuit.Cause This, it cannot be said that the improvement of a method flow cannot be realized with hardware entities module.For example, programmable logic device (Programmable Logic Device, PLD) (such as field programmable gate array (Field Programmable Gate Array, FPGA)) it is exactly such a integrated circuit, logic function determines device programming by user.By designer Voluntarily programming comes a digital display circuit " integrated " on a piece of PLD, designs and makes without asking chip maker Dedicated IC chip.Moreover, nowadays, substitution manually makes IC chip, this programming is also used instead mostly " is patrolled Volume compiler (logic compiler) " software realizes that software compiler used is similar when it writes with program development, And the source code before compiling also write by handy specific programming language, this is referred to as hardware description language (Hardware Description Language, HDL), and HDL is also not only a kind of, but there are many kind, such as ABEL (Advanced Boolean Expression Language)、AHDL(Altera Hardware Description Language)、Confluence、CUPL(Cornell University Programming Language)、HDCal、JHDL (Java Hardware Description Language)、Lava、Lola、MyHDL、PALASM、RHDL(Ruby Hardware Description Language) etc., VHDL (Very-High-Speed is most generally used at present Integrated Circuit Hardware Description Language) and Verilog.Those skilled in the art also answer This understands, it is only necessary to method flow slightly programming in logic and is programmed into integrated circuit with above-mentioned several hardware description languages, The hardware circuit for realizing the logical method process can be readily available.
Controller can be implemented in any suitable manner, for example, controller can take such as microprocessor or processing The computer for the computer readable program code (such as software or firmware) that device and storage can be executed by (micro-) processor can Read medium, logic gate, switch, specific integrated circuit (Application Specific Integrated Circuit, ASIC), the form of programmable logic controller (PLC) and insertion microcontroller, the example of controller includes but is not limited to following microcontroller Device: ARC 625D, Atmel AT91SAM, Microchip PIC18F26K20 and Silicone Labs C8051F320 are deposited Memory controller is also implemented as a part of the control logic of memory.It is also known in the art that in addition to Pure computer readable program code mode is realized other than controller, can be made completely by the way that method and step is carried out programming in logic Controller is obtained to come in fact in the form of logic gate, switch, specific integrated circuit, programmable logic controller (PLC) and insertion microcontroller etc. Existing identical function.Therefore this controller is considered a kind of hardware component, and to including for realizing various in it The device of function can also be considered as the structure in hardware component.Or even, it can will be regarded for realizing the device of various functions For either the software module of implementation method can be the structure in hardware component again.
System, device, module or the unit that above-described embodiment illustrates can specifically realize by computer chip or entity, Or it is realized by the product with certain function.It is a kind of typically to realize that equipment is computer.Specifically, computer for example may be used Think personal computer, laptop computer, cellular phone, camera phone, smart phone, personal digital assistant, media play It is any in device, navigation equipment, electronic mail equipment, game console, tablet computer, wearable device or these equipment The combination of equipment.
For convenience of description, it is divided into various units when description apparatus above with function to describe respectively.Certainly, implementing this The function of each unit can be realized in the same or multiple software and or hardware when application.
It should be understood by those skilled in the art that, the embodiment of the present invention can provide as method, system or computer program Product.Therefore, complete hardware embodiment, complete software embodiment or reality combining software and hardware aspects can be used in the present invention Apply the form of example.Moreover, it wherein includes the computer of computer usable program code that the present invention, which can be used in one or more, The computer program implemented in usable storage medium (including but not limited to magnetic disk storage, CD-ROM, optical memory etc.) produces The form of product.
The present invention be referring to according to the method for the embodiment of the present invention, the process of equipment (system) and computer program product Figure and/or block diagram describe.It should be understood that every one stream in flowchart and/or the block diagram can be realized by computer program instructions The combination of process and/or box in journey and/or box and flowchart and/or the block diagram.It can provide these computer programs Instruct the processor of general purpose computer, special purpose computer, Embedded Processor or other programmable data processing devices to produce A raw machine, so that being generated by the instruction that computer or the processor of other programmable data processing devices execute for real The device for the function of being specified in present one or more flows of the flowchart and/or one or more blocks of the block diagram.
These computer program instructions, which may also be stored in, is able to guide computer or other programmable data processing devices with spy Determine in the computer-readable memory that mode works, so that it includes referring to that instruction stored in the computer readable memory, which generates, Enable the manufacture of device, the command device realize in one box of one or more flows of the flowchart and/or block diagram or The function of being specified in multiple boxes.
These computer program instructions also can be loaded onto a computer or other programmable data processing device, so that counting Series of operation steps are executed on calculation machine or other programmable devices to generate computer implemented processing, thus in computer or The instruction executed on other programmable devices is provided for realizing in one or more flows of the flowchart and/or block diagram one The step of function of being specified in a box or multiple boxes.
In a typical configuration, calculating equipment includes one or more processors (CPU), input/output interface, net Network interface and memory.
Memory may include the non-volatile memory in computer-readable medium, random access memory (RAM) and/or The forms such as Nonvolatile memory, such as read-only memory (ROM) or flash memory (flash RAM).Memory is computer-readable medium Example.
Computer-readable medium includes permanent and non-permanent, removable and non-removable media can be by any method Or technology come realize information store.Information can be computer readable instructions, data structure, the module of program or other data. The example of the storage medium of computer includes, but are not limited to phase change memory (PRAM), static random access memory (SRAM), moves State random access memory (DRAM), other kinds of random access memory (RAM), read-only memory (ROM), electric erasable Programmable read only memory (EEPROM), flash memory or other memory techniques, read-only disc read only memory (CD-ROM) (CD-ROM), Digital versatile disc (DVD) or other optical storage, magnetic cassettes, tape magnetic disk storage or other magnetic storage devices Or any other non-transmission medium, can be used for storage can be accessed by a computing device information.As defined in this article, it calculates Machine readable medium does not include temporary computer readable media (transitory media), such as the data-signal and carrier wave of modulation.
It should also be noted that, the terms "include", "comprise" or its any other variant are intended to nonexcludability It include so that the process, method, commodity or the equipment that include a series of elements not only include those elements, but also to wrap Include other elements that are not explicitly listed, or further include for this process, method, commodity or equipment intrinsic want Element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that including described want There is also other identical elements in the process, method of element, commodity or equipment.
The application can describe in the general context of computer-executable instructions executed by a computer, such as program Module.Generally, program module includes routines performing specific tasks or implementing specific abstract data types, programs, objects, group Part, data structure etc..The application can also be practiced in a distributed computing environment, in these distributed computing environments, by Task is executed by the connected remote processing devices of communication network.In a distributed computing environment, program module can be with In the local and remote computer storage media including storage equipment.
All the embodiments in this specification are described in a progressive manner, same and similar portion between each embodiment Dividing may refer to each other, and each embodiment focuses on the differences from other embodiments.Especially for system reality For applying example, since it is substantially similar to the method embodiment, so being described relatively simple, related place is referring to embodiment of the method Part explanation.
More than, the only preferable specific embodiment of one or more embodiments of description of the invention, but invention description The protection scope of one or more embodiments of book is not limited thereto, and anyone skilled in the art is in this hair In the technical scope that one or more embodiments of bright specification disclose, any changes or substitutions that can be easily thought of, should all cover Within the protection scope of one or more embodiments of description of the invention.Therefore, the one or more of description of the invention is real The protection scope for applying example should be subject to the scope of protection of the claims.

Claims (11)

1. the processing method of service request in a kind of distributed type assemblies, comprising:
According to the information of logical node in the information of service request in request agency module and logical group management module, institute is established State the first mapping relations of service request and logical node;First mapping relations are the corresponding logic of a service request Node, and a logical node corresponds to more than one service request;
According to the information of the information of physical node and the logical node in physical cluster management module, the physical node is established With the second mapping relations of logical node, second mapping relations are one-to-one relationship;
Using first mapping relations and the second mapping relations, the service request and the physical node are associated, Have described the with the logical node by executing with the logical node with the physical node of second mapping relations The service request of one mapping relations, to complete the processing to service request in distributed type assemblies.
2. processing method according to claim 1, before establishing the mapping relations of the service request and logical node, Further include:
The configuring request white list in the request agency module, the service request are that the service in the request white list is asked It asks.
3. processing method according to claim 1, in the first mapping relations for establishing the service request and logical node Before, further includes: the request agency module obtains the information of the logical node.
It is described according to the information of service request and the information of logical node 4. processing method according to claim 1, it establishes First mapping relations of the service request and logical node, specifically:
It is calculated by parameter of the preset computation rule to the service request;
The result of the calculating is matched with the number of the logical node, establishes the service request and logical node First mapping relations.
5. processing method according to claim 1, it is described according to the information of physical node in physical cluster management module and The information of the logical node is established the second mapping relations of the physical node and logical node, is specifically included:
The Universally Unique Identifier information of the physical node is added to the logical node, establishes the physical node and institute State the one-to-one relationship of logical node.
6. processing method according to claim 5, when the physical node changes, by the physical node after variation Universally Unique Identifier information update into the logical node, physical node after establishing the variation and the logic section The one-to-one relationship of point.
It, will be described 7. processing method according to claim 1 is utilizing first mapping relations and the second mapping relations Before service request and the physical node are associated, further includes:
The request agency module subscribes to the information of the logical node to the logical group management module;
The logical group management module judges whether the logical node changes, when the logical node changes When, the logical group management module sends update notification to the request agency module, and the request agency module, which updates, to be become Logical node after change.
8. processing method according to claim 6, by having the object of second mapping relations with the logical node It manages node and executes the service request that there are first mapping relations with the logical node, to complete to being taken in distributed type assemblies The processing of business request, specifically:
When the service request initiates call request, the corresponding logical node of the service request is called;
The corresponding logical node of the service request calls corresponding physical node;
The physical node judges that the Universally Unique Identifier of its own and the Universally Unique Identifier in the logical node are It is no consistent;
When the two is consistent, the corresponding physical node of the logical node handles the service request;
Otherwise, the physical node is not handled the service request, and the information is returned by the logical node To the request agency module.
9. the processing system of service request in a kind of distributed type assemblies, comprising:
First mapping relations establish module, according in request agency module in the information of service request and logical group management module The information of logical node establishes the first mapping relations of the service request and logical node;First mapping relations are one The corresponding logical node of a service request, and a logical node corresponds to more than one service request;
Second mapping relations establish module, according to the information of physical node in physical cluster management module and the logical node Information, establishes the second mapping relations of the physical node and logical node, and second mapping relations are one-to-one close System;
Execution module, using first mapping relations and the second mapping relations, by the service request and the physical node It is associated, has by having the physical node of second mapping relations to execute with the logical node with the logical node There is the service request of first mapping relations, to complete the processing to service request in distributed type assemblies.
10. processing system according to claim 9, further includes:
White list configuration module is requested, in the request generation before establishing the mapping relations of the service request and logical node Configuring request white list in module is managed, the service request is the service request in the request white list.
11. a kind of electronic equipment, comprising:
Memory, for storing program instruction;
Processor, for executing described program instruction, to realize method described in any item of the claim 1 to 8.
CN201910701938.9A 2019-07-31 2019-07-31 The processing method of service request, system and electronic equipment in distributed type assemblies Pending CN110430255A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910701938.9A CN110430255A (en) 2019-07-31 2019-07-31 The processing method of service request, system and electronic equipment in distributed type assemblies

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910701938.9A CN110430255A (en) 2019-07-31 2019-07-31 The processing method of service request, system and electronic equipment in distributed type assemblies

Publications (1)

Publication Number Publication Date
CN110430255A true CN110430255A (en) 2019-11-08

Family

ID=68411839

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910701938.9A Pending CN110430255A (en) 2019-07-31 2019-07-31 The processing method of service request, system and electronic equipment in distributed type assemblies

Country Status (1)

Country Link
CN (1) CN110430255A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113283891A (en) * 2021-05-13 2021-08-20 北京字跳网络技术有限公司 Information processing method and device and electronic equipment
CN113296970A (en) * 2020-06-29 2021-08-24 阿里巴巴集团控股有限公司 Message processing method and device, and message queue management method and device
CN114465895A (en) * 2022-03-03 2022-05-10 上海微盟企业发展有限公司 Request distribution method, device, equipment and storage medium based on micro service

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101192920A (en) * 2006-11-21 2008-06-04 华为技术有限公司 A response request method and device
US20140281065A1 (en) * 2011-09-23 2014-09-18 Netapp, Inc. Consistent distributed storage communication protocol semantics in a clustered storage system
CN104618414A (en) * 2013-11-05 2015-05-13 阿里巴巴集团控股有限公司 Implementation method of distributed service, service agent device and distributed system
CN109002362A (en) * 2017-06-06 2018-12-14 阿里巴巴集团控股有限公司 A kind of method of servicing, device, system and electronic equipment

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101192920A (en) * 2006-11-21 2008-06-04 华为技术有限公司 A response request method and device
US20140281065A1 (en) * 2011-09-23 2014-09-18 Netapp, Inc. Consistent distributed storage communication protocol semantics in a clustered storage system
CN104618414A (en) * 2013-11-05 2015-05-13 阿里巴巴集团控股有限公司 Implementation method of distributed service, service agent device and distributed system
CN109002362A (en) * 2017-06-06 2018-12-14 阿里巴巴集团控股有限公司 A kind of method of servicing, device, system and electronic equipment

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113296970A (en) * 2020-06-29 2021-08-24 阿里巴巴集团控股有限公司 Message processing method and device, and message queue management method and device
CN113296970B (en) * 2020-06-29 2024-03-01 阿里巴巴集团控股有限公司 Message processing and message queue management method and device
CN113283891A (en) * 2021-05-13 2021-08-20 北京字跳网络技术有限公司 Information processing method and device and electronic equipment
CN114465895A (en) * 2022-03-03 2022-05-10 上海微盟企业发展有限公司 Request distribution method, device, equipment and storage medium based on micro service

Similar Documents

Publication Publication Date Title
KR102208186B1 (en) Blockchain consensus method and device
CN113766035B (en) Service acceptance and consensus method and device
CN110430255A (en) The processing method of service request, system and electronic equipment in distributed type assemblies
CN108683695A (en) Hot spot access processing method, cache access agent equipment and distributed cache system
CN109614404B (en) Data caching system and method
CN108418851A (en) Policy issue system, method, apparatus and equipment
CN109284305A (en) A kind of update method of data, apparatus and system
CN108345977A (en) A kind of method for processing business and device
CN111355816B (en) Server selection method, device, equipment and distributed service system
CN104239156A (en) External service call method and system
TW202008763A (en) Data processing method and apparatus, and client
CN109391512A (en) A kind of service issuing method, device and electronic equipment
CN112003922B (en) Data transmission method and device
CN110471629A (en) A kind of method, apparatus of dynamic capacity-expanding, storage medium, equipment and system
CN116167092B (en) Secret state data query method and device, storage medium and electronic equipment
CN108390914A (en) A kind of service update method and device, system
CN109982034A (en) Access request processing method and processing device in video monitoring system
CN109144600A (en) A kind of operation method of application program, equipment and computer-readable medium
CN109460312A (en) Request the processing method and processing device of failure
CN106156050A (en) A kind of data processing method and device
CN110489392A (en) Data access method, device, system, storage medium and equipment between multi-tenant
CN108681492A (en) Data processing method and device
CN114968422A (en) Method and device for automatically executing contracts based on variable state
CN114328129A (en) Message sending method, device, equipment and storage medium
CN107704502A (en) A kind of method for routing, device, equipment and system

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
TA01 Transfer of patent application right

Effective date of registration: 20200927

Address after: Cayman Enterprise Centre, 27 Hospital Road, George Town, Grand Cayman Islands

Applicant after: Innovative advanced technology Co.,Ltd.

Address before: Cayman Enterprise Centre, 27 Hospital Road, George Town, Grand Cayman Islands

Applicant before: Advanced innovation technology Co.,Ltd.

Effective date of registration: 20200927

Address after: Cayman Enterprise Centre, 27 Hospital Road, George Town, Grand Cayman Islands

Applicant after: Advanced innovation technology Co.,Ltd.

Address before: A four-storey 847 mailbox in Grand Cayman Capital Building, British Cayman Islands

Applicant before: Alibaba Group Holding Ltd.

TA01 Transfer of patent application right
RJ01 Rejection of invention patent application after publication

Application publication date: 20191108

RJ01 Rejection of invention patent application after publication