Specific embodiment
Currently in information requirement platform, if information requirement platform is needed to information when multiple users while query information
The concurrent multiple information inquiring requests of platform are provided, especially when some period, user's amount of access abruptly increase of information requirement platform, with
This simultaneously information requirement platform provide information to the quantity of the concurrent information inquiring request of platform also can abruptly increase, since information provides
The transmission of information is carried out between platform and information requirement platform using special line or optical fiber, as shown in Figure 1, information provide platform with
Transmission rate between information requirement platform using special line or optical fiber is limited, such as the transmission pressure that special line can carry is per second
100 information inquiring requests of concurrent transmission, but sometime, information requirement platform needs to provide information to platform concurrent 100
A information inquiring request has been more than the transmission pressure that special line or optical fiber can carry, can only take current limiting measures, thus for having
A little information inquiring requests can not be sent to information in time and provide platform, and user query information is caused to fail.
To solve the above-mentioned problems, this specification provides a kind of technical solution, by matching in advance in information requirement platform
The first process and the second process worked independently from each other is set, is needed synchronizing information to the information that information provides platform by the first process
Platform native storing data library is asked, the information to be inquired of user is determined by the second process, and deposit in information requirement Platform native
It stores up information determined by inquiring in the information of database purchase and shows user.Not flat to information offer platform and information requirement
In the case that special line or optical fiber between platform carry out dilatation, it is higher that information requirement platform can cope with user concurrent access amount
Situation, but also can rapidly and efficiently be that user provides the service of information inquiry.
Specifically, the technical solution that this specification provides is as follows:
First process determines information to be synchronized;According to the information to be synchronized, rule is sent according to preset request
It provides information to platform and sends synchronizing information request;It receives information and the letter that platform is returned according to synchronizing information request is provided
Breath, and be synchronized to information requirement Platform native storing data library and stored;Second process determines the information to be inquired of user;
Second process inquires identified information and shows use in the information that information requirement Platform native storing data library is stored
Family.
Wherein, in order to preferably illustrate that the technical solution provided is illustrated to this, under the scene of information inquiry, with letter
Breath demand platform be e-commerce platform, information provide platform be external bank mechanism for, by information be merchandise news for,
By taking synchronizing information request is merchandise news synchronization request as an example.It is worth noting that, this specification is only to combine concrete application
The technical solution that scene provides this specification is illustrated, and does not limit the concrete application scene of the application.
In order to make those skilled in the art more fully understand the technical solution in this specification embodiment, below in conjunction with this
Attached drawing in specification embodiment is described in detail the technical solution in this specification embodiment, it is clear that described
Embodiment is only a part of the embodiment of this specification, instead of all the embodiments.The embodiment of base in this manual,
Those of ordinary skill in the art's every other embodiment obtained, all should belong to the range of protection.
As shown in Fig. 2, the flow diagram of the information query method provided for this specification embodiment, wherein the first process
Worked independently from each other with the second process, the first process execute the step of with the second process execute the step of limit execution it is suitable
Sequence can specifically include following steps:
S201, the first process determine information to be synchronized;
In the application, merchandise news to be synchronized is first determined, wherein commodity to be synchronized can be determined in the following manner
Information:
It is full to choose historical query number to the historical query number of every merchandise news for 1: the first process counting user of mode
The merchandise news of sufficient preset requirement determines that selected merchandise news is merchandise news to be synchronized.Wherein choose historical query
The merchandise news that number meets preset requirement, which can be, chooses merchandise news of the historical query number more than preset threshold, such as selects
Taking historical query number is more than 1000 merchandise news.The merchandise news that selection historical query number meets preset requirement can also
To be the commodity chosen historical query number merchandise news in the top, such as choose 100 before historical query number ranking
Information.
For example, currently there is 100 merchandise newss, every merchandise news corresponds to respective historical query number, merchandise news 1
Corresponding historical query number is 1010, the corresponding historical query number of merchandise news 2 is 1100 ..., chooses historical query time
Merchandise news of the number more than 1000 times determines this 58 quotient wherein the historical query number of 58 merchandise news is more than 1000 times
Product information is merchandise news to be synchronized.
2: the first process of mode calculates user to the historical query frequency of every merchandise news, and it is full to choose historical query frequency
The merchandise news of sufficient preset requirement determines that selected merchandise news is merchandise news to be synchronized.Wherein choose historical query
The merchandise news that frequency meets preset requirement, which can be, chooses merchandise news of the historical query frequency more than preset threshold, such as selects
Taking historical query frequency is more than 100 times per hour merchandise news.Choose the commodity letter that historical query frequency meets preset requirement
Breath is also possible to choose historical query frequency merchandise news in the top, such as chooses before historical query frequency ranking 100
Merchandise news.
For example, currently there is 100 merchandise newss, every merchandise news corresponds to respective historical query frequency, merchandise news 1
Corresponding historical query frequency is 110 times per hour, the corresponding historical query frequency of merchandise news 2 is 100 times per hour, is chosen
Historical query frequency is more than 100 times per hour merchandise news, wherein the historical query frequency of 40 merchandise news is more than per small
When 100 times, determine this 40 merchandise newss be merchandise news to be synchronized.
3: the first process of mode determines the merchandise news inquired in user's history, the commodity inquired from user's history
Merchandise news is randomly selected in information, determines that selected merchandise news is merchandise news to be synchronized.It wherein can be from user
Part merchandise news is randomly selected in the merchandise news inquired in history.
For example, the first process, which determines, once inquired 100 merchandise newss in user's history, inquired from user's history
100 merchandise newss in, randomly select 50 merchandise newss, determine that this selected 50 merchandise newss are quotient to be synchronized
Product information.
In addition, the historical query number of merchandise news, historical query frequency, inquiry are gone through in above-mentioned described user's history
History can be the user behavior in some time window, such as can be the user behavior in nearest 1 year.
S202 sends rule and provides information to platform and send and believe according to the information to be synchronized according to preset request
Cease synchronization request;
In this specification embodiment, according to merchandise news to be synchronized, can by timed task, event triggering or
Person receives the mode of synchronizing information instruction, and the first process sends rule according to preset request and sends commodity to external banking institution
Synchronizing information request.
Wherein timed task executes identical operation every one section of set time timing, i.e., periodically timing executes phase
Same operation.According to merchandise news to be synchronized, periodically timing sends rule to external bank machine according to preset request
Structure sends merchandise news synchronization request.Such as with 12 hours for the period, daily 1:00 AM according to preset request send rule to
External bank mechanism sends merchandise news synchronization request.
Event triggering, user performs some operation and triggers event, such as user clicks some button trigger button thing
Part, according to merchandise news to be synchronized, sends rule to external banking institution according to preset request after button event triggering
Send merchandise news synchronization request.
Synchronizing information instruction is received, synchronizing information instruction can be user's input, be also possible to the transmission of some server
, the source that this specification instructs synchronizing information is not construed as limiting.After receiving synchronizing information instruction, according to commodity to be synchronized
Information sends rule according to preset request and sends merchandise news synchronization request to external banking institution.
By the above-mentioned means, rule can be sent to external silver according to preset request according to merchandise news to be synchronized
Row mechanism sends merchandise news synchronization request.Wherein preset request sends rule, such as can be one commodity of transmission per second
Synchronizing information request or 10 merchandise news synchronization requests of transmission per second.
S203 receives information and provides the information that platform is returned according to synchronizing information request, and is synchronized to information requirement
Platform native storing data library is stored;
E-commerce platform sends merchandise news synchronization request to external banking institution, and external bank mechanism is receiving quotient
After the request of product synchronizing information, the merchandise news of locally stored database storage is inquired according to merchandise news synchronization request, to electronics
Business platform returns to the merchandise news inquired, wherein it is corresponding how to inquire commodity synchronization request in this side of external banking institution
Merchandise news, and how to return to the merchandise news inquired, in this not go into detail for this specification embodiment.
First process receives the merchandise news that external bank mechanism is returned according to commodity synchronization request, and is synchronized to electronics quotient
Business Platform native storing data library is stored.
Wherein, the merchandise news for returning to external bank mechanism be synchronized to e-commerce platform locally stored database into
Before row storage, following processing can be taken: the merchandise news returned for external bank mechanism, the in e-commerce platform
One process receives the merchandise news that external bank mechanism returns, and taxonomic revision is carried out to the merchandise news of return, by same class quotient
Product finish message is to together.Such as taxonomic revision is carried out to the merchandise news of return, by the merchandise news of return be divided into A, B, C,
D, E5 class.
After carrying out taxonomic revision to the merchandise news of return, category is synchronized to e-commerce platform and number is locally stored
It is stored according to library.For example, A, B, C, D, E5 class merchandise news as stated above is synchronized to e-commerce platform and is locally stored
Database is stored.
Foregoing description is how the merchandise news of external bank mechanism is synchronized to e-commerce platform sheet by the first process
Ground storing data library is stored, and described below is the merchandise news how the second process inquires that user to be inquired.
S204, the second process determine the information to be inquired of user;
When user logs in e-commerce platform, the commodity shown in browsing e-commerce platform, user can inquired
The page inquires the corresponding merchandise news of commodity by way of click, when the triggering of the clicking operation of user, the second process meeting
Determine the merchandise news to be inquired of user.For example, user, which clicks gold jewelry in query page, wants inquiry gold jewelry
Commodity details, when the triggering of the clicking operation of user, the second process can determine whether the commodity details to be inquired of user.
S205, the second process is in the information that information requirement Platform native storing data library is stored, determined by inquiry
Information simultaneously shows user.
For merchandise news identified in S205, the second process is stored in e-commerce platform locally stored database
Merchandise news in, inquire determined by merchandise news simultaneously show user.The realization of merchandise news determined by wherein inquiring
There are many kinds in mode, one of which is illustrated in this specification embodiment, it is notable that this specification is implemented
Example simultaneously limits how to inquire identified merchandise news.
The implementation of merchandise news determined by inquiring are as follows: carried out according to merchandise news of above-mentioned first process to return
Taxonomic revision, category are synchronized to e-commerce platform locally stored database and are stored, then can determine identified quotient
Classification belonging to product information is inquired in the category merchandise news of e-commerce platform locally stored database storage and is determined
Merchandise news.For example, merchandise news determined by determining belongs to A class merchandise news, then it can be in e-commerce platform local
Merchandise news determined by being inquired in the A class merchandise news of storing data library storage.
In addition, not inquired when the second process is in the merchandise news that e-commerce platform locally stored database is stored
When to identified merchandise news, the second process notifies the first process, so that commodity determined by the first process priority synchronization are believed
Breath is stored to e-commerce platform locally stored database, and specific way can be the second process and notify the first process excellent
Identified merchandise news is first determined as merchandise news to be synchronized, subsequent first process is believed according to the commodity to be synchronized
Breath, according to preset request send rule to external banking institution send synchronizing information request, reception external bank mechanism according to
The information that the synchronizing information request returns, and be synchronized to e-commerce platform locally stored database and stored.Subsequent
Two processes can inquire again e-commerce platform this storage merchandise news and show user.
By the description of the above-mentioned technical solution provided this specification, by being pre-configured in information requirement platform mutually
The first process and the second process to work independently provides information to the synchronizing information of platform to information requirement platform by the first process
Locally stored database determines the information to be inquired of user by the second process, and in information requirement Platform native storing data
Information determined by inquiring in the information of library storage shows user.Information is not being provided between platform and information requirement platform
Special line or optical fiber carry out dilatation in the case where, information requirement platform can cope with the higher situation of user concurrent access amount,
It but also can rapidly and efficiently be that user provides the service of information inquiry.
Relative to above method embodiment, this specification embodiment also provides a kind of information query device, is applied to information
Demand platform, as shown in figure 3, may include: information determination module 310 to be synchronized, request sending module 320, information storage mould
Block 330, information determination module 340, information inquiry module 350.
Information determination module 310 to be synchronized determines information to be synchronized for the first process;
Request sending module 320, for sending rule to information according to preset request according to the information to be synchronized
Platform is provided and sends synchronizing information request;
Information storage module 330 provides the information that platform is returned according to synchronizing information request for receiving information, and
Information requirement Platform native storing data library is synchronized to be stored;
Information determination module 340 determines the information to be inquired of user for the second process;
Information inquiry module 350, the information stored for the second process in information requirement Platform native storing data library
In, it inquires identified information and shows user.
According to a kind of specific embodiment that this specification provides, the information determination module 310 to be synchronized is specifically used for:
Historical query number of the first process counting user to every information;
Choose the information that historical query number meets preset requirement;
Determine that selected information is information to be synchronized.
According to a kind of specific embodiment that this specification provides, the information determination module 310 to be synchronized is specifically used for:
First process calculates user to the historical query frequency of every information;
Choose the information that historical query frequency meets preset requirement;
Determine that selected information is information to be synchronized.
According to a kind of specific embodiment that this specification provides, the information determination module 310 to be synchronized is specifically used for:
Determine the information inquired in user's history;
Information is randomly selected from the information inquired in user's history;
Determine that selected information is information to be synchronized.
According to a kind of specific embodiment that this specification provides, the request sending module 320 is specifically used for:
According to the information to be synchronized, by way of timed task, event triggering or receiving synchronizing information instruction
Rule, which is sent, according to preset request provides information to platform transmission synchronizing information request.
According to a kind of specific embodiment that this specification provides, described device further include:
Notification module 360, for working as the second process in the information that information requirement Platform native storing data library is stored,
When information determined by not inquiring, the second process notifies the first process, so that information determined by the first process priority synchronization
It is stored to information requirement Platform native storing data library.
The function of modules and the realization process of effect are specifically detailed in the above method and correspond to step in above-mentioned apparatus
Realization process, details are not described herein.
By the description of the above-mentioned technical solution provided this specification, by being pre-configured in information requirement platform mutually
The first process and the second process to work independently provides information to the synchronizing information of platform to information requirement platform by the first process
Locally stored database determines the information to be inquired of user by the second process, and in information requirement Platform native storing data
Information determined by inquiring in the information of library storage shows user.Information is not being provided between platform and information requirement platform
Special line or optical fiber carry out dilatation in the case where, information requirement platform can cope with the higher situation of user concurrent access amount,
It but also can rapidly and efficiently be that user provides the service of information inquiry.
This specification embodiment also provides a kind of computer equipment, as shown in figure 4, the equipment may include: processor
410, memory 420, input/output interface 430, communication interface 440 and bus 450.Wherein processor 410, memory 420,
Input/output interface 430 and communication interface 440 pass through the communication connection between the realization of bus 450 inside equipment.
Processor 410 can use general CPU (Central Processing Unit, central processing unit), micro process
Device, application specific integrated circuit (Application Specific Integrated Circuit, ASIC) or one or
The modes such as multiple integrated circuits are realized, for executing relative program, to realize technical solution provided by this specification embodiment.
Memory 420 can use ROM (Read Only Memory, read-only memory), RAM (Random Access
Memory, random access memory), static storage device, the forms such as dynamic memory realize.Memory 420 can store
Operating system and other applications are realizing technical solution provided by this specification embodiment by software or firmware
When, relevant program code is stored in memory 420, and execution is called by processor 410.
Input/output interface 430 is for connecting input/output module, to realize information input and output.Input and output/
Module can be used as component Configuration (not shown) in a device, can also be external in equipment to provide corresponding function.Wherein
Input equipment may include keyboard, mouse, touch screen, microphone, various kinds of sensors etc., output equipment may include display,
Loudspeaker, vibrator, indicator light etc..
Communication interface 440 is used for connection communication module (not shown), to realize the communication of this equipment and other equipment
Interaction.Wherein communication module can be realized by wired mode (such as USB, cable etc.) and be communicated, can also be wirelessly
(such as mobile network, WIFI, bluetooth etc.) realizes communication.
Bus 450 includes an access, in various components (such as the processor 410, memory 420, input/output of equipment
Interface 430 and communication interface 440) between transmit information.
It should be noted that although above equipment illustrates only processor 410, memory 420, input/output interface
430, communication interface 440 and bus 450, but in the specific implementation process, which can also include realizing to operate normally
Necessary other assemblies.In addition, it will be appreciated by those skilled in the art that, it can also be only comprising realizing in above equipment
Component necessary to this specification example scheme, without including all components shown in figure.
This specification embodiment also provides a kind of computer readable storage medium, is stored thereon with computer program, the journey
Information query method above-mentioned is realized when sequence is executed by processor.This method includes at least:
A kind of information query method is applied to information requirement platform, is pre-configured in the information requirement platform mutually
The first process and the second process to work independently, this method comprises:
First process determines information to be synchronized;
According to the information to be synchronized, rule is sent according to preset request and provides information to platform transmission synchronizing information
Request;
It receives information and the information that platform is returned according to synchronizing information request is provided, and be synchronized to information requirement platform sheet
Ground storing data library is stored;
Second process determines the information to be inquired of user;
Second process inquires identified information simultaneously in the information that information requirement Platform native storing data library is stored
Show user.
Computer-readable medium includes permanent and non-permanent, removable and non-removable media can be by any method
Or technology come realize information store.Information can be computer readable instructions, data structure, the module of program or other data.
The example of the storage medium of computer includes, but are not limited to phase change memory (PRAM), static random access memory (SRAM), moves
State random access memory (DRAM), other kinds of random access memory (RAM), read-only memory (ROM), electric erasable
Programmable read only memory (EEPROM), flash memory or other memory techniques, read-only disc read only memory (CD-ROM) (CD-ROM),
Digital versatile disc (DVD) or other optical storage, magnetic cassettes, tape magnetic disk storage or other magnetic storage devices
Or any other non-transmission medium, can be used for storage can be accessed by a computing device information.As defined in this article, it calculates
Machine readable medium does not include temporary computer readable media (transitory media), such as the data-signal and carrier wave of modulation.
As seen through the above description of the embodiments, those skilled in the art can be understood that this specification
Embodiment can be realized by means of software and necessary general hardware platform.Based on this understanding, this specification is implemented
Substantially the part that contributes to existing technology can be embodied in the form of software products the technical solution of example in other words,
The computer software product can store in storage medium, such as ROM/RAM, magnetic disk, CD, including some instructions are to make
It is each to obtain computer equipment (can be personal computer, server or the network equipment etc.) execution this specification embodiment
Method described in certain parts of a embodiment or embodiment.
System, device, module or the unit that above-described embodiment illustrates can specifically realize by computer chip or entity,
Or it is realized by the product with certain function.A kind of typically to realize that equipment is computer, the concrete form of computer can
To be personal computer, laptop computer, cellular phone, camera phone, smart phone, personal digital assistant, media play
In device, navigation equipment, E-mail receiver/send equipment, game console, tablet computer, wearable device or these equipment
The combination of any several equipment.
All the embodiments in this specification are described in a progressive manner, same and similar portion between each embodiment
Dividing may refer to each other, and each embodiment focuses on the differences from other embodiments.Especially for device reality
For applying example, since it is substantially similar to the method embodiment, so describing fairly simple, related place is referring to embodiment of the method
Part explanation.The apparatus embodiments described above are merely exemplary, wherein described be used as separate part description
Module may or may not be physically separated, can be each module when implementing this specification example scheme
Function realize in the same or multiple software and or hardware.Can also select according to the actual needs part therein or
Person's whole module achieves the purpose of the solution of this embodiment.Those of ordinary skill in the art are not the case where making the creative labor
Under, it can it understands and implements.
The above is only the specific embodiment of this specification embodiment, it is noted that for the general of the art
For logical technical staff, under the premise of not departing from this specification embodiment principle, several improvements and modifications can also be made, this
A little improvements and modifications also should be regarded as the protection scope of this specification embodiment.