[go: up one dir, main page]
More Web Proxy on the site http://driver.im/

CN107908775B - The dynamic of merchandise news shows method, electronic equipment, storage medium - Google Patents

The dynamic of merchandise news shows method, electronic equipment, storage medium Download PDF

Info

Publication number
CN107908775B
CN107908775B CN201711243794.4A CN201711243794A CN107908775B CN 107908775 B CN107908775 B CN 107908775B CN 201711243794 A CN201711243794 A CN 201711243794A CN 107908775 B CN107908775 B CN 107908775B
Authority
CN
China
Prior art keywords
merchandise news
caching
stored
client
book
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201711243794.4A
Other languages
Chinese (zh)
Other versions
CN107908775A (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.)
Shenzhen Zhangyue Animation Technology Co ltd
Original Assignee
Zhangyue 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 Zhangyue Technology Co Ltd filed Critical Zhangyue Technology Co Ltd
Priority to CN201711243794.4A priority Critical patent/CN107908775B/en
Publication of CN107908775A publication Critical patent/CN107908775A/en
Application granted granted Critical
Publication of CN107908775B publication Critical patent/CN107908775B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/24Querying
    • G06F16/245Query processing
    • G06F16/2455Query execution
    • G06F16/24552Database cache management
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/24Querying
    • G06F16/248Presentation of query results
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q30/00Commerce
    • G06Q30/06Buying, selling or leasing transactions
    • G06Q30/0601Electronic shopping [e-shopping]

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Business, Economics & Management (AREA)
  • General Physics & Mathematics (AREA)
  • Physics & Mathematics (AREA)
  • Databases & Information Systems (AREA)
  • Accounting & Taxation (AREA)
  • Computational Linguistics (AREA)
  • General Engineering & Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Finance (AREA)
  • Development Economics (AREA)
  • Economics (AREA)
  • Marketing (AREA)
  • Strategic Management (AREA)
  • General Business, Economics & Management (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The invention discloses a kind of dynamics of merchandise news to show method, electronic equipment, storage medium, and method includes: to receive the displaying request for the merchandise news that client issues;It is requested according to the displaying of merchandise news, whether is stored with not out of date merchandise news in query caching;If so, obtaining the merchandise news of specified quantity from not out of date merchandise news stored in caching, and client is returned to, so that client is shown.The present invention can use buffer memory merchandise news, after the displaying request for receiving merchandise news, the not out of date merchandise news of specified quantity is obtained from caching, on the one hand, the inquiry pressure that server is born is reduced, is shown according to the merchandise news stored in the buffer in advance;On the other hand improving client gets the speed that merchandise news is shown, and gives the preferable user experience of user.

Description

The dynamic of merchandise news shows method, electronic equipment, storage medium
Technical field
The present invention relates to software fields, and in particular to a kind of dynamic of merchandise news shows method, electronic equipment, storage Medium.
Background technique
When merchandise news is shown, since the space that available commodities information is shown is limited, generally it is only capable of showing limited quotient Product information.By taking e-book as an example, such as e-book list, 100 e-book are contained in e-book list, but due to client In for showing that the space of e-book list is limited, be once only capable of showing 3 e-book informations, the e-book information number of displaying It measures less.User wants to check whole e-book lists, needs to click the operation for checking whole e-book lists, ability again See other e-book informations.If the e-book information shown every time is all the e-book information of immobilized substance, then user Other e-book informations in e-book list can not be seen at the first time, cause the exposure of a large amount of e-book not high.For Increase the exposure rate of different e-book, it can be when showing e-book information every time, from 100 e-book of e-book list Random 3 different e-book informations of displaying in information, i.e. server are random every time to be obtained from 100 e-book informations 3 e-book informations are taken, this 3 e-book informations are sent to client and are shown.But processing is so that server is every in this way The secondary processing for requiring to do to obtain at random from 100 e-book informations, the pressure of server are very big.Further, when user's Radix is very big, and when there are many e-book quantity that e-book list includes, the pressure of server can be huge, feeds back to the speed of user Degree also can be slack-off, and the time for the e-book information that client is shown can be elongated, and user experience is bad.
Summary of the invention
In view of the above problems, the present invention is proposed to overcome the above problem in order to provide one kind or at least be partially solved The dynamic of the e-book information of the above problem shows method, electronic equipment, storage medium.
According to an aspect of the invention, there is provided a kind of dynamic of merchandise news shows method comprising:
Receive the displaying request for the merchandise news that client issues;
It is requested according to the displaying of merchandise news, whether is stored with not out of date merchandise news in query caching;
If so, obtaining the merchandise news of specified quantity from not out of date merchandise news stored in caching, and return To client, so that client is shown.
According to another aspect of the present invention, a kind of electronic equipment is provided, comprising: processor, memory, communication interface And communication bus, processor, memory and communication interface complete mutual communication by communication bus;
Memory makes processor execute following operation for storing an at least executable instruction, executable instruction:
Receive the displaying request for the merchandise news that client issues;
It is requested according to the displaying of merchandise news, whether is stored with not out of date merchandise news in query caching;
If so, obtaining the merchandise news of specified quantity from not out of date merchandise news stored in caching, and return To client, so that client is shown.
According to another aspect of the invention, a kind of computer storage medium is provided, at least one is stored in storage medium Executable instruction, executable instruction make processor execute following operation:
Receive the displaying request for the merchandise news that client issues;
It is requested according to the displaying of merchandise news, whether is stored with not out of date merchandise news in query caching;
If so, obtaining the merchandise news of specified quantity from not out of date merchandise news stored in caching, and return To client, so that client is shown.
The dynamic of the merchandise news provided according to the present invention shows method, electronic equipment, storage medium, receives client The displaying of the merchandise news of sending is requested;It is requested, whether is stored in query caching not out of date according to the displaying of merchandise news Merchandise news;If so, obtaining the merchandise news of specified quantity from not out of date merchandise news stored in caching, and return Back to client, so that client is shown.The present invention can use buffer memory merchandise news, receive commodity letter After the displaying request of breath, the not out of date merchandise news of specified quantity is obtained from caching, on the one hand, reduce server and bear Inquiry pressure, be shown according to the merchandise news stored in the buffer in advance;On the other hand client is improved to get The speed that merchandise news is shown gives the preferable user experience of user.Further, the merchandise news stored in caching is not Permanent set is constant, and merchandise news has expired time.The timeliness of the merchandise news stored in caching has been ensured in this way, Will not and actuals information there are deviations.Meanwhile different merchandise news can be stored every time in the buffer, facilitate client End shows that different merchandise news to user, improves the exposure of different e-book.
The above description is only an overview of the technical scheme of the present invention, in order to better understand the technical means of the present invention, And it can be implemented in accordance with the contents of the specification, and in order to allow above and other objects of the present invention, feature and advantage can It is clearer and more comprehensible, the followings are specific embodiments of the present invention.
Detailed description of the invention
By reading the following detailed description of the preferred embodiment, various other advantages and benefits are general for this field Logical technical staff will become clear.The drawings are only for the purpose of illustrating a preferred embodiment, and is not considered as to this hair Bright limitation.And throughout the drawings, the same reference numbers will be used to refer to the same parts.In the accompanying drawings:
The dynamic that Fig. 1 shows according to embodiments of the present invention one merchandise news shows the flow chart of method;
Fig. 2 shows the flow charts that the dynamic of according to embodiments of the present invention two merchandise news shows method;
Fig. 3 shows the structural schematic diagram of according to embodiments of the present invention four a kind of electronic equipment.
Specific embodiment
Exemplary embodiments of the present disclosure are described in more detail below with reference to accompanying drawings.Although showing this public affairs in attached drawing The exemplary embodiment opened, it being understood, however, that may be realized in various forms the disclosure without the implementation that should be illustrated here Example is limited.On the contrary, these embodiments are provided to facilitate a more thoroughly understanding of the present invention, and can be by the disclosure Range is fully disclosed to those skilled in the art.
Merchandise news is illustrated by taking e-book information as an example in the present invention, but merchandise news is not limited only to electronics letter Breath, any merchandise news shown are suitable for the present invention.
Embodiment one
The dynamic that Fig. 1 shows according to embodiments of the present invention one merchandise news shows the flow chart of method, such as Fig. 1 institute Show, the dynamic of merchandise news shows method and specifically comprises the following steps:
Step S101 receives the displaying request for the e-book information that client issues.
E-book information includes such as cover, brief introduction, author, newest Chapter List, price information.Client The above e-book information can be shown to user, user is facilitated to understand the content of e-book, so select corresponding e-book into Row is read.The displaying of e-book information is conducive to improve the exposure of e-book, and more users is made to read the e-book.
After client opens e-book Website page, the displaying request of e-book information can be issued to server accordingly, After receiving displaying request, it response can show request accordingly, carry out subsequent processing.
The type information for the e-book that request is shown can be carried in the displaying request of e-book information, need to show The specified quantity information of e-book etc..
Step S102 is requested according to the displaying of e-book information, whether is stored with not out of date e-book in query caching Information.
It is requested according to the displaying of e-book information, whether is stored in first query caching and meets e-book information displaying and ask Corresponding e-book information is sought, and e-book information is not out of date e-book information (since e-book information exists as made Person has updated situations such as new chapters and sections, e-book price adjustment, e-book information be not it is unalterable, therefore, deposited in caching The e-book information of storage be also required to it is corresponding be updated, it is general slow to the e-book information of storage setting caching expired time Depositing expired time will not be too long, the e-book information for avoiding e-book information caused by overlong time and actual database from storing Inconsistent situation.It is preferable to use not out of date e-book informations for the e-book information stored in the caching of acquisition).Wherein, it looks into It askes in caching and whether is stored with not out of date e-book information, specifically, being received such as the displaying request of response e-book information Displaying request to show the e-book information to finish request, execute the instruction of e-book that inquiry finishes in the buffer, obtain The e-book information finish and not out of date whether stored in caching, if so, step S103 is executed, if it is not, executing step S104。
Step S103 obtains the electronics letter of specified quantity from not out of date e-book information stored in caching Breath, and client is returned to, so that client is shown.
When being stored with not out of date e-book information in caching, the stored not out of date electronics directly from caching The e-book information for showing specified quantity in request is obtained in letter breath, e-book information is returned into client, by client It is shown.The quantity of the e-book information generally stored in the buffer, which can be greater than or equal to, shows specified quantity in request, this Sample ensure that the available e-book information to specified quantity when obtaining e-book information from caching.From caching When obtaining the e-book information of specified quantity in the not out of date e-book information of storage, selection specified quantity that can be random E-book information return to client.
Since the quantity of the e-book information stored in caching can be far smaller than the quantity of e-book information in database, The quantitative levels of the two are different, can be significantly faster than from the speed for directly acquiring e-book information in caching and obtain from database The speed of e-book information can greatly promote the response speed of the displaying request issued to client, obtain user more preferably User experience.
Step S104, if caching in it is not stored have e-book information or be stored with have expired e-book information, will be electric The displaying request of philosophical works information passes to backstage.
Step S105 searches the e-book information of preset quantity, by the electricity of preset quantity from the stored data in backstage In philosophical works information write-in caching.
Step S106, obtains the e-book information of specified quantity from the e-book information of preset quantity, and returns to visitor Family end, so that client is shown.
When in caching it is not stored have e-book information when, alternatively, being stored with e-book information, but the e-book information is It is such as received to show request to show the e-book information to finish request, the electricity for not having storage to finish in query caching when expired Philosophical works information, or inquire in caching and be stored with the e-book information to finish, but further confirm that the e-book information to finish To have expired e-book information etc. for current time, at this point, displaying request institute cannot be directly obtained from caching Corresponding e-book information needs the displaying of e-book information requesting transparent transmission, passes to backstage, from the database on backstage or The e-book information of preset quantity corresponding with request is shown is found in the data file that person pre-generates.Also, it will look into It the e-book information of the preset quantity found while being written in caching, it is convenient directly to search e-book from caching next time Information.From the e-book information for showing specified quantity in request is obtained in the e-book information of preset quantity, by e-book information Client is returned to, is shown by client.
Wherein, preset quantity is greater than or equal to the specified quantity shown in request.Refer to when preset quantity is greater than or equal to When fixed number amount, it is ensured that show that request can obtain the e-book information of enough specified quantities every time.Further, present count When amount is greater than specified quantity, if preset quantity is 6, specified quantity 3, when receive repeatedly show request when, it is corresponding can be with It obtains 3 different e-book informations every time from 6 e-book informations and returns to client, with the electricity for showing client different Philosophical works information improves the exposure of different e-book, enriches the range of choice of client.
The dynamic of the merchandise news provided according to the present invention shows method, receives the e-book information that client issues Show request;It is requested according to the displaying of e-book information, whether is stored with not out of date e-book information in query caching;If It is the e-book information of specified quantity to be obtained from not out of date e-book information stored in caching, and return to client End, so that client is shown.The present invention can use buffer memory e-book information, receive e-book information After showing request, the not out of date e-book information of specified quantity is obtained from caching, on the one hand, reduce looking into for server receiving Pressure is ask, is shown according to the e-book information stored in the buffer in advance;On the other hand improving client gets electricity The speed that philosophical works information is shown gives the preferable user experience of user.Further, the e-book information stored in caching is not It is that permanent set is constant, e-book information has expired time.Ensured in this way caching in store e-book information when Effect property, will not and practical e-book information there are deviations.Meanwhile different e-book informations can be stored every time in the buffer, Client is facilitated to show that different e-book informations to user, improves the exposure of different e-book.
Embodiment two
Fig. 2 shows the flow charts that the dynamic of according to embodiments of the present invention two merchandise news shows method, such as Fig. 2 institute Show, the dynamic of merchandise news shows method and includes the following steps:
Step S201 establishes the server cluster comprising multiple servers.
The server cluster comprising multiple servers is established, the pressure that server side is born can be alleviated, is shunted The request that client is initiated.A Linux virtual server (Linux Virtual Server, abbreviation LVS) is such as established, Linux virtual server is a virtual server cluster system, using IP load-balancing technique and based on content requests point Hair technology has good throughput, the request that client is sent can be balancedly transferred on different servers and be executed, And automatic shield falls the failure of server, and multiple servers are constituted high performance, High Availabitity a virtual server.
What step S202, reception client access e-book site home page or the e-book website list page were issued The displaying of e-book information is requested.
For e-book, each list page of e-book site home page or e-book website is that user clicks are most The page, in the exposure rate highest of the e-book information of each list page presentation of e-book site home page or e-book website, most It is easily browsed to, and then is easily selected by a user by user.Not using each list web page recommendation of e-book site home page or e-book website Same e-book information, can improve the exposure of more e-book on a large scale, increase the reading quantity of e-book.Therefore, In the displaying request for receiving the e-book information that client issues, it is preferred that receive client and access e-book site home page Or the displaying request of the e-book information that is issued of the e-book website list page, response show that request carries out subsequent processing.
Step S203 specifies any server using load dispatcher, to obtain the displaying request of e-book information.
It is requested according to showing, using the load dispatcher of server cluster, using IP load-balancing technique and is based on content Request distribution technology, specify multiple servers in any server, come obtain e-book information displaying request, to its into Row response processing.
Specifically, as may include 100 e-book in the list of e-book website, every time e-book site home page only The e-book information for showing 3 e-book in list needs every time from randomly selecting 3 electricity in database in 100 e-book The e-book information of the philosophical works returns to client and is shown.When the e-book that list includes is more, every time from data The time that library is randomly selected can be longer, and the pressure of server can be bigger.When using a server, a server Caching can store 6 e-book informations, from 6 e-book informations obtain 3 e-book informations return to client into Row is shown.But 6 compared with 100 e-book quantity of list, also far from enough, also have many e-book and are not opened up Show, must need to access database, obtains more different e-book informations.And the caching of a server is limited, it cannot Store more e-book informations.Different e-book informations can be wherein being stored using the caching of multiple servers, every 6 different e-book informations of buffer memory of server can store this e-book of 6*9=54 in the caching of 9 servers Information is far longer than the quantity of the e-book information stored in a server buffer.Repeatedly receiving client transmission in this way The e-book information that is issued of access e-book site home page displaying request when, can be referred to every time using load dispatcher Fixed different server, which obtains, shows request, returns to e-book information different in server buffer, preferably improves in list The exposure rate of different e-book also reduces the number of frequently access database.And e-book is directly acquired from server buffer Information more greatly improves the acquisition speed of e-book, improves the response speed to client.Alternatively, for e-book website list Single-page, one page can not show e-book information all in list, can will be from database when needing Pagination Display The e-book information in not same page obtained is stored in the caching of different server, according to information is shown, specifies corresponding clothes Business device, corresponding e-book information is obtained from caching, returns to client, so that client is shown.It both mentions in this way Height promotes customer experience effect, and can alleviate server stress to the response speed of client.
Step S204 judges whether the e-book information that storage can be obtained from caching.
It goes to obtain e-book information from server buffer, it, can be from caching if being stored with e-book information in caching Get e-book information.If step S206 is executed, by the displaying of e-book information without storage e-book information in caching Request passes to background data base.
Further, when getting e-book information, it is also necessary to judge whether current time exceeds the slow of e-book information Deposit expired time.Specifically, since there may be variations, such as e-book price to be promoted for e-book information, promotion period electronics The price of book and the price of the e-book outside promotion period are inconsistent.Therefore, when storing e-book information in the buffer, can be arranged The caching expired time of e-book information will not be stored in once for a long time from the e-book information that database obtains slow In depositing, e-book information has been updated in database to avoid occurring, and the e-book information and database that store in caching are long Phase inconsistent situation.After the e-book information for obtaining storage in caching, judge whether current time exceeds e-book information Caching expired time, if judging, current time is not above the caching expired time of e-book information, can determine in caching It is stored with not out of date e-book information, step S205 is executed, e-book information can be obtained directly from caching and return to visitor Family end.If judging, current time is more than the caching expired time of e-book information, executes step S206.
Step S205 obtains the electronics of specified quantity at random from not out of date e-book information stored in caching Letter breath, and client is returned to, so that client is shown.
When being stored with not out of date e-book information in caching, the stored not out of date electronics directly from caching Random acquisition shows the e-book information of specified quantity in request in letter breath, and e-book information is returned to client, by Client is shown.Herein, the quantity of the e-book information stored in caching is far smaller than the e-book stored in database Quantity, directly random acquisition e-book information, speed obtain specified number at random significantly faster than from database from caching The speed of the e-book information of amount greatly promotes the response speed of the displaying request issued to client, obtains user more preferably User experience.
The displaying request of e-book information is passed to backstage by step S206.
Step S207 searches the e-book information of preset quantity, by the electricity of preset quantity from the stored data in backstage It in philosophical works information write-in caching, and is the e-book information of preset quantity setting caching expired time.
Step S208, obtains the e-book information of specified quantity from the e-book information of preset quantity, and returns to visitor Family end, so that client is shown.
When in caching it is not stored have e-book information when, cannot alternatively, storage is when having plenty of expired e-book information It is directly obtained the e-book information for showing that request is corresponding from caching, needs the displaying of e-book information requesting transparent transmission, Background data base is passed to, is found from background data base or pre-generated data file corresponding with request is shown The e-book information of preset quantity.Herein, preferably preset quantity is greater than specified quantity so that it is convenient to subsequent from preset quantity When the e-book information of acquisition specified quantity that can be random in e-book information, the e-book obtained at random every time can be made There is difference in information, client can show that different e-book informations is checked to user, avoid client from showing every time identical E-book information to user, lead to the problem of other e-book exposure deficiencies.
After the e-book information for finding preset quantity corresponding with request is shown, by the preset quantity found E-book information is written in caching simultaneously, convenient directly to search e-book information from caching next time, and is present count The e-book information setting caching expired time of amount.It is obtained from the e-book information of preset quantity and shows request middle finger fixed number E-book information is returned to client, is shown by client by the e-book information of amount.
The dynamic of the merchandise news provided according to the present invention shows method, establishes the server set comprising multiple servers Group specifies any server to respond the displaying request that client is sent using load dispatcher.Multiple servers caching The different e-book information of middle storage, can store more e-book informations in the buffer, so that random obtain returns to visitor The e-book information result at family end is more different, and reduce frequently access database obtain e-book information spent when Between, number, improve to the response speed of client, promote customer experience effect, also alleviate server stress significantly.
Embodiment three
The embodiment of the present application three provides a kind of nonvolatile computer storage media, and computer storage medium is stored with The dynamic of the merchandise news in above-mentioned any means embodiment can be performed in an at least executable instruction, the computer executable instructions State shows method.
Executable instruction specifically can be used for so that processor executes following operation:
Receive the displaying request for the merchandise news that client issues;
It is requested according to the displaying of merchandise news, whether is stored with not out of date merchandise news in query caching;
If so, obtaining the merchandise news of specified quantity from not out of date merchandise news stored in caching, and return To client, so that client is shown.
In a kind of optional embodiment, executable instruction further makes processor execute following operation: if in caching It is not stored have merchandise news or be stored with have expired merchandise news, the displaying of merchandise news request is passed into backstage;From The merchandise news for searching preset quantity in stored data from the background, will be in the merchandise news write-in caching of preset quantity;From pre- If obtaining the merchandise news of specified quantity in the merchandise news of quantity, and client is returned to, so that client is shown; Wherein, preset quantity is greater than or equal to specified quantity.
In a kind of optional embodiment, executable instruction further makes processor execute following operation: by present count It in the merchandise news write-in caching of amount, and is the merchandise news of preset quantity setting caching expired time.
In a kind of optional embodiment, executable instruction further makes processor execute following operation: if in caching It is stored with merchandise news, judges whether current time exceeds the caching expired time of merchandise news;If not, it is determined that in caching It is stored with not out of date merchandise news.
In a kind of optional embodiment, executable instruction further makes processor execute following operation: from caching The merchandise news of specified quantity is obtained in stored not out of date merchandise news at random.
In a kind of optional embodiment, executable instruction further makes processor execute following operate: foundation includes The server cluster of multiple servers;Any server is specified using load dispatcher, is asked with obtaining the displaying of merchandise news It asks.
In a kind of optional embodiment, merchandise news is e-book information.
In a kind of optional embodiment, executable instruction further makes processor execute following operation: receiving client The displaying request for the e-book information that end access e-book site home page or the e-book website list page are issued.
Example IV
Fig. 3 shows the structural schematic diagram of according to embodiments of the present invention four a kind of electronic equipment, present invention specific implementation Example does not limit the specific implementation of electronic equipment.
As shown in figure 3, the electronic equipment may include: processor (processor) 302, communication interface (Communications Interface) 304, memory (memory) 306 and communication bus 308.
Wherein:
Processor 302, communication interface 304 and memory 306 complete mutual communication by communication bus 308.
Communication interface 304, for being communicated with the network element of other equipment such as client or other servers etc..
Processor 302, for executing program 310, the dynamic that can specifically execute above-mentioned merchandise news shows method implementation Correlation step in example.
Specifically, program 310 may include program code, which includes computer operation instruction.
Processor 302 may be central processor CPU or specific integrated circuit ASIC (Application Specific Integrated Circuit), or be arranged to implement the embodiment of the present invention one or more it is integrated Circuit.The one or more processors that server includes can be same type of processor, such as one or more CPU;? It can be different types of processor, such as one or more CPU and one or more ASIC.
Memory 306, for storing program 310.Memory 306 may include high speed RAM memory, it is also possible to also wrap Include nonvolatile memory (non-volatile memory), for example, at least a magnetic disk storage.
Program 310 specifically can be used for so that processor 302 executes following operation:
In a kind of optional embodiment, program 310 is used for so that processor 302 receives the commodity that client issues The displaying of information is requested;It is requested according to the displaying of merchandise news, whether is stored with not out of date merchandise news in query caching; If so, obtaining the merchandise news of specified quantity from not out of date merchandise news stored in caching, and return to client End, so that client is shown.
In a kind of optional embodiment, if program 310 is used for so that not stored in the caching of processor 302 have commodity Information is stored with and has expired merchandise news, and the displaying request of merchandise news is passed to backstage;It is stored from backstage The merchandise news that preset quantity is searched in data, will be in the merchandise news write-in caching of preset quantity;From the commodity of preset quantity The merchandise news of specified quantity is obtained in information, and returns to client, so that client is shown;Wherein, preset quantity More than or equal to specified quantity.
In a kind of optional embodiment, program 310 is used for so that processor 302 is by the merchandise news of preset quantity It in write-in caching, and is the merchandise news of preset quantity setting caching expired time.
In a kind of optional embodiment, if being stored with merchandise news in caching, program 310 is used for so that processor 302 judge whether current time exceeds the caching expired time of merchandise news;If not, it is determined that be stored in caching not out of date Merchandise news.
In a kind of optional embodiment, program 310 is used for so that the stored non-mistake from caching of processor 302 The merchandise news of specified quantity is obtained in the merchandise news of phase at random.
In a kind of optional embodiment, program 310 is used for so that processor 302 is established comprising multiple servers Server cluster;Any server is specified using load dispatcher, to obtain the displaying request of merchandise news.
In a kind of optional embodiment, merchandise news is e-book information.
In a kind of optional embodiment, program 310 is used for so that processor 302 receives client and accesses e-book The displaying for the e-book information that site home page or the e-book website list page are issued is requested.
The dynamic that the specific implementation of each step may refer to above-mentioned merchandise news in program 310 shows the phase in embodiment Corresponding description in step is answered, this will not be repeated here.It is apparent to those skilled in the art that for the side of description Just and succinctly, the specific work process of the equipment and module of foregoing description, can be with reference to corresponding in preceding method embodiment Journey description, details are not described herein.
The scheme provided through this embodiment receives the displaying request for the merchandise news that client issues;Believed according to commodity The displaying of breath is requested, and whether is stored with not out of date merchandise news in query caching;If so, the stored non-mistake from caching The merchandise news of specified quantity is obtained in the merchandise news of phase, and returns to client, so that client is shown.This hair It is bright to can use buffer memory merchandise news, after the displaying request for receiving merchandise news, specified quantity is obtained from caching Not out of date merchandise news, on the one hand, reduce server bear inquiry pressure, according to the quotient stored in the buffer in advance Product information is shown;On the other hand improving client gets the speed that merchandise news is shown, preferable to user User experience.Further, the merchandise news stored in caching is not that permanent set is constant, when merchandise news has expired Between.Ensured the timeliness of merchandise news stored in caching in this way, will not and actuals information there are deviations.Meanwhile it can To store different merchandise news every time in the buffer, client is facilitated to show that different merchandise news to user, improves different The exposure of e-book.
In the instructions provided here, numerous specific details are set forth.It is to be appreciated, however, that implementation of the invention Example can be practiced without these specific details.In some instances, well known method, knot is not been shown in detail Structure and technology, so as not to obscure the understanding of this specification.
Similarly, it should be understood that in order to simplify the disclosure and help to understand one or more of the various inventive aspects, In the above description of the exemplary embodiment of the present invention, each feature of the invention is grouped together into single reality sometimes It applies in example, figure or descriptions thereof.However, the disclosed method should not be interpreted as reflecting the following intention: being wanted Ask protection the present invention claims features more more than feature expressly recited in each claim.More precisely, such as As following claims reflect, inventive aspect is all features less than single embodiment disclosed above. Therefore, it then follows thus claims of specific embodiment are expressly incorporated in the specific embodiment, wherein each right It is required that itself is all as a separate embodiment of the present invention.
Those skilled in the art will understand that adaptivity can be carried out to the module in the equipment in embodiment Ground changes and they is arranged in one or more devices different from this embodiment.It can be the module in embodiment Or unit or assembly is combined into a module or unit or component, and furthermore they can be divided into multiple submodule or sons Unit or sub-component.It, can be with other than such feature and/or at least some of process or unit exclude each other Using any combination to all features disclosed in this specification (including adjoint claim, abstract and attached drawing) and such as All process or units of any method or apparatus of the displosure are combined.Unless expressly stated otherwise, this specification Each feature disclosed in (including the accompanying claims, abstract and drawings) can be by providing identical, equivalent, or similar mesh Alternative features replace.
In addition, it will be appreciated by those of skill in the art that although some embodiments described herein include other embodiments In included certain features rather than other feature, but the combination of the feature of different embodiments means in the present invention Within the scope of and form different embodiments.For example, in the following claims, embodiment claimed It is one of any can in any combination mode come using.
It should be noted that the above-mentioned embodiments illustrate rather than limit the invention, and this Field technical staff can be designed alternative embodiment without departing from the scope of the appended claims.In claim In, any reference symbol between parentheses should not be configured to limitations on claims.Word "comprising" is not excluded for depositing In element or step not listed in the claims.Word "a" or "an" located in front of the element does not exclude the presence of multiple Such element.The present invention can be by means of including the hardware of several different elements and by means of properly programmed calculating Machine is realized.The use of word first, second, and third does not indicate any sequence.These words can be explained and be run after fame Claim.

Claims (21)

1. a kind of dynamic of merchandise news shows method comprising:
Establish the server cluster comprising multiple servers;
Receive the displaying request for the merchandise news that client issues;
Any server is specified using load dispatcher, to obtain the displaying request of the merchandise news;Wherein, multiple servers Caching in store different merchandise news, the load dispatcher specifies different servers every time;
It is requested according to the displaying of merchandise news, whether is stored with not out of date merchandise news in query caching;
If so, obtaining the merchandise news of specified quantity from not out of date merchandise news stored in caching, and return to visitor Family end, so that client is shown.
2. according to the method described in claim 1, wherein, the method also includes:
If in caching it is not stored have merchandise news or be stored with have expired merchandise news, the displaying of merchandise news is requested to pass Pass backstage;
Caching is written in the merchandise news of preset quantity by the merchandise news that preset quantity is searched from the stored data in backstage In;
The merchandise news that specified quantity is obtained from the merchandise news of preset quantity, and returns to client, for client into Row is shown;Wherein, the preset quantity is greater than or equal to the specified quantity.
3. according to the method described in claim 2, wherein, in the merchandise news for searching preset quantity from background data base Later, the method also includes:
The merchandise news of the preset quantity is written in caching, and expired for the merchandise news of preset quantity setting caching Time.
4. according to the method described in claim 3, wherein, in the query caching whether be stored with not out of date merchandise news into One step includes:
If being stored with merchandise news in caching, judge whether current time exceeds the caching expired time of merchandise news;If it is not, then It determines and is stored with not out of date merchandise news in the caching.
5. method according to any of claims 1-4, wherein the not out of date commodity stored from caching The merchandise news of specified quantity is obtained in information specifically: obtain at random from not out of date merchandise news stored in caching The merchandise news of specified quantity.
6. method according to any of claims 1-4, wherein the merchandise news is e-book information.
7. according to the method described in claim 6, wherein, the displaying request for receiving the merchandise news that client issues is specific Are as follows: receive client access e-book site home page or the displaying of e-book information that the e-book website list page is issued Request.
8. a kind of electronic equipment, comprising: processor, memory, communication interface and communication bus, the processor, the storage Device and the communication interface complete mutual communication by the communication bus;
The memory makes the processor execute following behaviour for storing an at least executable instruction, the executable instruction Make:
Establish the server cluster comprising multiple servers;Receive the displaying request for the merchandise news that client issues;
Any server is specified using load dispatcher, to obtain the displaying request of the merchandise news;Wherein, multiple servers Caching in store different merchandise news, the load dispatcher specifies different servers every time;
It is requested according to the displaying of merchandise news, whether is stored with not out of date merchandise news in query caching;
If so, obtaining the merchandise news of specified quantity from not out of date merchandise news stored in caching, and return to visitor Family end, so that client is shown.
9. electronic equipment according to claim 8, the executable instruction further makes the processor execute following behaviour Make:
If in caching it is not stored have merchandise news or be stored with have expired merchandise news, the displaying of merchandise news is requested to pass Pass backstage;
Caching is written in the merchandise news of preset quantity by the merchandise news that preset quantity is searched from the stored data in backstage In;
The merchandise news that specified quantity is obtained from the merchandise news of preset quantity, and returns to client, for client into Row is shown;Wherein, the preset quantity is greater than or equal to the specified quantity.
10. electronic equipment according to claim 9, the executable instruction further makes the processor execute following behaviour Make:
The merchandise news of the preset quantity is written in caching, and expired for the merchandise news of preset quantity setting caching Time.
11. electronic equipment according to claim 10, wherein the executable instruction further executes the processor It operates below:
If being stored with merchandise news in caching, judge whether current time exceeds the caching expired time of merchandise news;If it is not, then It determines and is stored with not out of date merchandise news in the caching.
12. the electronic equipment according to any one of claim 8-11, the executable instruction further make the processing Device executes following operation:
Obtain the merchandise news of specified quantity at random from not out of date merchandise news stored in caching.
13. the electronic equipment according to any one of claim 8-11, the merchandise news is e-book information.
14. electronic equipment according to claim 13, it is following that the executable instruction further executes the processor Operation:
The exhibition for the e-book information that reception client access e-book site home page or the e-book website list page are issued Show request.
15. a kind of computer storage medium, an at least executable instruction, the executable instruction are stored in the storage medium Processor is set to execute following operation:
Establish the server cluster comprising multiple servers;
Receive the displaying request for the merchandise news that client issues;
Any server is specified using load dispatcher, to obtain the displaying request of the merchandise news;Wherein, multiple servers Caching in store different merchandise news, the load dispatcher specifies different servers every time;
It is requested according to the displaying of merchandise news, whether is stored with not out of date merchandise news in query caching;
If so, obtaining the merchandise news of specified quantity from not out of date merchandise news stored in caching, and return to visitor Family end, so that client is shown.
16. computer storage medium according to claim 15, the executable instruction further execute processor with Lower operation:
If in caching it is not stored have merchandise news or be stored with have expired merchandise news, the displaying of merchandise news is requested to pass Pass backstage;
Caching is written in the merchandise news of preset quantity by the merchandise news that preset quantity is searched from the stored data in backstage In;
The merchandise news that specified quantity is obtained from the merchandise news of preset quantity, and returns to client, for client into Row is shown;Wherein, the preset quantity is greater than or equal to the specified quantity.
17. computer storage medium according to claim 16, the executable instruction further execute processor with Lower operation:
The merchandise news of the preset quantity is written in caching, and expired for the merchandise news of preset quantity setting caching Time.
18. computer storage medium according to claim 17, wherein the executable instruction further holds processor The following operation of row:
If being stored with merchandise news in caching, judge whether current time exceeds the caching expired time of merchandise news;If it is not, then It determines and is stored with not out of date merchandise news in the caching.
19. computer storage medium described in any one of 5-18 according to claim 1, the executable instruction further makes to locate It manages device and executes following operation:
Obtain the merchandise news of specified quantity at random from not out of date merchandise news stored in caching.
20. computer storage medium described in any one of 5-18 according to claim 1, the merchandise news is electronics letter Breath.
21. computer storage medium according to claim 20, the executable instruction further execute processor with Lower operation:
The exhibition for the e-book information that reception client access e-book site home page or the e-book website list page are issued Show request.
CN201711243794.4A 2017-11-30 2017-11-30 The dynamic of merchandise news shows method, electronic equipment, storage medium Active CN107908775B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711243794.4A CN107908775B (en) 2017-11-30 2017-11-30 The dynamic of merchandise news shows method, electronic equipment, storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711243794.4A CN107908775B (en) 2017-11-30 2017-11-30 The dynamic of merchandise news shows method, electronic equipment, storage medium

Publications (2)

Publication Number Publication Date
CN107908775A CN107908775A (en) 2018-04-13
CN107908775B true CN107908775B (en) 2019-04-09

Family

ID=61848164

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711243794.4A Active CN107908775B (en) 2017-11-30 2017-11-30 The dynamic of merchandise news shows method, electronic equipment, storage medium

Country Status (1)

Country Link
CN (1) CN107908775B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110276032A (en) * 2019-06-26 2019-09-24 深圳市迅雷网络技术有限公司 Information data acquisition methods, device, system and computer storage medium to be presented
CN110502696A (en) * 2019-08-05 2019-11-26 上海掌门科技有限公司 A kind of method and apparatus of information stream distribution
CN112418990A (en) * 2020-11-23 2021-02-26 北京每日优鲜电子商务有限公司 Article information page generation method and device, electronic equipment and medium

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101090401A (en) * 2007-05-25 2007-12-19 金蝶软件(中国)有限公司 Data buffer store method and system at duster environment
CN101257485A (en) * 2007-03-02 2008-09-03 华为技术有限公司 Web applied system and method

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6108655A (en) * 1996-07-19 2000-08-22 Cisco Technology, Inc. Method and apparatus for transmitting images and other objects over a computer network system
CN102541918A (en) * 2010-12-30 2012-07-04 阿里巴巴集团控股有限公司 Method and equipment for identifying repeated information
CN104599153B (en) * 2014-08-29 2017-02-22 腾讯科技(深圳)有限公司 Commodity recommendation method, commodity recommendation server and commodity recommendation terminal
CN106878406B (en) * 2017-02-07 2020-10-09 腾讯科技(深圳)有限公司 Information sharing method, device and system
CN107230137A (en) * 2017-05-31 2017-10-03 北京小米移动软件有限公司 Merchandise news acquisition methods and device

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101257485A (en) * 2007-03-02 2008-09-03 华为技术有限公司 Web applied system and method
CN101090401A (en) * 2007-05-25 2007-12-19 金蝶软件(中国)有限公司 Data buffer store method and system at duster environment

Also Published As

Publication number Publication date
CN107908775A (en) 2018-04-13

Similar Documents

Publication Publication Date Title
US10353893B2 (en) Data partitioning and ordering
CN110062924B (en) Capacity reservation for virtualized graphics processing
US11004016B2 (en) Query-based identifiers for cross-session response tracking
US8306971B2 (en) Methods and systems of automatically geocoding a dataset for visual analysis
US9875272B1 (en) Method and system for designing a database system for high event rate, while maintaining predictable query performance
CN108737325A (en) A kind of multi-tenant data partition method, apparatus and system
US9934202B1 (en) Managing paginated data
US9742860B2 (en) Bi-temporal key value cache system
CN104572968B (en) A kind of method for updating pages and device
CN107908775B (en) The dynamic of merchandise news shows method, electronic equipment, storage medium
US11126641B2 (en) Optimized data distribution system
CN107797834A (en) Page generation method, device and the equipment of logistical applications
CA3154763A1 (en) Data operation method, device and system
JP2015528606A (en) Method and apparatus for responding to web page access request
JP2024001260A (en) Index data structures and graphical user interface
CN113761003A (en) User portrait data processing method and device, electronic equipment and readable storage medium
US20200050785A1 (en) Database record access through use of a multi-value alternate primary key
CN113330432A (en) Asynchronous predictive caching of content listed in search results
CN102236673B (en) AJAX (Asynchronous JavaScript and XML)-based resource multi-page distribution method
CN109344353B (en) Configurable local cache refreshing method and terminal
US8479222B2 (en) Simplifying interaction with multiple applications when using forms via a common interface
US11023098B2 (en) Rendering on a mobile device
CN114371969A (en) Page performance testing method and device, electronic equipment and storage medium
EP4260208A1 (en) Determination of result data for small multiples based on subsets of a data set
US20160314198A1 (en) Data resolution within search results from a hierarchically associated database

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

Effective date of registration: 20220705

Address after: 518054-13098, 13th floor, main tower of marine center, No. 59, Linhai Avenue, Qianhai Shenzhen Hong Kong cooperation zone, Shenzhen, Guangdong

Patentee after: Shenzhen ZhangYue Animation Technology Co.,Ltd.

Address before: 100124 2029e, Sihui building, Chaoyang District, Beijing

Patentee before: ZHANGYUE TECHNOLOGY Co.,Ltd.