CN109684358A - The method and apparatus of data query - Google Patents

The method and apparatus of data query Download PDF

Info

Publication number
CN109684358A
CN109684358A CN201710969976.3A CN201710969976A CN109684358A CN 109684358 A CN109684358 A CN 109684358A CN 201710969976 A CN201710969976 A CN 201710969976A CN 109684358 A CN109684358 A CN 109684358A
Authority
CN
China
Prior art keywords
data
query
inquiry
cache
request
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201710969976.3A
Other languages
Chinese (zh)
Other versions
CN109684358B (en
Inventor
历娜
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Jingdong Century Trading Co Ltd
Beijing Jingdong Shangke Information Technology Co Ltd
Original Assignee
Beijing Jingdong Century Trading Co Ltd
Beijing Jingdong Shangke Information Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Jingdong Century Trading Co Ltd, Beijing Jingdong Shangke Information Technology Co Ltd filed Critical Beijing Jingdong Century Trading Co Ltd
Priority to CN201710969976.3A priority Critical patent/CN109684358B/en
Publication of CN109684358A publication Critical patent/CN109684358A/en
Application granted granted Critical
Publication of CN109684358B publication Critical patent/CN109684358B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The present invention provides a kind of method and apparatus of data query, it being capable of dynamic analysis focus inquiry, by using level cache and L2 cache and the mode deposited, improve cache hit rate, reduce the delay of inquiry response, and by passively caching the data form renewal combined using master, so as to improve data cached accuracy rate.This method comprises: inquiring data from level cache according to the inquiry request received, returned if inquiring data;Otherwise, continue that external inquiry service interface is called to carry out data query, the data inquired are returned if inquiry has not timed out, and the data inquired are updated in level cache and L2 cache, if query timeout, data are then inquired from L2 cache and are returned, wherein, the level cache has the expired erasing time of the first preset data, the L2 cache has the expired erasing time of the second preset data, and the expired erasing time of the first preset data is less than the expired erasing time of the second preset data.

Description

The method and apparatus of data query
Technical field
The present invention relates to field of computer technology more particularly to a kind of method and apparatus of data query.
Background technique
With the continuous development of computer technology, more and more people's selection is obtained by online access operation system and is needed The information wanted.For the online data inquiry system accessed with big quantity, core business scene, such as train ticket The online query of ticket, hotel guest room supply online query etc. more than remaining ticket online query, air ticket, usually have following general character:
1, inquiry request is much larger than write request;2, need to call the interface service of external inquiry system;3, external inquiry The processing capacity of system is limited;4, the variation for inquiring ginseng it is big (such as more than train ticket in ticket inquiry scene, the website inquired It is not fixed, variation is big).
For the core application module of above-mentioned operation system, amount of access is much larger than other links, especially using high Peak phase, performance, experience directly affect subsequent interests conversion.In the prior art, the performance to promote above-mentioned all kinds of core applications And user experience, usually by establish data center, using the modes such as large construction cluster combination crawler or multi resources supplies come The problem of handling the inquiry of big quantity.Specifically, usually client trigger data is inquired, application server receives inquiry and asks It asks, first query caching server, if there is data then returned data is inquired, is taken if there is no then calling supplier to inquire Business obtains data, and cache server is stored in after success and returns data to client.Whole process uses synchronization mechanism, caches plan Slightly passive caching.
In realizing process of the present invention, at least there are the following problems in the prior art for inventor's discovery:
1) cache hit rate is extremely low, and the delay for inquiring high peak data response is larger
Under normal conditions, in the application scenarios of online data inquiry, data query information needs relatively high timeliness Property, cache-time is unsuitable too long, and it is daily, it results in the case where prior art designs, data cached hit rate is low, high-volume Inquiry request meeting direct request, especially in the peak period of inquiry and interests conversion, can be established a large amount of to upper stream queries service HTTP link increases considerably the burden of operation system, causes partial query request that can not get data, influences operation system Ease for use;
2) synchronization mechanism is used, ability to ward off risks difference can not cope with the attack of " profession " malicious user substantially
In the prior art, data query uses synchronization mechanism.Common data query scene will not limit user and look into simultaneously Permission is ask, such as ticket more than train ticket could be inquired after requiring user that must log in, therefore inquiry limitation can not be done according to user identifier, And it is relatively limited according to the restriction effect of source IP.Therefore, it is normally asked if there is malicious user using automated procedures simulation It asks, a large amount of inquiry requests is generated in the short time, will lead to application server and supplier's query service can not normally be handled, And then influence operation system availability.
Summary of the invention
In view of this, the embodiment of the present invention provides a kind of method and apparatus of data query, can dynamic analysis hot topic look into It askes, by using level cache and L2 cache and the mode deposited, improves cache hit rate, reduce the delay of inquiry response, and And by using active cache and the data cached form renewal combined is passively cached, so as to improve data cached standard True rate promotes the ease for use of access peak period inquiry system.
To achieve the above object, according to an aspect of an embodiment of the present invention, a kind of method of data query is provided.
A kind of method of data query of the embodiment of the present invention includes: according to the inquiry request received, from level cache Middle inquiry data, return if inquiring data;Otherwise, continue that external inquiry service interface is called to carry out data query, if looking into Inquiry has not timed out, and the data inquired is returned, and the data inquired are updated in level cache and L2 cache, If query timeout, data are inquired from L2 cache and are returned, wherein the level cache has the first preset data expired Erasing time, the L2 cache have an expired erasing time of the second preset data, when the expired deletion of first preset data Between be less than the expired erasing time of the second preset data.
Optionally, calling external inquiry service interface to carry out data query includes: the inquiry request judged in the unit time Whether amount is greater than default request amount threshold value, if being not more than, calls directly external inquiry service interface and carries out data synchronous query, If more than, then utilize message queue carry out data asynchronous query.
Optionally, carrying out data asynchronous query using message queue includes: that the inquiry request is sent to message queue, And notify that inquiry request described in client is asynchronous process, so that the clients poll obtains data asynchronous query result;With And message handling device calls external inquiry according to the inquiry request after the inquiry request listened in the message queue Service interface carries out data query.
Optionally, before calling external inquiry service interface to carry out data query, the method also includes: described in judgement Whether inquiry request belongs to invalidation request, not inquires if belonging to.
Optionally, the method also includes: according to default measurement period, looked into using historical query request data statistics hot topic Request is ask, and data query, and the number that will be inquired are carried out according to the focus inquiry request call external inquiry service interface According to being updated in level cache and/or L2 cache.
To achieve the above object, according to another aspect of an embodiment of the present invention, a kind of device of data query is provided.
A kind of device of data query of the embodiment of the present invention includes: level cache enquiry module, is received for basis Inquiry request, data are inquired from level cache, are returned if inquiring data;Otherwise enquiry module is called in triggering, calls Enquiry module calls external inquiry service interface to carry out data query, the number that will be inquired if inquiry has not timed out for continuing It is updated in level cache and L2 cache according to return, and by the data inquired, if query timeout, from L2 cache Middle inquiry data simultaneously return, wherein the level cache has the expired erasing time of the first preset data, the L2 cache tool There is the expired erasing time of the second preset data, the expired erasing time of the first preset data is less than the second preset data mistake Phase erasing time.
Optionally, the calling enquiry module is also used to: it is default to judge whether the inquiry request amount in the unit time is greater than Request amount threshold value calls directly external inquiry service interface and carries out data synchronous query, if more than then utilizing if being not more than Message queue carries out data asynchronous query.
Optionally, the calling enquiry module is also used to: the inquiry request being sent to message queue, and notifies client Holding the inquiry request is asynchronous process, so that the clients poll obtains data asynchronous query result;And Message Processing Device after the inquiry request listened in the message queue, according to the inquiry request call external inquiry service interface into Row data query.
Optionally, the calling enquiry module is also used to: before calling external inquiry service interface to carry out data query, Judge whether the inquiry request belongs to invalidation request, is not inquired if belonging to.
Optionally, described device further include: active cache module, for utilizing historical query according to default measurement period Request data counts focus inquiry request, and carries out data according to the focus inquiry request call external inquiry service interface and look into It askes, and the data inquired is updated in level cache and/or L2 cache.
To achieve the above object, according to an embodiment of the present invention in another aspect, providing a kind of electronic equipment.
The a kind of electronic equipment of the embodiment of the present invention includes: one or more processors;Storage device, for storing one Or multiple programs, when one or more of programs are executed by one or more of processors, so that one or more of The method that processor realizes the data query of the embodiment of the present invention.
To achieve the above object, another aspect according to an embodiment of the present invention, provides a kind of computer-readable medium.
A kind of computer-readable medium of the embodiment of the present invention, is stored thereon with computer program, and described program is processed The method of the data query of the embodiment of the present invention is realized when device executes.
One embodiment in foregoing invention is had the following advantages that or the utility model has the advantages that because is delayed using level cache and second level The technological means combined is deposited, the server-side of data query is carried out after receiving inquiry request, first from level cache Inquire data, if inquiring, returned data;If not inquiring, the inquiry for calling the supplier of external each channel to provide is taken Business interface provides query service by external each channel supplier;If but the query service query timeout that external supplier provides, It from the L2 cache inquiry data inside inquiry system and returns, i.e., using the L2 cache inside inquiry system as last one The approach of data is inquired, so overcoming the low technical problem of cache hit rate in the prior art, and then reaches promotion caching life Middle rate reduces the technical effect of inquiry peak period data delay;By establishing query routing layer, according to current queries system unit Inquiry request amount switching at runtime request method in time is either synchronously or asynchronously, and to combine the measures such as message queue to carry out data and look into It askes, so as to improve the availability of operation system, improves the ability to ward off risks of operation system, successfully manage attacking for malicious user It hits;By judging whether inquiry request belongs to invalidation request before calling external inquiry service interface to carry out data query, if Belong to and then not inquire, so as to efficiently reduce unnecessary performance consumption;By using will be called according to inquiry request The result that external inquiry services is updated to caching (i.e. passive caching) and is requested actively to call external look into according to focus inquiry It askes service and the mode that caching (i.e. active cache) combines is updated according to query result, so as to improve data cached standard True property alleviates the pressure of external inquiry service while the ease for use of lifting system.
Further effect possessed by above-mentioned non-usual optional way adds hereinafter in conjunction with specific embodiment With explanation.
Detailed description of the invention
Attached drawing for a better understanding of the present invention, does not constitute an undue limitation on the present invention.Wherein:
Fig. 1 is the schematic diagram of the key step of the method for data query according to an embodiment of the present invention;
Fig. 2 is adapted for realizing the configuration diagram of the inquiry system of the method for the data query of the embodiment of the present invention;
Fig. 3 is the schematic diagram of the main flow of the method for data query according to an embodiment of the present invention;
Fig. 4 is the schematic diagram of the cache logic of the method for data query according to an embodiment of the present invention;
Fig. 5 is the synchronization and Asynchronous Invocation of the inquiry request of the method for data query according to an embodiment of the present invention Schematic diagram;
Fig. 6 is the schematic diagram of the main modular of the device of data query according to an embodiment of the present invention;
Fig. 7 is that the embodiment of the present invention can be applied to exemplary system architecture figure therein;
Fig. 8 is adapted for the structural representation of the computer system for the terminal device or server of realizing the embodiment of the present invention Figure.
Specific embodiment
Below in conjunction with attached drawing, an exemplary embodiment of the present invention will be described, including the various of the embodiment of the present invention Details should think them only exemplary to help understanding.Therefore, those of ordinary skill in the art should recognize It arrives, it can be with various changes and modifications are made to the embodiments described herein, without departing from scope and spirit of the present invention.Together Sample, for clarity and conciseness, descriptions of well-known functions and structures are omitted from the following description.
For the online data inquiry system accessed with big quantity, core business scene, such as The online query of ticket, hotel guest room supply online query etc. more than the remaining ticket online query of train ticket, air ticket, amount of access is much larger than it His link is especially using peak period, and performance, experience directly affect subsequent interests conversion.
For selling the operation system of train ticket online, core process can be abstracted as remaining ticket inquiry, booking, returned ticket Etc. several scenes, wherein remaining ticket inquiry has some particularity as an important link again: amount of access is much larger than other Link, especially in booking peak period, performance, experience directly affect subsequent lower single process;Remaining ticket does not need to use when inquiring A possibility that family logs in, it is used by malicious user using automatized script attack and then influence normal users in this way is bigger.
For above situation, a kind of user experience, the ability to ward off risks, cost, versatility are proposed in the embodiment of the present invention all More optimized effective scheme compared with the prior art, can be improved cache hit rate, reduce the delay of inquiry response;And it can be with The availability for improving operation system, improves the ability to ward off risks of operation system, successfully manages the attack of malicious user.
In the following description, in order to express easily, by by taking the application scenarios that ticket more than train ticket is inquired as an example, detailed description is big The processing scheme of the data inquiry request of data volume, it is not intended that the technical solution of the data query of the embodiment of the present invention is only fitted For this kind of application scenarios.All inquiry requests that meets are much larger than write request, need to call the interface of external inquiry system to take Business, the processing capacity of external inquiry system is limited, inquires the application scenarios of these big situations of variation into ginseng, this can be used The technical solution of inventive embodiments give it is perfect, belong to the embodiment of the present invention protection scope.
Fig. 1 is the schematic diagram of the key step of the method for data query according to an embodiment of the present invention, as shown in Figure 1, this A kind of method of data query of inventive embodiments mainly includes the following steps:
Step S101: according to the inquiry request received, data are inquired from level cache, are returned if inquiring data It returns;Otherwise step S102 is carried out.This step is primarily to realization is obtained from caching first after receiving inquiry request Data if failing to obtain data in caching, then call external inquiry service interface to carry out data query, such as since step S102 This, it is possible to reduce the access pressure of subsequent external query service.
Step S102: continuing that external inquiry service interface is called to carry out data query, will inquire if inquiry has not timed out Data return, and the data inquired are updated in level cache and L2 cache, if query timeout, from L2 cache Middle inquiry data simultaneously return, wherein the level cache has the expired erasing time of the first preset data, the L2 cache tool There is an expired erasing time of the second preset data, the expired erasing time of the first preset data (such as can be, but not limited to be arranged It is 20 seconds) it is less than the expired erasing time of the second preset data (such as can be, but not limited to be set as 2 hours).Data are expired Erasing time be meant that refer to data be updated to after caching, the time saved in the buffer be more than expired erasing time after, Data can be automatically left out.
According to foregoing description it is found that the present invention is real in order to balance the high hit rate of caching and inquire the high accuracy of data Example is applied using following query strategy: in the embodiment of the present invention, level cache and L2 cache belong to the caching inside inquiry system Module, external inquiry service interface refer to the query service interface that each channel supplier outside inquiry system provides.The interface It is just to be called in the case where inquiry in level cache less than data.But if calling external inquiry service interface to carry out When query service, query timeout then abandons the query service for calling supplier, then from the L2 cache inside inquiry system Obtain data.In the embodiment of the present invention, why using L2 cache as last track data acquiring way, be on the one hand because The data stored in L2 cache do not have the data in level cache accurate, and the data stored in another aspect L2 cache are compared with one The time stored in grade caching is long, and (the expired erasing time of the second preset data being arranged in L2 cache is longer, cache hit Rate is higher than level cache.
In the embodiment of the present invention, calling external inquiry service interface to carry out data query can be using synchronous and asynchronous phase knot The mode of conjunction carries out, specifically: judging whether the inquiry request amount in the unit time is greater than default request amount threshold value, if less In, then call directly external inquiry service interface carry out data synchronous query, if more than, then using message queue progress data it is different Step inquiry.
Wherein, carrying out data asynchronous query using message queue includes: inquiry request to be sent to message queue, and notify Inquiry request described in client is asynchronous process, so that the clients poll obtains data asynchronous query result;And message Processor after the inquiry request listened in the message queue, according to inquiry request call external inquiry service interface into Row data query.
In the embodiment of the present invention, before calling external inquiry service interface to carry out data query, the embodiment of the present invention The method of data query can also include: to judge whether the inquiry request belongs to invalidation request, not inquire if belonging to, from And reduce the unnecessary performance loss of operation system.
In addition, the method for the data query of the embodiment of the present invention can also include active cache: i.e. according to default statistics week Phase is requested using the statistics focus inquiry of historical query request data, and is taken according to the focus inquiry request call external inquiry Business interface carries out data query, and the data inquired are updated in level cache and/or L2 cache.In this way, can have Effect ensures the accuracy of data in caching, improves the experience of user.
Fig. 2 is adapted for realizing the configuration diagram of the inquiry system of the method for the data query of the embodiment of the present invention;Fig. 3 is The schematic diagram of the main flow of the method for data query according to an embodiment of the present invention.Below with the application of ticket inquiry more than train ticket For scene, describe in detail in conjunction with method of the Fig. 2 and Fig. 3 to the data query of the embodiment of the present invention.
As shown in Fig. 2, the system for being adapted for carrying out the method for the data query of the embodiment of the present invention can be divided mainly into several layers Face, client, cache database, server-side and external inquiry service.While ensureing availability, system support level is smooth Extension can freely increase and decrease service number according to actual conditions on line, remaining each component also supports cluster to handle, and system has very high Scalability.As shown in figure 3, the method for the data query of the embodiment of the present invention mainly includes following process: by caching number Level cache and L2 cache are realized according to library, and data cached update is realized by active cache and passive caching, passes through request Routing layer realizes the synchronous and/or asynchronous process of inquiry request with message queue.
Fig. 4 is the schematic diagram of the cache logic of the method for data query according to an embodiment of the present invention.As shown in figure 4, this In inventive embodiments, realize that active cache adds passive caching and level cache to add L2 cache by cache database.This hair Cache database in bright embodiment can be, but not limited to be that (Redis is compiling using ANSI C language for an open source to Redis Write, support network, it is memory-based also can persistence log type, Key-Value database, and the API of multilingual is provided) Or the clustering scheme for Redis, such as clustering scheme of the Jingdone district based on primary Redis --- Jingdone district memory database JimDB(Jingdong In Memory DataBase)。
System defines level cache, L2 cache first.Wherein, the effective time of timeliness caching (i.e. level cache) Short, accuracy is high (such as can be, but not limited to the setting expired erasing time of the first preset data is 20 seconds), and long-acting caching is (i.e. L2 cache) effective time it is long, accuracy it is lower (such as can be, but not limited to setting the expired erasing time of the second preset data It is 2 hours).When server-side receives inquiry request, level cache can be inquired first, do not inquired such as, then called supplier The external inquiry service of offer is obtained.In the access peak period period, if supplier's query service processing time-out, directly Obtain data in L2 cache.By the way that L2 cache is arranged, while guaranteeing peak period user normal queries, lower list, also keep away Exempt from a large amount of inquiry requests and directly reach supplier's query service, it is caused not handle normally, to reduce external inquiry clothes The pressure of business.
It is synchronous for the update of level cache, L2 cache, on the one hand using passive caching, touched by the inquiry request of user Hair, is not limited to focus inquiry route, by calling update after supplier's external inquiry service success to cache;On the other hand by being It unites itself triggering, actively calls provider service interface according to default measurement period, obtain the train number of hot travel route, remaining ticket information It is saved in cache database.
Fig. 5 is the synchronization and Asynchronous Invocation of the inquiry request of the method for data query according to an embodiment of the present invention Schematic diagram.As shown in figure 5, realizing synchronization, the asynchronous process of inquiry request by message queue in the embodiment of the present invention.
Server-side first passes around request routing layer, request routing layer is according to current after receiving remaining ticket inquiry request (in the embodiment of the present invention, cache database undertakes the work of record request amount to request amount.Request routing layer from cache database Current request amount is obtained, while the request amount recorded in cache database is added 1.The calculation of current request amount for example can be with But it is not limited to the inquiry request amount in the unit of account time) selection processing mode, if it is the invalidation request (embodiment of the present invention Middle invalidation request is unconventional request, mainly may include: 1, some malicious users at will distort enter ginseng, such as: website (example Such as: Beijing) enter ginseng and distorts into some codes (such as:<script>);2, it is some there is no the website of train number (such as: Dongying-north Capital);3, unconventional inquiry route (such as system do not generated order route) is defined as when peak) then directly return.
If by judge current request amount can with synchronization process (such as the inquiry request amount in the unit time no more than in advance If request amount threshold value, which can flexibly set and adjust according to actual queries ability and query demand), Then call directly the external inquiry service of supplier.
If by judge current request amount need asynchronous process (such as the inquiry request amount in the unit time be greater than it is default Request amount threshold value, the default request amount threshold value can flexibly set and adjust according to actual queries ability and query demand), then Sending inquiry request message, (message queue in the embodiment of the present invention for example can be, but not limited to message queue Activemq, but also can choose other components with message queue function, such as (JMQ is Jingdone district inside story to JMQ Group independent research, provides the message-oriented middleware platforms of reliable messaging and data, availability with higher, scalability and O&M)), while the client inquiry request being notified to carry out asynchronous process, then client can be looked by poll call result The mode for asking interface obtains query result data.
As the message handling device for carrying out inquiry request processing during asynchronous process, looked into listening to message queue When asking request, external inquiry service is called, after successfully obtaining data, result data is cached to application server.
By above-mentioned request routing layer and message queue, system can be decoupled remaining ticket query process, and safeguards system is high Peak phase higher handling capacity, thus lifting system processing capacity and the ability to ward off risks.
Aforementioned request routing layer is summarized as follows according to the logic of the processing mode of current request amount selection inquiry request: filtering Invalid inquiry request --- judge system current effective request amount --- is asynchronous greater than default request amount threshold value/it is less than default ask The amount of asking threshold value is synchronous.
Exemplary introduction is carried out below for active cache: firstly the need of statistics focus inquiry request.The embodiment of the present invention In, it is counted according to historical query request data.Such as in remaining ticket inquiry application scenarios, hot travel route passes through timed task journey Sequence (i.e. aforementioned default measurement period, such as can be, but not limited to be with one day as a cycle) counts for example all, most respectively Nearly one month, the order of a nearest period Wednesday sort from high in the end according to order numbers, are weighted to three parts data It sorts again, taking first 100 " station to " routes, (100 are not limited to the number herein, as long as meeting (logarithm × institute of standing The number of days of statistics × the average duration of single request processing)/it handles Thread Count and is deleted less than the second preset data is expired in L2 cache It is except the time, i.e., 2 hours above-mentioned), by this 100 " station to " deposit cachings, at through message queue and message It manages device and carries out the active cache calling of popular route, and query result is actively updated in level cache and L2 cache.
Certainly, the computational algorithm of hot travel route can also take other computational algorithms, such as basis in the embodiment of the present invention The experience calculation of the calculating experience setting of practical application scene;The data collection point of statistics can using lower forms data or It is remaining ticket inquiry data;Calculation can be using total amount, in the recent period amount or the weighted average of a few parts etc..
The technical solution of the data query of the embodiment of the present invention can effectively promote inquiry peak period Buffer Utilization, substantially User experience is promoted, and then also has obvious effect for the promotion of the interests of inquiry and later period conversion, while effectively improving and being The processing capacity for situations such as uniting for peak period/malicious attack, improves system availability, ease for use.
The technical solution of data query according to an embodiment of the present invention can be seen that because slow using level cache and second level The technological means combined is deposited, the server-side of data query is carried out after receiving inquiry request, first from level cache Inquire data, if inquiring, returned data;If not inquiring, the inquiry for calling the supplier of external each channel to provide is taken Business interface provides query service by external each channel supplier;If but the query service query timeout that external supplier provides, It from the L2 cache inquiry data inside inquiry system and returns, i.e., using the L2 cache inside inquiry system as last one The approach of data is inquired, so overcoming the low technical problem of cache hit rate in the prior art, and then reaches promotion caching life Middle rate reduces the technical effect of inquiry peak period data delay;By establishing query routing layer, according to the current system unit time Interior inquiry request amount switching at runtime request method is either synchronously or asynchronously, and the measures such as message queue to be combined to carry out data query, So as to improve the availability of operation system, the ability to ward off risks of operation system is improved, the attack of malicious user is successfully managed; By judging whether inquiry request belongs to invalidation request before calling external inquiry service interface to carry out data query, if belonging to In then not inquiring, so as to efficiently reduce unnecessary performance consumption;It is outer by using that will be called according to inquiry request The result that portion's query service obtains is updated to caching (i.e. passive caching) and actively calls external inquiry according to focus inquiry request It services and caching (i.e. active cache) mode for combining simultaneously is updated according to query result, it is data cached accurate so as to improve Property, alleviate the pressure of external inquiry service while the ease for use of lifting system.
Fig. 6 is the schematic diagram of the main modular of the device of data query according to an embodiment of the present invention.
As shown in fig. 6, the device 600 of the data query of the embodiment of the present invention mainly includes following module: level cache is looked into It askes module 601 and calls enquiry module 602.
Wherein, level cache enquiry module 601 can be used for inquiring number from level cache according to the inquiry request received According to being returned if inquiring data;Otherwise enquiry module 602 is called in triggering;Enquiry module 602 is called to can be used for continuing calling outer Portion query service interface carries out data query, returns to the data inquired if inquiry has not timed out, and inquire described Data are updated in level cache and L2 cache, if query timeout, data are inquired from L2 cache and are returned, wherein The level cache has the expired erasing time of the first preset data, and the L2 cache has the expired deletion of the second preset data Time, the expired erasing time of the first preset data are less than the expired erasing time of the second preset data.
Wherein, call enquiry module 602 can also be used in: whether the inquiry request amount in the unit time that judges is greater than default ask The amount of asking threshold value calls directly external inquiry service interface and carries out data synchronous query if being not more than, if more than then using disappearing It ceases queue and carries out data asynchronous query.
Specifically, carrying out data asynchronous query using message queue may include: to be sent to the inquiry request to disappear Queue is ceased, and notifies that inquiry request described in client is asynchronous process, so that the clients poll obtains data asynchronous query As a result;And message handling device calls after the inquiry request listened in the message queue according to the inquiry request External inquiry service interface carries out data query.
In addition, enquiry module 602 is called to can also be used in: before calling external inquiry service interface to carry out data query, Judge whether the inquiry request belongs to invalidation request, is not inquired if belonging to.
In the embodiment of the present invention, device 600 may also include that active cache module (not shown), for according to default Measurement period, using historical query request data statistics focus inquiry request, and according to the focus inquiry request call outside Query service interface carries out data query, and the data inquired are updated in level cache and/or L2 cache.
From the above, it can be seen that because the technological means combined using level cache and L2 cache, is counted It is investigated that the server-side ask inquires data from level cache first, if inquiring, returns to number after receiving inquiry request According to;If not inquiring, the query service interface for calling the supplier of external each channel to provide is mentioned by external each channel supplier For query service;If but the query service query timeout that external supplier provides, it is looked into from the L2 cache inside inquiry system It askes data and returns, i.e., using the L2 cache inside inquiry system as the last approach for inquiring data together, so overcoming The low technical problem of cache hit rate in the prior art, and then reach promotion cache hit rate, it reduces inquiry peak period data and prolongs Slow technical effect;By establishing query routing layer, asked according to the inquiry request amount switching at runtime in the current system unit time Seeking mode is either synchronously or asynchronously, and the measures such as message queue to be combined to carry out data query, can so as to improve operation system With property, the ability to ward off risks of operation system is improved, successfully manages the attack of malicious user;By calling external inquiry service to connect Before mouth carries out data query, judge whether inquiry request belongs to invalidation request, is not inquired if belonging to, so as to effective Reduce unnecessary performance consumption in ground;It is updated to by using by the result for calling external inquiry to service according to inquiry request It caches (i.e. passive caching) and external inquiry service is actively called according to focus inquiry request and caching is updated according to query result The mode that (i.e. active cache) combines, so as to improve data cached accuracy, while the ease for use of lifting system Alleviate the pressure of external inquiry service.
Fig. 7 is shown can be using the data query method of the embodiment of the present invention or the exemplary system of data query device Framework 700.
As shown in fig. 7, system architecture 700 may include terminal device 701,702,703, network 704 and server 705. Network 704 between terminal device 701,702,703 and server 705 to provide the medium of communication link.Network 704 can be with Including various connection types, such as wired, wireless communication link or fiber optic cables etc..
User can be used terminal device 701,702,703 and be interacted by network 704 with server 705, to receive or send out Send message etc..Various telecommunication customer end applications, such as the application of shopping class, net can be installed on terminal device 701,702,703 (merely illustrative) such as the application of page browsing device, searching class application, instant messaging tools, mailbox client, social platform softwares.
Terminal device 701,702,703 can be the various electronic equipments with display screen and supported web page browsing, packet Include but be not limited to smart phone, tablet computer, pocket computer on knee and desktop computer etc..
Server 705 can be to provide the server of various services, such as utilize terminal device 701,702,703 to user The shopping class website browsed provides the back-stage management server (merely illustrative) supported.Back-stage management server can be to reception To the data such as information query request analyze etc. processing, and by processing result (such as target push information, product letter Breath -- merely illustrative) feed back to terminal device.
It should be noted that data query method provided by the embodiment of the present invention is generally executed by server 705, accordingly Ground, data query device are generally positioned in server 705.
It should be understood that the number of terminal device, network and server in Fig. 7 is only schematical.According to realization need It wants, can have any number of terminal device, network and server.
Below with reference to Fig. 8, it illustrates the computer systems 800 for the terminal device for being suitable for being used to realize the embodiment of the present invention Structural schematic diagram.Terminal device shown in Fig. 8 is only an example, function to the embodiment of the present invention and should not use model Shroud carrys out any restrictions.
As shown in figure 8, computer system 800 includes central processing unit (CPU) 801, it can be read-only according to being stored in Program in memory (ROM) 802 or be loaded into the program in random access storage device (RAM) 803 from storage section 808 and Execute various movements appropriate and processing.In RAM 803, also it is stored with system 800 and operates required various programs and data. CPU 801, ROM 802 and RAM 803 are connected with each other by bus 804.Input/output (I/O) interface 805 is also connected to always Line 804.
I/O interface 805 is connected to lower component: the importation 806 including keyboard, mouse etc.;It is penetrated including such as cathode The output par, c 807 of spool (CRT), liquid crystal display (LCD) etc. and loudspeaker etc.;Storage section 808 including hard disk etc.; And the communications portion 809 of the network interface card including LAN card, modem etc..Communications portion 809 via such as because The network of spy's net executes communication process.Driver 810 is also connected to I/O interface 805 as needed.Detachable media 811, such as Disk, CD, magneto-optic disk, semiconductor memory etc. are mounted on as needed on driver 810, in order to read from thereon Computer program be mounted into storage section 808 as needed.
Particularly, disclosed embodiment, the process described above with reference to flow chart may be implemented as counting according to the present invention Calculation machine software program.For example, embodiment disclosed by the invention includes a kind of computer program product comprising be carried on computer Computer program on readable medium, the computer program include the program code for method shown in execution flow chart.? In such embodiment, which can be downloaded and installed from network by communications portion 809, and/or from can Medium 811 is dismantled to be mounted.When the computer program is executed by central processing unit (CPU) 801, system of the invention is executed The above-mentioned function of middle restriction.
It should be noted that computer-readable medium shown in the present invention can be computer-readable signal media or meter Calculation machine readable storage medium storing program for executing either the two any combination.Computer readable storage medium for example can be --- but not Be limited to --- electricity, magnetic, optical, electromagnetic, infrared ray or semiconductor system, device or device, or any above combination.Meter The more specific example of calculation machine readable storage medium storing program for executing can include but is not limited to: have the electrical connection, just of one or more conducting wires Taking formula computer disk, hard disk, random access storage device (RAM), read-only memory (ROM), erasable type may be programmed read-only storage Device (EPROM or flash memory), optical fiber, portable compact disc read-only memory (CD-ROM), light storage device, magnetic memory device, Or above-mentioned any appropriate combination.In the present invention, computer readable storage medium can be it is any include or storage journey The tangible medium of sequence, the program can be commanded execution system, device or device use or in connection.And at this In invention, computer-readable signal media may include in a base band or as carrier wave a part propagate data-signal, Wherein carry computer-readable program code.The data-signal of this propagation can take various forms, including but unlimited In electromagnetic signal, optical signal or above-mentioned any appropriate combination.Computer-readable signal media can also be that computer can Any computer-readable medium other than storage medium is read, which can send, propagates or transmit and be used for By the use of instruction execution system, device or device or program in connection.Include on computer-readable medium Program code can transmit with any suitable medium, including but not limited to: wireless, electric wire, optical cable, RF etc. are above-mentioned Any appropriate combination.
Flow chart and block diagram in attached drawing are illustrated according to the system of various embodiments of the invention, method and computer journey The architecture, function and operation in the cards of sequence product.In this regard, each box in flowchart or block diagram can generation A part of one module, program segment or code of table, a part of above-mentioned module, program segment or code include one or more Executable instruction for implementing the specified logical function.It should also be noted that in some implementations as replacements, institute in box The function of mark can also occur in a different order than that indicated in the drawings.For example, two boxes succeedingly indicated are practical On can be basically executed in parallel, they can also be executed in the opposite order sometimes, and this depends on the function involved.Also it wants It is noted that the combination of each box in block diagram or flow chart and the box in block diagram or flow chart, can use and execute rule The dedicated hardware based systems of fixed functions or operations is realized, or can use the group of specialized hardware and computer instruction It closes to realize.
Being described in module involved in the embodiment of the present invention can be realized by way of software, can also be by hard The mode of part is realized.Described module also can be set in the processor, for example, can be described as: a kind of processor packet It includes level cache enquiry module and calls enquiry module.Wherein, the title of these modules is not constituted to this under certain conditions The restriction of module itself, for example, level cache enquiry module is also described as " according to the inquiry request received, from one The module of data is inquired in grade caching ".
As on the other hand, the present invention also provides a kind of computer-readable medium, which be can be Included in equipment described in above-described embodiment;It is also possible to individualism, and without in the supplying equipment.Above-mentioned calculating Machine readable medium carries one or more program, when said one or multiple programs are executed by the equipment, makes Obtaining the equipment includes: to inquire data from level cache according to the inquiry request received, return if inquiring data;It is no Then, continue that external inquiry service interface is called to carry out data query, return to the data inquired if inquiry has not timed out, and will The data inquired are updated in level cache and L2 cache, if query timeout, data are inquired from L2 cache And return, wherein the level cache has the expired erasing time of the first preset data, and the L2 cache has second to preset The expired erasing time of data, when the expired erasing time of the first preset data is less than second preset data expired deletion Between.
Technical solution according to an embodiment of the present invention, because of the technology hand combined using level cache and L2 cache Section, carries out the server-side of data query after receiving inquiry request, inquires data from level cache first, if inquiry It arrives, then returned data;If not inquiring, the query service interface for calling the supplier of external each channel to provide, by external each Channel supplier provides query service;If but the query service query timeout that external supplier provides, inside inquiry system L2 cache inquiry data and return, i.e., using the L2 cache inside inquiry system as the way of the last data of inquiry together Diameter so overcoming the low technical problem of cache hit rate in the prior art, and then reaches promotion cache hit rate, reduces inquiry The technical effect of peak period data delay;By establishing query routing layer, according to the inquiry request in the current system unit time Measuring switching at runtime request method is either synchronously or asynchronously, and the measures such as message queue to be combined to carry out data query, so as to improve The availability of operation system improves the ability to ward off risks of operation system, successfully manages the attack of malicious user;By outside calling Before portion's query service interface carries out data query, judge whether inquiry request belongs to invalidation request, not inquired if belonging to, So as to efficiently reduce unnecessary performance consumption;By using external inquiry being called to service to obtain according to inquiry request Result be updated to caching (i.e. passive caching) and external inquiry service actively called and according to inquiry according to focus inquiry request As a result the mode that caching (i.e. active cache) combines is updated, so as to improve data cached accuracy, lifting system Alleviate the pressure of external inquiry service while ease for use.
Above-mentioned specific embodiment, does not constitute a limitation on the scope of protection of the present invention.Those skilled in the art should be bright It is white, design requirement and other factors are depended on, various modifications, combination, sub-portfolio and substitution can occur.It is any Made modifications, equivalent substitutions and improvements etc. within the spirit and principles in the present invention, should be included in the scope of the present invention Within.

Claims (12)

1. a kind of method of data query characterized by comprising
According to the inquiry request received, data are inquired from level cache, are returned if inquiring data;Otherwise,
Continue that external inquiry service interface is called to carry out data query, returns to the data inquired if inquiry has not timed out, and The data inquired are updated in level cache and L2 cache, inquire data from L2 cache if query timeout And return, wherein the level cache has the expired erasing time of the first preset data, and the L2 cache has second to preset The expired erasing time of data, when the expired erasing time of the first preset data is less than second preset data expired deletion Between.
2. the method according to claim 1, wherein external inquiry service interface is called to carry out data query packet It includes:
Judge whether the inquiry request amount in the unit time is greater than default request amount threshold value and calls directly outside if being not more than Query service interface carries out data synchronous query, if more than then data asynchronous query is carried out using message queue.
3. according to the method described in claim 2, it is characterized in that, including: using message queue progress data asynchronous query
The inquiry request is sent to message queue, and notifies that inquiry request described in client is asynchronous process, so as to described Clients poll obtains data asynchronous query result;And
Message handling device calls external look into after the inquiry request listened in the message queue, according to the inquiry request It askes service interface and carries out data query.
4. the method according to claim 1, wherein call external inquiry service interface carry out data query it Before, the method also includes: judge whether the inquiry request belongs to invalidation request, is not inquired if belonging to.
5. the method according to claim 1, wherein the method also includes:
It according to default measurement period, is requested using the statistics focus inquiry of historical query request data, and according to the focus inquiry Request call external inquiry service interface carries out data query, and the data inquired are updated to level cache and/or second level In caching.
6. a kind of device of data query characterized by comprising
Level cache enquiry module, for data being inquired from level cache, if inquiring number according to the inquiry request received According to then returning;Otherwise enquiry module is called in triggering,
Enquiry module is called, calls external inquiry service interface to carry out data query for continuing, will be looked into if inquiry has not timed out The data ask return, and the data inquired are updated in level cache and L2 cache, if query timeout, from It inquires and data and returns in L2 cache, wherein the level cache has an expired erasing time of the first preset data, and described two Grade caching has the expired erasing time of the second preset data, and it is pre- that the expired erasing time of the first preset data is less than described second If the expired erasing time of data.
7. device according to claim 6, which is characterized in that the calling enquiry module is also used to:
Judge whether the inquiry request amount in the unit time is greater than default request amount threshold value and calls directly outside if being not more than Query service interface carries out data synchronous query, if more than then data asynchronous query is carried out using message queue.
8. device according to claim 7, which is characterized in that the calling enquiry module is also used to:
The inquiry request is sent to message queue, and notifies that inquiry request described in client is asynchronous process, so as to described Clients poll obtains data asynchronous query result;And
Message handling device calls external look into after the inquiry request listened in the message queue, according to the inquiry request It askes service interface and carries out data query.
9. device according to claim 6, which is characterized in that the calling enquiry module is also used to: being looked into outside calling Before asking service interface progress data query, judges whether the inquiry request belongs to invalidation request, not inquired if belonging to.
10. device according to claim 6, which is characterized in that described device further include: active cache module, for pressing It according to default measurement period, is requested using the statistics focus inquiry of historical query request data, and requests to adjust according to the focus inquiry Data query is carried out with external inquiry service interface, and the data inquired are updated in level cache and/or L2 cache.
11. a kind of electronic equipment characterized by comprising
One or more processors;
Storage device, for storing one or more programs,
When one or more of programs are executed by one or more of processors, so that one or more of processors are real Now such as method as claimed in any one of claims 1 to 5.
12. a kind of computer-readable medium, is stored thereon with computer program, which is characterized in that described program is held by processor Such as method as claimed in any one of claims 1 to 5 is realized when row.
CN201710969976.3A 2017-10-18 2017-10-18 Data query method and device Active CN109684358B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710969976.3A CN109684358B (en) 2017-10-18 2017-10-18 Data query method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710969976.3A CN109684358B (en) 2017-10-18 2017-10-18 Data query method and device

Publications (2)

Publication Number Publication Date
CN109684358A true CN109684358A (en) 2019-04-26
CN109684358B CN109684358B (en) 2021-11-09

Family

ID=66183187

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710969976.3A Active CN109684358B (en) 2017-10-18 2017-10-18 Data query method and device

Country Status (1)

Country Link
CN (1) CN109684358B (en)

Cited By (35)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110290196A (en) * 2019-06-20 2019-09-27 网宿科技股份有限公司 A kind of content distribution method and device
CN110287007A (en) * 2019-05-20 2019-09-27 深圳壹账通智能科技有限公司 Data call response method, server and computer readable storage medium
CN110413679A (en) * 2019-07-31 2019-11-05 深圳前海微众银行股份有限公司 Database information processing method, device, equipment and readable storage medium storing program for executing
CN110837521A (en) * 2019-11-15 2020-02-25 北京金山云网络技术有限公司 Data query method and device and server
CN110851477A (en) * 2019-10-16 2020-02-28 浙江大搜车软件技术有限公司 Stream data processing method, stream data processing device, computer equipment and storage medium
CN110989939A (en) * 2019-12-16 2020-04-10 中国银行股份有限公司 Data cache processing method, device and equipment and cache component
CN111026962A (en) * 2019-12-03 2020-04-17 泰康保险集团股份有限公司 Hierarchical relation query response time reduction method, server and user front end
CN111209467A (en) * 2020-01-08 2020-05-29 中通服咨询设计研究院有限公司 Data real-time query system under multi-concurrency multi-channel environment
CN111309251A (en) * 2020-01-21 2020-06-19 青梧桐有限责任公司 Data storage method, system, electronic device and readable storage medium
CN111400349A (en) * 2020-02-19 2020-07-10 北京值得买科技股份有限公司 Multilayer cache data acquisition method and device
CN111414198A (en) * 2020-03-18 2020-07-14 北京字节跳动网络技术有限公司 Request processing method and device
CN111414383A (en) * 2020-02-21 2020-07-14 车智互联(北京)科技有限公司 Data request method, data processing system and computing device
CN111782698A (en) * 2020-07-03 2020-10-16 广州探途网络技术有限公司 Cache updating method and device and electronic equipment
CN111830039A (en) * 2020-07-22 2020-10-27 南京认知物联网研究院有限公司 Intelligent product quality detection method and device
CN111858086A (en) * 2020-06-15 2020-10-30 福建天泉教育科技有限公司 Queue timeout processing method in request task processing and storage medium
WO2020225615A1 (en) * 2019-05-09 2020-11-12 International Business Machines Corporation Executing multiple data requests of multiple-core processors
CN111949857A (en) * 2020-08-13 2020-11-17 中国民航信息网络股份有限公司 Flight query request processing method and device and electronic equipment
CN112055039A (en) * 2019-06-06 2020-12-08 阿里巴巴集团控股有限公司 Data access method, device and system and computing equipment
CN112163001A (en) * 2020-09-25 2021-01-01 同程网络科技股份有限公司 High-concurrency query method, intelligent terminal and storage medium
CN112215453A (en) * 2020-08-18 2021-01-12 汉海信息技术(上海)有限公司 Inventory information processing method and device, electronic equipment and storage medium
CN112463813A (en) * 2020-11-19 2021-03-09 贝壳技术有限公司 Data caching method and device, electronic equipment and storage medium
CN112749195A (en) * 2020-12-30 2021-05-04 广州凡科互联网科技股份有限公司 Asynchronous delay loading cache method
CN113114642A (en) * 2021-03-30 2021-07-13 广州宸祺出行科技有限公司 Interface integrated driver identity authentication method and device
CN113535768A (en) * 2020-04-15 2021-10-22 北京京东乾石科技有限公司 Production monitoring method and device
CN113535782A (en) * 2021-07-22 2021-10-22 成都数之联科技有限公司 BI report query response method, system, electronic equipment and computer readable storage medium
CN113596177A (en) * 2021-08-13 2021-11-02 四川虹美智能科技有限公司 Method and device for analyzing IP address of intelligent household equipment
CN113688129A (en) * 2021-07-21 2021-11-23 中国铁道科学研究院集团有限公司电子计算技术研究所 Method and device for encoding link transport data
CN114143376A (en) * 2021-11-18 2022-03-04 青岛聚看云科技有限公司 Server for loading cache, display equipment and resource playing method
CN114138840A (en) * 2021-12-08 2022-03-04 中国建设银行股份有限公司 Data query method, device, equipment and storage medium
US11321146B2 (en) 2019-05-09 2022-05-03 International Business Machines Corporation Executing an atomic primitive in a multi-core processor system
WO2022088466A1 (en) * 2020-11-02 2022-05-05 广州明珞装备股份有限公司 Query method and system for spare parts consumption data, and storage medium
CN116028525A (en) * 2023-03-31 2023-04-28 成都四方伟业软件股份有限公司 Intelligent management method for data slicing
US11681567B2 (en) 2019-05-09 2023-06-20 International Business Machines Corporation Method and processor system for executing a TELT instruction to access a data item during execution of an atomic primitive
CN117112267A (en) * 2023-10-20 2023-11-24 成都华栖云科技有限公司 Cache maintenance method of application interface
CN117785949A (en) * 2024-02-28 2024-03-29 云南省地矿测绘院有限公司 Data caching method, electronic equipment, storage medium and device

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101266609A (en) * 2008-04-30 2008-09-17 中山爱科数字科技有限公司 Method for accomplishing medical data external inquiry for digital remote medical treatment
CN103455605A (en) * 2013-09-04 2013-12-18 电子科技大学 Deep searching method for files in internal network environment
CN103530349A (en) * 2013-09-30 2014-01-22 乐视致新电子科技(天津)有限公司 Method and equipment for cache updating
CN103793485A (en) * 2014-01-20 2014-05-14 锐达互动科技股份有限公司 Method for inquiring network data by client terminal based on cached data
CN104168300A (en) * 2013-05-17 2014-11-26 中国电信股份有限公司 Content acceleration method and system
CN104468807A (en) * 2014-12-12 2015-03-25 北京小渔无限信息技术有限公司 Processing method, cloud end device, local devices and system for webpage cache
CN104767753A (en) * 2015-04-08 2015-07-08 无锡天脉聚源传媒科技有限公司 Method and device for processing message requests through server
CN106326389A (en) * 2016-08-17 2017-01-11 深圳市金证科技股份有限公司 Data-caching-based service request processing method and system
CN106844784A (en) * 2017-03-14 2017-06-13 上海网易小额贷款有限公司 Data cache method, device and computer-readable recording medium
CN107203613A (en) * 2017-05-23 2017-09-26 北京微影时代科技有限公司 A kind of method and device of high concurrent request processing

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101266609A (en) * 2008-04-30 2008-09-17 中山爱科数字科技有限公司 Method for accomplishing medical data external inquiry for digital remote medical treatment
CN104168300A (en) * 2013-05-17 2014-11-26 中国电信股份有限公司 Content acceleration method and system
CN103455605A (en) * 2013-09-04 2013-12-18 电子科技大学 Deep searching method for files in internal network environment
CN103530349A (en) * 2013-09-30 2014-01-22 乐视致新电子科技(天津)有限公司 Method and equipment for cache updating
CN103793485A (en) * 2014-01-20 2014-05-14 锐达互动科技股份有限公司 Method for inquiring network data by client terminal based on cached data
CN104468807A (en) * 2014-12-12 2015-03-25 北京小渔无限信息技术有限公司 Processing method, cloud end device, local devices and system for webpage cache
CN104767753A (en) * 2015-04-08 2015-07-08 无锡天脉聚源传媒科技有限公司 Method and device for processing message requests through server
CN106326389A (en) * 2016-08-17 2017-01-11 深圳市金证科技股份有限公司 Data-caching-based service request processing method and system
CN106844784A (en) * 2017-03-14 2017-06-13 上海网易小额贷款有限公司 Data cache method, device and computer-readable recording medium
CN107203613A (en) * 2017-05-23 2017-09-26 北京微影时代科技有限公司 A kind of method and device of high concurrent request processing

Cited By (48)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2020225615A1 (en) * 2019-05-09 2020-11-12 International Business Machines Corporation Executing multiple data requests of multiple-core processors
US11681567B2 (en) 2019-05-09 2023-06-20 International Business Machines Corporation Method and processor system for executing a TELT instruction to access a data item during execution of an atomic primitive
GB2597884B (en) * 2019-05-09 2022-06-22 Ibm Executing multiple data requests of multiple-core processors
US11321146B2 (en) 2019-05-09 2022-05-03 International Business Machines Corporation Executing an atomic primitive in a multi-core processor system
GB2597884A (en) * 2019-05-09 2022-02-09 Ibm Executing multiple data requests of multiple-core processors
CN110287007A (en) * 2019-05-20 2019-09-27 深圳壹账通智能科技有限公司 Data call response method, server and computer readable storage medium
CN112055039A (en) * 2019-06-06 2020-12-08 阿里巴巴集团控股有限公司 Data access method, device and system and computing equipment
CN112055039B (en) * 2019-06-06 2022-07-26 阿里巴巴集团控股有限公司 Data access method, device and system and computing equipment
CN110290196B (en) * 2019-06-20 2021-08-27 网宿科技股份有限公司 Content distribution method and device
CN110290196A (en) * 2019-06-20 2019-09-27 网宿科技股份有限公司 A kind of content distribution method and device
CN110413679B (en) * 2019-07-31 2023-01-24 深圳前海微众银行股份有限公司 Database information processing method, device, equipment and readable storage medium
CN110413679A (en) * 2019-07-31 2019-11-05 深圳前海微众银行股份有限公司 Database information processing method, device, equipment and readable storage medium storing program for executing
CN110851477A (en) * 2019-10-16 2020-02-28 浙江大搜车软件技术有限公司 Stream data processing method, stream data processing device, computer equipment and storage medium
CN110851477B (en) * 2019-10-16 2022-09-09 浙江大搜车软件技术有限公司 Stream data processing method, stream data processing device, computer equipment and storage medium
CN110837521A (en) * 2019-11-15 2020-02-25 北京金山云网络技术有限公司 Data query method and device and server
CN111026962A (en) * 2019-12-03 2020-04-17 泰康保险集团股份有限公司 Hierarchical relation query response time reduction method, server and user front end
CN111026962B (en) * 2019-12-03 2023-09-22 泰康保险集团股份有限公司 Hierarchical relation query response time reduction method, server and user front end
CN110989939A (en) * 2019-12-16 2020-04-10 中国银行股份有限公司 Data cache processing method, device and equipment and cache component
CN111209467B (en) * 2020-01-08 2023-05-26 中通服咨询设计研究院有限公司 Data real-time query system in multi-concurrency multi-channel environment
CN111209467A (en) * 2020-01-08 2020-05-29 中通服咨询设计研究院有限公司 Data real-time query system under multi-concurrency multi-channel environment
CN111309251A (en) * 2020-01-21 2020-06-19 青梧桐有限责任公司 Data storage method, system, electronic device and readable storage medium
CN111400349A (en) * 2020-02-19 2020-07-10 北京值得买科技股份有限公司 Multilayer cache data acquisition method and device
CN111414383B (en) * 2020-02-21 2024-03-15 车智互联(北京)科技有限公司 Data request method, data processing system and computing device
CN111414383A (en) * 2020-02-21 2020-07-14 车智互联(北京)科技有限公司 Data request method, data processing system and computing device
CN111414198B (en) * 2020-03-18 2023-05-02 北京字节跳动网络技术有限公司 Request processing method and device
CN111414198A (en) * 2020-03-18 2020-07-14 北京字节跳动网络技术有限公司 Request processing method and device
CN113535768A (en) * 2020-04-15 2021-10-22 北京京东乾石科技有限公司 Production monitoring method and device
CN111858086B (en) * 2020-06-15 2023-07-21 福建天泉教育科技有限公司 Processing method and storage medium for queue timeout in request task processing
CN111858086A (en) * 2020-06-15 2020-10-30 福建天泉教育科技有限公司 Queue timeout processing method in request task processing and storage medium
CN111782698A (en) * 2020-07-03 2020-10-16 广州探途网络技术有限公司 Cache updating method and device and electronic equipment
CN111830039A (en) * 2020-07-22 2020-10-27 南京认知物联网研究院有限公司 Intelligent product quality detection method and device
CN111949857A (en) * 2020-08-13 2020-11-17 中国民航信息网络股份有限公司 Flight query request processing method and device and electronic equipment
CN112215453A (en) * 2020-08-18 2021-01-12 汉海信息技术(上海)有限公司 Inventory information processing method and device, electronic equipment and storage medium
CN112163001A (en) * 2020-09-25 2021-01-01 同程网络科技股份有限公司 High-concurrency query method, intelligent terminal and storage medium
WO2022088466A1 (en) * 2020-11-02 2022-05-05 广州明珞装备股份有限公司 Query method and system for spare parts consumption data, and storage medium
CN112463813A (en) * 2020-11-19 2021-03-09 贝壳技术有限公司 Data caching method and device, electronic equipment and storage medium
CN112749195A (en) * 2020-12-30 2021-05-04 广州凡科互联网科技股份有限公司 Asynchronous delay loading cache method
CN113114642A (en) * 2021-03-30 2021-07-13 广州宸祺出行科技有限公司 Interface integrated driver identity authentication method and device
CN113688129A (en) * 2021-07-21 2021-11-23 中国铁道科学研究院集团有限公司电子计算技术研究所 Method and device for encoding link transport data
CN113535782A (en) * 2021-07-22 2021-10-22 成都数之联科技有限公司 BI report query response method, system, electronic equipment and computer readable storage medium
CN113596177B (en) * 2021-08-13 2023-06-27 四川虹美智能科技有限公司 Method and device for resolving IP address of intelligent household equipment
CN113596177A (en) * 2021-08-13 2021-11-02 四川虹美智能科技有限公司 Method and device for analyzing IP address of intelligent household equipment
CN114143376A (en) * 2021-11-18 2022-03-04 青岛聚看云科技有限公司 Server for loading cache, display equipment and resource playing method
CN114138840A (en) * 2021-12-08 2022-03-04 中国建设银行股份有限公司 Data query method, device, equipment and storage medium
CN116028525A (en) * 2023-03-31 2023-04-28 成都四方伟业软件股份有限公司 Intelligent management method for data slicing
CN117112267A (en) * 2023-10-20 2023-11-24 成都华栖云科技有限公司 Cache maintenance method of application interface
CN117112267B (en) * 2023-10-20 2024-01-23 成都华栖云科技有限公司 Cache maintenance method of application interface
CN117785949A (en) * 2024-02-28 2024-03-29 云南省地矿测绘院有限公司 Data caching method, electronic equipment, storage medium and device

Also Published As

Publication number Publication date
CN109684358B (en) 2021-11-09

Similar Documents

Publication Publication Date Title
CN109684358A (en) The method and apparatus of data query
US9811370B2 (en) Determining an optimal datacenter for placing a resource instance in a cloud that would benefit an intended set of end users in a geographical region
CN105281981B (en) The data traffic monitoring method and device of network service
CN103329113B (en) Configuration is accelerated and custom object and relevant method for proxy server and the Dynamic Website of hierarchical cache
US8190593B1 (en) Dynamic request throttling
US10205773B2 (en) Service platform architecture
US9098565B1 (en) In-house elegant JDBC connection pooling solution for message broker
CN108365971A (en) Daily record analytic method, equipment and computer-readable medium
CN113010818B (en) Access current limiting method, device, electronic equipment and storage medium
CN110598138A (en) Cache-based processing method and device
CN108984553A (en) Caching method and device
CN108897854A (en) A kind of monitoring method and device of overtime task
CN107888666A (en) A kind of cross-region data-storage system and method for data synchronization and device
CN109981719A (en) Information processing method and its system, computer system and computer readable medium
CN110166507A (en) More resource regulating methods and device
CN110110196A (en) A kind of information push method and device
CN110321252B (en) Skill service resource scheduling method and device
CN112653632A (en) Flow control realization method and device
CN113783924A (en) Method and device for processing access request
CN112686528A (en) Method, apparatus, server and medium for allocating customer service resources
CN113765964A (en) Method and device for distributing services of distributed system
CN101388863A (en) Implementing method and system for WAP gateway extraction service
CN110493291A (en) A kind of method and apparatus handling HTTP request
CN113055348A (en) Cross-platform data request method and device and electronic equipment
CN110363638A (en) The method for processing business, device and electronic equipment of non-targeted user in financial business

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant