CN104423982B - The processing method and processing equipment of request - Google Patents
The processing method and processing equipment of request Download PDFInfo
- Publication number
- CN104423982B CN104423982B CN201310379490.6A CN201310379490A CN104423982B CN 104423982 B CN104423982 B CN 104423982B CN 201310379490 A CN201310379490 A CN 201310379490A CN 104423982 B CN104423982 B CN 104423982B
- Authority
- CN
- China
- Prior art keywords
- service
- processing equipment
- request
- returning result
- called
- 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.)
- Active
Links
Landscapes
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
- Computer And Data Communications (AREA)
Abstract
This application discloses a kind of processing method of request and processing equipment.Wherein, this method includes:Processing equipment receives pending request, wherein, request is at least used to indicate repeatedly to call same service;What processing equipment respond request judged current service execution to be called is read operation or write operation;If what processing equipment judged current service execution to be called is read operation, processing equipment judges local whether be stored with returning result corresponding with service currently to be called;If processing equipment is judged returning result has been locally stored, the returning result of storage is obtained;If processing equipment is judged locally to call service to perform read operation, acquisition returning result, and the returning result got is stored in into processing equipment local without storage returning result.Present application addresses the processing time asked in the prior art it is longer the problem of, reached accelerate request processing time technique effect.
Description
Technical field
The application is related to internet arena, in particular to the processing method and processing equipment of a kind of request.
Background technology
In current field of Internet communication, the scale of system generally the more is done the more big, and level is more and more, so as to interconnect
The service that the supplier of net service is provided gradually shows atomizing feature, that is to say, that, it is desirable to service phase newly developed
Decoupling is linked into existing system.
However, atomizing designer trends can usually cause a complex request to need by more atomization side
The combination of method is completed, and the situation of more far call is usually present in atomizing method, such as data
The request of the calling or distributed synchronization in storehouse, namely need to call multiple services in a complex request, and more
Repeatedly perform read operation in individual service, cause request processing time with its complexity and including atomization side
The increase of the quantity of method and greatly extend.
Such as the request for including 4 atomization methods FA, FB, FC and FD shown in Fig. 1, wherein, each atomization method
Include the service of " database (Query A) is inquired about by querying condition ".In the prior art, for the processing of this request
Method is typically that order performs 4 atomization methods, and above-mentioned inquiry service is repeatedly carried out, so as to cause the time of repetition
Expense.
In view of the above-mentioned problems, not yet propose to efficiently solve scheme at present.
The content of the invention
The main purpose of the application is the processing method and processing equipment for providing a kind of request, at least to solve existing skill
The problem of processing time asked in art is longer.
According to the one side of the application, there is provided a kind of processing method of request, including:Processing equipment receives pending
Request, wherein, above-mentioned request at least be used for indicate to it is same service repeatedly called;Above-mentioned processing equipment response is above-mentioned
What request judged current above-mentioned service execution to be called is read operation or write operation;If above-mentioned processing equipment is judged above-mentioned
Current above-mentioned service execution to be called is above-mentioned read operation, then above-mentioned processing equipment judge local whether be stored with it is above-mentioned
Returning result corresponding to current above-mentioned service to be called;If above-mentioned processing equipment is judged above-mentioned return knot has been locally stored
Fruit, then obtain the above-mentioned returning result of storage;If above-mentioned processing equipment judges local no above-mentioned returning result of storage, adjust
With above-mentioned service to perform above-mentioned read operation, above-mentioned returning result is obtained, and the above-mentioned returning result got is stored in
State processing equipment local.
Alternatively, it is what the above-mentioned request of above-mentioned processing equipment response judged above-mentioned current above-mentioned service execution to be called
After read operation or write operation, the processing method of above-mentioned request also includes:If judge above-mentioned current above-mentioned clothes to be called
What business performed is above-mentioned write operation, then above-mentioned processing equipment calls above-mentioned service to perform above-mentioned write operation, and in above-mentioned processing
This emptying of equipment information corresponding with above-mentioned service.
Alternatively, above-mentioned returning result is recorded using grid node structure table in above-mentioned processing equipment, wherein, it is above-mentioned
Grid node structure table has also recorded at least one of:For calling input parameter, the calling of above-mentioned service of above-mentioned service
The description information for the data that type, the description information of above-mentioned service, the mark of above-mentioned request, the above-mentioned service of calling are influenceed.
Alternatively, what the above-mentioned request of above-mentioned processing equipment response judged above-mentioned current above-mentioned service execution to be called is to read
Operation or write operation include:Above-mentioned processing equipment query configuration file is to judge above-mentioned current above-mentioned service execution to be called
Be read operation or write operation, wherein, what above-mentioned configuration file record had above-mentioned service execution is read operation or write operation,
At least also record has at least one of to above-mentioned configuration file:The call type of above-mentioned service, the description information of above-mentioned service, adjust
The description information of the data influenceed with above-mentioned service and it is used to indicate whether to obtain above-mentioned processing equipment beyond local
Above-mentioned returning result recorded information in above-mentioned grid node structure table.
Alternatively, information corresponding with above-mentioned service is emptied in above-mentioned processing equipment to be included:Search and above-mentioned service
Grid node structure table corresponding to above-mentioned configuration file, wherein, grid node corresponding with the above-mentioned configuration file of above-mentioned service
Description information in structure table is identical with the description information in the above-mentioned configuration file of above-mentioned service;Delete the above-mentioned net found
Data in lattice node structure table.
Alternatively, after above-mentioned processing equipment is completed to above-mentioned request processing, the processing method of above-mentioned request also includes:
Delete and be stored in the local above-mentioned returning result of above-mentioned processing equipment.
According to the another aspect of the application, there is provided a kind of processing equipment of request, including:Receiving unit, for receiving
Pending request, wherein, above-mentioned request is at least used to indicate repeatedly to call same service;First judging unit,
It is read operation or write operation for respond the above-mentioned current above-mentioned service execution to be called of request judgement;Second judges list
Member, for above-mentioned first judging unit judge above-mentioned current above-mentioned service execution to be called be above-mentioned read operation when,
Judge locally whether be stored with returning result corresponding with above-mentioned above-mentioned service currently to be called;First execution unit, is used for
When above-mentioned second judging unit judges to be locally stored above-mentioned returning result, the above-mentioned returning result of storage is obtained;And
For when above-mentioned second judging unit judges the local above-mentioned returning result without storage, calling above-mentioned service above-mentioned to perform
Read operation, above-mentioned returning result is obtained, and the above-mentioned returning result got is stored in above-mentioned processing equipment local.
Alternatively, the processing equipment of above-mentioned request also includes:Second execution unit, for judging above-mentioned currently to wait to adjust
Above-mentioned service execution be above-mentioned write operation when, call above-mentioned service to perform above-mentioned write operation, and set in above-mentioned processing
This standby emptying information corresponding with above-mentioned service.
Alternatively, above-mentioned returning result is recorded using grid node structure table in above-mentioned processing equipment, wherein, it is above-mentioned
Grid node structure table has also recorded at least one of:For calling input parameter, the calling of above-mentioned service of above-mentioned service
The description information for the data that type, the description information of above-mentioned service, the mark of above-mentioned request, the above-mentioned service of calling are influenceed.
Alternatively, above-mentioned first judging unit includes:Enquiry module, for query configuration file to judge above-mentioned currently to treat
The above-mentioned service execution called is read operation or write operation, wherein, above-mentioned configuration file record has above-mentioned service execution
It is read operation or write operation, at least also record has at least one of to above-mentioned configuration file:The call type of above-mentioned service, on
State the description information of service, the description information for the data for calling above-mentioned service to be influenceed and be used to indicate whether above-mentioned place
Reason equipment recorded the information in above-mentioned grid node structure table from the local above-mentioned returning result obtained in addition.
Alternatively, above-mentioned second execution unit includes:Module is retrieved, for searching the above-mentioned configuration file with above-mentioned service
Corresponding grid node structure table, wherein, retouching in grid node structure table corresponding with the above-mentioned configuration file of above-mentioned service
It is identical with the description information in the above-mentioned configuration file of above-mentioned service to state information;Removing module, found for deletion above-mentioned
Data in grid node structure table.
Alternatively, the processing equipment of above-mentioned request also includes:Delete unit, in above-mentioned processing equipment to above-mentioned request
After processing is completed, delete and be stored in the local above-mentioned returning result of above-mentioned processing equipment.
In the embodiment of the present application, due to obtaining the returning result stored using from local to replace the quilt obtained from outside
Returning result corresponding to the service of calling, so as to significantly reduce the acquisition approach for responding the returning result needed for request, enter
And the technique effect for the processing time for reducing request is reached.
In addition, in the embodiment of the present application, due to during the response to once asking, for wherein needing what is called
Same or analogous service, eliminate these services corresponding to process repeat read operation in operation with from external equipment,
Such as the third-party server of distal end carries out data call, so as to also reach the network node reduced similar to above-mentioned server
Processing pressure technique effect, and then improve the computer network of the implementation environment as technical scheme
The technique effect for the treatment of effeciency.
Certainly, any product for implementing the application it is not absolutely required to reach all the above advantage simultaneously.
Brief description of the drawings
Accompanying drawing described herein is used for providing further understanding of the present application, forms the part of the application, this Shen
Schematic description and description please is used to explain the application, does not form the improper restriction to the application.In the accompanying drawings:
Fig. 1 is a kind of schematic diagram of the request including multiple atomization methods;
Fig. 2 is the schematic diagram according to a kind of processing equipment optionally asked of the embodiment of the present application;
Fig. 3 is the schematic diagram for the processing equipment optionally asked according to the another kind of the embodiment of the present application;
Fig. 4 is the schematic diagram for the processing equipment optionally asked according to another of the embodiment of the present application;
Fig. 5 is the schematic diagram of another request for including multiple atomization methods;
Fig. 6 is the schematic diagram for the processing equipment optionally asked according to another of the embodiment of the present application;
Fig. 7 is the schematic diagram for the processing equipment optionally asked according to another of the embodiment of the present application;
Fig. 8 is the schematic diagram for the processing equipment optionally asked according to another of the embodiment of the present application;
Fig. 9 is the schematic diagram according to a kind of processing method optionally asked of the embodiment of the present application;
Figure 10 is the schematic diagram for the processing method optionally asked according to the another kind of the embodiment of the present application;
Figure 11 is the schematic diagram for the processing method optionally asked according to another of the embodiment of the present application;
Figure 12 is the schematic diagram for the processing method optionally asked according to another of the embodiment of the present application;
Figure 13 is the schematic diagram for the processing method optionally asked according to another of the embodiment of the present application.
Embodiment
Describe the application in detail below with reference to accompanying drawing and in conjunction with the embodiments.It should be noted that do not conflicting
In the case of, the feature in embodiment and embodiment in the application can be mutually combined.
Embodiment 1
The embodiment of the present application provides a kind of processing equipment optionally asked.As shown in Fig. 2 the equipment can include:
1) receiving unit 202, for receiving pending request, wherein, request at least is used to indicate to same service
Repeatedly called;
2) the first judging unit 204, for respond request judge current service execution to be called be read operation or
Write operation;
3) the second judging unit 206, it is to read for judge current service execution to be called in the first judging unit
During operation, judge locally whether be stored with returning result corresponding with current service to be called;
4) the first execution unit 208, for when the second judging unit judges to be locally stored returning result, acquisition to be deposited
The returning result of storage;And for when the second judging unit judges the local returning result without storage, calling service to hold
Row read operation, returning result is obtained, and the returning result got is stored in processing equipment local.
And then more clearly to describe technical scheme, and as an alternative embodiment, as shown in figure 3,
First execution unit 208 can include:
1) the first execution module 302, for when the second judging unit judges to be locally stored returning result, acquisition to be deposited
The returning result of storage;And
2) the second execution module 304, for when the second judging unit judges the local returning result without storage, calling
Service obtains returning result, and the returning result got is stored in into processing equipment local to perform read operation.
The processing equipment of the request provided according to the embodiment of the present application, can be received pending by receiving unit 202
Request.
First it will be clear that one of technical scheme problem to be solved is to provide a kind of equipment interconnection receipts
To request respond, wherein, above-mentioned request can have a variety of specific forms of expression, such as client is visited webpage
What request that the request asked, webpage are called to Internet resources, server were written and read operation to the data in database please
Ask, the application is not construed as limiting to this.On the other hand, the generation of above-mentioned request can also have various ways, for example, for visitor
For the end of family, a request can generally be generated by identification of the system to the click action on some page elements, but
In some embodiments of the present application, request can also by system timed task startup generate, in addition, such as system guard into
The single thread of journey, which starts execution, can also be considered as a request, and the application is not construed as limiting to this, certainly, for server and its
For his equipment, request can also have a variety of sources, and the application does not make tired state herein.
Further, above-mentioned request can at least be used for instruction same service is repeatedly called, for example, it can be with
As shown in Figure 1, at least it is used to indicate the same clothes to being respectively present in four atomization methods FA, FB, FC and FD
Business --- " inquiring about database (Query A) by querying condition " is repeatedly called.Certainly, it is a kind of example above, this
Apply not being limited in any way for the specific manifestation mode of above-mentioned service, for example, its can also show as performing it is increasingly complex
The thread or process of operation.
It is worth noting that, in the embodiment of the present application, the above-mentioned reception list for being used to receiving or retaining pending request
Member 202, it can be both integrated so as to be formed with being traditionally used for being combined the processing unit responded of request, can also
Outside other devices in system, it is individually used for performing processing operation alleged in technical scheme, and it is unrelated
In the execution of data call this operation and follow-up for other processing operations for the data called.For present techniques
The specific manifestation form of above-mentioned processing equipment and its component units in scheme, the application are not limited in any way.
Further, after pending request being received in receiving unit 202, it is directly right to be different from prior art
The mode that the request is responded, the processing equipment provided according to the embodiment of the present application, can be with the first judging unit 204
In response to the request, judge current service execution to be called is read operation or write operation, wherein, service to be called is held
Capable read operation can represent local and read data from outside, and the write operation of service execution to be called can represent local outside
Write out data in portion.For example, for the request shown in Fig. 1, the operation of its service execution to be called is " by inquiring about bar
Part inquiry database (Query A) ", is read operation so as to judge the service execution to be called, and then can lead to
Know to the second judging unit 206.
Under above-mentioned scene, that is, when judge current service execution to be called is read operation, according to the application
The processing equipment that embodiment provides, in the second judging unit 206, it can be further advanced by whether processing equipment judges local
It is stored with returning result corresponding with current service to be called.
In general, in the embodiment of the present application, in the local of processing equipment, needed for as shown in Figure 1 to same
The request repeatedly called is serviced, in response to the request, the multiple calling carried out to above-mentioned service, is typically a point tandem
Perform, so as to above-mentioned " current " service to be called, it should be understood that any in the multiple calling performed as order
The service of calling object once.
On the basis of above description, local whether there is with currently waiting to adjust can be judged by the second judging unit 206
Returning result corresponding to service, for example, for the inquiry as shown in Figure 1 in response to asking called progress read operation
Service, its corresponding returning result can be a data item in tables of data A, so that, can in the second judging unit 206
To judge locally whether being stored with the data item, if judged result is in the presence of the data item, can further notify
To the first execution module 302, if judged result is in the absence of the data item, can further notify to the second execution module
304, wherein, alternatively, the judgement can be realized by retrieval of the local data management to local data.Certainly, the above
It is a kind of example, in some embodiments of the present application, whether can also has above-mentioned return knot to local by other means
Fruit is judged that above-mentioned returning result can not also be embodied in a data item, etc. the application is not construed as limiting to this.
The processing equipment provided according to the embodiment of the present application, if judging not store locally in the second judging unit 206
There is above-mentioned returning result, then can call service in the second execution module 304 to perform read operation, obtain returning result.One
As for, in the embodiment of the present application, above-mentioned calling service, generally can be with to perform read operation and obtain the process of returning result
Directly using feasible any similar process in the prior art, to reach that the application to be reached to asking what is responded
Purpose.But on this basis, in the embodiment of the present application, the returning result got further can also be stored in place
Equipment local is managed, can be substituted in follow-up operation and be stored in local so as to be stored in the local returning result of processing equipment
Returning result in addition, the new acquisition approach as the same service of subsequent calls.
For example, for the inquiry service as shown in Figure 1 in response to asking called progress read operation, it is adjusted first
It is called in used time, such as the atomization method FA that is called of above-mentioned request shown in Fig. 1, can not in the local of processing equipment
In the presence of with the corresponding returning result of inquiry service, such as meet the data item A of querying condition in database, so as to
Judge locally not being stored with above-mentioned returning result in two judging units 206, and then as the response for the request, second
In execution module 304, the corresponding read operation of inquiry service execution can be directly invoked, with beyond the local of processing equipment
Position, such as acquisition data item A in the database on third-party server is stored in, and the data item A of acquisition is stored in place
Manage the local of equipment.
Certainly, this is a kind of example, and the application is not limited in any way to this, for example, specifically, the application is for obtaining
The returning result arrived in processing equipment local corresponding storage device, storage location and used data management mode not
It is construed as limiting, etc., such as above-mentioned returning result can be stored in local caching, be stored in other kinds of storage
Device.
The processing equipment provided according to the embodiment of the present application, if judging to be locally stored in the second judging unit 206
Above-mentioned returning result, then the returning result of storage in the first execution module 302, can be obtained.Wherein, it is different from existing skill
In art when being responded to request, directly invoke service execution read operation and obtain returning result to usual sameization, at this
Apply in embodiment, according to the result for judging to draw in the second judging unit 206, when locally having had the returning result,
Such as in the returning result in advance from the case of being locally obtained and stored in local in addition, then can not continue to calling should
Service execution prestores from the outside read operation for obtaining returning result, but in the first execution module 302 from local directly obtain
The returning result.
For example, for the inquiry service as shown in Figure 1 in response to asking called progress read operation, it is above-mentioned combining
Second judging unit 206, from processing equipment it is local beyond obtain returning result corresponding to inquiry service, and by the returning result
Store to the local of processing equipment, called when same inquiry service is called again, such as in above-mentioned request
Atomization method FA after FB in be called again, due to local existing with the corresponding returning result of inquiry service,
So as to judge above-mentioned returning result has been locally stored in the second judging unit 206, such as meet inquiry in database
The data item A of condition, so as to obtain the data item A stored from local in the first execution module 302.
From the above, it can be seen that the processing equipment provided by the embodiment of the present application, in the first execution module 302
In, due to being tied using from the local returning result for obtaining storage to replace returning corresponding to the called service obtained from outside
Fruit, so as to significantly reduce the acquisition approach for responding the returning result needed for request, and then reduce the processing of request
The technique effect of time, and due to during the response to once asking, it is same or similar for wherein needing to call
Service, eliminate these services corresponding to process repeat read operation in operation with from external equipment, such as distal end
Third-party server carries out data call, so as to also reach the processing pressure for reducing the network node similar to above-mentioned server
Technique effect, and then improve the treatment effeciency of the computer network of the implementation environment as technical scheme
Technique effect.
On the other hand, as shown in figure 4, as an alternative embodiment, according to the first judging unit 204 to work as
Preceding service execution to be called is read operation or after write operation judged, above-mentioned processing equipment can also include and the
The coupling of one judging unit 204:
1) the second execution unit 402, for when judge current service execution to be called is write operation, calling clothes
It is engaged in perform write operation, and in this emptying of processing equipment and the corresponding information of service.
In general, in the embodiment of the present application, above-mentioned processing equipment calls service to perform the process of write operation, lead to
Often can be directly using feasible any similar process in the prior art, to reach that the application to be reached to request progress
The purpose of response, wherein, above-mentioned write operation can represent in request performed by the service called to the service or the request
The operation that the data of provider are updated.It is worth noting that, in the embodiment of the present application, although for indicating to call service
Message sent by processing equipment, however, the main body for performing write operation, can be above-mentioned processing equipment or on
The device beyond processing equipment is stated, the application is not construed as limiting to this.
On the basis of above description, prior art is different from, the processing equipment provided according to the embodiment of the present application, the
, can also be further in this emptying and the corresponding information of service of processing equipment in two execution units 402.Implement in the application
In example, aforesaid operations can couple with foregoing second judging unit 206, the first execution module 302 or the second execution module 304,
Reach the technique effect correctly responded to request.Its principle is illustrated below in conjunction with Fig. 5.
In Figure 5, a certain request can at least need to call 3 atomization method FE, FF, FG, wherein, in forward calling
Atomization method FE and the atomization method FG that calls rearward in, include to " inquiring about database by querying condition
(queryA) " the thread that the service of this execution read operation is called, for ease of description, the service is designated as first service,
In the atomization method FF being called between FE and FG, including to " modification content (modify B) in XML document " this
The thread that the service of write operation is called is performed, for ease of description, the service is designated as second service, wherein, above-mentioned data
Storehouse and XML document are stored in the position beyond processing equipment local, such as can be located on third-party server.
Under above-mentioned scene, according to the processing equipment of the embodiment of the present application offer, this is being received by receiving unit 202
After request, by the service in sequentially calling 3 atomization methods, the first judging unit 204 is first passed through respectively and is treated to each
The type of operation performed by the service of calling is judged, for example, for atomization method FE, can be adjusted judging it
What first service performed is read operation, so as to by the first execution module 302 or the second execution module 304 from processing
The local of equipment or outside acquisition returning result corresponding with first service, such as meet the data item A of querying condition, and will obtain
The data item A taken is stored in processing equipment local, or processing equipment has locally had a data item A, and then by atomization side
Method FE process is finished.After this, for atomization method FF, it can be determined that go out its second service called and perform
Be write operation, so as to perform corresponding write operation by the normal call second service of the second execution unit 402, such as
Data item B can be write XML document, and in this emptying of processing equipment information corresponding with second service, and then by atom
Change method FF process is finished.Under this scene, if the returning result of first service namely the data item A of reading and
Two services are corresponding, for example, the result that the XML document that data item B is write is run on third-party server will have influence on
The source data item A stored in its database, the then number that can locally have processing equipment in above-mentioned second execution unit 402
Emptied according to item A, and then, for the atomization method FG of subsequent calls, it equally may determine that its first service called is held
Capable is read operation, so that in the second judging unit 206, because data item A has been cleared locally, it can be determined that go out processing
Locally returning result corresponding with first service to be called is not present in equipment, and then can be by the second execution module 304 just
First service often is called with data item B when acquisition may be due to calling second service from the database on third-party server
Write operation cause the data item A that value changes, and by acquisition be probably that data item A after renewal is stored in processing equipment
Local.
If from the above, it can be seen that do not perform the clear operation in the second execution unit 402 in above-mentioned scene,
During the request that processing needs may be caused to be called the different services for performing read operation and write operation, it can not obtain in time
The returning result updated in processing procedure, so as to cause to carry out the problem of mistake is responded to request.On the other hand, in the application
In embodiment, by the introducing of the second execution unit 402, solve above-mentioned technical problem, and then improve to ask into
The technique effect of the accuracy of row processing.
It should be noted that above-described embodiment proposes as example, any restriction can't be formed to the application.For example,
It write operation performed by above-mentioned service to be called, can both represent to insert, can also represent to delete or replace etc. and specifically write
Operation, and the modification object of the write operation can also be other any feasible objects beyond XML document, and the application is to this
It is not construed as limiting.
Below in conjunction with table 1 and Fig. 6 to Fig. 8, by some specific embodiments of the application, judge above-mentioned first single
The specific judgement implementation of read/write operation in member 204, and returning result and the relevant information of service are in processing equipment sheet
The storage mode on ground is described in detail.
Reference table 1, as an alternative embodiment, in the embodiment of the present application, can use on a processing device
Grid node structure table records returning result, wherein, table 1 is used to represent to be stored in local grid node of processing equipment
Structure table.
Table 1
As shown in table 1, grid node structure table can record following information:For calling input parameter, the clothes of service
The call type of business, the description information of service, returning result, the mark of request, the description letter for calling the influenceed data of service
Breath, wherein, the identification item as these information can arrange shown field name by table 1 the 1st and be formed.
Wherein, the information content of input parameter record as shown in the row of table 1 the 3rd, can call the phase of service for recording
Close input parameter, namely call service process when starting or during correlated inputs parameter, such as shown in Fig. 1 please
Ask, the service of called execution read operation " database (Query A) is inquired about by querying condition ", its relevant parameter can be
Querying condition " A ".
The information content of the field record of the call type of service can be used for the call type for recording service, for example,
It can represent database data calling or distributed synchronization interface interchange service respectively by different field, and in grid
Record call type corresponding with called or to be called service in node structure table.In general, the call type can be with
The different network frames that are contacted according to the implementation environment of technical scheme are classified, however the application to this not
It is construed as limiting.
The field of the description information of service can be used for record and service related information in itself, such as shown in table 1 the 3rd arranges
, if database data calls, then what the model object recorded can be the absolute address and table name of database, if
Record is distributed synchronization interface interchange service, then what is recorded can be the absolute address of the service, uniquely to determine the clothes
Business.
The information of returning result record can be used for recording the returning result obtained by read operation, such as such as scheming
What the response of the request shown in 1 was returned meets the data item A of querying condition.Alternatively, as shown in Fig. 1 secondary series, it is recorded in
Returning result in grid node structure table can be embodied in the data structure of mapping Map types, wherein, the Map types
Data structure can include the key-value pair that is made up of key (Key) and corresponding value (Value), in order to the clothes of subsequent calls
The performed call operation to the returning result of business.
The information of the field record of the mark of request can represent uniquely to indicate the handle of the request, for example, the request
What is recorded in process may be used as the character string of mark.The mark of request can be used for identifying above-mentioned returning result please at which
Be returned in the processing procedure asked, so as to determined whether in the processing method of above-mentioned request the returning result whether by
Acquired in request where current service to be called, if so, can then perform from the local operation for obtaining the returning result, if
It is no, then it can normally perform current service to be called.
The description information for servicing influenceed data is called to can be used for recording affected back end, for example, its
Can be a local tables of data of processing equipment, etc..As shown in the secondary series of table 1, the description for servicing influenceed data is called
Information can be embodied in enumeration type, and its content recorded can be sky, or a back end, can also be
It is multiple, such as the request at least needing to call 3 atomization methods FE, FF, FG as shown in Figure 5, wherein needing to call
, can be in the above-mentioned calling service in grid node structure table after the completion of the atomization method FF processing for performing the service of write operation
All data that the write operation is influenceed are recorded in the description information of the data influenceed, so as to perform list by second
The clear operations that member 402 performs are by these data dumps, so as to for the atomization method FG processing performed thereafter.
In addition, the secondary series of table 1 can represent above-mentioned multinomial information in grid node structure table in processing equipment
Local storage organization.
In the embodiment of the present application, the information recorded in above-mentioned grid node structure table may be incorporated for pair and the grid
Service corresponding to node structure table is identified, and can be used in above-mentioned first execution module 302 in processing equipment sheet
The returning result and/or the calling of relevant information that ground performs.
Certainly, it will be appreciated by those skilled in the art that playing a part of recording the relevant information of returning result and service
Grid node structure table can also only include the partial information in above-mentioned table 1, in addition, the grid node structure table can also show
For other forms, or do not occur in a tabular form.However, this above-mentioned Shen in application design provided herein
Please technical scheme deformation, be regarded as within the protection domain of the application.
And then as shown in fig. 6, alternatively, in the embodiment of the present application, the first judging unit 204 can include:
1) enquiry module 602, for query configuration file with judge current service execution to be called be read operation also
It is write operation.
Wherein, enquiry module 602 can be by being stored in the local configuration file of processing equipment come to current to be called
Service is identified, in the case of the match is successful for the two, you can to reflect current service to be called by configuration file
Relevant information, such as what configuration file can record the service execution is read operation or write operation, so as to look into
Which kind of operation is ask in module 602 by go out current service execution to be called to the inquiry judging of configuration file is.It is worth note
Meaning, in some embodiments of the present application, for example, for the network environment of relative closure, above-mentioned configuration file can be
It is static, but in other embodiments of the application, above-mentioned configuration file can also be it is dynamic, can be with the application skill
The variation of the implementation environment of art scheme and be adjusted.
Configuration file what record had service execution can also have been recorded in following outside read operation or write operation
Hold:The call type of service, the description information of service, calling service the description information of influenceed data and for indicating
Whether the returning result that processing equipment obtains beyond local recorded to the information in grid node structure table.For example, at this
In one embodiment of application, configuration file can have following form:
(the call type of service:The description information of service:It is used to indicate whether obtain processing equipment beyond local
Returning result recorded the information in grid node structure table:Call the description information for servicing influenceed data:Service execution
Operation type)
Wherein, under a scene, the record of corresponding configuration file can be:
(dubbo:com.alifi.venuscore.service.LoanApi.getLoan:Y:Request slip:Read)
Under this scene, by the inquiry to configuration file i.e., the call type of service can be " dubbo " class
Type (call type defined in a kind of existing network frame), the calling path for the service that the description information of service is embodied
Can be " com.alifi.venuscore.service.LoanApi.getLoan " be used to indicate whether by processing equipment from
The information that the returning result obtained beyond local recorded in grid node structure table can be " Y ", namely "Yes", call and service
The description information of the data influenceed can be " request slip ", and the type of the operation of service execution can be " reading ", namely read
Operation.
From the above, it can be seen that pass through the configuration to configuration file, in that context it may be convenient to service to be called whether
It is incorporated into grid node structure table, or whether notifies configured information to the second judging unit in above-mentioned processing equipment
206th, the first execution module 302 or the second execution module 304 are regulated and controled.On the other hand, configuration file can be used for
Grid node structure table accordingly records the relevant information of service, so as to be updated using grid node structure table as dynamic
Data structure in the case of, the storaging medium relatively long as retention cycle, serve the first execution module 302 from processing
The local calling to returning result of equipment.
And then as shown in fig. 7, alternatively, in the embodiment of the present application, above-mentioned second execution unit 402 can include:
1) module 702 is retrieved, the corresponding grid node structure table of configuration file for searching with servicing, wherein, with clothes
Description information in grid node structure table corresponding to the configuration file of business is identical with the description information in the configuration file serviced;
2) removing module 704, for deleting the data in the grid node structure table found.
Wherein, module 702 and removing module 704 is retrieved to be used as with reference to corresponding to inquiring about and delete by using configuration file
The mode of data in grid node structure table, can simply and quickly complete described in the second execution unit 402 for holding
The null clear operation carried out after the completion of the service call of row write operation.Certainly, configuration file described herein can be not only
For object above, it is however generally that, the service that configuration file can be safeguarded to needs is defined, for example, definition service is reading
Operation or write operation, and data for being had influence on of read/write operation etc., so as to play a part of management service description.
Alternatively, as shown in figure 8, in the embodiment of the present application, after the completion of above-mentioned processing equipment is handled above-mentioned request,
It can also be included according to the processing equipment that the embodiment of the present application provides:
1) unit 802 is deleted, after being completed in processing equipment to request processing, deletion is stored in processing equipment local
Returning result.
As it was previously stated, in the embodiment of the present application, the data result that grid node structure table can be updated as dynamic,
It is stored in an interim memory space for its distribution, for example, can distribute grid node structure table in data processing
In the comparatively faster local cache of speed.Under above-mentioned scene, preamble can met in the processing procedure once asked
Rule of judgment is simultaneously performed when returning result to be stored in the local operation of processing equipment in the second execution module 304, will be remembered
The grid node structure table that recording has returning result and the relevant information of service is stored in above-mentioned local cache, and please in this time
During the service for the same execution read operation called after in the processing procedure asked, in the first execution module 302, from being located locally
Grid node structure table in caching obtains data, so as to further speed up the processing speed of request.
Under above-mentioned scene, on the other hand, unit can also deleted after processing equipment has performed above-mentioned request
In 802, the local returning result of processing equipment will be stored in and deleted, so as to by above-mentioned for the interim of returning result distribution
Memory space, such as deleted in above-mentioned local cache, so as to which the memory space of release can be used for the treated of request next time
Journey, or for system other processes use, so as to the request provided according to the embodiment of the present application processing method to big
The request of amount is handled simultaneously when, reach the technique effect of the service efficiency of lifting internal memory.
Embodiment 2
Present invention also provides a kind of processing method of request.As shown in figure 9, this method can include:
S902:Processing equipment receives pending request, wherein, request at least carries out more for instruction to same service
Secondary calling;
S904:What processing equipment respond request judged current service execution to be called is read operation or write operation,
If read operation, then step S906 is performed;
S906:Processing equipment judges locally whether be stored with returning result corresponding with current service to be called,
If so, step S908 is then performed,
If it is not, then perform step S910;
S908:Obtain the returning result of storage;
S910:Service is called to perform read operation, obtains returning result, and the returning result got is stored in processing
Equipment is local.
The processing method of the request provided according to the embodiment of the present application, in step S902, can be connect by processing equipment
Receive pending request.
First it will be clear that one of technical scheme problem to be solved is to provide a kind of method to receiving
To request respond, wherein, above-mentioned request can have a variety of specific forms of expression, such as client is visited webpage
What request that the request asked, webpage are called to Internet resources, server were written and read operation to the data in database please
Ask, the application is not construed as limiting to this.On the other hand, the generation of above-mentioned request can also have various ways, for example, for visitor
For the end of family, a request can generally be generated by identification of the system to the click action on some page elements, but
In some embodiments of the present application, request can also by system timed task startup generate, in addition, such as system guard into
The single thread of journey, which starts execution, can also be considered as a request, and the application is not construed as limiting to this, certainly, for server and its
For his equipment, request can also have a variety of sources, and the application does not make tired state herein.
Further, above-mentioned request can at least be used for instruction same service is repeatedly called, for example, it can be with
As shown in Figure 1, at least it is used to indicate the same clothes to being respectively present in four atomization methods FA, FB, FC and FD
Business --- " inquiring about database (Query A) by querying condition " is repeatedly called.Certainly, it is a kind of example above, this
Apply not being limited in any way for the specific manifestation mode of above-mentioned service, for example, its can also show as performing it is increasingly complex
The thread or process of operation.
It is worth noting that, in the embodiment of the present application, the above-mentioned processing for being used to receive or retain pending request is set
It is standby, it can be both integrated so as to be formed with being traditionally used for being combined the processing unit responded of request, can also be independent
Outside other devices in system, it is individually used for performing processing operation alleged in technical scheme, and independent of number
According to the execution for calling this operation and other processing operations of the follow-up data for calling.For technical scheme
In processing equipment specific manifestation form, the application is not limited in any way.
Further, after pending request being received in processing equipment, it is different from prior art directly to this
The mode responded is asked, the processing method of the request provided according to the embodiment of the present application, in step S904, can be responded
In the request, judge current service execution to be called is read operation or write operation, wherein, service execution to be called
Read operation can represent local and read data from outside, and the write operation of service execution to be called can represent local and be write to outside
Go out data.For example, for the request shown in Fig. 1, the operation of its service execution to be called is " to be looked into by querying condition
Ask database (Query A) ", it is read operation so as to judge the service execution to be called, and then can continue to hold
Row step S906.
Under above-mentioned scene, that is, when judge current service execution to be called is read operation, according to the application
The processing method for the request that embodiment provides, in step S906, it can be further advanced by whether processing equipment judges local
It is stored with returning result corresponding with current service to be called.
In general, in the embodiment of the present application, in the local of processing equipment, needed for as shown in Figure 1 to same
The request repeatedly called is serviced, in response to the request, the multiple calling carried out to above-mentioned service, is typically a point tandem
Perform, so as to above-mentioned " current " service to be called, it should be understood that any in the multiple calling performed as order
The service of calling object once.
On the basis of above description, local whether there is and current service to be called can be judged by processing equipment
Corresponding returning result, for example, for as shown in Figure 1 in response to asking the called inquiry service for carrying out read operation, its
Whether corresponding returning result can be a data item in tables of data A, so as in step S906, be deposited to local
Contain the data item to be judged, if judged result is in the presence of the data item, can further perform step S908, if judging
As a result it is in the absence of the data item, then can further performs step S910, wherein, alternatively, the judgement can pass through local
Retrieval of the data management to local data is realized.Certainly, it is a kind of example above, in some embodiments of the present application,
It can also judge by other means locally whether having above-mentioned returning result, above-mentioned returning result can not also be specific
A data item is shown as, etc. the application is not construed as limiting to this.
The processing method of the request provided according to the embodiment of the present application, if judging not to be stored with locally in step S906
Above-mentioned returning result, then it can call service in step S910 to perform read operation, obtain returning result.In general,
In the embodiment of the present application, above-mentioned calling service generally can be used directly with performing read operation and obtaining the process of returning result
Feasible any similar process in the prior art, to reach the application purpose responded to request to be reached.So
And on this basis, in the embodiment of the present application, the returning result got further can also be stored in processing equipment
It is local, it can be substituted and be stored in beyond local in follow-up operation so as to be stored in the local returning result of processing equipment
Returning result, the new acquisition approach as the same service of subsequent calls.
For example, for the inquiry service as shown in Figure 1 in response to asking called progress read operation, it is adjusted first
It is called in used time, such as the atomization method FA that is called of above-mentioned request shown in Fig. 1, can not in the local of processing equipment
In the presence of with the corresponding returning result of inquiry service, such as meet the data item A of querying condition in database, so as in step
Judge in rapid S906 it is local be not stored with above-mentioned returning result, and then as the response for the request, in step S910,
The corresponding read operation of inquiry service execution can be directly invoked, with the position beyond the local of processing equipment, such as is stored
Data item A is obtained in database on third-party server, and the data item A of acquisition is stored in the local of processing equipment.
Certainly, this is a kind of example, and the application is not limited in any way to this, for example, specifically, the application is for obtaining
The returning result arrived in processing equipment local corresponding storage device, storage location and used data management mode not
It is construed as limiting, etc., such as above-mentioned returning result can be stored in local caching, be stored in other kinds of storage
Device.
The processing method of the request provided according to the embodiment of the present application, if judging to be locally stored in step S906
Returning result is stated, then the returning result of storage in step S908, can be obtained.Wherein, it is different from the prior art right
When request is responded, directly invoke service execution read operation and obtain returning result to usual sameization, implement in the application
In example, according to the result for judging to draw in step S906, when locally having had the returning result, such as in the returning result
It can then not continue to call the service execution to obtain from outside from the case of being locally obtained and stored in local in addition in advance
The read operation of returning result is taken, but in step S908, from local returning result for directly obtaining and prestoring.
For example, for the inquiry service as shown in Figure 1 in response to asking called progress read operation, it is above-mentioned combining
Step S906, from processing equipment it is local beyond obtain returning result corresponding to inquiry service, and by the returning result store to
On the basis of the local of processing equipment, when same inquiry service is called again, such as the atom called in above-mentioned request
It is called again in FB after change method FA, due to local existing with the corresponding returning result of inquiry service, so as to
To judge above-mentioned returning result has been locally stored in step S906, such as meet the data item A of querying condition in database,
So as to obtain the data item A stored from local in step S908.
From the above, it can be seen that the processing method of the request provided by the embodiment of the present application, in step S908,
Due to obtaining the returning result stored using from local to replace returning result corresponding to the called service obtained from outside,
So as to significantly reduce the acquisition approach for responding the returning result needed for request, and then reduce processing time of request
Technique effect, and due to during the response to once asking, for wherein needing the same or analogous clothes called
Business, eliminate these services corresponding to process repeat read operation in operation with from the 3rd of external equipment, such as distal end
Square server carries out data call, so as to also reach the skill for the processing pressure for reducing the network node similar to above-mentioned server
Art effect, and then improve the technology of the treatment effeciency of the computer network of the implementation environment as technical scheme
Effect.
On the other hand, as shown in Figure 10, as an alternative embodiment, according to step S904 to currently waiting to adjust
Service execution is read operation or after write operation judged, the processing method of above-mentioned request can also include:
S1002:Processing equipment calls service to perform write operation, and in this emptying of processing equipment letter corresponding with service
Breath.
In general, in the embodiment of the present application, above-mentioned processing equipment calls service to perform the process of write operation, lead to
Often can be directly using feasible any similar process in the prior art, to reach that the application to be reached to request progress
The purpose of response, wherein, above-mentioned write operation can represent in request performed by the service called to the service or the request
The operation that the data of provider are updated.It is worth noting that, in the embodiment of the present application, although for indicating to call service
Message sent by processing equipment, however, the main body for performing write operation, can be above-mentioned processing equipment or on
The device beyond processing equipment is stated, the application is not construed as limiting to this.
On the basis of above description, prior art is different from, the processing side of the request provided according to the embodiment of the present application
Method, in step S1002, further it can also empty in processing and the corresponding information of service.In the embodiment of the present application
In, aforesaid operations can couple with abovementioned steps S906, S908 or S910, reach the technology correctly responded to request and imitate
Fruit.Its principle is illustrated below in conjunction with Fig. 5.
In Figure 5, a certain request can at least need to call 3 atomization method FE, FF, FG, wherein, in forward calling
Atomization method FE and the atomization method FG that calls rearward in, include to " inquiring about database by querying condition
(queryA) " the thread that the service of this execution read operation is called, for ease of description, the service is designated as first service,
In the atomization method FF being called between FE and FG, including to " modification content (modify B) in XML document " this
The thread that the service of write operation is called is performed, for ease of description, the service is designated as second service, wherein, above-mentioned data
Storehouse and XML document are stored in the position beyond processing equipment local, such as can be located on third-party server.
Under above-mentioned scene, the processing method of the request provided according to the embodiment of the present application, received by step S902
To after the request, by the service in sequentially calling 3 atomization methods, step S904 is first passed through respectively to each to be called
Service performed by the type of operation judged, for example, for atomization method FE, can judge what it was called
What first service performed is read operation, so as to by step S908 or S910 from the local of processing equipment or it is outside obtain with
Returning result corresponding to first service, such as meet the data item A of querying condition, and the data item A of acquisition is stored in processing
Equipment is local, or processing equipment has locally had data item A, and then atomization method FE process is finished.
After this, for atomization method FF, it can be determined that go out its second service execution called is write operation, so as to logical
Step S1002 normal calls second service is crossed to perform corresponding write operation, such as data item B can be write to XML document, and
It is finished in this emptying of processing equipment information corresponding with second service, and then by atomization method FF process.At this
Under one scene, if the returning result of first service namely the data item A of reading are corresponding with second service, for example, data item B
The result that the XML document write is run on third-party server will have influence in its database the source data item A stored, then
The data item A that processing equipment locally has can be emptied in above-mentioned steps S1002, and then, for the atom of subsequent calls
Change method FG, equally may determine that its first service execution called is read operation, so that in step S906, due to
Data item A is cleared locally, it can be determined that goes out processing equipment and return corresponding with first service to be called is locally not present
Result is returned, and then can normally call first service to be obtained from the database on third-party server by step S910
The data item A that value may be caused to change due to the write operation of data item B when calling second service, and be probably by acquisition
Data item A after renewal is stored in the local of processing equipment.
If from the above, it can be seen that not performing the clear operation in step S1002 in above-mentioned scene, may lead
When causing processing needs the request being called to the different services for performing read operation and write operation, it can not obtain in time treated
The returning result updated in journey, so as to cause to carry out the problem of mistake is responded to request.On the other hand, in the embodiment of the present application
In, by step S1002 introducing, solve above-mentioned technical problem, and then improve request is handled it is accurate
The technique effect of property.
It should be noted that above-described embodiment proposes as example, any restriction can't be formed to the application.For example,
It write operation performed by above-mentioned service to be called, can both represent to insert, can also represent to delete or replace etc. and specifically write
Operation, and the modification object of the write operation can also be other any feasible objects beyond XML document, and the application is to this
It is not construed as limiting.
Below in conjunction with the table 1 and Figure 11 to Figure 13 implemented shown in 1, by some specific embodiments of the application,
To the specific judgment mode of the read/write operation in the processing method of above-mentioned request, and returning result and the relevant information of service
It is described in detail in the local storage mode of processing equipment.
Table 1 shown in reference implementation 1, as an alternative embodiment, in the embodiment of the present application, can locate
Returning result is recorded using grid node structure table in reason equipment, wherein, table 1 is used to represent to be stored in processing equipment local
One grid node structure table.
As shown in table 1, grid node structure table can record following information:For calling input parameter, the clothes of service
The call type of business, the description information of service, returning result, the mark of request, the description letter for calling the influenceed data of service
Breath, wherein, the identification item as these information can arrange shown field name by table 1 the 1st and be formed.
Wherein, the information content of input parameter record as shown in the row of table 1 the 3rd, can call the phase of service for recording
Close input parameter, namely call service process when starting or during correlated inputs parameter, such as shown in Fig. 1 please
Ask, the service of called execution read operation " database (Query A) is inquired about by querying condition ", its relevant parameter can be
Querying condition " A ".
The information content of the field record of the call type of service can be used for the call type for recording service, for example,
It can represent database data calling or distributed synchronization interface interchange service respectively by different field, and in grid
Record call type corresponding with called or to be called service in node structure table.In general, the call type can be with
The different network frames that are contacted according to the implementation environment of technical scheme are classified, however the application to this not
It is construed as limiting.
The model object of the description information of service can be used for record and service related information, such as the row of table 1 the 3rd in itself
Shown, if database data calls, then what the model object recorded can be the absolute address and table name of database,
If record is distributed synchronization interface interchange service, what is recorded can be the absolute address of the service, uniquely to determine
The service.
The information of returning result record can be used for recording the returning result obtained by read operation, such as such as scheming
What the response of the request shown in 1 was returned meets the data item A of querying condition.Alternatively, as shown in Fig. 1 secondary series, it is recorded in
Returning result in grid node structure table can be embodied in the data structure of mapping Map types, wherein, the Map types
Data structure can include the key-value pair that is made up of key (Key) and corresponding value (Value), in order to the clothes of subsequent calls
The performed call operation to the returning result of business.
The information of the field record of the mark of request can represent uniquely to indicate the handle of the request, for example, the request
What is recorded in process may be used as the character string of mark.The mark of request can be used for identifying above-mentioned returning result please at which
Be returned in the processing procedure asked, so as to determined whether in the processing method of above-mentioned request the returning result whether by
Acquired in request where current service to be called, if so, can then perform from the local operation for obtaining the returning result, if
It is no, then it can normally perform current service to be called.
The description information for servicing influenceed data is called to can be used for recording affected back end, for example, its
Can be a local tables of data of processing equipment, etc..As shown in the secondary series of table 1, the description for servicing influenceed data is called
Information can be embodied in enumeration type, and its content recorded can be sky, or a back end, can also be
It is multiple, such as the request at least needing to call 3 atomization methods FE, FF, FG as shown in Figure 5, wherein needing to call
, can be in the above-mentioned calling service in grid node structure table after the completion of the atomization method FF processing for performing the service of write operation
All data that the write operation is influenceed are recorded in the description information of the data influenceed, so as to pass through step SX1002
The clear operation of execution is by these data dumps, so as to for the atomization method FG processing performed thereafter.
In addition, the secondary series of table 1 can represent above-mentioned multinomial information in grid node structure table in processing equipment
Local storage organization.
In the embodiment of the present application, the information recorded in above-mentioned grid node structure table may be incorporated for pair and the grid
Service corresponding to node structure table is identified, and can be used in above-mentioned steps S908 what is locally executed in processing equipment
The calling of returning result and/or relevant information.
Certainly, it will be appreciated by those skilled in the art that playing a part of recording the relevant information of returning result and service
Grid node structure table can also only include the partial information in above-mentioned table 1, in addition, the grid node structure table can also show
For other forms, or do not occur in a tabular form.However, this above-mentioned Shen in application design provided herein
Please technical scheme deformation, be regarded as within the protection domain of the application.
And then as shown in figure 11, alternatively, in the embodiment of the present application, step S904 can include:
S1102:Processing equipment query configuration file is read operation or write with judge current service execution to be called
Operation.
Wherein it is possible to current service to be called is known by being stored in the local configuration file of processing equipment
Not, in the case of the match is successful for the two, you can to reflect the relevant information of current service to be called by configuration file,
Such as what configuration file can record the service execution is read operation or write operation, so as to lead in step S1102
Cross which kind of operation go out current service execution to be called to the inquiry judging of configuration file is.It is worth noting that, in this Shen
In some embodiments please, for example, for the network environment of relative closure, above-mentioned configuration file can be static, but
In other embodiments of the application, above-mentioned configuration file can also be it is dynamic, can be with the implementation of technical scheme
The variation of environment and be adjusted.
Configuration file what record had service execution can also have been recorded in following outside read operation or write operation
Hold:The call type of service, the description information of service, calling service the description information of influenceed data and for indicating
Whether the returning result that processing equipment obtains beyond local recorded to the information in grid node structure table.For example, at this
In one embodiment of application, configuration file can have following form:
(the call type of service:The description information of service:It is used to indicate whether obtain processing equipment beyond local
Returning result recorded the information in grid node structure table:Call the description information for servicing influenceed data:Service execution
Operation type)
Wherein, under a scene, the record of corresponding configuration file can be:
(dubbo:com.alifi.venuscore.service.LoanApi.getLoan:Y:Request slip:Read)
Under this scene, by the inquiry to configuration file i.e., the call type of service can be " dubbo " class
Type (call type defined in a kind of existing network frame), the calling path for the service that the description information of service is embodied
Can be " com.alifi.venuscore.service.LoanApi.getLoan " be used to indicate whether by processing equipment from
The information that the returning result obtained beyond local recorded in grid node structure table can be " Y ", namely "Yes", call and service
The description information of the data influenceed can be " request slip ", and the type of the operation of service execution can be " reading ", namely read
Operation.
From the above, it can be seen that pass through the configuration to configuration file, in that context it may be convenient to service to be called whether
Be incorporated into grid node structure table, or whether continue executing with step S906, S908 in the processing method of above-mentioned request or
S910 is regulated and controled.On the other hand, configuration file can be used for accordingly recording the phase of service with grid node structure table
Close information, so as to using grid node structure table as dynamic update data structure in the case of, as retention cycle
Relatively long storaging medium, serve in step S908 from the local calling to returning result of processing equipment.
And then as shown in figure 12, alternatively, in the embodiment of the present application, being set in processing described in above-mentioned steps S1002
This standby emptying can include with the operation of the corresponding information of service:
S1202:Grid node structure table corresponding with the configuration file serviced is searched, wherein, the configuration file with service
Description information in corresponding grid node structure table is identical with the description information in the configuration file serviced;
S1204:Delete the data in the grid node structure table found.
Wherein, by using configuration file as the data in the grid node structure table with reference to corresponding to inquiring about and delete
Mode, it can simply and quickly complete to be carried out after the completion of the service call for performing write operation described in step S1002
Null clear operation.Certainly, configuration file described herein can be applied not only to object above, it is however generally that, configuration file
The service that can be safeguarded to needs is defined, for example, definition service is read operation or write operation, and read/write operation institute
Data having influence on etc., so as to play a part of management service description.
Alternatively, as shown in figure 13, in the embodiment of the present application, after the completion of processing equipment is handled above-mentioned request, root
The processing method of the request provided according to the embodiment of the present application can also include:
S1302:Delete and be stored in the local returning result of processing equipment.
As it was previously stated, in the embodiment of the present application, the data result that grid node structure table can be updated as dynamic,
It is stored in an interim memory space for its distribution, for example, can distribute grid node structure table in data processing
In the comparatively faster local cache of speed.Under above-mentioned scene, preamble can met in the processing procedure once asked
Rule of judgment is simultaneously performed when returning result to be stored in the local operation of processing equipment in step S910, and record is had into return
As a result and the grid node structure table of relevant information of service is stored in above-mentioned local cache, and in the processing of this request
During after call same execution read operation service when, in step S908, from be located locally caching in grid section
Point structure table obtains data, so as to further speed up the processing speed of request.
, on the other hand, can also be after processing equipment have performed above-mentioned request, in step S1302 under above-mentioned scene
In, the local returning result of processing equipment will be stored in and deleted, so as to by above-mentioned for the interim of returning result distribution
Deleted in memory space, such as above-mentioned local cache, so as to which the memory space of release can be used for the processing procedure of request next time,
Or for system other processes use, so as to the request provided according to the embodiment of the present application processing method to substantial amounts of
Request is handled simultaneously when, reach the technique effect of the service efficiency of lifting internal memory.
Obviously, those skilled in the art should be understood that each module of above-mentioned the application or each step can be with general
Computing device realize that they can be concentrated on single computing device, or be distributed in multiple computing devices and formed
Network on, alternatively, they can be realized with the program code that computing device can perform, it is thus possible to they are stored
Performed in the storage device by computing device, and in some cases, can be with different from shown in order execution herein
The step of going out or describing, they are either fabricated to each integrated circuit modules respectively or by multiple modules in them or
Step is fabricated to single integrated circuit module to realize.So, the application is not restricted to any specific hardware and software combination.
The preferred embodiment of the application is the foregoing is only, is not limited to the application, for the skill of this area
For art personnel, the application can have various modifications and variations.It is all within spirit herein and principle, made any repair
Change, equivalent substitution, improvement etc., should be included within the protection domain of the application.
Claims (10)
- A kind of 1. processing method of request, it is characterised in that including:Processing equipment receives pending request, wherein, the request is at least used to indicate repeatedly to adjust same service With;What the processing equipment response request judged the current service execution to be called is read operation or write operation;If what the processing equipment judged the current service execution to be called is the read operation, the processing Equipment judges locally whether be stored with returning result corresponding with the service currently to be called;If the processing equipment is judged the returning result has been locally stored, the returning result of storage is obtained;If institute State processing equipment and judge local no storage returning result, then call the service to perform the read operation, obtain The returning result, and the returning result got is stored in the processing equipment local.
- 2. according to the method for claim 1, it is characterised in that judge described work as in the processing equipment response request The preceding service execution to be called be read operation or write operation after, in addition to:If judge the current service execution to be called is the write operation, described in the processing equipment calling Service to perform the write operation, and in described this emptying of processing equipment information corresponding with the service.
- 3. method according to claim 1 or 2, it is characterised in that grid node structure is used in the processing equipment Table records the returning result, wherein, the grid node structure table includes at least one of:For calling the service Input parameter, the call type of the service, the description information of the service, the mark of the request, call the service The description information of the data influenceed.
- 4. according to the method for claim 3, it is characterised in that the processing equipment response request judges described current The service execution to be called is that read operation or write operation include:The processing equipment inquires about configuration file corresponding to the pending request to judge the current clothes to be called What business performed is read operation or write operation, wherein, what the configuration file record had the service execution be read operation or Write operation, the configuration file comprise at least one below:The call type of the service, the description information of the service, adjust With the description information for servicing influenceed data and it is used to indicate whether from local to obtain the processing equipment in addition The returning result recorded information in the grid node structure table.
- 5. according to the method for claim 3, it is characterised in that emptied in the processing equipment corresponding with the service Information includes:Grid node structure table corresponding with the configuration file of the service is searched, wherein, the configuration text with the service Description information in grid node structure table corresponding to part is identical with the description information in the configuration file of the service;Delete the data in the grid node structure table found.
- 6. according to the method any one of claim 1,2,4,5, it is characterised in that asked in the processing equipment to described After asking processing completion, in addition to:Delete and be stored in the local returning result of the processing equipment.
- A kind of 7. processing equipment of request, it is characterised in that including:Receiving unit, for receiving pending request, wherein, it is more to same service progress that the request is at least used for instruction Secondary calling;First judging unit, it is read operation or writes for respond that the request judges the current service execution to be called Operation;Second judging unit, it is for judge the current service execution to be called in first judging unit During the read operation, judge locally whether be stored with returning result corresponding with the service currently to be called;First execution unit, for when second judging unit judges to be locally stored the returning result, acquisition to be deposited The returning result of storage;And for second judging unit judge it is local without the returning result is stored when, The service is called to obtain the returning result, and the returning result got is stored in perform the read operation The processing equipment is local.
- 8. equipment according to claim 7, it is characterised in that also include:Second execution unit, for when judge the current service execution to be called is the write operation, adjusting With the service to perform the write operation, and in described this emptying of processing equipment information corresponding with the service.
- 9. the equipment according to claim 7 or 8, it is characterised in that grid node structure is used in the processing equipment Table records the returning result, wherein, the grid node structure table includes at least one of:For calling the service Input parameter, the call type of the service, the description information of the service, the mark of the request, call the service The description information of the data influenceed.
- 10. equipment according to claim 9, it is characterised in that first judging unit includes:Enquiry module, for inquiring about configuration file corresponding to the pending request to judge the current clothes to be called What business performed is read operation or write operation, wherein, what the configuration file record had the service execution be read operation or Write operation, the configuration file comprise at least one below:The call type of the service, the description information of the service, adjust With the description information for servicing influenceed data and it is used to indicate whether from local to obtain the processing equipment in addition The returning result recorded information in the grid node structure table.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310379490.6A CN104423982B (en) | 2013-08-27 | 2013-08-27 | The processing method and processing equipment of request |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310379490.6A CN104423982B (en) | 2013-08-27 | 2013-08-27 | The processing method and processing equipment of request |
Publications (2)
Publication Number | Publication Date |
---|---|
CN104423982A CN104423982A (en) | 2015-03-18 |
CN104423982B true CN104423982B (en) | 2018-03-06 |
Family
ID=52973064
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201310379490.6A Active CN104423982B (en) | 2013-08-27 | 2013-08-27 | The processing method and processing equipment of request |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN104423982B (en) |
Families Citing this family (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107273216B (en) * | 2016-04-08 | 2020-10-13 | 阿里巴巴集团控股有限公司 | Data request processing method, device and system |
CN108280091B (en) * | 2017-01-06 | 2022-05-17 | 阿里巴巴集团控股有限公司 | Task request execution method and device |
CN106936921A (en) * | 2017-04-06 | 2017-07-07 | 福建新大陆软件工程有限公司 | A kind of network request buffered method and system |
CN108712498B (en) * | 2018-05-23 | 2020-02-18 | 新华三大数据技术有限公司 | Service calling method and device |
CN109491765B (en) * | 2018-10-09 | 2021-07-30 | 创新先进技术有限公司 | Method and device for processing cross-domain service request |
CN111367683A (en) * | 2018-12-25 | 2020-07-03 | 华为技术有限公司 | Result obtaining method, device and equipment |
CN110535966B (en) * | 2019-09-05 | 2021-06-15 | 腾讯科技(深圳)有限公司 | Data processing method and related equipment |
CN113688368A (en) * | 2020-05-18 | 2021-11-23 | 华为技术有限公司 | A method for cross-device authentication |
CN114257652B (en) * | 2021-12-10 | 2024-01-30 | 中信银行股份有限公司 | Request message processing method, device, equipment and readable storage medium |
Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US5832262A (en) * | 1995-09-14 | 1998-11-03 | Lockheed Martin Corporation | Realtime hardware scheduler utilizing processor message passing and queue management cells |
CN101512527A (en) * | 2006-10-05 | 2009-08-19 | 国际商业机器公司 | Data processing system and method of handling requests |
CN102073539A (en) * | 2010-12-02 | 2011-05-25 | 华为技术有限公司 | Queue request processing method and device |
CN102495710A (en) * | 2011-10-25 | 2012-06-13 | 曙光信息产业(北京)有限公司 | Method for processing data read-only accessing request |
CN102541659A (en) * | 2011-12-30 | 2012-07-04 | 重庆新媒农信科技有限公司 | Method and device for processing of server service requests |
CN102804158A (en) * | 2010-03-19 | 2012-11-28 | 想象技术有限公司 | Requests and data handling in bus architecture |
CN103152433A (en) * | 2013-01-14 | 2013-06-12 | 广东电子工业研究院有限公司 | Distributed server side framework and use, interaction and request processing method thereof |
CN103207841A (en) * | 2013-03-06 | 2013-07-17 | 青岛海信传媒网络技术有限公司 | Method and device for data reading and writing on basis of key-value buffer |
CN103995674A (en) * | 2014-04-17 | 2014-08-20 | 华为技术有限公司 | Method, device and equipment for processing access requests |
Family Cites Families (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP4090669B2 (en) * | 2000-06-01 | 2008-05-28 | 富士通株式会社 | Arithmetic processing device, information processing device and control method thereof |
US7225274B2 (en) * | 2003-05-23 | 2007-05-29 | Applied Micro Circuits Corporation | Method and apparatus for transferring data across a protocol bridge |
-
2013
- 2013-08-27 CN CN201310379490.6A patent/CN104423982B/en active Active
Patent Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US5832262A (en) * | 1995-09-14 | 1998-11-03 | Lockheed Martin Corporation | Realtime hardware scheduler utilizing processor message passing and queue management cells |
CN101512527A (en) * | 2006-10-05 | 2009-08-19 | 国际商业机器公司 | Data processing system and method of handling requests |
CN102804158A (en) * | 2010-03-19 | 2012-11-28 | 想象技术有限公司 | Requests and data handling in bus architecture |
CN102073539A (en) * | 2010-12-02 | 2011-05-25 | 华为技术有限公司 | Queue request processing method and device |
CN102495710A (en) * | 2011-10-25 | 2012-06-13 | 曙光信息产业(北京)有限公司 | Method for processing data read-only accessing request |
CN102541659A (en) * | 2011-12-30 | 2012-07-04 | 重庆新媒农信科技有限公司 | Method and device for processing of server service requests |
CN103152433A (en) * | 2013-01-14 | 2013-06-12 | 广东电子工业研究院有限公司 | Distributed server side framework and use, interaction and request processing method thereof |
CN103207841A (en) * | 2013-03-06 | 2013-07-17 | 青岛海信传媒网络技术有限公司 | Method and device for data reading and writing on basis of key-value buffer |
CN103995674A (en) * | 2014-04-17 | 2014-08-20 | 华为技术有限公司 | Method, device and equipment for processing access requests |
Also Published As
Publication number | Publication date |
---|---|
CN104423982A (en) | 2015-03-18 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN104423982B (en) | The processing method and processing equipment of request | |
CN107391653B (en) | Distributed NewSQL database system and picture data storage method | |
EP3353672B1 (en) | Method and apparatus for transferring data between databases | |
CN105808633B (en) | Data archiving method and system | |
CN105956176A (en) | Database management system | |
US20150302110A1 (en) | Decoupling front end and back end pages using tags | |
CN108509339A (en) | Method for generating test case, device based on browser and mind map and equipment | |
CN105677904B (en) | Small documents storage method and device based on distributed file system | |
CN104881466A (en) | Method and device for processing data fragments and deleting garbage files | |
US20070143393A1 (en) | Systems and methods for enhanced message support using a generic client proxy | |
CN108037967A (en) | A kind of menu loading method and electronic equipment based on more parent-child structures | |
US20140108367A1 (en) | Client apparatus and database server for resumable transaction and method thereof | |
CN103019691A (en) | Transformation method for extract, transform and load (ETL) operation relation graph and implementation system thereof | |
EP2897056A1 (en) | Method and system for making web application obtain database change | |
CN112685091A (en) | Service request processing method, device, equipment and medium based on big data | |
CN110221829A (en) | Information processing method and its system, computer system and computer-readable medium | |
US8965879B2 (en) | Unique join data caching method | |
JP5597623B2 (en) | Database processing method | |
US8433729B2 (en) | Method and system for automatically generating a communication interface | |
US9741060B2 (en) | Recursive navigation in mobile CRM | |
CN102193988A (en) | Method and system for retrieving node data in graphic database | |
CN111046106A (en) | Cache data synchronization method, device, device and medium | |
US20200301922A1 (en) | Multiform persistence abstraction | |
CN108897569A (en) | The method for cleaning and computer readable storage medium of iOS engineering discarded record | |
US8656410B1 (en) | Conversion of lightweight object to a heavyweight object |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant | ||
TR01 | Transfer of patent right | ||
TR01 | Transfer of patent right |
Effective date of registration: 20191210 Address after: P.O. Box 31119, grand exhibition hall, hibiscus street, 802 West Bay Road, Grand Cayman, Cayman Islands Patentee after: Innovative advanced technology Co., Ltd Address before: A four-storey 847 mailbox in Grand Cayman Capital Building, British Cayman Islands Patentee before: Alibaba Group Holding Co., Ltd. |