Commodity display data processing method and device

By determining the target item identifier based on the user and live room identifier in the B2B live transaction model, and storing the item pool in a heap in the memory database, the problem of high resource consumption is solved, the interface response speed and user experience are improved, and efficient item data display is achieved.

CN118945400APending Publication Date: 2024-11-12BEIJING JINGDONG TUOXIAN TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202310539896.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-05-12
Publication Date
2024-11-12

AI Technical Summary

Technical Problem

In the B2B live streaming transaction model, due to the large number of products in the live streaming room, the front-end application consumes a lot of resources when executing filtering logic, resulting in high server pressure, long interface response time, reduced user experience, and the need to deploy a large number of servers to resist traffic surges, which leads to resource waste.

Method used

The target area identifier and target item identifier are determined based on the target live room identifier and user identifier. The item pool is stored in the in-memory database in key-value format. The item operation message listening mechanism is used to heterogeneously transfer the items to the in-memory database, thereby realizing the stacking of the item pool. This avoids the front-end application from executing filtering logic and directly obtains the target item data from the item pool.

Benefits of technology

It reduced resource consumption, improved interface response speed, enhanced user experience, achieved personalized results for each user, and reduced server load.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118945400A_ABST
    Figure CN118945400A_ABST
Patent Text Reader

Abstract

The invention discloses a commodity display data processing method and device, and relates to the technical field of e-commerce platforms. A specific embodiment of the method comprises the following steps: in response to a received data acquisition request sent by a client, acquiring a user identifier and a target live broadcast room identifier from the data acquisition request; obtaining a target area identifier corresponding to the user identifier; determining a target article identifier according to the target live broadcast room identifier and the target area identifier; and obtaining target article data corresponding to the target article identifier, and sending the target article data to the client, so that the client displays the target article data. According to the embodiment, the resource consumption is reduced, the interface response speed is improved, and then the user experience is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of e-commerce platforms, and in particular to a method and device for processing commodity display data. Background Art

[0002] In the field of e-commerce, the live transaction model of business to business (B2B) refers to the exchange and transmission of products, services and information between enterprises through the Internet, and the development of B2B live transaction model is rapid. In the B2B live platform, due to the different business areas of different merchants, users in different regions of the same live room see different products.

[0003] In the related technology, when a buyer enters the live broadcast room through the front-end application, the live broadcast middle station will be called to obtain the winning bid price information for real-time display. The live broadcast middle station returns the live broadcast room product collection to the client, and the client then requests the front-end application server to perform filtering logic on the stock keeping unit (SKU) collection. The filtered products are displayed in the live broadcast room shopping bag, and the products in the shopping bag are the products that match the buyer. However, due to the large number of live broadcast room products in the B2B transaction model, the front-end application consumes a lot of resources when executing the filtering logic, and the server is under great pressure, resulting in a long response time for the live broadcast room shopping bag product interface, which reduces the user experience. If this method is used, more servers need to be deployed to resist traffic shocks, resulting in a waste of resources. Summary of the invention

[0004] In view of this, an embodiment of the present invention provides a data processing method and device, which can determine the target object identifier based on the target live broadcast room identifier and the target area identifier determined according to the user identifier, so as to display the target object data, reduce resource consumption, improve the interface response speed, and thus enhance the user experience.

[0005] To achieve the above object, according to one aspect of an embodiment of the present invention, a data processing method is provided, comprising:

[0006] In response to receiving a data acquisition request sent by a client, obtaining a user identifier and a target live broadcast room identifier from the data acquisition request;

[0007] Obtaining a target area identifier corresponding to the user identifier;

[0008] Determine the target object identifier according to the target live broadcast room identifier and the target area identifier;

[0009] Target item data corresponding to the target item identifier is acquired, and the target item data is sent to the client so that the client displays the target item data.

[0010] Optionally, determining the target object identifier according to the target live broadcast room identifier and the target area identifier includes:

[0011] Determine a target item pool identifier according to the target live broadcast room identifier and the target area identifier;

[0012] Acquire a target item list corresponding to the target item pool identifier, wherein the target item list includes one or more items and an identifier of each item;

[0013] The identifier of the item in the target item list is used as the target item identifier.

[0014] Optionally, before determining the target item pool identifier according to the target live broadcast room identifier and the target area identifier, the method further includes:

[0015] In response to monitoring an item operation message for the live broadcast room, acquiring a live broadcast room identifier, an item identifier, and an operation type from the item operation message;

[0016] Obtaining a region identifier corresponding to the item identifier;

[0017] Determine an item pool identifier according to the area identifier and the live broadcast room identifier;

[0018] Obtaining an item list corresponding to the item pool identifier;

[0019] The item list is updated according to the operation type and the item identifier.

[0020] Optionally, the operation type includes at least one of adding, pinning and deleting.

[0021] Optionally, the operation type is pinning, and updating the item list according to the operation type and the item identifier includes:

[0022] If the item identifier is not in the first position of the item list, deleting the item identifier in the item list;

[0023] The item identifier is added to the first position of the item list to update the item list.

[0024] Optionally, after receiving the data acquisition request sent by the client, the method further includes: obtaining paging information from the data acquisition request, wherein the paging information includes a current page identifier and a data volume per page;

[0025] Determining the target object identifier according to the target live broadcast room identifier and the target area identifier includes:

[0026] Determine a target item pool identifier according to the target live broadcast room identifier and the target area identifier;

[0027] Obtain a target item list corresponding to the target item pool identifier;

[0028] The target item identifier is determined according to the current page identifier, the amount of data per page, and the target item list.

[0029] Optionally, the item pool is stored in a memory database in a Key-Value format, where the Key is determined based on the live broadcast room ID and the area ID, and the Value is an item list that is stored in a List structure.

[0030] According to another aspect of an embodiment of the present invention, there is provided a data processing device, including:

[0031] A receiving module, in response to receiving a data acquisition request sent by a client, obtains a user identifier and a target live broadcast room identifier from the data acquisition request;

[0032] An acquisition module, which acquires a target area identifier corresponding to the user identifier;

[0033] A determination module, which determines a target object identifier according to the target live broadcast room identifier and the target area identifier;

[0034] The sending module obtains the target item data corresponding to the target item identifier, and sends the target item data to the client so that the client displays the target item data.

[0035] According to another aspect of an embodiment of the present invention, there is provided an electronic device, including:

[0036] one or more processors;

[0037] a storage device for storing one or more programs,

[0038] When the one or more programs are executed by the one or more processors, the one or more processors implement the data processing method provided by the present invention.

[0039] According to another aspect of an embodiment of the present invention, a computer-readable medium is provided, on which a computer program is stored, and when the program is executed by a processor, the data processing method provided by the present invention is implemented.

[0040] An embodiment of the above invention has the following advantages or beneficial effects: the data processing method of the embodiment of the present invention obtains the user ID and the target live broadcast room ID through the data acquisition request of the client, and then determines the target area ID according to the user ID, determines the target item ID to be displayed according to the target live broadcast room ID and the target area ID, and then obtains the target item data corresponding to the target item ID to display it on the client. This method determines the target item ID according to the target live broadcast room ID and the target area ID to form a thousand faces for a thousand people, overcoming the defect of resource consumption caused by re-executing the filtering logic on the item set in the prior art. This method reduces resource consumption, improves the interface response speed, and thus improves the user experience.

[0041] The further effects of the above-mentioned non-conventional optional manner will be described below in conjunction with the specific implementation manner. BRIEF DESCRIPTION OF THE DRAWINGS

[0042] The accompanying drawings are used to better understand the present invention and do not constitute an improper limitation of the present invention.

[0043] Figure 1 is a schematic diagram of the main flow of a data processing method according to an embodiment of the present invention;

[0044] Figure 2 is a schematic diagram of the main flow of another data processing method according to an embodiment of the present invention;

[0045] Figure 3 is a flowchart of a method for updating an item list when adding an operation type according to an embodiment of the present invention;

[0046] Figure 4 is a flowchart of a method for updating an item list when the operation type is deletion according to an embodiment of the present invention;

[0047] Figure 5 It is a flowchart of a method for updating an item list when the operation type is top-pinning according to an embodiment of the present invention;

[0048] Figure 6 is a flow chart of a data processing method according to an embodiment of the present invention;

[0049] Figure 7 is a schematic diagram of main modules of a data processing device according to an embodiment of the present invention;

[0050] Figure 8 is an exemplary system architecture diagram to which embodiments of the present invention may be applied;

[0051] Fig. 9 It is a schematic diagram of the structure of a computer system of a terminal device or a server suitable for implementing an embodiment of the present invention. DETAILED DESCRIPTION

[0052] The following is a description of exemplary embodiments of the present invention in conjunction with the accompanying drawings, including various details of the embodiments of the present invention to facilitate understanding, which should be considered as merely exemplary. Therefore, it should be recognized by those of ordinary skill in the art that various changes and modifications may be made to the embodiments described herein without departing from the scope and spirit of the present invention. Similarly, for clarity and conciseness, the description of well-known functions and structures is omitted in the following description.

[0053] It should be noted that the acquisition, storage and application of personal information etc. involved in the embodiments of the present invention are in compliance with the provisions of relevant laws and regulations and do not violate public order and good morals.

[0054] Figure 1 is a schematic diagram of the main flow of a data processing method according to an embodiment of the present invention, such as Figure 1 As shown, the method comprises the following steps:

[0055] Step S101: in response to receiving a data acquisition request sent by a client, obtaining a user identifier and a target live broadcast room identifier from the data acquisition request;

[0056] Step S102: Acquire a target area identifier corresponding to the user identifier;

[0057] Step S103: determining the target object identifier according to the target live broadcast room identifier and the target area identifier;

[0058] Step S104: acquiring target item data corresponding to the target item identifier, and sending the target item data to the client, so that the client displays the target item data.

[0059] In an embodiment of the present invention, the method can be applied to a B2B transaction model with a large number of commodities in a live broadcast room, such as a B2B pharmaceutical e-commerce platform, where B2B refers to transactions between pharmaceutical companies or pharmaceutical companies and pharmacies, clinics, etc. through an Internet pharmaceutical distribution platform. The method can be executed on the front-end application server.

[0060] In an embodiment of the present invention, after receiving a data acquisition request sent by a client, a user identifier and a live broadcast room identifier are obtained from the data acquisition request. The data acquisition request sent by the client may be forwarded by an application programming interface (API) gateway (which may provide unified identity authentication, load balancing, request routing, and other functions) after receiving the data acquisition request sent by the client. Before forwarding the data acquisition request, the API gateway parses the data acquisition request and parses out parameters such as the user identifier and the live broadcast room identifier, so that the foreground application server can obtain the user identifier and the live broadcast room identifier after receiving the data acquisition request. The data acquisition request may be a request for a user to enter the live broadcast room through the homepage or link of an e-commerce shopping platform to obtain live broadcast room data, and the live broadcast room data includes the commodity data in the live broadcast room shopping bag. The user identifier may be a user's identity identifier, such as a user's personal identification number (PIN); the target live broadcast room is the live broadcast room entered by the user, and the target live broadcast room identifier is the identity document (ID) of the target live broadcast room, i.e., the target live broadcast room ID.

[0061] In an embodiment of the present invention, after obtaining the user identification and the target live broadcast room identification, the corresponding target area identification can be obtained according to the user identification, wherein the target area identification can be the identification of the user's qualification authentication address, and the user's qualification authentication address can be the default delivery address, such as the address of the business license. Among them, the user's qualification authentication address can be a city-level address, such as Administrative District A of City A, Administrative District B of City A, City B, etc.

[0062] In an embodiment of the present invention, after determining the target live broadcast room identifier and the target area identifier, determining the target object identifier according to the target live broadcast room identifier and the target area identifier includes:

[0063] Determine the target item pool ID according to the target live broadcast room ID and the target area ID;

[0064] Obtain a target item list corresponding to the target item pool identifier, wherein the target item list includes one or more items and an identifier of each item;

[0065] Use the ID of the item in the item list as the target item ID.

[0066] In the embodiment of the present invention, when determining the target item identifier, the target item pool identifier is first determined according to the target live broadcast room identifier and the target area identifier. The target item pool identifier has a corresponding target item list, and the identifiers of all or part of the items in the target item list can be used as the target item identifier. In the field of e-commerce, the item can be a SKU product.

[0067] In the embodiment of the present invention, Figure 2 As shown, before determining the target item pool identifier according to the target live broadcast room identifier and the target area identifier, it includes:

[0068] Step S201: in response to monitoring an item operation message for a live broadcast room, obtaining a live broadcast room identifier, an item identifier, and an operation type from the item operation message;

[0069] Step S202: Obtaining a region identifier corresponding to the item identifier;

[0070] Step S203: determining the item pool identifier according to the area identifier and the live broadcast room identifier;

[0071] Step S204: Obtain an item list corresponding to the item pool identifier;

[0072] Step S205: Update the item list according to the operation type and the item identifier.

[0073] In the embodiment of the present invention, the operation type includes at least one of adding, pinning and deleting.

[0074] In an embodiment of the present invention, a business anchor or operator can operate the live broadcast room merchandise, such as adding merchandise, pinning merchandise, or deleting merchandise. When the operation is completed, an item operation message, i.e., a message queue (MessageQueue, MQ) message, will be sent to the message queue. The foreground application server monitors the message queue. When the item operation message is monitored, the live broadcast room identifier, item identifier, and operation type can be obtained according to the item operation message. The area identifier can be determined by the live broadcast room identifier and the item identifier, and the item pool identifier can be determined according to the live broadcast room identifier and the area identifier, and then the corresponding item list can be obtained. The item list can be updated according to the operation type, that is, the items in the item list can be operated according to the operation type. Among them, the item pool is stored in the memory database, and the item pool includes the item pool identifier and the item list. By pre-monitoring item operation messages in the message queue, items can be heterogeneously stored in the memory database to achieve item pool stacking. This allows users in different areas of the same live broadcast room to locate a corresponding item pool based on the live broadcast room ID and user ID. The items in the item list of this item pool are visible and purchasable items for users, and can be directly displayed in the live broadcast room shopping bag. The foreground application server does not need to consume CPU resources to execute filtering logic, which reduces resource consumption and improves interface response speed.

[0075] In an embodiment of the present invention, multiple live broadcast rooms are stored in the memory data, and the multiple live broadcast rooms are isolated from each other. Each live broadcast room has a corresponding item pool, and each item pool is composed of an item pool identifier and an item list. The item pool identifier is composed of a live broadcast room identifier and a regional identifier. For example, the item pool identifier can be composed of a live broadcast room identifier and a regional identifier. For example, the live broadcast room identifier is A, and the administrative district identifier of City A B is 0001, then the item pool identifier is A_0001. The area corresponding to the regional identifier is a municipal address, so it can correspond to the user's qualification authentication address. Therefore, in the same live broadcast room, each municipal address corresponds to an item pool. The same item identifier can exist in multiple item pools in the same live broadcast room.

[0076] In an embodiment of the present invention, the item pool is stored in a memory database in a Key-Value format, where the Key is determined based on the live broadcast room identifier and the area identifier, i.e., the Key is the item pool identifier, and the Value is the item list. The item list is stored in a List structure, which enables the items in the item pool to be displayed in sequence. For example, the first element in the List structure, i.e., the first item identifier in the item list, has a serial number of 0, and the serial numbers of subsequent elements increase sequentially, i.e., 1, 2, 3, 4...

[0077] Figure 3The flowchart of a method for updating an item list when adding an operation type according to an embodiment of the present invention is shown. The method includes: when a merchant anchor or operator adds a product in the live broadcast station, the live broadcast station will send a product addition message to the message queue, and the product addition message includes the live broadcast room ID as live broadcast room A, the operation type is to add, and the SKU set (a set of SKU identifiers, including SKU3, SKU1, SKU5, SKU2, SKU9...); the foreground application server monitors the message queue, obtains and parses the product addition message, and then queries the corresponding regional identifier according to the SKU identifier, that is, queries the business area of ​​the merchant to which the SKU identifier belongs, such as the business area of ​​SKU3 includes Administrative District A of City A and Administrative District B of City A, the business area of ​​SKU1 includes Administrative District A of City A and City B, the business area of ​​SKU5 includes Administrative District A of City A and City B, and the business area of ​​SKU2 includes Administrative District A of City A and City B. It includes Administrative District B of City A, and the operating area of ​​SKU9 includes Administrative District B of City A and City B,...; among them, the identification of Administrative District A of City A is 12330, the identification of Administrative District B of City A is 12331, and the identification of City B is 14300; then the goods, that is, the SKU collection, are piled up according to the regional identification and the live broadcast room identification, so that multiple item pools can be obtained, and each SKU is added to the corresponding item pool through the LPush command to update the item list, Key: A_12330, Value: SKU3, SKU1, SKU5...; Key: A_12331, Value: SKU3, SKU2, SKU9...; Key: A_14300, Value: SKU1, SKU5, SKU9...

[0078] In an embodiment of the present invention, when the operation type is deletion, the item list is updated according to the operation type and the item identifier, that is, the item identifier in the item list is deleted. If there are multiple item lists, the multiple item lists are traversed and the item identifier in each item list is deleted.

[0079] Figure 4The present invention is a schematic diagram of a method for updating an item list when the operation type is deletion in an embodiment of the present invention. The product deletion message sent by the live broadcasting station to the message queue is monitored. The product deletion message includes the live broadcasting room identifier, that is, the live broadcasting room ID, the operation type is deletion, and the SKU set (SKU identifier, which is SKU1), and the product deletion message is obtained and parsed; the corresponding regional identifier is obtained according to the SKU identifier, that is, the business area of ​​the merchant to which the SKU identifier belongs is queried, and the business area of ​​SKU1 is the administrative district A of City A and City B. According to the live broadcasting room ID and the regional identifier, the corresponding two item pools are determined, that is, Key: A_12330, Value: SKU3, SKU1, SKU5...; Key: A_14300, Value: SKU1, SKU5, SKU9...; then SKU1 is deleted from the two item lists corresponding to the two item pools, that is, Value, to update the two item lists, and Key: A_12330, Value: SKU3, SKU5...; Key: A_14300, Value: SKU5, SKU9... are obtained respectively.

[0080] In the embodiment of the present invention, the operation type is to stick to the top, and updating the item list according to the operation type and the item identifier includes:

[0081] If the item identifier is not in the first position of the item list, delete the item identifier in the item list;

[0082] Update the item list by adding the item ID to the first position of the item list.

[0083] In the embodiment of the present invention, when the operation type is to pin, it is determined whether the item identifier is located at the first position of the item list, i.e., the head position. If so, no processing is performed. If not, the item identifier in the item list is deleted, and the item identifier is added to the first position of the item list, thereby pinning the item identifier to the top. Among them, since the item list is stored in a List structure, the item identifier in the current item list can be deleted by the LRem command, and then the item identifier can be added to the head of the List structure by the LPush command to pin the item identifier to the top, that is, writing data by Lua (a scripting language) script can ensure the atomicity of LRem and LPush operations, thereby ensuring the accuracy of data writing.

[0084] Figure 5The present invention is a flowchart of a method for updating an item list when the operation type is top-pinning in an embodiment of the present invention. After monitoring the product top-pinning message sent by the live broadcast center to the message queue, the product top-pinning message includes the live broadcast room ID, the operation type is top-pinning and the SKU set (SKU identifier, which is SKU5), and the product top-pinning message is obtained and parsed; the corresponding regional identifier is obtained according to the SKU identifier, that is, the business area of ​​the merchant to which SKU5 belongs, including Administrative District A of City A and City B, and then the corresponding item pool is determined according to the live broadcast room ID and the regional identifier, and then the item list corresponding to the item pool is obtained, and then it is determined whether SKU5 is in the first position in the item list. If so, no processing is performed. If not, SKU5 in the item list is deleted, and SKU5 is added at the head of the item list, that is, the first position, to achieve the goal of pinning the items in the item list. To put SKU5 at the top, first delete SKU5 from Key: A_12330, Value: SKU3, SKU1, SKU5… and Key: A_14300, Value: SKU1, SKU5, SKU9… to get Key: A_12330, Value: SKU3, SKU1… and Key: A_14300, Value: SKU1, SKU9…; then add SKU5 to the head of Value to get Key: A_12330, Value: SKU5, SKU3, SKU1… and Key: A_14300, Value: SKU5, SKU1, SKU9…

[0085] In the embodiment of the present invention, after receiving the data acquisition request sent by the client, the method further includes: obtaining paging information from the data acquisition request, the paging information including the current page identifier and the amount of data per page;

[0086] Determine the target item ID according to the target live broadcast room ID and the target area ID, including: determine the target item pool ID according to the target live broadcast room ID and the target area ID; obtain the target item list corresponding to the target item pool ID; determine the target item ID according to the current page ID, the amount of data per page and the target item list.

[0087] In an embodiment of the present invention, after receiving a data acquisition request sent by a client, paging information can also be obtained from the data acquisition request, that is, the live broadcast room identifier, user identifier and paging information can be obtained from the acquisition request, and the paging information indicates the current page identifier displayed and the amount of data per page.

[0088] Furthermore, when determining the target item ID according to the target live broadcast room ID and the target area ID, the target item pool ID can be determined first according to the target live broadcast room ID and the target area ID, so that the corresponding target item list can be determined, and then the target item ID can be obtained according to the paging information and the target item list, and the target item ID is the ID of the item displayed on the current page. Among them, the item IDs in the target item list have an order, and the item ID corresponding to each page is determined according to the number of item IDs in the target item list and the amount of data per page, so that the item ID of the current page, that is, the target item ID, can be determined. Since the target item list is a List structure, the elements within the specified range of the List structure can be obtained through the Lrange command, that is, the item ID of the current page of the target item list is obtained, that is, the Lrange command Lrange keystart stop is used, and the paging information is converted to obtain the elements between the start element number and the stop element number. For example, there are 20 SKUs in the target item list, and the paging information indicates that the current page is the first page, and the amount of data per page is 5, then it is converted into an Lrange command, start=0, stop=4, where start=0 represents the first element of the List, that is, the item ID of the first position in the target item list, then Lrang key 0 4 is to obtain the first 5 elements in the List structure, that is, the item IDs of the first page.

[0089] In an embodiment of the present invention, after determining the target item identifier, a data acquisition interface is called to obtain the target item data corresponding to the target item identifier, including the price, inventory and other data of the target item, and then the target item data is packaged into the data to be displayed required by the client, and the data to be displayed is returned to the client, so that the client can display the target item data and achieve the effect of different faces for different people in the live broadcast room.

[0090] like Figure 6The figure shows a flow chart of a method for data processing according to an embodiment of the present invention. The method comprises: a user enters a live broadcast room through an operation configuration floor or clicks a sharing link, and sends a data acquisition request to an API gateway to obtain a pool of commodities in the live broadcast room, wherein the data acquisition request includes a user pin, a live broadcast room ID, and paging information (current page, amount of data per page); after receiving the data acquisition request, the API gateway parses the data acquisition request to obtain parameters such as user pin, live broadcast room ID, and paging information (current page, amount of data per page), and forwards the data acquisition request and the parameters obtained by parsing to the foreground application server; the foreground application server obtains the user's qualification authentication address according to the user pin, and the qualification authentication address is a municipal address; the foreground application server obtains the corresponding commodity according to the identifier of the live broadcast room ID and the user's municipal address. Product pool, the live broadcast room ID is A, the municipal address is Administrative District A in City A, the identifier of the municipal address is 12330, and after splicing it is A_12330. According to A_12330, the corresponding Value, that is, the target item list, can be determined from the memory database; the paging data of the target item list is obtained through the Lrange command to determine the item identifier to be displayed; the foreground application server calls the data acquisition interface according to the item identifier to be displayed, that is, SKU, to obtain the product data of the item to be displayed, including inventory, price and other data, and encapsulates it into the data to be displayed required by the client; the foreground application server returns the data to be displayed to the API gateway; the API gateway returns the data to be displayed to the client to display the shopping bag products in the live broadcast room in pages on the client.

[0091] The data processing method of the embodiment of the present invention obtains the user identification and the target live broadcast room identification through the data acquisition request of the client, and can also obtain the paging information, then determine the target area identification according to the user identification, determine the item pool according to the target live broadcast room identification and the target area identification, determine the target item identification to be displayed in the item pool according to the paging information, and then obtain the target item data corresponding to the target item identification to be displayed on the client; wherein, by monitoring the item operation message of the live broadcast center, the item identification is heterogeneously stored in the memory database, and the item pool is stacked according to the live broadcast room identification and the area identification, so as to realize the update of the item list of the item pool in the memory database. The method forms the item pool stacking effect in the memory database with the List structure by monitoring the item operation message, so that when the user enters the live broadcast room, the item pool can be directly accessed to obtain the item data, forming the effect of thousands of people, and there is no need to execute the filtering logic, which reduces the resource consumption; the method realizes the paging effect through the paging query mode, and can also efficiently query and hit the corresponding item pool in the case of a large number of items, thereby improving the query efficiency and thus improving the response speed of the item display interface.

[0092] According to another aspect of the embodiment of the present invention, Figure 7As shown, a data processing device 700 is provided, comprising:

[0093] The receiving module 701, in response to receiving a data acquisition request sent by the client, obtains a user identifier and a target live broadcast room identifier from the data acquisition request;

[0094] An acquisition module 702 acquires a target area identifier corresponding to a user identifier;

[0095] A determination module 703 determines a target object identifier according to a target live broadcast room identifier and a target area identifier;

[0096] The sending module 704 acquires the target item data corresponding to the target item identifier, and sends the target item data to the client, so that the client displays the target item data.

[0097] In an embodiment of the present invention, the determination module 703 is further used to: determine the target item pool identifier based on the target live broadcast room identifier and the target area identifier; obtain a target item list corresponding to the target item pool identifier, the target item list including one or more items and the identifier of each item; and use the identifier of the item in the item list as the target item identifier.

[0098] In an embodiment of the present invention, the determination module 703 is further used to: before determining the target item pool identifier based on the target live broadcast room identifier and the target area identifier, in response to monitoring an item operation message for the live broadcast room, obtain the live broadcast room identifier, the item identifier and the operation type from the item operation message; obtain the area identifier corresponding to the item identifier; determine the item pool identifier based on the area identifier and the live broadcast room identifier; obtain the item list corresponding to the item pool identifier; and update the item list based on the operation type and the item identifier.

[0099] In the embodiment of the present invention, the operation type includes at least one of adding, pinning and deleting.

[0100] In the embodiment of the present invention, the operation type is pinning, and the determination module 703 is further used to: delete the item identifier in the item list if the item identifier is not in the first position of the item list; and add the item identifier to the first position of the item list to update the item list.

[0101] In the embodiment of the present invention, the receiving module 701 is further used to: after receiving the data acquisition request sent by the client, obtain paging information from the data acquisition request, the paging information including the current page identifier and the amount of data per page;

[0102] Determination module 703 is further used to: determine the target item pool identifier based on the target live broadcast room identifier and the target area identifier; obtain the target item list corresponding to the target item pool identifier; determine the target item identifier based on the current page identifier, the amount of data per page and the target item list.

[0103] In an embodiment of the present invention, the item pool is stored in a memory database in a Key-Value format, where the Key is determined based on the live broadcast room identifier and the area identifier, and the Value is an item list, which is stored in a List structure.

[0104] According to another aspect of an embodiment of the present invention, there is provided an electronic device, comprising: one or more processors; a storage device for storing one or more programs, wherein when the one or more programs are executed by the one or more processors, the one or more processors implement the data processing method provided by the present invention.

[0105] According to another aspect of an embodiment of the present invention, a computer-readable medium is provided, on which a computer program is stored, and when the program is executed by a processor, the data processing method provided by the present invention is implemented.

[0106] Figure 8 An exemplary system architecture 800 is shown to which the data processing method or data processing apparatus according to the embodiment of the present invention can be applied.

[0107] like Figure 8 As shown, system architecture 800 may include terminal devices 801, 802, 803, a network 804, and a server 805. Network 804 is used to provide a medium for communication links between terminal devices 801, 802, 803 and server 805. Network 804 may include various connection types, such as wired, wireless communication links, or optical fiber cables, etc.

[0108] Users can use terminal devices 801, 802, and 803 to interact with server 805 through network 804 to receive or send messages, etc. Various communication client applications can be installed on terminal devices 801, 802, and 803, such as shopping applications, web browser applications, search applications, instant messaging tools, email clients, social platform software, etc. (only examples).

[0109] The terminal devices 801 , 802 , and 803 may be various electronic devices having a display screen and supporting web browsing, including but not limited to smart phones, tablet computers, laptop computers, desktop computers, and the like.

[0110] The server 805 may be a server that provides various services, such as a backend management server (only an example) that provides support for shopping websites browsed by users using the terminal devices 801, 802, and 803. The backend management server may analyze and process the received data such as product information query requests, and feed back the processing results (such as target push information, product information - only an example) to the terminal device.

[0111] It should be noted that the data processing method provided in the embodiment of the present invention is generally executed by the server 805 , and accordingly, the data processing device is generally set in the server 805 .

[0112] It should be understood that Figure 8 The number of terminal devices, networks and servers in the embodiment is only for illustration. Any number of terminal devices, networks and servers may be provided according to the implementation requirements.

[0113] Reference below Fig. 9 , which shows a schematic diagram of the structure of a computer system 900 of a terminal device suitable for implementing an embodiment of the present invention. Fig. 9 The terminal device shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present invention.

[0114] like Fig. 9 As shown, the computer system 900 includes a central processing unit (CPU) 901, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 902 or a program loaded from a storage part 908 into a random access memory (RAM) 903. In the RAM 903, various programs and data required for the operation of the system 900 are also stored. The CPU 901, the ROM 902, and the RAM 903 are connected to each other via a bus 904. An input / output (I / O) interface 905 is also connected to the bus 904.

[0115] The following components are connected to the I / O interface 905: an input section 906 including a keyboard, a mouse, etc.; an output section 907 including a cathode ray tube (CRT), a liquid crystal display (LCD), etc., and a speaker, etc.; a storage section 908 including a hard disk, etc.; and a communication section 909 including a network interface card such as a LAN card, a modem, etc. The communication section 909 performs communication processing via a network such as the Internet. A drive 910 is also connected to the I / O interface 905 as needed. A removable medium 911, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., is installed on the drive 910 as needed, so that a computer program read therefrom is installed into the storage section 908 as needed.

[0116] In particular, according to the embodiments disclosed in the present invention, the process described above with reference to the flowchart can be implemented as a computer software program. For example, the embodiments disclosed in the present invention include a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program includes a program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from the network through the communication part 909, and / or installed from the removable medium 911. When the computer program is executed by the central processing unit (CPU) 901, the above-mentioned functions defined in the system of the present invention are executed.

[0117] It should be noted that the computer-readable medium shown in the present invention may be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present invention, a computer-readable storage medium may be any tangible medium containing or storing a program that can be used by or in combination with an instruction execution system, device or device. In the present invention, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, which carries a computer-readable program code. This propagated data signal may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. Computer-readable signal media may also be any computer-readable medium other than computer-readable storage media, which may send, propagate or transmit a program for use by or in conjunction with an instruction execution system, apparatus or device. The program code contained on the computer-readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wire, optical cable, RF, etc., or any suitable combination of the above.

[0118] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present invention. In this regard, each box in the flow chart or block diagram can represent a module, a program segment, or a part of a code, and the above-mentioned module, program segment, or a part of a code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram or flow chart, and the combination of the boxes in the block diagram or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.

[0119] The modules involved in the embodiments of the present invention may be implemented by software or hardware. The modules described may also be set in a processor. For example, they may be described as: a processor includes a receiving module, an acquisition module, a determination module, and a sending module. The names of these modules do not, in some cases, constitute limitations on the modules themselves. For example, the acquisition module may also be described as a "module for acquiring a target area identifier corresponding to a user identifier."

[0120] As another aspect, the present invention also provides a computer-readable medium, which may be included in the device described in the above embodiment; or it may exist independently without being assembled into the device. The above computer-readable medium carries one or more programs, and when the above one or more programs are executed by a device, the device includes: in response to receiving a data acquisition request sent by a client, obtaining a user identifier and a target live broadcast room identifier from the data acquisition request; obtaining a target area identifier corresponding to the user identifier; determining a target item identifier based on the target live broadcast room identifier and the target area identifier; obtaining target item data corresponding to the target item identifier, and sending the target item data to the client so that the client displays the target item data.

[0121] According to the technical solution of the embodiment of the present invention, the data processing method of the embodiment of the present invention obtains the user identification and the target live broadcast room identification through the data acquisition request of the client, and can also obtain the paging information, then determine the target area identification according to the user identification, determine the item pool according to the target live broadcast room identification and the target area identification, determine the target item identification to be displayed in the item pool according to the paging information, and then obtain the target item data corresponding to the target item identification to be displayed on the client; wherein, by monitoring the item operation message of the live broadcast station, the item identification is heterogeneously stored in the memory database, and the item pool is stacked according to the live broadcast room identification and the area identification, so as to realize the update of the item list of the item pool in the memory database. The method forms the item pool stacking effect in the memory database with the List structure by monitoring the item operation message, so that when the user enters the live broadcast room, the item pool can be directly accessed to obtain the item data, forming the effect of thousands of people, and no filtering logic needs to be executed, which reduces resource consumption; the method realizes the paging effect through the paging query mode, and can also efficiently query and hit the corresponding item pool for the case of a large number of items, thereby improving the query efficiency and thus improving the response speed of the item display interface.

[0122] The above specific implementations do not constitute a limitation on the protection scope of the present invention. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions may occur depending on design requirements and other factors. Any modification, equivalent substitution and improvement made within the spirit and principle of the present invention shall be included in the protection scope of the present invention.

Claims

1. A method for data processing, characterized in that: include: In response to receiving a data acquisition request sent by a client, obtaining a user identifier and a target live broadcast room identifier from the data acquisition request; Obtaining a target area identifier corresponding to the user identifier; Determine the target object identifier according to the target live broadcast room identifier and the target area identifier; Target item data corresponding to the target item identifier is acquired, and the target item data is sent to the client so that the client displays the target item data.

2. The method according to claim 1, characterized in that Determining the target object identifier according to the target live broadcast room identifier and the target area identifier includes: Determine a target item pool identifier according to the target live broadcast room identifier and the target area identifier; Acquire a target item list corresponding to the target item pool identifier, wherein the target item list includes one or more items and an identifier of each item; The identifier of the item in the target item list is used as the target item identifier.

3. The method according to claim 2, characterized in that Before determining the target item pool identifier according to the target live broadcast room identifier and the target area identifier, the method includes: In response to monitoring an item operation message for the live broadcast room, acquiring a live broadcast room identifier, an item identifier, and an operation type from the item operation message; Obtaining a region identifier corresponding to the item identifier; Determine an item pool identifier according to the area identifier and the live broadcast room identifier; Obtaining an item list corresponding to the item pool identifier; The item list is updated according to the operation type and the item identifier.

4. The method according to claim 3, characterized in that The operation type includes at least one of adding, pinning and deleting.

5. The method according to claim 4, characterized in that The operation type is pinning, and updating the item list according to the operation type and the item identifier includes: If the item identifier is not in the first position of the item list, deleting the item identifier in the item list; The item identifier is added to the first position of the item list to update the item list.

6. The method according to claim 1, characterized in that After receiving the data acquisition request sent by the client, the method further includes: obtaining paging information from the data acquisition request, wherein the paging information includes a current page identifier and a data volume per page; Determining the target object identifier according to the target live broadcast room identifier and the target area identifier includes: Determine a target item pool identifier according to the target live broadcast room identifier and the target area identifier; Obtain a target item list corresponding to the target item pool identifier; The target item identifier is determined according to the current page identifier, the amount of data per page, and the target item list.

7. The method according to claim 3, characterized in that The item pool is stored in the memory database in the form of Key-Value, the Key is determined according to the live broadcast room identifier and the area identifier, and the Value is the item list, which is stored in a List structure.

8. A data processing device, characterized in that: include: A receiving module, in response to receiving a data acquisition request sent by a client, obtains a user identifier and a target live broadcast room identifier from the data acquisition request; An acquisition module, which acquires a target area identifier corresponding to the user identifier; A determination module, which determines a target object identifier according to the target live broadcast room identifier and the target area identifier; The sending module obtains the target item data corresponding to the target item identifier, and sends the target item data to the client so that the client displays the target item data.

9. An electronic device, characterized in that: include: one or more processors; a storage device for storing one or more programs, When the one or more programs are executed by the one or more processors, the one or more processors implement the method according to any one of claims 1 to 7.

10. A computer readable medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the method according to any one of claims 1 to 7 is implemented.