A method and device for publishing advertising information based on microservices
By adopting a microservice-based architecture in the advertising information publishing system, the advertising information requests and content of multimedia devices are transformed and processed, and the problems of low data processing efficiency and high operation and maintenance costs in traditional systems are solved, and efficient and unified advertising is achieved Information release and transmission.
Patent Information
- Application Number
- CN202111619057.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-12-27
- Publication Date
- 2025-02-18
- Estimated Expiration
- 2041-12-27
AI Technical Summary
Due to the single application architecture, the traditional advertising information publishing system has low data processing efficiency and uncontrollable system complexity, which increases deployment time and difficulty, and the systems of different manufacturers are not universal, which increases operation and maintenance costs.
Advertising information publishing method based on microservices is adopted to receive advertisement information requests sent by multimedia devices, and perform information conversion processing, convert them into standard message format requests, send them to service microservice platform, obtain advertising content information, and It is converted to the same content as the original request message format and returned to the multimedia device.
It realizes a unified format for information transmission within microservices, solves the problem of heterogeneity of multimedia equipment of different manufacturers, improves data transmission efficiency, simplifies system management, and reduces operation and maintenance costs.
Smart Images

Figure CN114282949B_ABST
Abstract
Description
Technical Field
[0001] The embodiments of the present application relate to the field of microservice technology, and in particular to a method and device for publishing advertising information based on microservices. Background Art
[0002] With the growth of population and the development of transportation, public transportation such as buses and subways have become important means of transportation for people. The release of advertising information on public transportation has the advantages of high recognition rate and reception, long advertising effect time, and strong flexibility. Advertising information release has become an indispensable form of media communication on public transportation.
[0003] Traditional advertising information publishing systems are mainly provided by hardware manufacturers to realize advertising publishing, equipment management and status monitoring. Therefore, when it is necessary to expand system functions or information, it is necessary to rely on the original manufacturer for software upgrades. In addition, systems of multiple manufacturers are not universal, and multiple systems need to be maintained. The system data is independent, and the same functional devices on motherboards of different manufacturers cannot be uniformly managed and maintained, increasing operation and maintenance costs.
[0004] When connecting multimedia terminal devices from various manufacturers to the system, the traditional approach is to connect them to a single application for centralized processing. However, as the number and types of multimedia terminals increase, the traditional single application architecture will cause the entire single application to become increasingly bloated due to the increase in internal processing code, and the system complexity will become uncontrollable, increasing the time and difficulty of deployment. Summary of the invention
[0005] The embodiments of the present application provide a method and device for publishing advertising information based on microservices, which can solve the problem of the inapplicability of single applications for publishing advertising information and improve the data processing efficiency of publishing advertising information.
[0006] In a first aspect, an embodiment of the present application provides a method for publishing advertising information based on microservices, including:
[0007] Receiving a first advertisement information acquisition request sent by a multimedia device;
[0008] Performing information conversion processing on the received request for obtaining advertisement information to obtain a second request for obtaining advertisement information, wherein the second request for obtaining advertisement information is a request for obtaining advertisement information in a standard message format;
[0009] Sending the second advertisement information acquisition request to the business microservice platform, and receiving the first advertisement content information fed back by the business microservice platform;
[0010] The received first advertisement content information is converted into second advertisement content information, and the second advertisement content information is sent to the multimedia device, wherein the second advertisement content information has the same format as the first advertisement information acquisition request message.
[0011] Further, the received request for obtaining advertisement information is converted to obtain a second request for obtaining advertisement information, specifically:
[0012] Analyze and process the received first request for obtaining advertisement information to determine the type of multimedia device to which the first request for obtaining advertisement information belongs;
[0013] According to the type of multimedia device to which the first request for obtaining advertisement information belongs, allocating the first request for obtaining advertisement information to a corresponding communication microservice sub-cluster;
[0014] The first request for obtaining advertisement information is sent to the data processing microservice through the communication microservice subcluster, and the second request for obtaining advertisement information fed back by the data processing microservice is received.
[0015] Further, the analyzing and processing of the received first request for obtaining advertisement information to determine the type of multimedia device to which the first request for obtaining advertisement information belongs is specifically:
[0016] The type of multimedia device to which the first request for obtaining advertisement information belongs is determined by analyzing and processing the received port type, routing type and message information in the first request for obtaining advertisement information.
[0017] Further, sending the second advertisement information acquisition request to the business microservice platform and receiving the first advertisement content information fed back by the business microservice platform is specifically:
[0018] Sending the second request to obtain advertisement information to the advertisement information microservice in the business microservice platform;
[0019] Receive the first advertisement content information obtained by the advertisement information microservice according to the second advertisement information obtaining request.
[0020] Furthermore, the data processing microservice is used to convert the first request for obtaining advertisement information into a second request for obtaining advertisement information in a standard message format for communication and transmission within the microservice system.
[0021] Furthermore, the receiving the first advertisement content information is converted into the second advertisement content information, and the second advertisement content information is sent to the multimedia device, specifically:
[0022] Allocating the received first advertisement content information to the communication microservice sub-cluster;
[0023] The first advertisement content information is sent to the data processing microservice through the communication microservice sub-cluster and second advertisement content information fed back by the data processing microservice is received, wherein the first advertisement content information is advertisement content information in a standard message format.
[0024] Furthermore, the method comprises:
[0025] The second request for obtaining advertisement information is saved in the message database microservice in the database microservice.
[0026] In a second aspect, an embodiment of the present application provides an advertising information publishing device based on microservices, including:
[0027] A request information receiving unit, configured to receive a first advertisement information acquisition request sent by a multimedia device;
[0028] An information conversion unit, configured to perform information conversion processing on the received request for obtaining advertisement information to obtain a second request for obtaining advertisement information, wherein the second request for obtaining advertisement information is a request for obtaining advertisement information in a standard message format;
[0029] A first advertisement information acquisition unit, configured to send the second advertisement information acquisition request to the business microservice platform, and receive the first advertisement content information fed back by the business microservice platform;
[0030] The second advertisement information sending unit is used to convert the received first advertisement content information to obtain second advertisement content information, and send the second advertisement content information to the multimedia device, wherein the second advertisement content information has the same format as the first advertisement information acquisition request message.
[0031] Furthermore, the information conversion unit is further used to analyze and process the received first request for obtaining advertisement information, and determine the type of multimedia device to which the first request for obtaining advertisement information belongs;
[0032] According to the type of multimedia device to which the first request for obtaining advertisement information belongs, allocating the first request for obtaining advertisement information to a corresponding communication microservice sub-cluster;
[0033] The first request for obtaining advertisement information is sent to the data processing microservice through the communication microservice subcluster, and the second request for obtaining advertisement information fed back by the data processing microservice is received.
[0034] Furthermore, the information conversion unit is also used to analyze and process the received first request for obtaining advertisement information according to the port type, routing type and message information in the first request for obtaining advertisement information, so as to determine the type of multimedia device to which the first request for obtaining advertisement information belongs.
[0035] Furthermore, the first advertisement information acquisition unit is used to send the second advertisement information acquisition request to the advertisement information microservice in the business microservice platform;
[0036] Receive the first advertisement content information obtained by the advertisement information microservice according to the second advertisement information obtaining request.
[0037] Furthermore, the data processing microservice is used to convert the first request for obtaining advertisement information into a second request for obtaining advertisement information in a standard message format for communication and transmission within the microservice system.
[0038] Furthermore, the second advertisement information sending unit is further configured to distribute the received first advertisement content information to the communication microservice sub-cluster;
[0039] The first advertisement content information is sent to the data processing microservice through the communication microservice sub-cluster and second advertisement content information fed back by the data processing microservice is received, wherein the first advertisement content information is advertisement content information in a standard message format.
[0040] Furthermore, the device is also used to save the second request for obtaining advertisement information into a message database microservice in the database microservice.
[0041] In a third aspect, an embodiment of the present application provides an electronic device, including:
[0042] memory and one or more processors;
[0043] The memory is used to store one or more programs;
[0044] When the one or more programs are executed by the one or more processors, the one or more processors implement the microservice-based advertising information publishing method as described in the first aspect.
[0045] In a fourth aspect, an embodiment of the present application provides a storage medium comprising computer executable instructions, which, when executed by a computer processor, are used to execute the microservice-based advertising information publishing method as described in the first aspect.
[0046] The embodiment of the present application converts the first advertisement information acquisition request sent by the receiving multimedia device to obtain the second advertisement information acquisition request in the standard message format, sends the second advertisement information acquisition request to the business microservice platform to obtain the first advertisement information fed back by the business microservice platform, converts the first advertisement information into the second advertisement content information in the same message format as the first advertisement information acquisition request, and sends the second advertisement content information to the multimedia device. The above-mentioned technical means are adopted to convert the first advertisement information acquisition request into the second advertisement information acquisition request in the standard message format, so as to transmit the information in the standard message format in the microservice system, realize the unified format of the information transmitted within the microservice, solve the problem of heterogeneity of the information sent by multimedia devices corresponding to different manufacturers, improve the data transmission efficiency, and convert the returned advertisement content information into the second advertisement content information in the same message format as the original first advertisement information acquisition request, so as to meet the message adaptability requirements of the multimedia device itself, realize the information exchange between the multimedia device and the microservice system, and improve the information transmission efficiency. In addition, through the microservice architecture, communication services, data information conversion services and business function services can be split into communication gateway microservices, data processing microservices and business microservice platforms, etc., so that each microservice can be independently operated and managed, alleviating the pressure of internal code processing in the system, more in line with the application requirements of existing distributed multimedia advertising information release, improving the data transmission efficiency between multimedia devices and systems, and improving the operating efficiency of the microservice system. BRIEF DESCRIPTION OF THE DRAWINGS
[0047] Figure 1 This is a flow chart of a method for publishing advertising information based on microservices provided in Example 1 of the present application;
[0048] Figure 2 This is a schematic diagram of the connection of each microservice device in Example 1 of the present application;
[0049] Figure 3 This is a schematic diagram of the connection of some microservice devices in Example 1 of the present application;
[0050] Figure 4 This is a structural diagram of a microservice-based advertising information publishing device provided in Embodiment 2 of the present application;
[0051] Figure 5 It is a structural schematic diagram of an electronic device provided in Example 3 of the present application. DETAILED DESCRIPTION
[0052] In order to make the purpose, technical scheme and advantages of the present application clearer, the specific embodiments of the present application are further described in detail below in conjunction with the accompanying drawings. It is understood that the specific embodiments described herein are only used to explain the present application, rather than to limit the present application. It should also be noted that, for the convenience of description, only the part related to the present application but not all the contents are shown in the accompanying drawings. Before discussing the exemplary embodiments in more detail, it should be mentioned that some exemplary embodiments are described as processes or methods depicted as flow charts. Although the flow chart describes each operation (or step) as a sequential process, many of the operations therein can be implemented in parallel, concurrently or simultaneously. In addition, the order of each operation can be rearranged. The process can be terminated when its operation is completed, but it can also have additional steps not included in the accompanying drawings. The process can correspond to a method, a function, a procedure, a subroutine, a subprogram, etc.
[0053] The microservice-based advertising information publishing method and device provided in the present application are intended to, when requesting to obtain advertising content information, receive a first advertising information acquisition request sent by a multimedia device and convert it into a second advertising information acquisition request in a standard message format, receive the first advertising content information fed back by the business microservice platform according to the second advertising information request, and convert the first advertising content information into the second advertising content information in the same message format as the first advertising information acquisition request, and send it to the multimedia device. Compared with the traditional method of requesting to obtain advertising content, it usually uses a monolithic application to communicate with multimedia devices. As the number of multimedia devices increases, the traditional monolithic application architecture will increase the number of internal processing codes due to the increase in the number of multimedia devices communicating, thereby causing the monolithic application to become more and more bloated, thereby increasing the deployment time and difficulty. Based on this, a microservice-based advertising information publishing method according to an embodiment of the present application is provided to solve the problem of poor data transmission efficiency caused by monolithic applications in the existing advertising content information acquisition.
[0054] Embodiment 1:
[0055] Figure 1 A flowchart of a microservice-based advertising information publishing method provided in the first embodiment of the present application is given. The microservice-based advertising information publishing method provided in this embodiment can be executed by a microservice-based advertising information publishing device, which can be implemented by software and / or hardware. The microservice-based advertising information publishing device can be composed of two or more physical entities, or can be composed of one physical entity. Generally speaking, the microservice-based advertising information publishing device can be a terminal device, such as a computer, a tablet or a mobile phone.
[0056] The following description is made by taking a computer device as an example to implement the microservice-based advertising information publishing method. Figure 1 , the microservice-based advertising information publishing method specifically includes:
[0057] S101: Receive a first request for obtaining advertisement information sent by a multimedia device.
[0058] On public transportation equipment, such as bus equipment, multimedia equipment is provided to publish corresponding advertising information. Different multimedia equipment corresponds to different manufacturers, because the message formats of the information sent by different multimedia devices are different. Before the multimedia device needs to play an advertisement, it is necessary to send a request to the server to obtain the corresponding advertising content information. The server uses a microservice architecture, which is explained below using the communication gateway microservice as an example. The first request for obtaining advertising information sent by the multimedia device is received through the communication gateway microservice. The first request for obtaining advertising information has a message format that comes with the multimedia device. The message format that comes with it is set by the multimedia device manufacturer during production. Therefore, the message formats of the first request for obtaining advertising information sent by different multimedia devices are different.
[0059] S102: Perform information conversion processing on the received request for obtaining advertisement information to obtain a second request for obtaining advertisement information, where the second request for obtaining advertisement information is a request for obtaining advertisement information in a standard message format.
[0060] Reference Figure 2 and Figure 3 , analyzing and processing the received first request for obtaining advertisement information, analyzing and processing the received first request for obtaining advertisement information according to the port type, routing type and message information in the first request for obtaining advertisement information, and determining the type of multimedia device to which the first request for obtaining advertisement information belongs. According to the type of multimedia device to which the first request for obtaining advertisement information belongs, allocating the first request for obtaining advertisement information to the corresponding communication microservice sub-cluster, sending the first request for obtaining advertisement information to the data processing microservice through the communication microservice sub-cluster and receiving the second request for obtaining advertisement information fed back by the data processing microservice.
[0061] Since the ports and routes through which the first request for obtaining advertisement information is sent by different multimedia devices are different, and the message contents in the first request for obtaining advertisement information are also different, the type of multimedia device that issues the first request for obtaining advertisement information can be determined according to the port type or route type through which the first request for obtaining advertisement information is received, or the type of multimedia device that issues the first request for obtaining advertisement information can be determined according to the message contents in the first request for obtaining advertisement information, for example, an LCD screen device. After determining the type of multimedia device that issues the first request for obtaining advertisement information, the first request for obtaining advertisement information is assigned to a corresponding communication microservice subcluster, for example, an LCD screen communication microservice subcluster. The communication microservice subcluster is a sub-microservice in the communication network optical microservice, and each type of multimedia device corresponds to a communication microservice subcluster, for example, a multimedia device LCD screen device corresponds to an LCD screen communication microservice subcluster. The first request for obtaining advertisement information is sent to the data processing microservice through the communication microservice subcluster. The data processing microservice is used to convert the first request for obtaining advertisement information into a second request for obtaining advertisement information in a standard message format for communication transmission within the microservice system. The data processing microservice performs data collection, data cleaning and data conversion for the first request for obtaining advertisement information. The communication microservice sub-cluster receives the second request for obtaining advertisement information fed back by the data processing microservice.
[0062] Exemplarily, the second request for obtaining advertisement information is saved in the message database microservice in the database microservice. When the same request is subsequently received from the same type of multimedia device, the second request for obtaining advertisement information in the corresponding message database microservice can be directly called, or when the same request is subsequently received from the same type of multimedia device, the message format can be re-converted.
[0063] S103: Send the second advertisement information acquisition request to the business microservice platform, and receive the first advertisement content information fed back by the business microservice platform.
[0064] The second request for obtaining advertisement information is sent to the advertisement information microservice in the business microservice platform, and the first advertisement content information obtained by the advertisement information microservice according to the second request for obtaining advertisement information is received.
[0065] Based on the fact that the second request for obtaining advertising information is a request for obtaining advertising information in a standard message format, transmission within the microservice architecture can be achieved, and information transmission in a unified format can be achieved to improve transmission efficiency and data processing speed. The communication microservice subcluster sends the second request for obtaining advertising information to the business microservice platform, and the business microservice platform identifies the information in the second request for obtaining advertising information, determines to allocate the second request for obtaining advertising information to the advertising information microservice, and the advertising information microservice launches the first advertising content information to the communication microservice subcluster according to the second request for obtaining advertising information. The business microservice platform also includes basic data microservices, platform business microservices, open interface microservices, task scheduling microservices, data analysis microservices, report center microservices, and advertising information microservices. Each microservice runs independently of each other, so in this embodiment, only the advertising information microservice is used, and whether other microservices are used does not affect the running speed of the advertising microservice. Therefore, compared with traditional monolithic applications, the microservice structure has faster data processing speed and higher work efficiency.
[0066] S104: Convert the received first advertisement content information to obtain second advertisement content information, and send the second advertisement content information to the multimedia device, wherein the second advertisement content information has the same format as the first advertisement information acquisition request message.
[0067] The received first advertising content information is assigned to the communication microservice sub-cluster, and the first advertising content information is sent to the data processing microservice through the communication microservice sub-cluster and the second advertising content information fed back by the data processing microservice is received, wherein the first advertising content information is advertising content information in a standard message format, and the second advertising content information is the same as the first request message format for obtaining advertising information. By converting the first advertising content information in a standard message format into the second advertising content information in the same message format as the first request message format for obtaining advertising information, and sending the second advertising content information to the multimedia device. The second advertising content information received by the multimedia device is the same as the first request message format for obtaining advertising information sent by the multimedia device, so as to adapt to the format requirements of the multimedia device, avoid data information transmission failure caused by different message formats, and improve the effectiveness of data transmission and the efficiency of data transmission.
[0068] In one embodiment, referring to Figure 2 and Figure 3, taking the multimedia device as an LCD screen device as an example. The LCD screen device sends a first request for obtaining advertising information with its own message format to the communication gateway microservice in the microservice architecture, and the access gateway microservice receives the first request for obtaining advertising information, and analyzes the port type, routing type or message information of the first request for obtaining advertising information according to the reception of the first request for obtaining advertising information sent by the LCD screen device, and determines that the multimedia device sending the first request for obtaining advertising information is an LCD screen device, so the first request for obtaining advertising information is assigned to the LCD screen communication microservice sub-cluster in the access gateway microservice, and the first request for obtaining advertising information is sent to the data processing microservice through the LCD screen communication microservice sub-cluster. The data processing microservice performs data cleaning and data conversion on the received first request for obtaining advertising information, converts the cleaned first request for obtaining advertising information into a second request for obtaining advertising information in a standard message format, and sends the second request for obtaining advertising information in a standard message format to the advertising information microservice in the business microservice platform through the LCD screen communication microservice sub-cluster. The advertising information microservice extracts the corresponding advertising content information according to the second request to obtain advertising information, forms the first advertising content information with a standard message format and sends it to the LCD screen communication microservice subcluster. The LCD screen communication microservice subcluster receives the first advertising content information and sends it to the data processing microservice to convert the data into the second advertising content information with the same message format as the first request to obtain advertising information and returns it to the LCD screen communication microservice subcluster. The LCD screen communication microservice subcluster sends the second advertising content information with the same message format as the first request to obtain advertising information to the LCD screen device, and the LCD screen device publishes the corresponding advertising content according to the received second advertising content information with the same message format as its own.
[0069] In one embodiment, referring to Figure 2 and Figure 3 The microservice system also includes a management and control platform WEB, a configuration center, and a data cluster microservice. The configuration center includes a dynamic configuration microservice and a registration center cluster microservice. The dynamic configuration microservice performs configuration registration of the business platform microservice. The data cluster microservice includes a Redis database microservice, a MySQL database microservice, a Mongodb database microservice, a message database microservice, and a pressure database microservice.
[0070] In the above, the first request for obtaining advertising information sent by the receiving multimedia device is converted to obtain the second request for obtaining advertising information in a standard message format, the second request for obtaining advertising information is sent to the business microservice platform to obtain the first advertising information fed back by the business microservice platform, the first advertising information is converted into the second advertising content information in the same message format as the first request for obtaining advertising information, and the second advertising content information is sent to the multimedia device. By adopting the above technical means, by converting the first request for obtaining advertising information into the second request for obtaining advertising information in a standard message format, information in a standard message format is transmitted in the microservice system, a unified format of information transmitted within the microservice is realized, the problem of heterogeneity of information sent by multimedia devices corresponding to different manufacturers is solved, the data transmission efficiency is improved, and the advertising content information is converted into the second advertising content information in the same message format as the original first request for obtaining advertising information when returning the advertising content information, so as to meet the message adaptability requirements of the multimedia device itself, realize the information exchange between the multimedia device and the microservice system, and improve the information transmission efficiency. In addition, through the microservice architecture, communication services, data information conversion services and business function services can be split into communication gateway microservices, data processing microservices and business microservice platforms, etc., so that each microservice can be independently operated and managed, alleviating the pressure of internal code processing in the system, more in line with the application requirements of existing distributed multimedia advertising information release, improving the data transmission efficiency between multimedia devices and systems, and improving the operating efficiency of the microservice system.
[0071] Embodiment 2:
[0072] Based on the above embodiments, Figure 4 This is a schematic diagram of the structure of a microservice-based advertising information publishing device provided in Example 2 of the present application. Figure 4 The microservice-based advertising information publishing device provided in this embodiment specifically includes: a request information receiving unit 21, an information conversion unit 22, a first advertising information obtaining unit 23 and a second advertising information sending unit 24.
[0073] The request information receiving unit 21 is used to receive a first advertisement information acquisition request sent by a multimedia device;
[0074] The information conversion unit 22 is used to perform information conversion processing on the received request for obtaining advertisement information to obtain a second request for obtaining advertisement information, where the second request for obtaining advertisement information is a request for obtaining advertisement information in a standard message format;
[0075] The first advertisement information acquisition unit 23 is used to send the second advertisement information acquisition request to the business microservice platform, and receive the first advertisement content information fed back by the business microservice platform;
[0076] The second advertisement information sending unit 24 is used to convert the received first advertisement content information to obtain second advertisement content information, and send the second advertisement content information to the multimedia device, wherein the second advertisement content information has the same format as the first advertisement information acquisition request message.
[0077] Furthermore, the information conversion unit 22 is further configured to analyze and process the received first request for obtaining advertisement information, and determine the type of multimedia device to which the first request for obtaining advertisement information belongs;
[0078] According to the type of multimedia device to which the first request for obtaining advertisement information belongs, allocating the first request for obtaining advertisement information to a corresponding communication microservice sub-cluster;
[0079] The first request for obtaining advertisement information is sent to the data processing microservice through the communication microservice subcluster, and the second request for obtaining advertisement information fed back by the data processing microservice is received.
[0080] Furthermore, the information conversion unit 22 is further used to analyze and process the received first request for obtaining advertisement information according to the port type, routing type and message information in the first request for obtaining advertisement information, so as to determine the type of multimedia device to which the first request for obtaining advertisement information belongs.
[0081] Furthermore, the first advertisement information acquisition unit 23 is used to send the second advertisement information acquisition request to the advertisement information microservice in the business microservice platform;
[0082] Receive the first advertisement content information obtained by the advertisement information microservice according to the second advertisement information obtaining request.
[0083] Furthermore, the data processing microservice is used to convert the first request for obtaining advertisement information into a second request for obtaining advertisement information in a standard message format for communication and transmission within the microservice system.
[0084] Furthermore, the second advertisement information sending unit 24 is further configured to distribute the received first advertisement content information to the communication microservice sub-cluster;
[0085] The first advertisement content information is sent to the data processing microservice through the communication microservice sub-cluster and second advertisement content information fed back by the data processing microservice is received, wherein the first advertisement content information is advertisement content information in a standard message format.
[0086] Furthermore, the device is also used to save the second request for obtaining advertisement information into a message database microservice in the database microservice.
[0087] In one embodiment, the apparatus includes a microservice system, and the microservice system includes a communication gateway microservice, a communication microservice sub-cluster, a data processing microservice, a business platform microservice, and an advertising information microservice;
[0088] The communication gateway microservice is used to receive a first request for obtaining advertisement information sent by the multimedia device;
[0089] A data processing microservice, configured to perform information conversion processing on the received request for obtaining advertisement information to obtain a second request for obtaining advertisement information, wherein the second request for obtaining advertisement information is a request for obtaining advertisement information in a standard message format;
[0090] The communication microservice sub-cluster is used to send the second advertisement information acquisition request to the business microservice platform, and receive the first advertisement content information fed back by the business microservice platform;
[0091] The communication gateway microservice is used to convert the received first advertising content information to obtain second advertising content information, and send the second advertising content information to the multimedia device, wherein the second advertising content information has the same format as the first advertising information acquisition request message.
[0092] Furthermore, the communication gateway microservice is further used to analyze and process the received first request for obtaining advertisement information, and determine the type of multimedia device to which the first request for obtaining advertisement information belongs;
[0093] According to the type of multimedia device to which the first request for obtaining advertisement information belongs, allocating the first request for obtaining advertisement information to a corresponding communication microservice sub-cluster;
[0094] The first request for obtaining advertisement information is sent to the data processing microservice through the communication microservice subcluster, and the second request for obtaining advertisement information fed back by the data processing microservice is received.
[0095] Furthermore, the communication gateway microservice is also used to analyze and process the received first request for obtaining advertising information based on the port type, routing type and message information in the first request for obtaining advertising information, so as to determine the type of multimedia device to which the first request for obtaining advertising information belongs.
[0096] Furthermore, the communication microservice sub-cluster is used to send the second request for obtaining advertisement information to the advertisement information microservice in the business microservice platform;
[0097] Receive the first advertisement content information obtained by the advertisement information microservice according to the second advertisement information obtaining request.
[0098] Furthermore, the data processing microservice is used to convert the first request for obtaining advertisement information into a second request for obtaining advertisement information in a standard message format for communication and transmission within the microservice system.
[0099] Furthermore, the communication gateway microservice is further configured to distribute the received first advertisement content information to the communication microservice sub-cluster;
[0100] The first advertisement content information is sent to the data processing microservice through the communication microservice sub-cluster and second advertisement content information fed back by the data processing microservice is received, wherein the first advertisement content information is advertisement content information in a standard message format.
[0101] Furthermore, the device is also used to save the second request for obtaining advertisement information into a message database microservice in the database microservice.
[0102] In the above, the first request for obtaining advertising information sent by the receiving multimedia device is converted to obtain the second request for obtaining advertising information in a standard message format, the second request for obtaining advertising information is sent to the business microservice platform to obtain the first advertising information fed back by the business microservice platform, the first advertising information is converted into the second advertising content information in the same message format as the first request for obtaining advertising information, and the second advertising content information is sent to the multimedia device. By adopting the above technical means, by converting the first request for obtaining advertising information into the second request for obtaining advertising information in a standard message format, information in a standard message format is transmitted in the microservice system, a unified format of information transmitted within the microservice is realized, the problem of heterogeneity of information sent by multimedia devices corresponding to different manufacturers is solved, the data transmission efficiency is improved, and the advertising content information is converted into the second advertising content information in the same message format as the original first request for obtaining advertising information when returning the advertising content information, so as to meet the message adaptability requirements of the multimedia device itself, realize the information exchange between the multimedia device and the microservice system, and improve the information transmission efficiency. In addition, through the microservice architecture, communication services, data information conversion services and business function services can be split into communication gateway microservices, data processing microservices and business microservice platforms, etc., so that each microservice can be independently operated and managed, alleviating the pressure of internal code processing in the system, more in line with the application requirements of existing distributed multimedia advertising information release, improving the data transmission efficiency between multimedia devices and systems, and improving the operating efficiency of the microservice system.
[0103] The microservice-based advertising information publishing device provided in the second embodiment of the present application can be used to execute the microservice-based advertising information publishing method provided in the above-mentioned first embodiment, and has corresponding functions and beneficial effects.
[0104] Embodiment three:
[0105] Embodiment 3 of the present application provides an electronic device, referring to Figure 5 The electronic device includes: a processor 31, a memory 32, a communication module 33, an input device 34 and an output device 35. The number of processors in the electronic device can be one or more, and the number of memories in the electronic device can be one or more. The processor, memory, communication module, input device and output device of the electronic device can be connected via a bus or other means.
[0106] The memory 32, as a computer-readable storage medium, can be used to store software programs, computer executable programs and modules, such as program instructions / modules corresponding to the microservice-based advertising information publishing method described in any embodiment of the present application (for example, a request information receiving unit, an information conversion unit, a first advertising information acquisition unit and a second advertising information sending unit in a microservice-based advertising information publishing device). The memory may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application required for at least one function; the data storage area may store data created according to the use of the device, etc. In addition, the memory may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, or other non-volatile solid-state storage device. In some instances, the memory may further include a memory remotely arranged relative to the processor, and these remote memories may be connected to the device via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network and a combination thereof.
[0107] The communication module 33 is used for data transmission.
[0108] The processor 31 executes various functional applications and data processing of the device by running software programs, instructions and modules stored in the memory, that is, realizes the above-mentioned microservice-based advertising information publishing method.
[0109] The input device 34 may be used to receive input digital or character information and generate key signal input related to user settings and function control of the device. The output device 35 may include a display device such as a display screen.
[0110] The electronic device provided above can be used to execute the microservice-based advertising information publishing method provided in the above embodiment 1, and has corresponding functions and beneficial effects.
[0111] Embodiment 4:
[0112] An embodiment of the present application also provides a storage medium containing computer executable instructions, which, when executed by a computer processor, are used to execute a microservice-based advertising information publishing method, the microservice-based advertising information publishing method comprising: receiving a first request for obtaining advertising information sent by a multimedia device; performing information conversion processing on the received request for obtaining advertising information to obtain a second request for obtaining advertising information, wherein the second request for obtaining advertising information is a request for obtaining advertising information in a standard message format; sending the second request for obtaining advertising information to a business microservice platform, and receiving first advertising content information fed back by the business microservice platform; performing information conversion processing on the received first advertising content information to obtain second advertising content information, and sending the second advertising content information to the multimedia device, wherein the second advertising content information and the first request for obtaining advertising information have the same message format.
[0113] Storage medium - any of various types of memory devices or storage devices. The term "storage medium" is intended to include: installation media, such as CD-ROM, floppy disk or tape device; computer system memory or random access memory, such as DRAM, DDR RAM, SRAM, EDO RAM, Rambus RAM, etc.; non-volatile memory, such as flash memory, magnetic media (such as hard disk or optical storage); registers or other similar types of memory elements, etc. Storage media may also include other types of memory or combinations thereof. In addition, the storage medium may be located in the first computer system in which the program is executed, or may be located in a different second computer system, which is connected to the first computer system via a network (such as the Internet). The second computer system can provide program instructions to the first computer for execution. The term "storage medium" may include two or more storage media residing in different locations (for example, in different computer systems connected by a network). The storage medium may store program instructions (for example, embodied as a computer program) that can be executed by one or more processors.
[0114] Of course, the storage medium containing computer executable instructions provided in the embodiment of the present application is not limited to the microservice-based advertising information publishing method as described above, and can also execute related operations in the microservice-based advertising information publishing method provided in any embodiment of the present application.
[0115] The microservice-based advertising information publishing device, storage medium and electronic device provided in the above embodiments can execute the microservice-based advertising information publishing method provided in any embodiment of the present application. For technical details not described in detail in the above embodiments, please refer to the microservice-based advertising information publishing method provided in any embodiment of the present application.
[0116] The above are only preferred embodiments of the present application and the technical principles used. The present application is not limited to the specific embodiments described herein, and various obvious changes, readjustments and substitutions that can be made by those skilled in the art will not deviate from the scope of protection of the present application. Therefore, although the present application is described in more detail through the above embodiments, the present application is not limited to the above embodiments, and may include more other equivalent embodiments without departing from the concept of the present application, and the scope of the present application is determined by the scope of the claims.
Claims
1. A method for publishing advertising information based on microservices, characterized in that: Used in a microservice system, the microservice system includes a communication gateway microservice, a data processing microservice, a business platform microservice, a management and control platform WEB, a configuration center and a data cluster microservice, wherein the configuration center includes a dynamic configuration microservice and a registration center cluster microservice, the dynamic configuration microservice performs configuration registration of the business platform microservice, the data cluster microservice includes a Redis database microservice, a MySQL database microservice, a Mongodb database microservice, a message database microservice and an air pressure database microservice, and the method includes: The communication gateway microservice receives a first request for obtaining advertisement information sent by the multimedia device, where the first request for obtaining advertisement information has a message format that comes with the multimedia device, and the message formats of the first request for obtaining advertisement information sent by different multimedia devices are different; Performing information conversion processing on the received request for obtaining advertisement information to obtain a second request for obtaining advertisement information, wherein the second request for obtaining advertisement information is a request for obtaining advertisement information in a standard message format; Sending the second advertisement information acquisition request to the business microservice platform, and receiving the first advertisement content information fed back by the business microservice platform; Converting the received first advertisement content information to obtain second advertisement content information, and sending the second advertisement content information to the multimedia device, wherein the second advertisement content information has the same format as the first advertisement information acquisition request message; The information conversion process is performed on the received request for obtaining advertisement information to obtain a second request for obtaining advertisement information, specifically: Analyze and process the received first request for obtaining advertisement information to determine the type of multimedia device to which the first request for obtaining advertisement information belongs; According to the type of multimedia device to which the first request for obtaining advertisement information belongs, the first request for obtaining advertisement information is allocated to a corresponding communication microservice sub-cluster, where each type of multimedia device corresponds to a communication microservice sub-cluster; Sending the first request to obtain advertising information to the data processing microservice through the communication microservice subcluster and receiving the second request to obtain advertising information fed back by the data processing microservice, wherein the data processing microservice is used to convert the first request to obtain advertising information into a second request to obtain advertising information in a standard message format for communication and transmission within the microservice system; The second request for obtaining advertisement information is saved in a message database microservice in the database microservice, and when the same request from the same type of multimedia device is received, the second request for obtaining advertisement information in the corresponding message database microservice is retrieved.
2. The microservice-based advertising information publishing method according to claim 1, characterized in that: The analyzing and processing the received first request for obtaining advertisement information to determine the type of multimedia device to which the first request for obtaining advertisement information belongs is specifically: The type of multimedia device to which the first request for obtaining advertisement information belongs is determined by analyzing and processing the received port type, routing type and message information in the first request for obtaining advertisement information.
3. The microservice-based advertising information publishing method according to claim 1 is characterized in that: The sending of the second advertisement information acquisition request to the business microservice platform and receiving the first advertisement content information fed back by the business microservice platform is specifically: Sending the second request to obtain advertisement information to the advertisement information microservice in the business microservice platform; Receive the first advertisement content information obtained by the advertisement information microservice according to the second advertisement information obtaining request.
4. The microservice-based advertising information publishing method according to claim 1, characterized in that: The receiving the first advertisement content information and performing information conversion processing to obtain the second advertisement content information, and sending the second advertisement content information to the multimedia device specifically comprises: Allocating the received first advertisement content information to the communication microservice sub-cluster; The first advertisement content information is sent to the data processing microservice through the communication microservice sub-cluster and second advertisement content information fed back by the data processing microservice is received, wherein the first advertisement content information is advertisement content information in a standard message format.
5. An advertising information publishing device based on microservices, characterized in that: Used in a microservice system, the microservice system includes a communication gateway microservice, a data processing microservice, a business platform microservice, a management and control platform WEB, a configuration center and a data cluster microservice, wherein the configuration center includes a dynamic configuration microservice and a registration center cluster microservice, the dynamic configuration microservice performs configuration registration of the business platform microservice, the data cluster microservice includes a Redis database microservice, a MySQL database microservice, a Mongodb database microservice, a message database microservice and an air pressure database microservice, and the device includes: A request information receiving unit, used for the communication gateway microservice to receive a first request for obtaining advertisement information sent by a multimedia device, wherein the first request for obtaining advertisement information has a message format that comes with the multimedia device, and the message formats of the first request for obtaining advertisement information sent by different multimedia devices are different; An information conversion unit, configured to perform information conversion processing on the received request for obtaining advertisement information to obtain a second request for obtaining advertisement information, wherein the second request for obtaining advertisement information is a request for obtaining advertisement information in a standard message format; A first advertisement information acquisition unit, configured to send the second advertisement information acquisition request to the business microservice platform, and receive the first advertisement content information fed back by the business microservice platform; A second advertisement information sending unit, configured to convert the received first advertisement content information to obtain second advertisement content information, and send the second advertisement content information to the multimedia device, wherein the second advertisement content information has the same format as the first advertisement information acquisition request message; The information conversion unit is further used to analyze and process the received first request for obtaining advertisement information, and determine the type of multimedia device to which the first request for obtaining advertisement information belongs; According to the type of multimedia device to which the first request for obtaining advertisement information belongs, the first request for obtaining advertisement information is allocated to a corresponding communication microservice sub-cluster, where each type of multimedia device corresponds to a communication microservice sub-cluster; Sending the first request to obtain advertising information to the data processing microservice through the communication microservice subcluster and receiving the second request to obtain advertising information fed back by the data processing microservice, wherein the data processing microservice is used to convert the first request to obtain advertising information into a second request to obtain advertising information in a standard message format for communication and transmission within the microservice system; The device is also used to save the second request for obtaining advertising information to a message database microservice in the database microservice, and when receiving the same request from the same type of multimedia device, call the second request for obtaining advertising information in the corresponding message database microservice.
6. An electronic device, characterized in that: include: memory and one or more processors; The memory is used to store 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 4.
7. A storage medium containing computer executable instructions, characterized in that: The computer executable instructions are used to perform the method according to any one of claims 1 to 4 when executed by a computer processor.
Citation Information
Patent Citations
Advertisement data acquisition method and device, equipment and storage medium
CN113469740A
A system for remote monitoring advertisement display state and methode thereof
KR1020100104700A