CN106572051A - Distributed lock service realizing method and device for distributed system - Google Patents
Distributed lock service realizing method and device for distributed system Download PDFInfo
- Publication number
- CN106572051A CN106572051A CN201510648902.0A CN201510648902A CN106572051A CN 106572051 A CN106572051 A CN 106572051A CN 201510648902 A CN201510648902 A CN 201510648902A CN 106572051 A CN106572051 A CN 106572051A
- Authority
- CN
- China
- Prior art keywords
- request
- rpc
- requests
- distributed
- http request
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
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/02—Network architectures or network communication protocols for network security for separating internal from external traffic, e.g. firewalls
- H04L63/029—Firewall traversal, e.g. tunnelling or, creating pinholes
-
- 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/02—Protocols based on web technology, e.g. hypertext transfer protocol [HTTP]
-
- 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/133—Protocols for remote procedure calls [RPC]
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Computer Hardware Design (AREA)
- Computer Security & Cryptography (AREA)
- Computing Systems (AREA)
- General Engineering & Computer Science (AREA)
- Computer And Data Communications (AREA)
Abstract
The application discloses a distributed lock service realizing method for a distributed system. The method comprises the following steps: an RPC request corresponding to a lock operation request sent by a client end is received; the received RPC request is packaged, and a corresponding HTTP request is generated; via a preset data link, the HTTP request is sent to a network server; a request response of the HTTP request returned via the network server is received; the request response of the HTTP request is parsed, a request response of the RPC request is generated; the request response of the RPC request is sent to the client end; the RPC request is sent to a service end via the network server; the request response of the RPC request is sent out via the service end, and the request response of the HTTP request is generated after the request response is packaged via the network client end. Via the distributed lock service realizing method for the distributed system, a firewall between the client end and the server can be easily penetrated, a layer of protection is added based on an HTTP protocol layer, safety can be improved, and expandability is increased.
Description
Technical field
The application is related to distributed system technical field, and in particular to distributed lock clothes in a kind of distributed system
Business implementation method.Device is realized in distributed lock service during the application is related to a kind of distributed system simultaneously, a kind of
It is based on the method and apparatus that the webserver realizes distributed lock service in a distributed system, a kind of based on visitor
The method and apparatus that distributed lock is serviced is realized at family end in a distributed system, and one kind is existed based on service end
The method and apparatus that distributed lock service is realized in distributed system.
Background technology
With the continuous development of computer technology and network technology, the scale of computer system becomes increasing,
Traditional integrated system can not increasingly meet demand of the user to computer system, various system trays
Structure model emerges in an endless stream, and distributed system architecture is arisen at the historic moment, ZooKeeper as one it is distributed, open
The distributed application program coordination service of source code is put, is widely used.
ZooKeeper is developed by the sub-project of Apache Hadoop, and ZooKeeper is answered for distributed
With there is provided efficient and reliable distributed coordination service, there is provided such as name uniform service, configuration management
With distributed lock distributed infrastructure service.The design object of ZooKeeper is that those are complicated and easily malfunctions
Distributed consensus service be encapsulated, constitute the primitive collection of a high efficient and reliable, and with a series of simple
Easy-to-use interface is supplied to user to use.
Distributed lock is a kind of mode for controlling synchronization of access shared resource between distributed system, if not
One or one group of resource be have shared between same system or the different main frames of same system, these moneys are being accessed
When source, generally require some mutual exclusion means to prevent interference, to ensure the consistent of data
Property.
At present, for the purpose of safety, most enterprises arrange fire wall between Intranet and outer net, but
The setting of fire wall is, double-edged sword, while intranet data is protected, to also result in visiting from outside Intranet
It is difficult, complicated.
ZooKeeper provides powerful distributed lock service, but ZooKeeper focuses on distributed lock
The realization of agreement, current distributed lock agreement essentially by RPC (Remote Procedure Call, far
The journey invocation of procedure) realize, when client and server is located at outer net and Intranet respectively, it is impossible to across
Go-between fire wall, brings a larger difficult problem to developer, and ease for use greatly reduces.
The content of the invention
The application provides a kind of implementation method of distributed lock service in distributed system, to solve presently, there are
Distributed lock service cannot cross over fire wall problem.
Device is realized in distributed lock service during the application is related to a kind of distributed system simultaneously, a kind of to be based on network
The method and apparatus that server realizes distributed lock service in a distributed system, it is a kind of to be divided based on client
The method and apparatus that distributed lock service is realized in cloth system, and a kind of service end that is based on is in distributed system
The method and apparatus that distributed lock service is realized in system.
The application provides a kind of implementation method of distributed lock service in distributed system, including:
Receive the corresponding RPC requests of lock operation requests that client sends;
The RPC requests that encapsulation is received, generate corresponding HTTP request;
The HTTP request is sent to the webserver by default data link;
Receive the request response of the HTTP request that the webserver is returned;
The request response of the HTTP request is parsed, the request response of the RPC requests is generated;
The request response of the RPC requests is sent to the client;
Wherein, the RPC requests are sent to service end by the webserver;
The request response of the RPC requests is sent by the service end, and is encapsulated by the networking client
The request response of the HTTP request is generated afterwards.
Optionally, it is described to encapsulate the RPC requests for receiving, corresponding HTTP request is generated, specifically
Including:
RPC requests are serialized, is generated and the RPC corresponding HTTP requests of request.
Optionally, during the RPC requests are serialized, the request ginseng included in the RPC requests
Number is serialized into the header and body information of the HTTP request.
Optionally, the header of the HTTP request includes following at least one information:
Generic field, authority information, identity information, data link information.
Optionally, the request response of the parsing HTTP request, generates the request of the RPC requests
Response, specifically includes:
The request response of the HTTP request to receiving carries out unserializing, generates the RPC requests
Request response.
Optionally, the data link includes at least one data link, and the HTTP request is according to response
Time is classified, and each class HTTP request corresponds to a data link respectively, and by corresponding data
The webserver described in chain road direction sends.
Optionally, the data link includes the first data link and the second data link, first data
Link pair should long respond request, the short respond request of second data link correspondence;
Wherein, the long respond request, including send time point and it is corresponding request response receive time point it
Between time interval meet the first predetermined threshold value HTTP request;
The short respond request, including send time point and corresponding request response receive time point between when
Between interval meet the second predetermined threshold value HTTP request.
Optionally, the long respond request includes that watch is asked.
Optionally, the lock operation requests include:
Obtain lock operation requests and release lock operation requests;
Wherein, the acquisition lock operation requests and release lock operation requests are by defining atomic operation realization.
What the application also provided distributed lock service in a kind of distributed system realizes device, including:
RPC request reception units, the corresponding RPC requests of the lock operation requests for receiving client transmission;
RPC asks encapsulation unit, for the RPC requests that encapsulation is received, generates corresponding HTTP
Request;
HTTP request transmitting element, for sending described to the webserver by default data link
HTTP request;
HTTP request responds receiving unit, for receiving the HTTP request that the webserver is returned
Request response;
HTTP request responds resolution unit, and the request for parsing the HTTP request is responded, and generates described
The request response of RPC requests;
RPC request response transmitting elements, for the request response of the RPC requests is sent to the client;
Wherein, the RPC requests are sent to service end by the webserver;
The request response of the RPC requests is sent by the service end, and is encapsulated by the networking client
The request response of the HTTP request is generated afterwards.
Optionally, the RPC asks encapsulation unit, specifically for serializing to RPC requests,
Generate and the RPC corresponding HTTP requests of request.
Optionally, the HTTP request responds resolution unit, specifically for the HTTP to receiving
The request response of request carries out unserializing, generates the request response of the RPC requests.
The application provide in addition it is a kind of based on the webserver realize in a distributed system distributed lock service
Method, including:
Receive the HTTP request that networking client sends;
The header of the HTTP request for receiving is parsed, and the header to the HTTP request enters
Row checks checking, if checking, checking is errorless, performs following step:
The body information of HTTP request described in unserializing, generates corresponding RPC requests;
The RPC requests are sent to service end;
Receive the request response of the RPC requests that the service end is returned;
The request response of the RPC requests is encapsulated, the request of the HTTP request of generation is responded and to institute
State networking client transmission.
Optionally, the header to the HTTP request carries out inspection verification step, if checking checking
It is wrong, then generate correspondence error status code.
Optionally, it is characterised in that the header of the HTTP request includes following at least one information:
Generic field, authority information, identity information, data link information;
Accordingly, the header to the HTTP request carries out inspection verification step, and the inspection is tested
Card include it is following at least one:
The generic field included in header to the HTTP request carries out inspection checking, to the HTTP
The authority information included in the header of request carries out inspection checking, in the header to the HTTP request
Comprising identity information carry out inspection checking, the data link included in the header to the HTTP request
Information carries out inspection checking.
The application provide in addition it is a kind of based on the webserver realize in a distributed system distributed lock service
Device, including:
HTTP request receiving unit, for receiving the HTTP request of networking client transmission;
Authentication unit is checked, for parsing the header of the HTTP request for receiving, and to the HTTP
The header of request carries out inspection checking, if check checking it is errorless, into following RPC request signal generating unit,
RPC request transmitting units, RPC requests response receiving unit and RPC request response encapsulation transmitting elements;
The RPC asks signal generating unit, for the body information of HTTP request described in unserializing, generates
Corresponding RPC requests;
The RPC request transmitting units, for sending the RPC requests to service end;
The RPC requests response receiving unit, for receiving what the RPC that the service end is returned was asked
Request response;
The RPC requests response encapsulation transmitting element, it is for encapsulating the request response of the RPC requests, raw
Into the HTTP request request response and to the networking client send.
The application provides a kind of method for realizing distributed lock service in a distributed system based on client in addition,
Including:
The lock operation requests that receive user is input into by default distributed lock service interface;
Call the corresponding RPC requests of the lock operation requests;
The RPC requests are sent to networking client;
Receive the request response of the RPC requests that the networking client is returned;
Wherein, the RPC requests are sent to service end by the networking client and the webserver;
The request response of the RPC requests is sent by the service end, by the networking client and institute
State webserver return.
The application provides a kind of device for realizing distributed lock service based on client in a distributed system in addition,
Including:
Lock operation requests receiving unit, for receive user by the input of default distributed lock service interface
Lock operation requests;
RPC request call units, for calling the corresponding RPC requests of the lock operation requests;
RPC request transmitting units, for sending the RPC requests to networking client;
RPC request response receiving units, for receiving what the RPC that the networking client is returned was asked
Request response;
Wherein, the RPC requests are sent to service end by the networking client and the webserver;
The request response of the RPC requests is sent by the service end, by the networking client and institute
State webserver return.
The application provides a kind of method for realizing distributed lock service in a distributed system based on service end in addition,
Including:
Receive the RPC requests that the webserver sends;
Remote method invocation (RMI) is carried out according to RPC requests, the request response of the RPC requests is generated;
The request response of the RPC requests is returned to the webserver.
The application provides a kind of device for realizing distributed lock service based on service end in a distributed system in addition,
Including:
RPC request reception units, for receiving the RPC requests of webserver transmission;
RPC request response signal generating units, for carrying out remote method invocation (RMI) according to RPC requests, generate
The request response of the RPC requests;
RPC request response transmitting elements, for the request of the RPC requests is returned to the webserver
Response.
Compared with prior art, the application has advantages below:
The implementation method of distributed lock service in the distributed system that the application is provided, including:Receive client
The corresponding RPC requests of lock operation requests of transmission;The RPC requests that encapsulation is received, generate corresponding
HTTP request;The HTTP request is sent to the webserver by default data link;Receive described
The request response of the HTTP request that the webserver is returned;The request for parsing the HTTP request rings
Should, generate the request response of the RPC requests;The request that the RPC requests are sent to the client rings
Should;Wherein, the RPC requests are sent to service end by the webserver;The RPC requests
Ask response to be sent by the service end, and generate the HTTP after the networking client is encapsulated to ask
The request response asked.
In the distributed system that the application is provided, the implementation method of distributed lock service, is preset within the walls by fire prevention
HTTP clients, the outer default http server of fire wall, based on HTTP in client and service
The transmission that distributed lock is carried out between device is called, and easily penetrates the fire wall between client and server.This
Outward, the transmission for carrying out distributed lock based on HTTP is called, the safety protecting mechanism for not only possessing RPC itself,
One layer of protection is added based on http protocol layer also, safety is higher, and extensibility is higher.
Description of the drawings
Accompanying drawing 1 is the process of the implementation method of distributed lock service in a kind of distributed system that the application is provided
Flow chart;
Accompanying drawing 2 is a kind of schematic diagram of distributed lock service system that the application is provided;
Accompanying drawing 3 is the signal for realizing device of distributed lock service in a kind of distributed system that the application is provided
Figure;
Accompanying drawing 4 is that one kind that the application is provided realizes distributed lock in a distributed system based on the webserver
The process chart of the method for service;
Accompanying drawing 5 is that one kind that the application is provided realizes distributed lock in a distributed system based on the webserver
The schematic diagram of the device of service;
Accompanying drawing 6 is that one kind that the application is provided realizes distributed lock service in a distributed system based on client
Method process chart;
Accompanying drawing 7 is that one kind that the application is provided realizes distributed lock service in a distributed system based on client
Device schematic diagram;
Accompanying drawing 8 is that one kind that the application is provided realizes distributed lock service in a distributed system based on service end
Method process chart;
Accompanying drawing 9 is that one kind that the application is provided realizes distributed lock service in a distributed system based on service end
Device schematic diagram.
Specific embodiment
Elaborate many details in order to fully understand the application in the following description.But the application
Can to be much different from other modes described here implementing, those skilled in the art can without prejudice to
Similar popularization is done in the case of the application intension, therefore the application is not embodied as being limited by following public.
The application provides a kind of implementation method of distributed lock service in distributed system, and the application also provides one
Device is realized in distributed lock service in planting distributed system, a kind of to be based on the webserver in a distributed system
The method and apparatus for realizing distributed lock service, one kind are realized distributed in a distributed system based on client
The method and apparatus of lock service, a kind of side for realizing distributed lock service based on service end in a distributed system
Method and device, the accompanying drawing of the embodiment provided below in conjunction with the application are described in detail one by one, and
Each step of method is illustrated.
In a kind of distributed system that the application is provided, the implementation method embodiment of distributed lock service is as follows:
Referring to the drawings 1, the reality of distributed lock service in a kind of distributed system of the present embodiment offer is it illustrates
The process chart of existing method.Additionally, the implementation method of distributed lock service is implemented in the distributed system
Relation between each step of example, please 1 determination with reference to the accompanying drawings.
Referring to the drawings 2, which has shown a kind of schematic diagram of distributed lock service system that the application is provided.
Step S101, receives the corresponding RPC requests of lock operation requests that client sends.
The distributed lock service system that the application is provided, as shown in Figure 2, including:Client (Client),
Server (Server), networking client (HTTP Client) and the webserver (HTTPServer).
The client, please by the lock operation of default distributed lock service interface input for receive user
Ask, call the corresponding RPC requests of the lock operation requests, and pass through the networking client and the network
Server sends RPC requests to the service end, and passes through the networking client and the network
Server receives the request response of the RPC requests that the service end is returned.
The server, for receiving the client by the networking client and the webserver
The RPC requests of transmission, carry out remote method invocation (RMI) according to RPC requests, and pass through the network client
The request of the RPC requests generated after above-mentioned remote method invocation (RMI) is responded by end and the webserver
Return to the client.
Message transmission between the client and the service end, is by the networking client and network
Server is realized.
The RPC requests that client receive, described is sent by the networking client are encapsulated as corresponding
HTTP request, sends to the webserver, and the webserver receives the networking client and sends out
After the HTTP request sent, the backward service end that HTTP request resolves to RPC requests will be received
Send.
The request response encapsulation of the RPC requests that service end receive, described is sent by the webserver
Request for corresponding HTTP request is responded, and is sent to the networking client, the network client termination
After receiving the request response of the HTTP request that the webserver sends, asking HTTP request
Ask response to resolve to the request response of RPC requests, send to the client.
The implementation method of distributed lock service in the distributed system that the application is provided, based on the network
Client is realized.
The RPC requests, refer to based on RPC (Remote Procedure Call, remote procedure call)
The message request of transmission;
The HTTP request, refers to that (HyperText Transfer Protocol, hypertext are passed based on HTTP
Defeated agreement) message request transmitted.
The lock operation requests, refer to the operation requests of distributed lock, including the operation of acquisition distributed lock please
The operation requests of summation release profile formula lock, that is, obtain lock operation requests and release lock operation requests.
The type of distributed lock is not merely a class, and the type of common distributed lock has exclusive lock (Exclusive
Locks, abbreviation X lock) and shared lock (Shared Locks, abbreviation S lock).If exclusive lock, obtaining
When taking distributed lock, (in distributed lock service system, the number of client is probably all of client
One, it is also possible to multiple) can all attempt by calling create () interface, in/exclusive_lock sections
Point is lower to create interim child node/exclusive_lock/lock.ZooKeeper can ensure in all of client,
Final only one of which client can be created successfully, then it is assumed that the client obtains lock.Meanwhile, do not obtain
The client for getting lock needs the Watcher prisons of a child node change are registered to on/exclusive_lock nodes
Listen, to listen to the alteration of lock nodes in real time.
Mentioned above ,/exclusive_lock/lock is a transient node, therefore in the case of following two kinds,
It is likely to release lock.
The first situation:The current client for obtaining lock is delayed machine, then this on ZooKeeper faces
Shi Jiedian will be removed;
Second situation:After normal execution service logic, client will actively by the interim section of oneself establishment
Point deletion.
No matter when remove lock nodes, ZooKeeper can all notify it is all
The client that child node change Watcher is monitored is have registered on/exclusive_lock nodes.These clients terminate
After notified, obtain in secondary distributed lock of initiating again, that is, repeat " obtaining lock " operation.
The above-mentioned two operation of distributed lock obtains lock and discharges lock, and the two operations are a series of by defining
Atomic operation realizing, the such as operation such as createFile, readFile, deleteFile and watch.Atomic operation
The operation that will not be interrupted by thread scheduling mechanism is referred to, once just running to end always.
Step S102, the RPC requests that encapsulation is received, generates corresponding HTTP request.
Above-mentioned steps S101 receive the corresponding RPC requests of lock operation requests that the client sends, described
RPC requests are eventually sent to service end, during transmission, due to the networking client and described
Message communicating between the webserver be based on HTTP, therefore, in this step, by the institute for receiving
The RPC requests for stating client transmission are encapsulated as supporting the HTTP request of HTTP.
The RPC requests are encapsulated based on http protocol, base is gone back in the security mechanism protection for not only possessing RPC
One layer of protection is added in http protocol layer, safety is higher;Even if additionally, the networking client and institute
State the webserver and be upgraded to the higher HTTPS of safety (Hyper Text Transfer Protocol over
Secure Socket Layer), without the logic for changing RPC, extensibility is higher.
The HTTP request is made up of 3 parts:Method URI agreement/version, header and body information.
The first row of the HTTP request is " method URL view/version ", such as GET/sample.jsp HTTP/1.1;
Useful information of the header comprising many relevant client environments and request text, can be with such as header
Language, the length of request text used by statement browser etc.;Text of the body packets containing message request is believed
Breath.
Preferably, RPC requests are serialized, is generated and the RPC corresponding HTTP of request
Request.
Preferably, during the RPC requests are serialized, the request ginseng included in the RPC requests
Number is serialized into the header and body information of the HTTP request.
Preferably, the header of the HTTP request includes following at least one information:
Generic field, authority information, identity information, data link information.
Step S103, sends the HTTP request to the webserver by default data link.
The RPC requests that the client for receiving is sent by above-mentioned steps S202 are encapsulated as HTTP request,
In this step, the HTTP request is sent to the webserver by the networking client.
Request species in distributed system is more, and these requests are being sent to service end, are processed
The time of response is also not quite similar, and such as client have sent a watch to service end in a connection
Request, after the watch requests send, have sent other requests in addition to watch is asked again, even if
The process time of service end other requests is fewer than the process time of watch request, it is also desirable to when the watch
After the process response results of request are returned client, the process response results of other requests can just be returned
Client.
In order to save the request response time between the client and the service end, it is preferred that by
The network takes, described
HTTP request is classified according to response time, and each class HTTP request corresponds to a data link respectively,
And sent to the webserver by corresponding data link.
In the present embodiment, the data link includes the first data link and the second data link, described first
The long respond request of data link correspondence, the corresponding short respond request of second data link;
The long respond request, including send time point and corresponding request response receive time point between when
Between interval meet the first predetermined threshold value HTTP request, in the present embodiment, the long respond request refers to watch
Request;
The short respond request, including send time point and corresponding request response receive time point between when
Between interval meet the second predetermined threshold value HTTP request, in the present embodiment, the short respond request is referred to be removed
Other requests outside watch requests.
In general, the function that watch is asked is divided into two steps, watch and pullchange.Watch is
Client notification service end needs the lock of watch, returns corresponding request and ring if the success of service end watch
Should;Pullchange is client notification service end, for returning the change message of lock, if between setting time
Every the interior change message for not having and locking, then return to client and confirm message.Therefore, the present embodiment is by watch
Request is sent by first data link, and other requests in addition to watch is asked are counted by described second
Send according to link, solve the problems, such as to wait as long for request response.
It should be noted that watch requests and other requests in addition to watch is asked are led to respectively above-mentioned
On the basis of crossing the transmission of different pieces of information link, the function that watch is asked is stripped out from read, exist,
Traditional implementation is avoided as session identification (session ID) reveals the pullchange for causing attacks,
Improve the safety of agreement.Traditional implementation method be with session identification (session ID) by watch and
Pullchange is identified simultaneously as a pair, but if session identification (session ID) is revealed, will be caused
Pullchange is attacked.
Step S104, receives the request response of the HTTP request that the webserver is returned.
The HTTP request request response, by the service end according to the RPC for receiving ask into
Row respective handling, the request response of the RPC request of generation, by the webserver and described
During networking client returns the client, the request response of the RPC requests is encapsulated as supporting
The request response of the corresponding HTTP request of HTTP.
Step S105, parses the request response of the HTTP request, and the request for generating the RPC requests rings
Should.
The request respond request received in above-mentioned steps S104, is returned by the webserver
It is encapsulated as the request response of the HTTP request, it is preferred that in the present embodiment, please to the HTTP
The request response asked carries out unserializing, generates the request response of the RPC requests, that is, recovers the RPC
The request response of request.
Step S106, sends the request response of the RPC requests to the client.
In sum, the implementation method of distributed lock service in the distributed system that the application is provided, by anti-
The outer default webserver of default networking client, fire wall in wall with flues, and it is based on http protocol
The transmission for carrying out distributed lock between clients and servers is called, easily penetrate client and server it
Between fire wall.
Additionally, the implementation method that distributed lock is serviced in the distributed system, described based on HTTP encapsulation
RPC is asked, the security mechanism protection for not only possessing RPC, has also added one layer of protection based on http protocol layer,
Safety is higher, and extensibility is higher.
The implementation method of distributed lock service in the distributed system, by least one number for pre-setting
According to link, the HTTP request is sent to the webserver, solve and wait as long for request response
Problem, while improve the safety of agreement.
In a kind of distributed system that the application is provided, distributed lock service realizes that device embodiment is as follows:
In the above-described embodiment, there is provided the implementation method of distributed lock service in a kind of distributed system,
It is corresponding, present invention also provides device is realized in distributed lock service in a kind of distributed system,
Illustrate below in conjunction with the accompanying drawings.
Referring to the drawings 3, the reality of distributed lock service in a kind of distributed system of the present embodiment offer is it illustrates
The schematic diagram of existing device.
As device embodiment is substantially similar to embodiment of the method, so describe fairly simple, related portion
Divide the correspondence explanation of the embodiment of the method that above-mentioned offer is provided.Device embodiment described below is only
It is schematic.
What the application provided distributed lock service in a kind of distributed system realizes device, including:
RPC request reception units 301, the corresponding RPC of lock operation requests for receiving client transmission please
Ask;
RPC asks encapsulation unit 302, for the RPC requests that encapsulation is received, generates corresponding HTTP
Request;
HTTP request transmitting element 303, for sending described to the webserver by default data link
HTTP request;
HTTP request responds receiving unit 304, for receiving the HTTP that the webserver is returned
The request response of request;
HTTP request responds resolution unit 305, and the request for parsing the HTTP request is responded, and is generated
The request response of the RPC requests;
RPC request response transmitting elements 306, for the request of the RPC requests is sent to the client
Response;
Wherein, the RPC requests are sent to service end by the webserver;
The request response of the RPC requests is sent by the service end, and is encapsulated by the networking client
The request response of the HTTP request is generated afterwards.
Optionally, the RPC asks encapsulation unit 302, specifically for carrying out sequence to RPC requests
Change, generate and the RPC corresponding HTTP requests of request.
Optionally, during the RPC requests are serialized, the request ginseng included in the RPC requests
Number is serialized into the header and body information of the HTTP request.
Optionally, the header of the HTTP request includes following at least one information:
Generic field, authority information, identity information, data link information.
The HTTP request responds resolution unit 305, specifically for the HTTP request to receiving
Request response carries out unserializing, generates the request response of the RPC requests.
Optionally, the data link includes at least one data link, and the HTTP request is according to response
Time is classified, and each class HTTP request corresponds to a data link respectively, and by corresponding data
The webserver described in chain road direction sends.
Optionally, the data link includes the first data link and the second data link, first data
Link pair should long respond request, the short respond request of second data link correspondence;
Wherein, the long respond request, including send time point and it is corresponding request response receive time point it
Between time interval meet the first predetermined threshold value HTTP request;
The short respond request, including send time point and corresponding request response receive time point between when
Between interval meet the second predetermined threshold value HTTP request.
Optionally, the long respond request includes that watch is asked.
Optionally, the lock operation requests include:
Obtain lock operation requests and release lock operation requests;
Wherein, the acquisition lock operation requests and release lock operation requests are by defining atomic operation realization.
A kind of side for realizing distributed lock service based on the webserver in a distributed system that the application is provided
Method embodiment is as follows:
In the above-described embodiment, there is provided the implementation method of distributed lock service in a kind of distributed system,
In addition, the application also provides one kind and realizes that distributed lock takes in a distributed system based on the webserver
In the method for business, with above-mentioned distributed system, the implementation method of distributed lock service cooperates, with reference to
Accompanying drawing is illustrated.
Referring to the drawings 2, which has shown a kind of schematic diagram of distributed lock service system that the application is provided;
Referring to the drawings 4, the one kind that it illustrates the present embodiment offer is based on the webserver in a distributed system
Realize the process chart of the method for distributed lock service.
The present embodiment is cooperated with the implementation method embodiment of distributed lock service in above-mentioned distributed system,
So describe fairly simple, related part refers to distributed lock clothes in the distributed system of above-mentioned offer
The correspondence explanation of the implementation method embodiment of business.
The method that distributed lock service is realized in a distributed system based on the webserver that the application is provided,
Realized based on the webserver shown in accompanying drawing 2, and with the distributed system of above-mentioned offer in
The implementation method of distributed lock service cooperates, so describing fairly simple, related part refers to
The correspondence explanation of the implementation method embodiment of distributed lock service in the distributed system of above-mentioned offer.Institute
The implementation method of distributed lock service in distributed system is stated, based on the networking client shown in accompanying drawing 2
Realize.
The application provides a kind of method for realizing distributed lock service in a distributed system based on the webserver,
Including:
Step S401, receives the HTTP request that networking client sends.
Step S402, parses the header of the HTTP request for receiving, and to the HTTP request
Header carry out inspection checking.
In the present embodiment, the header of the HTTP request includes:Generic field, authority information, identity
Information and data link information.
Accordingly, inspection checking is carried out to the header of the HTTP request, including following 4 inspections is tested
Card sub-step:
1) generic field to including in the header of the HTTP request carries out inspection checking;
2) authority information to including in the header of the HTTP request carries out inspection checking;
3) identity information to including in the header of the HTTP request carries out inspection checking;
4) data link information to including in the header of the HTTP request carries out inspection checking.
During checking sub-step is checked at above-mentioned 4, during any one checks checking sub-step, if checking checking
It is wrong, then generate correspondence error status code.
In the specific implementation, can also carry out it is above-mentioned 4 check checking sub-step in any one or it is many
It is individual to check checking sub-step, inspection checking is carried out as the header to the HTTP request, here is not done
Limit.
Step S403, the body information of HTTP request described in unserializing generate corresponding RPC requests.
Implementation method embodiment step S102 of distributed lock service in above-mentioned distributed system, by the RPC
Request sequence is turned to and the RPC corresponding HTTP requests of request, and corresponding, this step is root
Recover the process of the RPC requests according to the HTTP request generated after serializing, therefore, this step
The body information of HTTP request described in unserializing is needed only, you can generate corresponding RPC requests.
Step S404, sends the RPC requests to service end.
Step S405, receives the request response of the RPC requests that the service end is returned.
Step S406, encapsulates the request response of the RPC requests, the request of the HTTP request of generation
Response is simultaneously sent to the networking client.
A kind of dress for realizing distributed lock service based on the webserver in a distributed system that the application is provided
Put embodiment as follows:
In the above-described embodiment, there is provided a kind of that distribution is realized in a distributed system based on the webserver
The method of formula lock service, it is corresponding, present invention also provides a kind of be distributed based on the webserver
The device of distributed lock service is realized in formula system, is illustrated below in conjunction with the accompanying drawings.
Referring to the drawings 5, the one kind that it illustrates the present embodiment offer is based on the webserver in a distributed system
Realize the schematic diagram of the device of distributed lock service.
As device embodiment is substantially similar to embodiment of the method, so describe fairly simple, related portion
Divide the correspondence explanation of the embodiment of the method that above-mentioned offer is provided.Device embodiment described below is only
It is schematic.
The application provides a kind of device for realizing distributed lock service based on the webserver in a distributed system,
Including:
HTTP request receiving unit 501, for receiving the HTTP request of networking client transmission;
Authentication unit 502 is checked, for parsing the header of the HTTP request for receiving, and to described
The header of HTTP request carries out inspection checking, if checking, checking is errorless, please seek survival into following RPC
Into unit 503, RPC request transmitting units 504, RPC request response receiving unit 505 and RPC requests
Response encapsulation transmitting element 506;
The RPC asks signal generating unit 503, for the body information of HTTP request described in unserializing,
Generate corresponding RPC requests;
The RPC request transmitting units 504, for sending the RPC requests to service end;
The RPC requests response receiving unit 505, please for receiving the RPC that the service end is returned
The request response asked;
The RPC requests response encapsulation transmitting element 506, for encapsulating the request response of the RPC requests,
The request response of the HTTP request for generating simultaneously is sent to the networking client.
Optionally, in the inspection authentication unit 502, if checking, checking is wrong, generates correspondence mistake shape
State code.
Optionally, the header of the HTTP request includes following at least one information:
Generic field, authority information, identity information, data link information;
Accordingly, it is described inspection authentication unit 502 in, it is described check checking include it is following at least one:
The generic field included in header to the HTTP request carries out inspection checking, to the HTTP
The authority information included in the header of request carries out inspection checking, in the header to the HTTP request
Comprising identity information carry out inspection checking, the data link included in the header to the HTTP request
Information carries out inspection checking.
A kind of method reality for realizing distributed lock service based on client in a distributed system that the application is provided
Under applying for example:
In the above-described embodiment, there is provided the implementation method of distributed lock service in a kind of distributed system,
And a kind of method that distributed lock service is realized in a distributed system based on the webserver, in addition,
Present invention also provides a kind of device for realizing distributed lock service based on client in a distributed system, under
Face is described with reference to the drawings.
Referring to the drawings 2, which has shown a kind of schematic diagram of distributed lock service system that the application is provided;
Referring to the drawings 6, the one kind that it illustrates the present embodiment offer is realized in a distributed system based on client
The process chart of the method for distributed lock service.
The method for realizing distributed lock service in a distributed system based on client that the application is provided, is based on
The client shown in accompanying drawing 2 realizes, and with distributed lock in the distributed system of above-mentioned offer
The implementation method of service, the side for realizing distributed lock service based on the webserver in a distributed system
Method cooperates, so describing fairly simple, related part refers to the correspondence of said method embodiment
Illustrate.
The application provides a kind of method for realizing distributed lock service in a distributed system based on client, bag
Include:
Step S601, the lock operation requests that receive user is input into by default distributed lock service interface.
Step S602, calls the corresponding RPC requests of the lock operation requests.
The RPC requests are sent to the service end by the networking client and the webserver.
Step S603, sends the RPC requests to networking client.
Step S604, receives the request response of the RPC requests that the networking client is returned.
The request response of RPC request is sent by the service end, by the networking client and described
The webserver is back to the client.
A kind of device reality for realizing distributed lock service based on client in a distributed system that the application is provided
Under applying for example:
In the above-described embodiment, there is provided one kind realizes distributed lock in a distributed system based on client
The method of service, it is corresponding, present invention also provides a kind of be based on client in a distributed system
The device of distributed lock service is realized, is illustrated below in conjunction with the accompanying drawings.
Referring to the drawings 7, the one kind that it illustrates the present embodiment offer is realized in a distributed system based on client
The schematic diagram of the device of distributed lock service.
As device embodiment is substantially similar to embodiment of the method, so describe fairly simple, related portion
Divide the correspondence explanation of the embodiment of the method that above-mentioned offer is provided.Device embodiment described below is only
It is schematic.
The application provides a kind of device for realizing distributed lock service based on client in a distributed system, bag
Include:
Lock operation requests receiving unit 701, is input into by default distributed lock service interface for receive user
Lock operation requests;
RPC request calls unit 702, for calling the corresponding RPC requests of the lock operation requests;
RPC request transmitting units 703, for sending the RPC requests to networking client;
RPC request response receiving units 704, please for receiving the RPC that the networking client is returned
The request response asked;
Wherein, the RPC requests are sent to service end by the networking client and the webserver;
The request response of the RPC requests is sent by the service end, by the networking client and institute
State webserver return.
A kind of method reality for realizing distributed lock service based on service end in a distributed system that the application is provided
Under applying for example:
In the above-described embodiment, there is provided the implementation method of distributed lock service in a kind of distributed system,
A kind of method that distributed lock service is realized in a distributed system based on the webserver, and one kind is based on
The method that client realizes distributed lock service in a distributed system, corresponding, the application is also carried
A kind of method that distributed lock service is realized in a distributed system based on service end is supplied, below in conjunction with the accompanying drawings
Illustrate.
Referring to the drawings 2, which has shown a kind of schematic diagram of distributed lock service system that the application is provided;
Referring to the drawings 8, the one kind that it illustrates the present embodiment offer is realized in a distributed system based on service end
The process chart of the method for distributed lock service.
The method for realizing distributed lock service in a distributed system based on service end that the application is provided, is based on
The service end shown in accompanying drawing 2 realizes, and with distributed lock in the distributed system of above-mentioned offer
The implementation method of service, the side for realizing distributed lock service based on the webserver in a distributed system
Method cooperates, the method phase interworking for realizing distributed lock service based on client in a distributed system
Close, so describing fairly simple, related part refers to the correspondence explanation of said method embodiment.
The application provides a kind of method for realizing distributed lock service in a distributed system based on service end, bag
Include:
Step S801, receives the RPC requests that the webserver sends.
Step S802, carries out remote method invocation (RMI) according to RPC requests, generates the RPC requests
Request response.
Step S803, returns the request response of the RPC requests to the webserver.
A kind of device reality for realizing distributed lock service based on service end in a distributed system that the application is provided
Under applying for example:
In the above-described embodiment, there is provided one kind realizes distributed lock in a distributed system based on service end
The method of service, it is corresponding, present invention also provides a kind of be based on service end in a distributed system
The device of distributed lock service is realized, is illustrated below in conjunction with the accompanying drawings.
Referring to the drawings 9, the one kind that it illustrates the present embodiment offer is realized in a distributed system based on service end
The schematic diagram of the device of distributed lock service.
As device embodiment is substantially similar to embodiment of the method, so describe fairly simple, related portion
Divide the correspondence explanation of the embodiment of the method that above-mentioned offer is provided.Device embodiment described below is only
It is schematic.
The application provides a kind of device for realizing distributed lock service based on service end in a distributed system, bag
Include:
RPC request reception units 901, for receiving the RPC requests of webserver transmission;
RPC request response signal generating units 902, for carrying out remote method invocation (RMI) according to RPC requests,
Generate the request response of the RPC requests;
RPC request response transmitting elements 903, for returning the RPC requests to the webserver
Request response.
Although the application is disclosed as above with preferred embodiment, which is not for limiting the application, Ren Heben
Art personnel can make possible variation and modification in without departing from spirit and scope,
Therefore the scope that the protection domain of the application should be defined by the application claim is defined.
In a typical configuration, computing device includes one or more processors (CPU), input/output
Interface, network interface and internal memory.
Internal memory potentially includes the volatile memory in computer-readable medium, random access memory
And/or the form, such as read only memory (ROM) or flash memory (flash RAM) such as Nonvolatile memory (RAM).
Internal memory is the example of computer-readable medium.
1st, computer-readable medium includes that permanent and non-permanent, removable and non-removable media can be by
Any method or technique is realizing information Store.Information can be computer-readable instruction, data structure, journey
The module of sequence or other data.The example of the storage medium of computer includes, but are not limited to phase transition internal memory
(PRAM), static RAM (SRAM), dynamic random access memory (DRAM), other
The random access memory (RAM) of type, read only memory (ROM), the read-only storage of electrically erasable
Device (EEPROM), fast flash memory bank or other memory techniques, read-only optical disc read only memory (CD-ROM),
Digital versatile disc (DVD) or other optical storages, magnetic cassette tape, tape magnetic rigid disk are stored or other
Magnetic storage apparatus or any other non-transmission medium, can be used to store the information that can be accessed by a computing device.
Define according to herein, computer-readable medium does not include non-temporary computer readable media (transitory
Media), such as the data signal and carrier wave of modulation.
2nd, it will be understood by those skilled in the art that embodiments herein can be provided as method, system or computer
Program product.Therefore, the application can adopt complete hardware embodiment, complete software embodiment or combine software
With the form of the embodiment of hardware aspect.And, the application can wherein include meter using at one or more
Calculation machine usable program code computer-usable storage medium (including but not limited to disk memory, CD-ROM,
Optical memory etc.) on the form of computer program implemented.
Claims (20)
1. the implementation method that distributed lock is serviced in a kind of distributed system, it is characterised in that include:
Receive the corresponding RPC requests of lock operation requests that client sends;
The RPC requests that encapsulation is received, generate corresponding HTTP request;
The HTTP request is sent to the webserver by default data link;
Receive the request response of the HTTP request that the webserver is returned;
The request response of the HTTP request is parsed, the request response of the RPC requests is generated;
The request response of the RPC requests is sent to the client;
Wherein, the RPC requests are sent to service end by the webserver;
The request response of the RPC requests is sent by the service end, and is encapsulated by the networking client
The request response of the HTTP request is generated afterwards.
2. the implementation method that distributed lock is serviced in distributed system according to claim 1, its feature
It is, it is described to encapsulate the RPC requests for receiving, corresponding HTTP request is generated, is specifically included:
RPC requests are serialized, is generated and the RPC corresponding HTTP requests of request.
3. the implementation method that distributed lock is serviced in distributed system according to claim 2, its feature
It is that, during the RPC requests are serialized, the required parameter included in the RPC requests is by sequence
Row turn to the header and body information of the HTTP request.
4. the implementation method that distributed lock is serviced in distributed system according to claim 3, its feature
It is that the header of the HTTP request includes following at least one information:
Generic field, authority information, identity information, data link information.
5. the implementation method that distributed lock is serviced in distributed system according to claim 1, its feature
It is that the request response for parsing the HTTP request generates the request response of the RPC requests,
Specifically include:
The request response of the HTTP request to receiving carries out unserializing, generates the RPC requests
Request response.
6. the implementation method that distributed lock is serviced in distributed system according to claim 1, its feature
It is that the data link includes at least one data link, the HTTP request is entered according to response time
Row classification, each class HTTP request respectively correspond to a data link, and by corresponding data link to
The webserver sends.
7. the implementation method that distributed lock is serviced in distributed system according to claim 6, its feature
It is that the data link includes the first data link and the second data link, first data link pair
Should long respond request, the short respond request of second data link correspondence;
Wherein, the long respond request, including send time point and it is corresponding request response receive time point it
Between time interval meet the first predetermined threshold value HTTP request;
The short respond request, including send time point and corresponding request response receive time point between when
Between interval meet the second predetermined threshold value HTTP request.
8. the implementation method that distributed lock is serviced in distributed system according to claim 7, its feature
It is that the long respond request includes that watch is asked.
9. distributed lock service implementing method in distributed system according to claim 1, its feature exist
In the lock operation requests include:
Obtain lock operation requests and release lock operation requests;
Wherein, the acquisition lock operation requests and release lock operation requests are by defining atomic operation realization.
10. device is realized in distributed lock service in a kind of distributed system, it is characterised in that included:
RPC request reception units, the corresponding RPC requests of the lock operation requests for receiving client transmission;
RPC asks encapsulation unit, for the RPC requests that encapsulation is received, generates corresponding HTTP
Request;
HTTP request transmitting element, for sending described to the webserver by default data link
HTTP request;
HTTP request responds receiving unit, for receiving the HTTP request that the webserver is returned
Request response;
HTTP request responds resolution unit, and the request for parsing the HTTP request is responded, and generates described
The request response of RPC requests;
RPC request response transmitting elements, for the request response of the RPC requests is sent to the client;
Wherein, the RPC requests are sent to service end by the webserver;
The request response of the RPC requests is sent by the service end, and is encapsulated by the networking client
The request response of the HTTP request is generated afterwards.
Device is realized in distributed lock service in 11. distributed systems according to claim 10, and which is special
Levy and be, the RPC asks encapsulation unit, specifically for serializing to RPC requests, generate
With the RPC corresponding HTTP requests of request.
Device is realized in distributed lock service in 12. distributed systems according to claim 10, and which is special
Levy and be, the HTTP request responds resolution unit, specifically for the HTTP request to receiving
Request response carry out unserializing, generate the request response of the RPC requests.
A kind of 13. methods for realizing distributed lock service in a distributed system based on the webserver, which is special
Levy and be, including:
Receive the HTTP request that networking client sends;
The header of the HTTP request for receiving is parsed, and the header to the HTTP request enters
Row checks checking, if checking, checking is errorless, performs following step:
The body information of HTTP request described in unserializing, generates corresponding RPC requests;
The RPC requests are sent to service end;
Receive the request response of the RPC requests that the service end is returned;
The request response of the RPC requests is encapsulated, the request of the HTTP request of generation is responded and to institute
State networking client transmission.
14. according to claim 13 realize distributed lock in a distributed system based on the webserver
The method of service, it is characterised in that the header to the HTTP request carries out inspection verification step,
If checking, checking is wrong, generates correspondence error status code.
15. according to claim 14 realize distributed lock in a distributed system based on the webserver
The method of service, it is characterised in that the header of the HTTP request includes following at least one information:
Generic field, authority information, identity information, data link information;
Accordingly, the header to the HTTP request carries out inspection verification step, and the inspection is tested
Card include it is following at least one:
The generic field included in header to the HTTP request carries out inspection checking, to the HTTP
The authority information included in the header of request carries out inspection checking, in the header to the HTTP request
Comprising identity information carry out inspection checking, the data link included in the header to the HTTP request
Information carries out inspection checking.
A kind of 16. devices for realizing distributed lock service based on the webserver in a distributed system, which is special
Levy and be, including:
HTTP request receiving unit, for receiving the HTTP request of networking client transmission;
Authentication unit is checked, for parsing the header of the HTTP request for receiving, and to the HTTP
The header of request carries out inspection checking, if check checking it is errorless, into following RPC request signal generating unit,
RPC request transmitting units, RPC requests response receiving unit and RPC request response encapsulation transmitting elements;
The RPC asks signal generating unit, for the body information of HTTP request described in unserializing, generates
Corresponding RPC requests;
The RPC request transmitting units, for sending the RPC requests to service end;
The RPC requests response receiving unit, for receiving what the RPC that the service end is returned was asked
Request response;
The RPC requests response encapsulation transmitting element, it is for encapsulating the request response of the RPC requests, raw
Into the HTTP request request response and to the networking client send.
A kind of 17. methods for realizing distributed lock service in a distributed system based on client, its feature exist
In, including:
The lock operation requests that receive user is input into by default distributed lock service interface;
Call the corresponding RPC requests of the lock operation requests;
The RPC requests are sent to networking client;
Receive the request response of the RPC requests that the networking client is returned;
Wherein, the RPC requests are sent to service end by the networking client and the webserver;
The request response of the RPC requests is sent by the service end, by the networking client and institute
State webserver return.
A kind of 18. devices for being realized distributed lock service based on client in a distributed system, its feature are existed
In, including:
Lock operation requests receiving unit, for receive user by the input of default distributed lock service interface
Lock operation requests;
RPC request call units, for calling the corresponding RPC requests of the lock operation requests;
RPC request transmitting units, for sending the RPC requests to networking client;
RPC request response receiving units, for receiving what the RPC that the networking client is returned was asked
Request response;
Wherein, the RPC requests are sent to service end by the networking client and the webserver;
The request response of the RPC requests is sent by the service end, by the networking client and institute
State webserver return.
A kind of 19. methods for realizing distributed lock service in a distributed system based on service end, its feature exist
In, including:
Receive the RPC requests that the webserver sends;
Remote method invocation (RMI) is carried out according to RPC requests, the request response of the RPC requests is generated;
The request response of the RPC requests is returned to the webserver.
A kind of 20. devices for being realized distributed lock service based on service end in a distributed system, its feature are existed
In, including:
RPC request reception units, for receiving the RPC requests of webserver transmission;
RPC request response signal generating units, for carrying out remote method invocation (RMI) according to RPC requests, generate
The request response of the RPC requests;
RPC request response transmitting elements, for the request of the RPC requests is returned to the webserver
Response.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510648902.0A CN106572051A (en) | 2015-10-09 | 2015-10-09 | Distributed lock service realizing method and device for distributed system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510648902.0A CN106572051A (en) | 2015-10-09 | 2015-10-09 | Distributed lock service realizing method and device for distributed system |
Publications (1)
Publication Number | Publication Date |
---|---|
CN106572051A true CN106572051A (en) | 2017-04-19 |
Family
ID=58507629
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201510648902.0A Pending CN106572051A (en) | 2015-10-09 | 2015-10-09 | Distributed lock service realizing method and device for distributed system |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106572051A (en) |
Cited By (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109189854A (en) * | 2018-08-14 | 2019-01-11 | 新华三技术有限公司成都分公司 | The method and node device of sustained traffic are provided |
CN110677453A (en) * | 2019-08-15 | 2020-01-10 | 平安普惠企业管理有限公司 | ZooKeeper-based distributed lock service implementation method, device, equipment and storage medium |
CN110798380A (en) * | 2019-10-23 | 2020-02-14 | 北京奇艺世纪科技有限公司 | Data acquisition method, system, device, test equipment and test server |
CN111414261A (en) * | 2020-03-18 | 2020-07-14 | 政采云有限公司 | Cross-network calling method and device of distributed system and related components |
CN112565220A (en) * | 2020-11-26 | 2021-03-26 | 南京南瑞信息通信科技有限公司 | HTTP service gateway implementation method based on state network isolation device safety |
CN115118757A (en) * | 2022-06-24 | 2022-09-27 | 浙江海规技术有限公司 | Network remote calling method and device, computer equipment and storage medium |
CN117112157A (en) * | 2023-07-04 | 2023-11-24 | 中国人民解放军陆军工程大学 | General distributed computing system for task based on CLTS scheduling algorithm |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20130058208A1 (en) * | 2010-07-06 | 2013-03-07 | Benjamin L. Pfaff | Fault tolerant managed switching element architecture |
CN103092698A (en) * | 2012-12-24 | 2013-05-08 | 中国科学院深圳先进技术研究院 | System and method of cloud computing application automatic deployment |
CN103997498A (en) * | 2014-05-27 | 2014-08-20 | 北京京东尚科信息技术有限公司 | Distributed lock service implementation method and component |
CN104065636A (en) * | 2013-07-02 | 2014-09-24 | 腾讯科技(深圳)有限公司 | Data processing method and system |
-
2015
- 2015-10-09 CN CN201510648902.0A patent/CN106572051A/en active Pending
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20130058208A1 (en) * | 2010-07-06 | 2013-03-07 | Benjamin L. Pfaff | Fault tolerant managed switching element architecture |
CN103092698A (en) * | 2012-12-24 | 2013-05-08 | 中国科学院深圳先进技术研究院 | System and method of cloud computing application automatic deployment |
CN104065636A (en) * | 2013-07-02 | 2014-09-24 | 腾讯科技(深圳)有限公司 | Data processing method and system |
CN103997498A (en) * | 2014-05-27 | 2014-08-20 | 北京京东尚科信息技术有限公司 | Distributed lock service implementation method and component |
Non-Patent Citations (2)
Title |
---|
飞昂之雪: ""dubbo-RPC学习(二) http protocol"", 《博客园》 * |
飞昂之雪: "《dubbo-RPC学习(二) http protocol》", 《博客园》 * |
Cited By (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109189854A (en) * | 2018-08-14 | 2019-01-11 | 新华三技术有限公司成都分公司 | The method and node device of sustained traffic are provided |
CN109189854B (en) * | 2018-08-14 | 2021-06-08 | 新华三技术有限公司成都分公司 | Method and node equipment for providing continuous service |
CN110677453A (en) * | 2019-08-15 | 2020-01-10 | 平安普惠企业管理有限公司 | ZooKeeper-based distributed lock service implementation method, device, equipment and storage medium |
CN110798380A (en) * | 2019-10-23 | 2020-02-14 | 北京奇艺世纪科技有限公司 | Data acquisition method, system, device, test equipment and test server |
CN111414261A (en) * | 2020-03-18 | 2020-07-14 | 政采云有限公司 | Cross-network calling method and device of distributed system and related components |
CN111414261B (en) * | 2020-03-18 | 2023-08-22 | 政采云有限公司 | Cross-network calling method and device of distributed system and related components |
CN112565220A (en) * | 2020-11-26 | 2021-03-26 | 南京南瑞信息通信科技有限公司 | HTTP service gateway implementation method based on state network isolation device safety |
CN115118757A (en) * | 2022-06-24 | 2022-09-27 | 浙江海规技术有限公司 | Network remote calling method and device, computer equipment and storage medium |
CN117112157A (en) * | 2023-07-04 | 2023-11-24 | 中国人民解放军陆军工程大学 | General distributed computing system for task based on CLTS scheduling algorithm |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN106572051A (en) | Distributed lock service realizing method and device for distributed system | |
CN110009494B (en) | Method and device for monitoring transaction content in block chain | |
CN105260292B (en) | A kind of log recording method, apparatus and system | |
CN106487774A (en) | A kind of cloud host services authority control method, device and system | |
US20090106431A1 (en) | Information on Demand Process Framework to Generate, Manage, Secure, and Deploy Browsers and Application Accessible Web Services | |
CN105915529B (en) | A kind of message forming method and device | |
CN102739678B (en) | Single-sign-on treatment system and single-sign-on processing method | |
CN104717647B (en) | Professional ability method for authenticating, equipment and system | |
US20170195438A1 (en) | Systems, apparatuses, and methods for intelligent network communication and engagement | |
CN115118705A (en) | Industrial edge management and control platform based on micro-service | |
US8898220B2 (en) | Remote method invocation tunneling over hypertext transfer protocol | |
CN105827672A (en) | Remote call method and remote call device | |
CN113095825B (en) | Asset management method and device based on block chain and electronic equipment | |
US7689699B2 (en) | Method and apparatus for executing web services through a high assurance guard | |
CN109474484A (en) | Inspection method and device, the system of CDN | |
Tanwar et al. | Secure framework for web services communication | |
EP3135017A1 (en) | Methods of exchanging data with a device comprising radio communication means | |
CN112073536B (en) | Method for realizing safe data transmission and processing between networks incapable of direct inter-access | |
Ursache | Swarm communication using self sovereign identities | |
CN114338703A (en) | Cross-domain message management method and device, electronic equipment and storage medium | |
CN104243522B (en) | Method and wideband network gateway for HTTP network | |
CN113452734B (en) | Block chain system based on narrow-band transmission | |
Mostefaoui et al. | Decoupling security concerns in web services using aspects | |
CN107911390A (en) | Handle method, proxy server, application server and the system of service request | |
CN114039788B (en) | Policy transmission method, gateway system, electronic 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 | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20170419 |
|
RJ01 | Rejection of invention patent application after publication |