Disclosure of Invention
The embodiment of the application provides an advertisement information publishing method and device based on micro service, which can solve the problem that a single application is not suitable for publishing advertisement information and improve the data processing efficiency of advertisement information publishing.
In a first aspect, an embodiment of the present application provides a method for publishing advertisement information based on a micro service, including:
receiving a first advertisement information acquisition request sent by multimedia equipment;
performing information conversion processing on the received advertisement information acquisition request to obtain a second advertisement information acquisition request, wherein the second advertisement information acquisition request is an advertisement information acquisition request in a standard message format;
sending the second advertisement information acquisition request to a service micro-service platform, and receiving first advertisement content information fed back by the service micro-service platform;
and performing information conversion processing on the received first advertisement content information to obtain second advertisement content information, and sending the second advertisement content information to the multimedia equipment, wherein the second advertisement content information has the same format as the first advertisement information acquisition request message.
Further, the information conversion processing is performed on the received advertisement information acquisition request to obtain a second advertisement information acquisition request, which specifically includes:
analyzing and processing a received first advertisement information acquisition request, and determining the type of multimedia equipment to which the first advertisement information acquisition request belongs;
distributing the first advertisement information acquisition request to a corresponding communication micro-service sub-cluster according to the determined multimedia equipment type to which the first advertisement information acquisition request belongs;
and sending the first advertisement information obtaining request to a data processing micro-service through the communication micro-service subset and receiving the second advertisement information obtaining request fed back by the data processing micro-service.
Further, the analyzing and processing the received first advertisement information obtaining request to determine the multimedia device type to which the first advertisement information obtaining request belongs specifically includes:
and analyzing and processing according to the port type and the route type of the received first advertisement information acquisition request and the message information in the first advertisement information acquisition request, and determining the type of the multimedia equipment to which the first advertisement information acquisition request belongs.
Further, the sending the second advertisement information obtaining request to a service micro service platform and receiving the first advertisement content information fed back by the service micro service platform specifically includes:
sending the second advertisement information acquisition request to an advertisement information microservice in a service microservice platform;
and receiving first advertisement content information acquired by the advertisement information micro-service according to the second advertisement information acquisition request.
Further, the data processing microservice is configured to convert the first request for obtaining advertisement information into a second request for obtaining advertisement information in a standard message format, so as to enable the microservice system to perform communication transmission therein.
Further, the information conversion processing is performed on the received first advertisement content information to obtain second advertisement content information, and the second advertisement content information is sent to the multimedia device, specifically:
distributing the received first advertisement content information to the communication micro-service sub-cluster;
and sending the first advertisement content information to a data processing micro service through the communication micro service subset and receiving second advertisement content information fed back by the data processing micro service, wherein the first advertisement content information is advertisement content information in a standard message format.
Further, the method comprises:
and storing the second advertisement information acquisition request to a message database micro-service in a database micro-service.
In a second aspect, an embodiment of the present application provides a micro service-based advertisement information publishing device, including:
the request information receiving unit is used for receiving a first advertisement information acquisition request sent by the multimedia equipment;
the information conversion unit is used for carrying out information conversion processing on the received advertisement information acquisition request to obtain a second advertisement information acquisition request, and the second advertisement information acquisition request is an advertisement information acquisition request in a standard message format;
the first advertisement information acquisition unit is used for sending the second advertisement information acquisition request to a service micro-service platform and receiving first advertisement content information fed back by the service micro-service platform;
and the second advertisement information sending unit is used for performing information conversion processing on the received first advertisement content information to obtain second advertisement content information and sending the second advertisement content information to the multimedia equipment, wherein the second advertisement content information has the same format as the first advertisement information acquisition request message.
Further, the information conversion unit is further configured to analyze and process the received first advertisement information acquisition request, and determine a multimedia device type to which the first advertisement information acquisition request belongs;
distributing the first advertisement information acquisition request to a corresponding communication micro-service sub-cluster according to the determined multimedia equipment type to which the first advertisement information acquisition request belongs;
and sending the first advertisement information obtaining request to a data processing micro-service through the communication micro-service subset and receiving the second advertisement information obtaining request fed back by the data processing micro-service.
Further, the information conversion unit is further configured to perform analysis processing according to the port type and the route type of the received first advertisement information obtaining request and the message information in the first advertisement information obtaining request, and determine the type of the multimedia device to which the first advertisement information obtaining request belongs.
Further, the first advertisement information obtaining unit is configured to send the second advertisement information obtaining request to an advertisement information microservice in a service microservice platform;
and receiving first advertisement content information acquired by the advertisement information micro-service according to the second advertisement information acquisition request.
Further, the data processing microservice is configured to convert the first request for obtaining advertisement information into a second request for obtaining advertisement information in a standard message format, so as to enable the microservice system to perform communication transmission therein.
Further, the second advertisement information sending unit is further configured to distribute the received first advertisement content information to the communication micro-service sub-cluster;
and sending the first advertisement content information to a data processing micro service through the communication micro service subset and receiving second advertisement content information fed back by the data processing micro service, wherein the first advertisement content information is advertisement content information in a standard message format.
Further, the device is further configured to store the second advertisement information acquisition request in a message database microservice in a database microservice.
In a third aspect, an embodiment of the present application provides an electronic device, including:
a memory and one or more processors;
the memory for storing one or more programs;
when executed by the one or more processors, cause the one or more processors to implement the method for micro service-based advertising information distribution as described in the first aspect.
In a fourth aspect, embodiments of the present application provide a storage medium containing computer-executable instructions for performing the method for micro-service based advertising information distribution as described in the first aspect when executed by a computer processor.
According to the method and the device for acquiring the advertisement information, a second request for acquiring the advertisement information in a standard message format is obtained by performing information conversion processing on a first request for acquiring the advertisement information sent by a receiving multimedia device, the second request for acquiring the advertisement information is sent to a service micro-service platform so as to acquire first advertisement information fed back by the service micro-service platform, the first advertisement information is converted into second advertisement content information in the same form as the first request for acquiring the advertisement information, and the second advertisement content information is sent to the multimedia device. By adopting the technical means, the first advertisement information acquisition request is converted into the second advertisement information acquisition request in the standard message format, so that the information with the standard message format is transmitted in the micro service system, the uniform format of the information transmitted in the micro service is realized, the problem that the information sent by the multimedia equipment corresponding to different manufacturers is heterogeneous is solved, the data transmission efficiency is improved, the returned advertisement content information is converted into the second advertisement content information with the same message format as the original first advertisement information acquisition request, the message adaptability requirement of the multimedia equipment is met, the information intercommunication between the multimedia equipment and the micro service system is realized, and the information transmission efficiency is improved. In addition, the micro-service architecture can split the communication service, the data information conversion service and the service function service into the communication gateway micro-service, the data processing micro-service, the service micro-service platform and the like, so that each micro-service can independently run and manage, the code processing pressure in the system is relieved, the application requirements of the existing distributed multimedia advertisement information release are better met, the data transmission efficiency of multimedia equipment and the system is improved, and the running efficiency of a micro-service system is improved.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, specific embodiments of the present application will be described in detail with reference to the accompanying drawings. It is to be understood that the specific embodiments described herein are merely illustrative of the application and are not limiting of the application. It should be further noted that, for the convenience of description, only some but not all of the relevant portions of the present application are shown in the drawings. Before discussing exemplary embodiments in more detail, it should be noted that some exemplary embodiments are described as processes or methods depicted as flowcharts. Although a flowchart may describe the operations (or steps) as a sequential process, many of the operations can be performed in parallel, concurrently or simultaneously. In addition, the order of the operations may be re-arranged. The process may be terminated when its operations are completed, but may have additional steps not included in the figure. The processes may correspond to methods, functions, procedures, subroutines, and the like.
The method and the device for publishing the advertisement information based on the micro service aim at receiving a first request for obtaining the advertisement information sent by a multimedia device and converting the first request into a second request for obtaining the advertisement information in a standard message format when the advertisement content information is requested to be obtained, receiving first advertisement content information fed back by a service micro service platform according to the second request for obtaining the advertisement information, converting the first advertisement content information into second advertisement content information in the same format as the first request for obtaining the advertisement information, and sending the second advertisement content information to the multimedia device. Compared with the traditional method for requesting to acquire the advertisement content, the method generally uses the single application to communicate with the multimedia devices, and as the number of the multimedia devices is increased, the number of internal processing codes of the traditional single application architecture is increased due to the increase of the number of the multimedia devices for communication, so that the interior of the single application is more and more bloated, and the deployment time and difficulty are further increased. Based on the above, the advertisement information publishing method based on the micro service is provided to solve the problem of poor data transmission efficiency caused by single application in the existing advertisement content information acquisition.
The first embodiment is as follows:
fig. 1 is a flowchart of an advertisement information distribution method based on a micro service according to an embodiment of the present application, where the advertisement information distribution method based on a micro service provided in this embodiment may be executed by an advertisement information distribution device based on a micro service, the advertisement information distribution device based on a micro service may be implemented in a software and/or hardware manner, and the advertisement information distribution device based on a micro service may be formed by two or more physical entities or may be formed by one physical entity. Generally, the advertisement information distribution device based on the micro service can be a terminal device, such as a computer, a tablet or a mobile phone.
The following description will be given taking a computer device as an example of a subject that executes the advertisement information distribution method based on the micro service. Referring to fig. 1, the method for publishing advertisement information based on micro service specifically includes:
s101, receiving a first advertisement information acquisition request sent by the multimedia equipment.
The public transportation equipment, such as bus equipment, is provided with multimedia equipment for issuing corresponding advertisement information. And the manufacturers corresponding to different multimedia devices are different because the message formats in the information sent by different multimedia devices are different. Before the multimedia device needs to play the advertisement, a request for acquiring the corresponding advertisement content information needs to be sent to the server side. The server uses a micro-service architecture, and a communication gateway micro-service is taken as an example for description. The method comprises the steps that a first advertisement information acquisition request sent by multimedia equipment is received through communication gateway micro-service, the first advertisement information acquisition request has a message format of the multimedia equipment, and the message format of the multimedia equipment is set by a multimedia equipment manufacturer during production, so that the message formats of the first advertisement information acquisition requests sent by different multimedia equipment are different.
S102, performing information conversion processing on the received advertisement information acquisition request to obtain a second advertisement information acquisition request, wherein the second advertisement information acquisition request is an advertisement information acquisition request in a standard message format.
Referring to fig. 2 and fig. 3, analyzing the received first advertisement information acquisition request, and determining the type of the multimedia device to which the first advertisement information acquisition request belongs according to the port type and the route type of the received first advertisement information acquisition request and the message information in the first advertisement information acquisition request. According to the type of the multimedia equipment to which the first advertisement information obtaining request belongs, the first advertisement information obtaining request is distributed to the corresponding communication micro-service sub-cluster, the first advertisement information obtaining request is sent to the data processing micro-service through the communication micro-service sub-cluster, and the second advertisement information obtaining request fed back by the data processing micro-service is received.
Because the port and the route through which the first advertisement information acquisition request sent by different multimedia devices passes are different, and the message content in the first advertisement information acquisition request is also different, the type of the multimedia device sending the first advertisement information acquisition request can be judged according to the type of the port or the route through which the first advertisement information acquisition request is received, or the type of the multimedia device sending the first advertisement information acquisition request, such as an LCD screen device, can be judged according to the message content in the first advertisement information acquisition request. After the multimedia device type sending the first advertisement information obtaining request is determined, the first advertisement information obtaining request is distributed to a corresponding communication micro-service sub-cluster, such as an LCD screen communication micro-service sub-cluster. The communication micro-service sub-cluster is a sub-micro service in the communication network optical micro-service, each type of multimedia equipment corresponds to one communication micro-service sub-cluster, for example, multimedia equipment LCD screen equipment corresponds to an LCD screen communication micro-service sub-cluster. And sending the first advertisement information acquisition request to a data processing micro-service through the communication micro-service subset. And the data processing micro-service is used for converting the first advertisement information acquisition request into a second advertisement information acquisition request in a standard message format so as to carry out communication transmission in the micro-service system. The data processing microservice performs data acquisition, data cleaning and data conversion for a first request to obtain advertising information. And the communication micro-service sub-cluster receives the second advertisement information acquisition request fed back by the data processing micro-service.
Illustratively, the second advertisement information acquisition request is stored in a message database microservice in a database microservice. And when the same request of the multimedia equipment of the same type is subsequently received, the second advertisement information acquisition request in the corresponding message database micro-service can be directly called, or when the same request of the multimedia equipment of the same type is subsequently received, the message format conversion is carried out again.
S103, sending the second advertisement information acquisition request to a service micro-service platform, and receiving first advertisement content information fed back by the service micro-service platform.
And sending the second advertisement information acquisition request to an advertisement information micro-service in a service micro-service platform, and receiving first advertisement content information acquired by the advertisement information micro-service according to the second advertisement information acquisition request.
Based on the second advertisement information acquisition request being the advertisement information acquisition request in the standard message format, the transmission in the micro-service architecture can be realized, the information transmission in the uniform format is realized, the transmission efficiency is improved, and the data processing speed is improved. And the communication micro-service sub-cluster sends the second advertisement information acquisition request to a service micro-service platform, the service micro-service platform identifies information in the second advertisement information acquisition request, determines to distribute the second advertisement information acquisition request to the advertisement information micro-service, and the advertisement information micro-service starts first advertisement content information to the communication micro-service sub-cluster according to the second advertisement information acquisition request. The business micro-service platform also comprises basic data micro-service, platform business micro-service, open interface micro-service, task scheduling micro-service, data analysis micro-service, report center micro-service, advertisement information micro-service and the like. Each micro service operates independently, so that the micro service is only applied to the advertisement information in the embodiment, and whether other micro services are used does not influence the operating speed of the advertisement micro service. Therefore, compared with the traditional single application, the micro-service structure has higher data processing speed and higher working efficiency.
S104, performing information conversion processing on the received first advertisement content information to obtain second advertisement content information, and sending the second advertisement content information to the multimedia equipment, wherein the second advertisement content information has the same format as the first advertisement information acquisition request message.
Distributing the received first advertisement content information to the communication micro-service sub-cluster, sending the first advertisement content information to a data processing micro-service through the communication micro-service sub-cluster, and receiving second advertisement content information fed back by the data processing micro-service, wherein the first advertisement content information is advertisement content information in a standard message format, and the second advertisement content information is in the same format as a first advertisement information acquisition request message. The first advertisement content information in the standard message format is converted into the second advertisement content information in the same format as the first advertisement information obtaining request message, and the second advertisement content information is sent to the multimedia equipment. The second advertisement content information received by the multimedia device has the same format as the first advertisement information acquisition request message sent by the multimedia device so as to adapt to the format requirement of the multimedia device, thereby avoiding the data information transmission failure caused by different message formats, improving the effectiveness of data transmission and improving the data transmission efficiency.
In an embodiment, referring to fig. 2 and 3, the multimedia device is an LCD screen device as an example. The method comprises the steps that a first advertisement information acquisition request with a self-contained message format is sent to a communication gateway micro-service in a micro-service architecture through an LCD screen device, the first advertisement information acquisition request is received by the pass gateway micro-service, the multimedia device sending the first advertisement information acquisition request is determined to be the LCD screen device according to the fact that the first advertisement information acquisition request sent by the LCD screen device is received, the port type, the route type or the message information of the first advertisement information acquisition request is analyzed, and therefore the first advertisement information acquisition request is distributed to an LCD screen communication micro-service sub-cluster in the pass gateway micro-service, and the first advertisement information acquisition request is sent to a data processing micro-service through the LCD screen communication micro-service sub-cluster. And the data processing micro-service performs data cleaning and data conversion on the received first advertisement information acquisition request, performs data conversion on the cleaned first advertisement information acquisition request into a second advertisement information acquisition request in a standard message format, and transmits the second advertisement information acquisition request in the standard message format to the advertisement information micro-service in the service micro-service platform through the LCD screen communication micro-service subset. And the advertisement information micro-service extracts corresponding advertisement content information according to the second advertisement information acquisition request, forms first advertisement content information with a standard message format and sends the first advertisement content information to the LCD screen communication micro-service sub-cluster. And the LCD screen communication micro-service sub-cluster receives the first advertisement content information and sends the first advertisement content information to the data processing micro-service for data conversion into second advertisement content information with the same message format as the first advertisement information acquisition request and returns the second advertisement content information to the LCD screen communication micro-service sub-cluster. And the LCD screen communication micro-service sub-cluster sends the second advertisement content information with the same message format as the first advertisement information acquisition request to the LCD screen equipment, and the LCD screen equipment issues corresponding advertisement content according to the received second advertisement content information with the same message format as the LCD screen communication micro-service sub-cluster.
In an embodiment, referring to fig. 2 and fig. 3, the microservice system further includes a management and control platform WEB, a configuration center, and a data cluster microservice. The configuration center comprises a dynamic configuration microservice and a registration center cluster microservice, and the dynamic configuration microservice performs configuration registration of the service platform microservice. The data cluster micro-service comprises a Redis database micro-service, a MySQL database micro-service, a Mongobb database micro-service, a message database micro-service, an air pressure database micro-service and the like.
The method comprises the steps of carrying out information conversion processing on a first advertisement information obtaining request sent by a receiving multimedia device to obtain a second advertisement information obtaining request in a standard message format, sending the second advertisement information obtaining request to a service micro-service platform to obtain first advertisement information fed back by the service micro-service platform, converting the first advertisement information into second advertisement content information in the same form as the first advertisement information obtaining request message, and sending the second advertisement content information to the multimedia device. By adopting the technical means, the first advertisement information acquisition request is converted into the second advertisement information acquisition request in the standard message format, so that the information with the standard message format is transmitted in the micro service system, the uniform format of the information transmitted in the micro service is realized, the problem that the information sent by the multimedia equipment corresponding to different manufacturers is heterogeneous is solved, the data transmission efficiency is improved, the returned advertisement content information is converted into the second advertisement content information with the same message format as the original first advertisement information acquisition request, the message adaptability requirement of the multimedia equipment is met, the information intercommunication between the multimedia equipment and the micro service system is realized, and the information transmission efficiency is improved. In addition, the micro-service architecture can split the communication service, the data information conversion service and the service function service into the communication gateway micro-service, the data processing micro-service, the service micro-service platform and the like, so that each micro-service can independently run and manage, the code processing pressure in the system is relieved, the application requirements of the existing distributed multimedia advertisement information release are better met, the data transmission efficiency of multimedia equipment and the system is improved, and the running efficiency of a micro-service system is improved.
Example two:
on the basis of the above embodiments, fig. 4 is a schematic structural diagram of an advertisement information distribution device based on micro services according to a second embodiment of the present application. Referring to fig. 4, the advertisement information distribution apparatus based on micro service provided in this embodiment specifically includes: a request information receiving unit 21, an information converting unit 22, a first advertisement information acquiring unit 23, and a second advertisement information transmitting unit 24.
The request information receiving unit 21 is configured to receive a first advertisement information obtaining request sent by a multimedia device;
an information conversion unit 22, configured to perform information conversion processing on the received advertisement information acquisition request to obtain a second advertisement information acquisition request, where the second advertisement information acquisition request is an advertisement information acquisition request in a standard message format;
the first advertisement information obtaining unit 23 is configured to send the second advertisement information obtaining request to a service microservice platform, and receive first advertisement content information fed back by the service microservice platform;
and a second advertisement information sending unit 24, configured to perform information conversion processing on the received first advertisement content information to obtain second advertisement content information, and send the second advertisement content information to the multimedia device, where the second advertisement content information has the same format as the first advertisement information obtaining request message.
Further, the information conversion unit 22 is further configured to analyze and process the received first advertisement information obtaining request, and determine a multimedia device type to which the first advertisement information obtaining request belongs;
distributing the first advertisement information acquisition request to a corresponding communication micro-service sub-cluster according to the determined multimedia equipment type to which the first advertisement information acquisition request belongs;
and sending the first advertisement information obtaining request to a data processing micro-service through the communication micro-service subset and receiving the second advertisement information obtaining request fed back by the data processing micro-service.
Further, the information conversion unit 22 is further configured to perform analysis processing according to the port type and the route type of the received first advertisement information obtaining request and the message information in the first advertisement information obtaining request, and determine the type of the multimedia device to which the first advertisement information obtaining request belongs.
Further, the first advertisement information obtaining unit 23 is configured to send the second advertisement information obtaining request to an advertisement information microservice in a service microservice platform;
and receiving first advertisement content information acquired by the advertisement information micro-service according to the second advertisement information acquisition request.
Further, the data processing microservice is configured to convert the first request for obtaining advertisement information into a second request for obtaining advertisement information in a standard message format, so as to enable the microservice system to perform communication transmission therein.
Further, the second advertisement information sending unit 24 is further configured to distribute the received first advertisement content information to the communication micro-service sub-cluster;
and sending the first advertisement content information to a data processing micro service through the communication micro service subset and receiving second advertisement content information fed back by the data processing micro service, wherein the first advertisement content information is advertisement content information in a standard message format.
Further, the device is further configured to store the second advertisement information acquisition request in a message database microservice in a database microservice.
In one embodiment, the apparatus comprises a microservice system comprising a communication gateway microservice, a communication microservice sub-cluster, a data processing microservice, a business platform microservice, an advertising information microservice;
the communication gateway micro-service is used for receiving a first advertisement information acquisition request sent by the multimedia equipment;
the data processing micro-service is used for carrying out information conversion processing on the received advertisement information acquisition request to obtain a second advertisement information acquisition request, and the second advertisement information acquisition request is an advertisement information acquisition request in a standard message format;
the communication micro-service sub-cluster is used for sending the second advertisement information acquisition request to a service micro-service platform and receiving first advertisement content information fed back by the service micro-service platform;
and the communication gateway micro-service is used for performing information conversion processing on the received first advertisement content information to obtain second advertisement content information and sending the second advertisement content information to the multimedia equipment, wherein the second advertisement content information has the same format as the first advertisement information acquisition request message.
Further, the communication gateway microservice is further configured to analyze and process the received first advertisement information acquisition request, and determine a multimedia device type to which the first advertisement information acquisition request belongs;
distributing the first advertisement information acquisition request to a corresponding communication micro-service sub-cluster according to the determined multimedia equipment type to which the first advertisement information acquisition request belongs;
and sending the first advertisement information obtaining request to a data processing micro-service through the communication micro-service subset and receiving the second advertisement information obtaining request fed back by the data processing micro-service.
Further, the communication gateway microservice is further configured to perform analysis processing according to the port type and the routing type of the received first advertisement information acquisition request and the message information in the first advertisement information acquisition request, and determine the type of the multimedia device to which the first advertisement information acquisition request belongs.
Further, the communication micro-service sub-cluster is configured to send the second advertisement information obtaining request to an advertisement information micro-service in a service micro-service platform;
and receiving first advertisement content information acquired by the advertisement information micro-service according to the second advertisement information acquisition request.
Further, the data processing microservice is configured to convert the first request for obtaining advertisement information into a second request for obtaining advertisement information in a standard message format, so as to enable the microservice system to perform communication transmission therein.
Further, the communication gateway micro-service is further configured to distribute the received first advertisement content information to the communication micro-service sub-cluster;
and sending the first advertisement content information to a data processing micro service through the communication micro service subset and receiving second advertisement content information fed back by the data processing micro service, wherein the first advertisement content information is advertisement content information in a standard message format.
Further, the device is further configured to store the second advertisement information acquisition request in a message database microservice in a database microservice.
The method comprises the steps of carrying out information conversion processing on a first advertisement information obtaining request sent by a receiving multimedia device to obtain a second advertisement information obtaining request in a standard message format, sending the second advertisement information obtaining request to a service micro-service platform to obtain first advertisement information fed back by the service micro-service platform, converting the first advertisement information into second advertisement content information in the same form as the first advertisement information obtaining request message, and sending the second advertisement content information to the multimedia device. By adopting the technical means, the first advertisement information acquisition request is converted into the second advertisement information acquisition request in the standard message format, so that the information with the standard message format is transmitted in the micro service system, the uniform format of the information transmitted in the micro service is realized, the problem that the information sent by the multimedia equipment corresponding to different manufacturers is heterogeneous is solved, the data transmission efficiency is improved, the returned advertisement content information is converted into the second advertisement content information with the same message format as the original first advertisement information acquisition request, the message adaptability requirement of the multimedia equipment is met, the information intercommunication between the multimedia equipment and the micro service system is realized, and the information transmission efficiency is improved. In addition, the micro-service architecture can split the communication service, the data information conversion service and the service function service into the communication gateway micro-service, the data processing micro-service, the service micro-service platform and the like, so that each micro-service can independently run and manage, the code processing pressure in the system is relieved, the application requirements of the existing distributed multimedia advertisement information release are better met, the data transmission efficiency of multimedia equipment and the system is improved, and the running efficiency of a micro-service system is improved.
The advertisement information publishing device based on the micro service provided by the second embodiment of the application can be used for executing the advertisement information publishing method based on the micro service provided by the first embodiment of the application, and has corresponding functions and beneficial effects.
Example three:
an embodiment of the present application provides an electronic device, and with reference to fig. 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 may be one or more, and the number of memories in the electronic device may be one or more. The processor, memory, communication module, input device, and output device of the electronic device may be connected by a bus or other means.
The memory 32 is a computer-readable storage medium, and can be used for storing software programs, computer-executable programs, and modules, such as program instructions/modules corresponding to the advertisement information distribution method based on the micro-service according to any embodiment of the present application (for example, a request information receiving unit, an information converting unit, a first advertisement information acquiring unit, and a second advertisement information transmitting unit in the advertisement information distribution device based on the micro-service). The memory can mainly comprise a program storage area and a data storage area, wherein the program storage area can store an operating system and an application program required by at least one function; the storage data area may store data created according to use of the device, and the like. Further, the memory may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other non-volatile solid state storage device. In some examples, the memory may further include memory located remotely from the processor, and these remote memories may be connected to the device over a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The communication module 33 is used for data transmission.
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, implements the above-described advertisement information distribution method based on the micro service.
The input device 34 may be used to receive entered numeric or character information and to generate key signal inputs relating to user settings and function controls of the apparatus. The output device 35 may include a display device such as a display screen.
The electronic device provided by the above can be used to execute the advertisement information publishing method based on the micro service provided by the first embodiment, and has corresponding functions and beneficial effects.
Example four:
embodiments of the present application also provide a storage medium containing computer-executable instructions, which when executed by a computer processor, are configured to perform a method for publishing advertisement information based on a micro service, the method comprising: receiving a first advertisement information acquisition request sent by multimedia equipment; performing information conversion processing on the received advertisement information acquisition request to obtain a second advertisement information acquisition request, wherein the second advertisement information acquisition request is an advertisement information acquisition request in a standard message format; sending the second advertisement information acquisition request to a service micro-service platform, and receiving first advertisement content information fed back by the service micro-service platform; and performing information conversion processing on the received first advertisement content information to obtain second advertisement content information, and sending the second advertisement content information to the multimedia equipment, wherein the second advertisement content information has the same format as the first advertisement information acquisition request message.
Storage medium-any of various types of memory devices or storage devices. The term "storage medium" is intended to include: mounting media such as CD-ROM, floppy disk, or tape devices; computer system memory or random access memory such as DRAM, DDR RAM, SRAM, EDO RAM, Lanbas (Rambus) RAM, etc.; non-volatile memory such as flash memory, magnetic media (e.g., hard disk or optical storage); registers or other similar types of memory elements, etc. The storage medium may also include other types of memory or combinations thereof. In addition, the storage medium may be located in a first computer system in which the program is executed, or may be located in a different second computer system connected to the first computer system through a network (such as the internet). The second computer system may provide program instructions to the first computer for execution. The term "storage medium" may include two or more storage media residing in different locations, e.g., in different computer systems connected by a network. The storage medium may store program instructions (e.g., embodied as a computer program) that are executable by one or more processors.
Of course, the storage medium provided in the embodiments of the present application contains computer-executable instructions, and the computer-executable instructions are not limited to the method for publishing advertisement information based on micro service as described above, and may also perform related operations in the method for publishing advertisement information based on micro service as provided in any embodiment of the present application.
The advertisement information distribution device, the storage medium, and the electronic device based on micro service provided in the above embodiments may execute the advertisement information distribution method based on micro service provided in any embodiment of the present application, and reference may be made to the advertisement information distribution method based on micro service provided in any embodiment of the present application without detailed technical details described in the above embodiments.
The foregoing is considered as illustrative of the preferred embodiments of the invention and the technical principles employed. The present application is not limited to the particular embodiments described herein, but is capable of various obvious changes, rearrangements and substitutions as will now become apparent to those skilled in the art without departing from the scope of the invention. Therefore, although the present application has been described in more detail with reference to the above embodiments, the present application is not limited to the above embodiments, and may include other equivalent embodiments without departing from the spirit of the present application, and the scope of the present application is determined by the scope of the claims.