CN106709071A - Network transaction processing method and apparatus - Google Patents

Network transaction processing method and apparatus Download PDF

Info

Publication number
CN106709071A
CN106709071A CN201710063694.7A CN201710063694A CN106709071A CN 106709071 A CN106709071 A CN 106709071A CN 201710063694 A CN201710063694 A CN 201710063694A CN 106709071 A CN106709071 A CN 106709071A
Authority
CN
China
Prior art keywords
commodity
browsed
inventory information
cache
caching
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201710063694.7A
Other languages
Chinese (zh)
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 Xiaomi Mobile Software Co Ltd
Original Assignee
Beijing Xiaomi Mobile Software 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 Xiaomi Mobile Software Co Ltd filed Critical Beijing Xiaomi Mobile Software Co Ltd
Priority to CN201710063694.7A priority Critical patent/CN106709071A/en
Publication of CN106709071A publication Critical patent/CN106709071A/en
Pending legal-status Critical Current

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/27Replication, distribution or synchronisation of data between databases or within a distributed database system; Distributed database system architectures therefor
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/957Browsing optimisation, e.g. caching or content distillation
    • G06F16/9574Browsing optimisation, e.g. caching or content distillation of access to content, e.g. by caching
    • 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]
    • G06Q30/0641Shopping interfaces

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Business, Economics & Management (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Accounting & Taxation (AREA)
  • Finance (AREA)
  • General Engineering & Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Economics (AREA)
  • General Business, Economics & Management (AREA)
  • Strategic Management (AREA)
  • Marketing (AREA)
  • Development Economics (AREA)
  • Computing Systems (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The invention provides a network transaction processing method and apparatus. The network transaction processing method comprises the steps of receiving a commodity browsing request sent by a terminal, wherein the commodity browsing request comprises an identifier of a to-be-browsed commodity; obtaining pre-cached inventory information of the to-be-browsed commodity in a local inventory cache according to the commodity browsing request; and when caching time of the pre-cached inventory information of the to-be-browsed commodity does not exceed a preset caching duration, sending the pre-cached inventory information of the to-be-browsed commodity to the terminal. According to the method and the apparatus, the pre-cached inventory information in the local inventory cache can be directly adopted in a process of browsing commodities by a user, so that the workload of accessing a commodity database is greatly reduced, the inventory information feedback efficiency is improved, and crash of a server due to excessively large workload or update failure and data inaccuracy due to a huge number of accesses to the commodity database in a short time is avoided.

Description

Network trading processes method and device
Technical field
This disclosure relates to the communication technology, more particularly to a kind of network trading treatment method and device.
Background technology
Growing with network electronic commerce and internet, increasing user is bought by internet.
The general commodity by internet sales have certain stock, and server can update stock simultaneously according to the purchase of user User is shown to when user browses, it is to avoid user is also bought in no stock, finds do not have after being bought in user It is in stock to be accomplished by reimbursement or postpone delivery, cause being discontented with for user.
But, with increasing by Internet user, a large number of users may occur in the same time and access simultaneously or purchase Buy a certain product, delaying machine may occur stock and update failure even server in server.
The content of the invention
To overcome problem present in correlation technique, the disclosure to provide a kind of network trading treatment method and device.It is described Technical scheme is as follows:
According to the first aspect of the embodiment of the present disclosure, there is provided a kind of network trading processes method, including:
The goods browse request that receiving terminal sends, wherein, the goods browse request includes:The mark of commodity to be browsed Know;
Asked according to the goods browse, obtain the pre-cache stock letter of commodity to be browsed described in local inventory caching Breath;
Described when the cache-time of pre-cache inventory information of commodity is browsed without departing from preset buffer memory duration, will be described The pre-cache inventory information of commodity to be browsed is sent to the terminal.
The technical scheme provided by this disclosed embodiment can include the following benefits:The commodity that receiving terminal sends are clear Look at request, asked according to goods browse, obtain the pre-cache inventory information of commodity to be browsed in local inventory caching, treated above-mentioned When the cache-time for browsing the pre-cache inventory information of commodity caches duration without departing from budget, by the pre- slow of above-mentioned commodity to be browsed Deposit inventory information and be sent to terminal, it is achieved thereby that during user browses commodity, directly can be cached using local inventory In pre-cache inventory information, greatly reduce access merchandising database workload, improve inventory information feedback efficiency, Avoid server delayed because workload is excessive machine or merchandising database due in the short time visit capacity it is huge and cause more New failure and data are inaccurate.
Alternatively, it is described to be asked according to the goods browse, obtain the pre- of commodity to be browsed described in local inventory caching Before caching inventory information, also include:
It is determined that inquiring about business when the pre-cache inventory information of commodity is browsed in the absence of described in local inventory caching Product database, obtains the current inventory information of the commodity to be browsed;
The current inventory information of the commodity to be browsed is stored in the local inventory caching as the business to be browsed The pre-cache inventory information of product, and record storage duration.
Alternatively, the merchandising database is key assignments distributed storage system.
The technical scheme provided by this disclosed embodiment can include the following benefits:Using key assignments distributed storage system System storage commodity stocks information, data are stored in the middle of internal memory, and inquiry data and concurrent capability are strong, increase and decrease to data and are returned It is atomic operation to return current result, it is not necessary to which affairs ensure.
Alternatively, methods described also includes:
The goods purchase request that receiving terminal sends, the goods purchase request is used to ask the purchase business to be browsed Product;
According to the goods purchase request, send purchase response and update to terminal and treated described in the merchandising database Browse the current inventory information of commodity.
The technical scheme provided by this disclosed embodiment can include the following benefits:If user simply browses business Product, server just obtains the pre-cache inventory information of commodity to be browsed in local stock's caching, in local stock's caching Inventory information be typically all of short duration storage for a period of time, can reduce server access merchandising database frequency while Also certain stock's accuracy is taken into account.In user's actual purchase, in order to avoid there is purchase mistake, server can actual access Commodity server, obtains real-time inventory information, to ensure accurately to buy response message to user feedback, it is to avoid occur due to Inventory information is inaccurate to cause user to buy situations such as successfully but occurring in short supply.
Alternatively, methods described also includes:
According to the current inventory information of the commodity to be browsed, the instruction that begins to sell is sent to the terminal, wherein, it is described to begin to sell Instruct for instruction terminal and to be shown in preset time period and sell the current of the commodity to be browsed and the commodity to be browsed Inventory information.
The technical scheme provided by this disclosed embodiment can include the following benefits:It is a large amount of for being had in the short time Situation about browse, buying, server only needs to access merchandising database in purchase, greatly reduces the access work of server Amount, be better protected from server because workload is huge in the short time situation of machine of delaying.
According to the second aspect of the embodiment of the present disclosure, there is provided a kind of network trading processes device, including:
First receiver module, is configured as the goods browse request of receiving terminal transmission, wherein, the goods browse request Including:The mark of commodity to be browsed;
Acquisition module, is configured as being asked according to the goods browse, obtains business to be browsed described in local inventory caching The pre-cache inventory information of product;
First sending module, be configured as cache-time in the pre-cache inventory information of the commodity to be browsed without departing from During preset buffer memory duration, the pre-cache inventory information of the commodity to be browsed is sent to the terminal.
The technical scheme provided by this disclosed embodiment can include the following benefits:The commodity that receiving terminal sends are clear Look at request, asked according to goods browse, obtain the pre-cache inventory information of commodity to be browsed in local inventory caching, treated above-mentioned When the cache-time for browsing the pre-cache inventory information of commodity caches duration without departing from budget, by the pre- slow of above-mentioned commodity to be browsed Deposit inventory information and be sent to terminal, it is achieved thereby that during user browses commodity, directly can be cached using local inventory In pre-cache inventory information, greatly reduce access merchandising database workload, improve inventory information feedback efficiency, Avoid server delayed because workload is excessive machine or merchandising database due in the short time visit capacity it is huge and cause more New failure and data are inaccurate.
Alternatively, described device also includes:
Enquiry module, is configured as being asked according to the goods browse, obtains and waits to browse described in local inventory caching Before the pre-cache inventory information of commodity, it is determined that in the absence of the pre-cache of the commodity to be browsed in local inventory caching During inventory information, merchandising database is inquired about, obtain the current inventory information of the commodity to be browsed;
Memory module, is configured as being stored in the current inventory information of the commodity to be browsed in the local inventory caching As the pre-cache inventory information of the commodity to be browsed, and record storage duration.
Alternatively, the merchandising database is key assignments distributed storage system.
Alternatively, described device also includes:
Second receiver module, is configured as the goods purchase request of receiving terminal transmission, and the goods purchase request is used for The request purchase commodity to be browsed;
Respond module, is configured as according to the goods purchase request, sends purchase response to terminal and updates the business The current inventory information of commodity to be browsed described in product database.
Alternatively, described device also includes:
Second sending module, is configured as the current inventory information according to the commodity to be browsed, and is sent to the terminal Begin to sell instruction, wherein, it is described begin to sell instruction for instruction terminal show in preset time period sell described in commodity to be browsed, with And the current inventory information of the commodity to be browsed.
According to the third aspect of the embodiment of the present disclosure, there is provided a kind of network trading processes device, including:
Processor;Memory for storing executable instruction.
Wherein, the processor is configured as:
The goods browse request that receiving terminal sends, wherein, the goods browse request includes:The mark of commodity to be browsed Know;
Asked according to the goods browse, obtain the pre-cache stock letter of commodity to be browsed described in local inventory caching Breath;
Described when the cache-time of pre-cache inventory information of commodity is browsed without departing from preset buffer memory duration, will be described The pre-cache inventory information of commodity to be browsed is sent to the terminal.
It should be appreciated that the general description of the above and detailed description hereinafter are only exemplary and explanatory, not The disclosure can be limited.
Brief description of the drawings
Accompanying drawing herein is merged in specification and constitutes the part of this specification, shows the implementation for meeting the disclosure Example, and it is used to explain the principle of the disclosure together with specification.
Fig. 1 is a kind of structure of the implementation environment involved by the network order processing method provided according to the embodiment of the present disclosure Schematic diagram;
Fig. 2 is a kind of flow chart of network trading treatment method according to an exemplary embodiment;
Fig. 3 is a kind of flow chart of network trading treatment method according to another exemplary embodiment;
Fig. 4 is a kind of flow chart of network trading treatment method according to further example embodiment;
Fig. 5 is a kind of structural representation of network trading treatment device according to an exemplary embodiment;
Fig. 6 is a kind of structural representation of network trading treatment device according to another exemplary embodiment;
Fig. 7 is a kind of structural representation of network trading treatment device according to further example embodiment;
Fig. 8 is a kind of structural representation of network trading treatment device according to another exemplary embodiment;
Fig. 9 is a kind of structural representation of network trading treatment device according to another exemplary embodiment;
Figure 10 is a kind of block diagram of network trading treatment device 1000 according to an exemplary embodiment.
These accompanying drawings and word description are not intended to limit the scope that the disclosure is conceived by any mode, but pass through It is the concept that those skilled in the art illustrate the disclosure with reference to specific embodiment.
Specific embodiment
Here exemplary embodiment will be illustrated in detail, its example is illustrated in the accompanying drawings.Following description is related to During accompanying drawing, unless otherwise indicated, the same numbers in different accompanying drawings represent same or analogous key element.Following exemplary embodiment Described in implementation method do not represent all implementation methods consistent with the disclosure.Conversely, they be only with it is such as appended The example of the consistent apparatus and method of some aspects described in detail in claims, the disclosure.
Term " first ", " second " in the specification and claims of the disclosure etc. are similar right for distinguishing As without for describing specific order or precedence.It should be appreciated that so the data that use in the appropriate case can be with Exchange, so that embodiment of the disclosure described herein for example can be with suitable in addition to those for illustrating herein or describing Sequence is implemented.Additionally, term " comprising " and " having " and their any deformation, it is intended that covering is non-exclusive to be included, example Such as, process, method, system, product or the equipment for containing series of steps or unit are not necessarily limited to those clearly listed Step or unit, but may include not list clearly or for these processes, method, product or intrinsic other of equipment Step or unit.
Fig. 1 is refer to, a kind of implementation involved by the network order processing method provided it illustrates the embodiment of the present disclosure The structural representation of environment, the implementation environment includes terminal 11 and server 12.
Terminal 11 and server 12 are the electronic equipment that can enter row data communication.Wherein, terminal 11 can be intelligent hand Machine, Intelligent bracelet, intelligent watch, panel computer, computer etc.;Server 12 can be single server or server set Group, the disclosure is not limited.
Data channel can be only set up between mobile terminal 11 and server 12, it is also possible to while setting up voice channel and number According to passage.
Fig. 2 is a kind of flow chart of network trading treatment method according to an exemplary embodiment.The present embodiment is carried Method is processed for a kind of network trading, the method is based on server side, can process device by network trading to perform, the network Traction processing apparatus can be realized by way of hardware and/or software, and network trading treatment device can for server or It is integrated in server.As shown in Fig. 2 the method is comprised the following steps:
In step 201, the goods browse request that receiving terminal sends.
Wherein, mark of the goods browse request including commodity to be browsed.
In actual applications, user can pass through internet browsing extensive stock in terminal, specifically, in terminal can be with Various shopping application programs are installed in advance, after user opens shopping application program, the breviary information of some commodity, example can be shown Such as:Exhibiting pictures, price etc., when user clicks on breviary information, terminal can send goods browse and ask to server.
In step 202., asked according to goods browse, obtain the pre-cache stock of commodity to be browsed in local inventory caching Information.
In the embodiment of the present disclosure, server obtains the pre-cache stock letter of commodity to be browsed in local stock's caching Breath, all remotely obtains merchandising database real-time stock when without each user's browsing pages, reduce merchandising database Access, also reduce the workload of server.
In step 203, the cache-time in the pre-cache inventory information of above-mentioned commodity to be browsed is cached without departing from budget During duration, the pre-cache inventory information of above-mentioned commodity to be browsed is sent to terminal.
After server receives goods browse request, the detailed page of commodity to be browsed can be jumped to instruction terminal side, together When the pre-cache inventory information of commodity to be browsed is sent to terminal, so as to can believe comprising stock on the detailed page that shows of terminal Breath.
In order to also can as far as possible ensure the accuracy of inventory information while processor workload is saved, the disclosure is implemented In example, set preset buffer memory duration, the pre-cache inventory information in local inventory caching since being stored in local inventory and caching, In preset buffer memory duration effectively, merchandising database is otherwise needed to reacquire, if the pre-cache stock letter of commodity to be browsed The cache-time of breath is without departing from preset buffer memory duration, it is possible to issues terminal and is shown.If the pre-cache storehouse of commodity to be browsed Beyond preset buffer memory duration, server can again access merchandising database to stored cache-time, and acquisition treats clear Look at the current inventory information of commodity, and then be then forwarded to terminal.
In sum, in the network trading treatment method that the present embodiment is provided, the goods browse request that receiving terminal sends, Asked according to goods browse, the pre-cache inventory information of commodity to be browsed in local inventory caching is obtained, in above-mentioned business to be browsed When the cache-time of the pre-cache inventory information of product caches duration without departing from budget, by the pre-cache stock of above-mentioned commodity to be browsed Information is sent to terminal, it is achieved thereby that during user browses commodity, can directly using pre- in local inventory caching Caching inventory information, greatly reduces the workload for accessing merchandising database, improves inventory information feedback efficiency, it also avoid Server due to workload it is excessive and delay machine or merchandising database due in the short time visit capacity it is huge and cause to update and fail And data are inaccurate.
Alternatively, on the basis of above-described embodiment, server can periodically access merchandising database and obtain each The current inventory information of commodity, and update the pre-cache inventory information in local inventory caching.
In another way, whether server can be deposited after goods browse request is received in inquiry local inventory caching In the pre-cache inventory information of commodity to be browsed, whether surpass if the cache-time that pre-cache inventory information is determined whether in the presence of if Go out preset buffer memory duration;The current inventory information of commodity to be browsed is obtained if the access merchandising database in the absence of if.
Fig. 3 is a kind of flow chart of network trading treatment method according to another exemplary embodiment, in step 202 Before, can also include:
In step 301, it is determined that in the absence of the pre-cache inventory information of above-mentioned commodity to be browsed in local inventory caching When, merchandising database is inquired about, obtain the current inventory information of the commodity to be browsed.
Usually, if above-mentioned commodity to be browsed are browsed for the first time, wait to browse in the absence of above-mentioned in local inventory caching The pre-cache inventory information of commodity.It is likely to above-mentioned when the pre-cache inventory information for browsing commodity is cached during local inventory is cached Between exceeded preset buffer memory duration, being serviced device is removed, thus local inventory caching in do not exist above-mentioned commodity to be browsed Pre-cache inventory information.
In step 302, the current inventory information of above-mentioned commodity to be browsed is stored in clear as treating in local inventory caching Look at the pre-cache inventory information of commodity, and record storage duration.
Alternatively, above-mentioned preset buffer memory duration can be a shorter ground time period, and commodity are can contemplate during specific setting Browse the parameters such as temperature, offtake.
Alternatively, in the embodiment of the present disclosure, merchandising database is key assignments distributed storage system.
In general, load capacity is considerably beyond general data storehouse, and its response time is also small for key assignments distributed storage system In general data storehouse.It is existing that for storing, the general concurrent capability of the database of commodity stocks information is weak, inquiry velocity is slow.
Commodity stocks information is stored using key assignments distributed storage system, data are stored in the middle of internal memory, inquiry data and Concurrent capability is strong, increase and decrease to data and to return to current result be atomic operation, it is not necessary to which affairs ensure.
Fig. 4 is a kind of flow chart of network trading treatment method according to further example embodiment.General user Can first be browsed to wishing the commodity of purchase, if meet the purchase of oneself expected, can be placed an order by internet and be purchased Buy.
On the basis of above-described embodiment, the method also includes:
In step 401, the goods purchase request that receiving terminal sends.
The goods purchase request is used to ask the above-mentioned commodity to be browsed of purchase.
When implementing, the control for buying the commodity is had on the browsing pages of above-mentioned commodity to be browsed, after user clicks on Into purchase page, the purchase information of some correlations is filled in, for example:Quantity purchase, ship-to, contact method etc., have filled in Submit order after finishing to, terminal will send goods purchase request as server.
The sequence information that the mark and user that can include above-mentioned commodity to be browsed in goods purchase request are filled in.
In step 402, according to above-mentioned goods purchase request, send purchase response to terminal, update above-mentioned commodity data The current inventory information of commodity to be browsed in storehouse.
Specifically, the accuracy of commodity is bought in order to ensure user, after receiving purchase request, server can ask to check business The current inventory information of commodity to be browsed in product database.
If current inventory information shows that the remaining stock of the commodity to be browsed meets the quantity purchase of user, then purchase Success, the purchase of transmission is responded for notifying that user buys successfully.If current inventory information shows the surplus of the commodity to be browsed Remaining stock is unsatisfactory for the quantity purchase of user, then the purchase for sending is responded for notifying that user buys failure, and user can basis Purchase response decides to wait for arrival or cancels an order or change quantity purchase etc., and this is not restricted.
Meanwhile, server can control merchandising database to be updated, such as by above-mentioned commodity to be browsed in merchandising database Current stockpile number subtract the quantity purchase of user;Or, the shortage of stock is updated to, and the feedback of the information of the shortage of stock is given Seller terminal or server etc. are sold, this is not restricted.
In the embodiment of the present disclosure, if user simply browses commodity, server is just obtained in local stock's caching and treated The pre-cache inventory information of commodity is browsed, when the inventory information in local stock's caching is typically all one section of of short duration storage Between, can also take into account certain stock's accuracy while server access merchandising database frequency is reduced.In user's reality During purchase, in order to avoid there is purchase mistake, server meeting actual access commodity server obtains real-time inventory information, with Ensure accurately to buy response message to user feedback, it is to avoid appearance causes user to buy successfully but because inventory information is inaccurate Situations such as occurring in short supply.
As the competition of shopping at network is more and more fierce, shopping platform also can often release some seconds kill, special price etc. in limited time Activity is promoted, and in the embodiment of the present disclosure, server side can realize promotion by controlling the open stock within certain time Activity.
Specifically, on the basis of above-described embodiment, according to the current inventory information of commodity to be browsed, sent to terminal and opened Sell instruction.The instruction that begins to sell shows the above-mentioned commodity to be browsed of sale in preset time period and waits to browse for instruction terminal The current inventory information of commodity.
When realizing, server first accesses merchandising database, reads the current inventory information of commodity to be browsed.But can be first Temporarily not for sale instruction is sent to terminal, end side can show the current storehouse of the commodity to be browsed according to temporary not for sale instruction Save as sky, or display undercarriage.And then server can send the instruction that begins to sell before preset time period starts to terminal, begin to sell finger Can be including the information such as quarter and duration at the beginning of preset time period in order.Terminal according to the instruction that begins to sell, when default Between the inventory information for being updated to begin to sell in instruction by the current inventory information of commodity to be browsed and carrying, Yong Huke are carved at the beginning of section Start purchase with by terminal.
Using the embodiment of the present disclosure, for the situation that largely browses, buy is had in this short time, server is only needed to Merchandising database is accessed in purchase, the access workload of server is greatly reduced, server has been better protected from due to short Workload is huge in time and the situation of machine of delaying.
Further, server can also periodically clear up local inventory caching, during specifically stock can be cached Deleted through beyond the data of preset buffer memory duration.
Following is disclosure device embodiment, can be used for performing method of disclosure embodiment.For disclosure device reality The details not disclosed in example is applied, method of disclosure embodiment is refer to.
Fig. 5 is a kind of structural representation of network trading treatment device according to an exemplary embodiment.The disclosure Embodiment provides a kind of network trading treatment device, and network trading treatment device can be integrated in server, or Server.Reference picture 5, network trading treatment device includes the first receiver module 51, the sending module 53 of acquisition module 52 and first.
First receiver module 51, is configured as the goods browse request of receiving terminal transmission, wherein, the goods browse Request includes:The mark of commodity to be browsed.
Acquisition module 52, is configured as being asked according to the goods browse, obtains and waits to browse described in local inventory caching The pre-cache inventory information of commodity.
First sending module 53, is configured as not surpassing in the cache-time of the pre-cache inventory information of the commodity to be browsed When going out preset buffer memory duration, the pre-cache inventory information of the commodity to be browsed is sent to the terminal.
In sum, in the device that the present embodiment is provided, the goods browse request that receiving terminal sends, according to goods browse Request, obtains the pre-cache inventory information of commodity to be browsed in local inventory caching, in the pre-cache storehouse of above-mentioned commodity to be browsed When stored cache-time caches duration without departing from budget, the pre-cache inventory information of above-mentioned commodity to be browsed is sent to end End, it is achieved thereby that during user browses commodity, the pre-cache inventory information in directly being cached using local inventory, The workload for accessing merchandising database is greatly reduced, inventory information feedback efficiency is improve, server is it also avoid due to work Work amount it is excessive and delay machine or merchandising database due in the short time visit capacity it is huge and cause to update failure and data are inaccurate Really.
Fig. 6 is a kind of structural representation of network trading treatment device according to another exemplary embodiment.Reference Fig. 6, on the basis of structure shown in Fig. 5, the device can also include:Enquiry module 61 and memory module 62, wherein:
Enquiry module 61, is configured as being asked according to the goods browse, to obtain and treat clear described in local inventory caching Look at before the pre-cache inventory information of commodity, delay it is determined that not existing the pre- of the commodity to be browsed in local inventory caching When depositing inventory information, merchandising database is inquired about, obtain the current inventory information of the commodity to be browsed.
Memory module 62, is configured as the current inventory information of the commodity to be browsed being stored in the local inventory caching The pre-cache inventory information of middle commodity to be browsed described in, and record storage duration.
Wherein, merchandising database can be key assignments distributed storage system.
Wherein, commodity stocks information is stored using key assignments distributed storage system, data are stored in the middle of internal memory, inquires about number According to strong with concurrent capability, increase and decrease to data and to return to current result be atomic operation, it is not necessary to which affairs ensure.
Fig. 7 is a kind of structural representation of network trading treatment device according to further example embodiment.Reference Fig. 7, on the basis of structure shown in Fig. 6 (can also directly on the basis of Fig. 5), network trading treatment device can also be wrapped Include:Second receiver module 71 and respond module 72.Wherein:
Second receiver module 71, is configured as the goods purchase request of receiving terminal transmission, the goods purchase request For asking the purchase commodity to be browsed.
Respond module 72, is configured as according to the goods purchase request, sends purchase response to terminal and updates described The current inventory information of commodity to be browsed described in merchandising database.
In the embodiment of the present disclosure, if user simply browses commodity, server is just obtained in local stock's caching and treated The pre-cache inventory information of commodity is browsed, when the inventory information in local stock's caching is typically all one section of of short duration storage Between, can also take into account certain stock's accuracy while server access merchandising database frequency is reduced.In user's reality During purchase, in order to avoid there is purchase mistake, server meeting actual access commodity server obtains real-time inventory information, with Ensure accurately to buy response message to user feedback, it is to avoid appearance causes user to buy successfully but because inventory information is inaccurate Situations such as occurring in short supply.
Fig. 8 is a kind of structural representation of network trading treatment device according to another exemplary embodiment.Reference Fig. 8, on the basis of structure shown in Fig. 6 (can also directly on the basis of Fig. 5), network trading treatment device can also be wrapped Include:Second sending module 81, is configured as the current inventory information according to the commodity to be browsed, and is sent to the terminal and begun to sell Instruction, wherein, the instruction that begins to sell shows sale commodity to be browsed, the Yi Jisuo for instruction terminal in preset time period State the current inventory information of commodity to be browsed.
In sum, the network order processing device that the present embodiment is provided, largely browses, buys for being had in the short time Situation, server only need to purchase when access merchandising database, greatly reduce the access workload of server, preferably Prevent server due to workload is huge in the short time and the situation of machine of delaying.
Fig. 9 is a kind of structural representation of network trading treatment device according to another exemplary embodiment.Reference Fig. 9, network trading treatment device 900 includes:Processor 901 and the memory 902 for storing executable instruction.Wherein, locate Reason device 901 and memory 902 are coupled.
Processor 901 is configured as:The goods browse request that receiving terminal sends, wherein, the goods browse request bag Include:The mark of commodity to be browsed;Asked according to the goods browse, obtain the pre- of commodity to be browsed described in local inventory caching Caching inventory information;Described when the cache-time of pre-cache inventory information of commodity is browsed without departing from preset buffer memory duration, The pre-cache inventory information of the commodity to be browsed is sent to the terminal.
In sum, in the network order processing device that the present embodiment is provided, the goods browse request that receiving terminal sends, Asked according to goods browse, the pre-cache inventory information of commodity to be browsed in local inventory caching is obtained, in above-mentioned business to be browsed When the cache-time of the pre-cache inventory information of product caches duration without departing from budget, by the pre-cache stock of above-mentioned commodity to be browsed Information is sent to terminal, it is achieved thereby that during user browses commodity, can directly using pre- in local inventory caching Caching inventory information, greatly reduces the workload for accessing merchandising database, improves inventory information feedback efficiency, it also avoid Server due to workload it is excessive and delay machine or merchandising database due in the short time visit capacity it is huge and cause to update and fail And data are inaccurate.
Figure 10 is a kind of block diagram of network trading treatment device 1000 according to an exemplary embodiment, network trading Processing unit 1000 can be the background server of internet shopping platform.
Reference picture 10, network trading treatment device 1000 includes processing assembly 1022, and it can further include one Or multiple processors, and the memory resource as representated by memory 1032, can holding by processing assembly 1022 for storing Capable instruction, such as application program.The application program stored in memory 1032 can include one or more each It is individual to correspond to one group of module of instruction.Additionally, processing assembly 1022 is configured as execute instruction, to perform above-mentioned network transaction Reason method, the method includes:
According to the first aspect of the embodiment of the present disclosure, there is provided a kind of network trading processes method, including:
The goods browse request that receiving terminal sends, wherein, the goods browse request includes:The mark of commodity to be browsed Know;
Asked according to the goods browse, obtain the pre-cache stock letter of commodity to be browsed described in local inventory caching Breath;
Described when the cache-time of pre-cache inventory information of commodity is browsed without departing from preset buffer memory duration, will be described The pre-cache inventory information of commodity to be browsed is sent to the terminal.
Alternatively, it is described to be asked according to the goods browse, obtain the pre- of commodity to be browsed described in local inventory caching Before caching inventory information, also include:
It is determined that inquiring about business when the pre-cache inventory information of commodity is browsed in the absence of described in local inventory caching Product database, obtains the current inventory information of the commodity to be browsed;
The current inventory information of the commodity to be browsed is stored in the local inventory caching as the business to be browsed The pre-cache inventory information of product, and record storage duration.
Alternatively, the merchandising database is key assignments distributed storage system.
Alternatively, alternatively, methods described also includes:The goods purchase request that receiving terminal sends, the commodity purchasing Ask for asking the purchase commodity to be browsed;According to the goods purchase request, send purchase response to terminal and update The current inventory information of commodity to be browsed described in the merchandising database.
Alternatively, methods described also includes:According to the current inventory information of the commodity to be browsed, sent to the terminal Begin to sell instruction, wherein, it is described begin to sell instruction for instruction terminal show in preset time period sell described in commodity to be browsed, with And the current inventory information of the commodity to be browsed.
Further, device 1000 can also include that a power supply module 1026 is configured as the power supply of performs device 1000 Management, a wired or wireless network interface 1050 is configured as device 1000 being connected to network, and an input and output (I/ O) interface 1058.Device 1000 can operate the operating system in memory 1032, such as Windows based on storage ServerTM, Mac OS XTM, UnixTM, LinuxTM, FreeBSDTM or similar.
Those skilled in the art will readily occur to its of the disclosure after considering specification and putting into practice invention disclosed herein Its embodiment.The application is intended to any modification, purposes or the adaptations of the disclosure, these modifications, purposes or Person's adaptations follow the general principle of the disclosure and including the undocumented common knowledge in the art of the disclosure Or conventional techniques.Description and embodiments are considered only as exemplary, and the true scope of the disclosure and spirit are by following Claims are pointed out.
It should be appreciated that the disclosure is not limited to the precision architecture for being described above and being shown in the drawings, and And can without departing from the scope carry out various modifications and changes.The scope of the present disclosure is only limited by appending claims System.

Claims (11)

1. a kind of network trading processes method, it is characterised in that including:
The goods browse request that receiving terminal sends, wherein, the goods browse request includes:The mark of commodity to be browsed;
Asked according to the goods browse, obtain the pre-cache inventory information of commodity to be browsed described in local inventory caching;
Described when the cache-time of pre-cache inventory information of commodity is browsed without departing from preset buffer memory duration, treat clear by described The pre-cache inventory information of commodity look at is sent to the terminal.
2. method according to claim 1, it is characterised in that described to be asked according to the goods browse, obtains local library Deposit caching described in commodity to be browsed pre-cache inventory information before, also include:
It is determined that inquiring about commodity number when the pre-cache inventory information of commodity is browsed in the absence of described in local inventory caching According to storehouse, the current inventory information of the commodity to be browsed is obtained;
The current inventory information of the commodity to be browsed is stored in the local inventory caching as the commodity to be browsed Pre-cache inventory information, and record storage duration.
3. method according to claim 2, it is characterised in that the merchandising database is key assignments distributed storage system.
4. according to the method in claim 2 or 3, it is characterised in that methods described also includes:
The goods purchase request that receiving terminal sends, the goods purchase request is used to ask the purchase commodity to be browsed;
According to the goods purchase request, send purchase response and update to terminal and wait to browse described in the merchandising database The current inventory information of commodity.
5. according to the method in claim 2 or 3, it is characterised in that methods described also includes:
According to the current inventory information of the commodity to be browsed, the instruction that begins to sell is sent to the terminal, wherein, the instruction that begins to sell The current stock for selling the commodity to be browsed and the commodity to be browsed is shown in preset time period for instruction terminal Information.
6. a kind of network trading processes device, it is characterised in that including:
First receiver module, is configured as the goods browse request of receiving terminal transmission, wherein, the goods browse request bag Include:The mark of commodity to be browsed;
Acquisition module, is configured as being asked according to the goods browse, obtains commodity to be browsed described in local inventory caching Pre-cache inventory information;
First sending module, is configured as the cache-time in the pre-cache inventory information of the commodity to be browsed without departing from default During caching duration, the pre-cache inventory information of the commodity to be browsed is sent to the terminal.
7. device according to claim 6, it is characterised in that described device also includes:
Enquiry module, is configured as being asked according to the goods browse, obtains commodity to be browsed described in local inventory caching Pre-cache inventory information before, it is determined that in the absence of the pre-cache stock of the commodity to be browsed in local inventory caching During information, merchandising database is inquired about, obtain the current inventory information of the commodity to be browsed;
Memory module, be configured as being stored in the current inventory information of the commodity to be browsed in local inventory caching as The pre-cache inventory information of the commodity to be browsed, and record storage duration.
8. device according to claim 7, it is characterised in that the merchandising database is key assignments distributed storage system.
9. the device according to claim 7 or 8, it is characterised in that described device also includes:
Second receiver module, is configured as the goods purchase request of receiving terminal transmission, and the goods purchase request is used to ask The purchase commodity to be browsed;
Respond module, is configured as according to the goods purchase request, sends purchase response to terminal and updates the commodity number According to the current inventory information of commodity to be browsed described in storehouse.
10. the device according to claim 7 or 8, it is characterised in that described device also includes:
Second sending module, is configured as the current inventory information according to the commodity to be browsed, and is sent to the terminal and begun to sell Instruction, wherein, the instruction that begins to sell shows sale commodity to be browsed, the Yi Jisuo for instruction terminal in preset time period State the current inventory information of commodity to be browsed.
A kind of 11. network trading treatment devices, it is characterised in that including:
Processor;
Memory for storing executable instruction;
Wherein, the processor is configured as:
The goods browse request that receiving terminal sends, wherein, the goods browse request includes:The mark of commodity to be browsed;
Asked according to the goods browse, obtain the pre-cache inventory information of commodity to be browsed described in local inventory caching;
Described when the cache-time of pre-cache inventory information of commodity is browsed without departing from preset buffer memory duration, treat clear by described The pre-cache inventory information of commodity look at is sent to the terminal.
CN201710063694.7A 2017-02-03 2017-02-03 Network transaction processing method and apparatus Pending CN106709071A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710063694.7A CN106709071A (en) 2017-02-03 2017-02-03 Network transaction processing method and apparatus

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710063694.7A CN106709071A (en) 2017-02-03 2017-02-03 Network transaction processing method and apparatus

Publications (1)

Publication Number Publication Date
CN106709071A true CN106709071A (en) 2017-05-24

Family

ID=58909825

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710063694.7A Pending CN106709071A (en) 2017-02-03 2017-02-03 Network transaction processing method and apparatus

Country Status (1)

Country Link
CN (1) CN106709071A (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108446360A (en) * 2018-03-12 2018-08-24 上海哔哩哔哩科技有限公司 Commodity settlement method, server and commodity settlement system Internet-based
WO2019047516A1 (en) * 2017-09-07 2019-03-14 北京京东尚科信息技术有限公司 Method and device for information output
CN109872172A (en) * 2017-12-04 2019-06-11 北京京东尚科信息技术有限公司 Method and apparatus for handling information
CN111882397A (en) * 2020-07-31 2020-11-03 郑州江之源网络科技有限公司 Data integrated management system based on electronic commerce
CN112579542A (en) * 2020-12-17 2021-03-30 海信视像科技股份有限公司 Display device and page drawing method
CN115474099A (en) * 2022-08-02 2022-12-13 北京达佳互联信息技术有限公司 Information display method and device, electronic equipment and storage medium

Citations (4)

* 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
CN104376472A (en) * 2013-08-15 2015-02-25 林宛姿 Cross-website shopping server and cross-website online shopping realization method
CN105488366A (en) * 2014-10-13 2016-04-13 阿里巴巴集团控股有限公司 Data permission control method and system
CN106022791A (en) * 2016-05-10 2016-10-12 厦门研途教育科技有限公司 Sales agent system and method

Patent Citations (4)

* 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
CN104376472A (en) * 2013-08-15 2015-02-25 林宛姿 Cross-website shopping server and cross-website online shopping realization method
CN105488366A (en) * 2014-10-13 2016-04-13 阿里巴巴集团控股有限公司 Data permission control method and system
CN106022791A (en) * 2016-05-10 2016-10-12 厦门研途教育科技有限公司 Sales agent system and method

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2019047516A1 (en) * 2017-09-07 2019-03-14 北京京东尚科信息技术有限公司 Method and device for information output
CN109872172A (en) * 2017-12-04 2019-06-11 北京京东尚科信息技术有限公司 Method and apparatus for handling information
CN108446360A (en) * 2018-03-12 2018-08-24 上海哔哩哔哩科技有限公司 Commodity settlement method, server and commodity settlement system Internet-based
CN111882397A (en) * 2020-07-31 2020-11-03 郑州江之源网络科技有限公司 Data integrated management system based on electronic commerce
CN112579542A (en) * 2020-12-17 2021-03-30 海信视像科技股份有限公司 Display device and page drawing method
CN115474099A (en) * 2022-08-02 2022-12-13 北京达佳互联信息技术有限公司 Information display method and device, electronic equipment and storage medium

Similar Documents

Publication Publication Date Title
CN106709071A (en) Network transaction processing method and apparatus
US9727649B2 (en) Use of stored search results by a travel search system
US8595335B2 (en) Incentive network for distributing incentives on a network-wide basis and for permitting user access to individual incentives from a plurality of network servers
US20020032716A1 (en) Method of distributing a spare time of CPU and system for performing the method
CN102346891B (en) A kind of network trading method and server
US9626683B2 (en) Method and system for advanced messaging
US9633360B2 (en) Method and apparatus for implementing search engine with cost per action revenue model
CN105843814A (en) Method, device, and system for generating page
US20060113383A1 (en) System and method for providing optimized shopping list
TWI473033B (en) Electronic commerce trading devices, e-commerce trading methods, e-commerce transaction programs and computer-readable recording media
US8260685B2 (en) Providing time-sensitive information for purchase determinations
US20100131339A1 (en) System and Method to Transform Website User Information into Sales Prospects, Sales Leads and Sales Intelligence
JP2001222577A (en) Method and system for managing sale and article selling system
CN107871221A (en) For obtaining the method and apparatus that can sell stockpile number
KR20160076162A (en) Parts brokerage system with price searching function
US20200098030A1 (en) Inventory-assisted artificial intelligence recommendation engine
US7941483B2 (en) Low latency display methods for thin client devices
JP2009122780A (en) Recommendation device and recommendation method
CN106874080A (en) Method for computing data and system based on distributed server cluster
CN104753981B (en) The method for handling network request
KR100390556B1 (en) Method for electronic commerce with instant messenger
US20040093288A1 (en) Methods and systems for pricing an inventory unit
TWI837492B (en) Information processing system, information processing method, program and recording medium
CN110083464A (en) APP correlating method and system, sharing method and system, device and medium
KR102560083B1 (en) Method and apparatus for providing a delivery information of product

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20170524

RJ01 Rejection of invention patent application after publication