CN113626128B - Audio-visual media micro-service third-party module access method, system and electronic equipment - Google Patents
Audio-visual media micro-service third-party module access method, system and electronic equipment Download PDFInfo
- Publication number
- CN113626128B CN113626128B CN202111168739.XA CN202111168739A CN113626128B CN 113626128 B CN113626128 B CN 113626128B CN 202111168739 A CN202111168739 A CN 202111168739A CN 113626128 B CN113626128 B CN 113626128B
- Authority
- CN
- China
- Prior art keywords
- service
- micro
- interface
- mirror image
- architecture
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
- 238000000034 method Methods 0.000 title claims abstract description 51
- 238000005516 engineering process Methods 0.000 claims abstract description 29
- 238000004806 packaging method and process Methods 0.000 claims abstract description 15
- 238000007726 management method Methods 0.000 claims description 18
- 230000008569 process Effects 0.000 claims description 17
- 238000004458 analytical method Methods 0.000 claims description 5
- 238000004590 computer program Methods 0.000 claims description 4
- 238000007405 data analysis Methods 0.000 claims description 2
- 230000006870 function Effects 0.000 abstract description 25
- 230000004888 barrier function Effects 0.000 abstract description 4
- 239000000178 monomer Substances 0.000 abstract description 4
- 238000011161 development Methods 0.000 description 18
- 238000004519 manufacturing process Methods 0.000 description 8
- 230000003044 adaptive effect Effects 0.000 description 5
- 238000012423 maintenance Methods 0.000 description 4
- 238000000638 solvent extraction Methods 0.000 description 4
- 230000009286 beneficial effect Effects 0.000 description 3
- 230000003993 interaction Effects 0.000 description 3
- 238000013468 resource allocation Methods 0.000 description 3
- 230000006978 adaptation Effects 0.000 description 2
- 230000008859 change Effects 0.000 description 2
- 238000004891 communication Methods 0.000 description 2
- 238000010586 diagram Methods 0.000 description 2
- 239000004973 liquid crystal related substance Substances 0.000 description 2
- 230000008520 organization Effects 0.000 description 2
- 238000003892 spreading Methods 0.000 description 2
- 230000007480 spreading Effects 0.000 description 2
- 238000003860 storage Methods 0.000 description 2
- 230000004931 aggregating effect Effects 0.000 description 1
- 238000012550 audit Methods 0.000 description 1
- 238000005536 corrosion prevention Methods 0.000 description 1
- 230000008878 coupling Effects 0.000 description 1
- 238000010168 coupling process Methods 0.000 description 1
- 238000005859 coupling reaction Methods 0.000 description 1
- 230000006378 damage Effects 0.000 description 1
- 238000012217 deletion Methods 0.000 description 1
- 230000037430 deletion Effects 0.000 description 1
- 238000013461 design Methods 0.000 description 1
- 238000001514 detection method Methods 0.000 description 1
- 238000005538 encapsulation Methods 0.000 description 1
- 238000004146 energy storage Methods 0.000 description 1
- 239000000463 material Substances 0.000 description 1
- 239000011159 matrix material Substances 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 238000003032 molecular docking Methods 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 238000013439 planning Methods 0.000 description 1
- 230000008439 repair process Effects 0.000 description 1
- 238000009517 secondary packaging Methods 0.000 description 1
- 108020001568 subdomains Proteins 0.000 description 1
- 238000012360 testing method Methods 0.000 description 1
- 230000009466 transformation Effects 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/44—Arrangements for executing specific programs
- G06F9/451—Execution arrangements for user interfaces
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/46—Multiprogramming arrangements
- G06F9/54—Interprogram communication
- G06F9/547—Remote procedure calls [RPC]; Web services
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Human Computer Interaction (AREA)
- Information Transfer Between Computers (AREA)
Abstract
The invention provides a method for accessing a third-party module of audio-visual media micro-service, which comprises the steps of firstly obtaining the service and data stream of audio-visual media, and micro-service division is carried out according to the business and the data flow to form a micro-service architecture, and then a micro-service interface is generated based on the preset API interface specification so that the micro-service interface is used as a unified interface of the micro-service architecture and a third-party module, then packaging the code and the operating environment of the third-party module to generate a mirror image package, uploading the mirror image package to a mirror image warehouse connected with the micro-service architecture through a unified interface, then, each mirror image in the mirror image warehouse is called to form micro service deployment, and the micro service deployment is enabled to independently operate based on the preset micro service platform technology stack class, therefore, the technical barrier between the monomer architecture and the micro-service architecture is broken, the functions of the native platform are favorably expanded, and the platform competitiveness is increased.
Description
Technical Field
The invention relates to the technical field of audio-visual media, in particular to an audio-visual media micro-service third-party module access method, system and electronic equipment.
Background
The problem that the prior art framework cannot adapt to development requirements generally exists in the field of current audio-visual media, on one hand, broadcast television media cannot meet the requirements of rapid content iteration and diversified service development of internet, and on the other hand, internet audio-visual media enterprises cannot meet the requirements of high-quality content production and management in content production and broadcasting links. Therefore, domestic and foreign mainstream media and internet audio-visual media enterprises are actively exploring a technical support architecture system which meets the media transformation requirements. In this context, the audiovisual media industry is gradually moving from the traditional monolithic architecture to the microservice architecture.
Therefore, there is a need for an audiovisual media micro-service third party module access method that can implement adaptive access of a third party module, improve the extensibility of a micro-service platform, form an audiovisual media content production ecosystem, and promote the development of audiovisual media industry.
Disclosure of Invention
In view of the above problems, an object of the present invention is to provide an audiovisual media microservice third-party module access method, so as to solve the problems of poor extensibility, incomplete native platform development function, and limited platform maintenance capability faced by the current audiovisual media content resource service platform.
The invention provides an audio-visual media micro-service third-party module access method, which comprises the following steps:
acquiring a service and a data stream of an audio-visual medium, and dividing micro-services according to the service and the data stream to form a micro-service architecture;
taking a pre-generated micro service interface as a unified interface of the micro service architecture and a third-party module, wherein the micro service interface is generated based on a preset API (application program interface) specification;
uploading a mirror image package generated by packaging the code of the third-party module and the operating environment to a mirror image warehouse connected with the micro-service architecture through the unified interface;
and calling each mirror image in the mirror image warehouse to form micro service deployment, and enabling the micro service deployment to independently operate based on a preset micro service platform technology stack class.
Preferably, the process of performing microservice partitioning according to the traffic and data streams to form a microservice architecture comprises:
analyzing the service and the data stream to obtain a data set;
combing the data set to obtain code logic;
and based on the code logic, dividing the micro-service according to the preset audiovisual media micro-service category to form a micro-service architecture.
Preferably, the API interface specification is:
the generated micro service interface is in a RESTful API style, and the generated micro service interface is called by an HTTP protocol.
Preferably, the micro service interface at least comprises a service creation interface, a service operation interface, a service closing interface, a service information acquisition interface, a service destruction and deletion interface, a service update interface, a service list acquisition interface and a service setting interface.
Preferably, the process of packaging the code and the execution environment of the third party module to generate the mirror package comprises:
analyzing the third-party module to obtain a code and an operating environment;
modifying the container content corresponding to the basic mirror image by operating a preset basic mirror image, and carrying out mirror image packaging on the code and the operating environment based on the basic mirror image and the container content to form a mirror image package.
Preferably, if the third-party module is a monolithic architecture, the process of analyzing the third-party module to obtain a code and an operating environment includes:
performing micro-service division on the third-party module to form a third-party sub-module;
and analyzing the third-party sub-modules to obtain codes and operating environments in a classified mode.
Preferably, the preset micro service platform technology stack comprises a bottom layer and a middle layer; wherein,
the bottom layer is an IAAS layer and is configured with a virtual machine or a physical machine;
the middle layer is a CAAS layer and is provided with Docker, k8s and Istio, and the Docker, k8s and Istio are respectively used for container life cycle management, container treatment and micro-service treatment.
The invention also provides an audiovisual media micro-service third-party module access system, which realizes the audiovisual media micro-service third-party module access method, and comprises the following steps:
the architecture building module is used for acquiring the business and the data stream of the audio-visual media and dividing the micro-service according to the business and the data stream to form a micro-service architecture;
the interface generation module is used for generating a micro-service interface based on a preset API interface specification, so that the micro-service interface is used as a unified interface of the micro-service architecture and a third-party module;
the mirror image uploading module is used for uploading a mirror image package generated by packaging the code of the third-party module and the operating environment to a mirror image warehouse connected with the micro-service architecture through the unified interface;
and the deployment operation module is used for calling each mirror image in the mirror image warehouse to form micro-service deployment and enabling the micro-service deployment to independently operate based on a preset micro-service platform technology stack class.
Preferably, the architecture building module comprises:
the data analysis unit is used for analyzing the service and the data stream to obtain a data set;
a logic analysis unit for combing the data set to obtain code logic;
and the architecture generating unit is used for dividing the micro-service according to the preset audiovisual media micro-service category to form a micro-service architecture based on the code logic.
The present invention also provides an electronic device, including:
at least one processor; and the number of the first and second groups,
a memory communicatively coupled to the at least one processor; wherein,
the memory stores a computer program executable by the at least one processor to enable the at least one processor to perform the steps of the audiovisual media microservice third party module access method as described above.
From the above technical solutions, the method, system, and electronic device for accessing a third-party module of audiovisual media micro-service provided by the present invention first obtain the service and data stream of audiovisual media, and divide the micro-service according to the service and data stream to form a micro-service architecture, then generate a micro-service interface based on the preset API interface specification, make the micro-service interface as a unified interface between the micro-service architecture and the third-party module, then pack the code and operating environment of the third-party module to generate a mirror image package, upload the mirror image package to a mirror image warehouse connected to the micro-service architecture through the unified interface, then call each mirror image in the mirror image warehouse to form micro-service deployment, and make the micro-service deployment operate independently based on the preset micro-service platform technology stack classification, thereby breaking the technical barrier between the monomer architecture and the micro-service architecture, and facilitating the expansion of the function of the native platform, the platform competitiveness is increased, the problems that the current micro-service division is not standard and the micro-service division principle is fuzzy are solved, the problems that an API gateway interface is lack of unified standard, the safety is poor, the interface efficiency is low and the like are solved, so that the audio-visual media micro-service platform can expand the original functions through the micro-service third-party module adaptive access technology to form a scale, an audio-visual media ecological ring is finally formed, the manufacturing and propagation capacity of the audio-visual media is effectively improved, the national development requirements are met, and the resource allocation is optimized.
Drawings
Other objects and results of the present invention will become more apparent and more readily appreciated as the same becomes better understood by reference to the following specification taken in conjunction with the accompanying drawings. In the drawings:
FIG. 1 is a flowchart of an embodiment of a third-party module accessing method for audio-visual media micro-service;
FIG. 2 is a diagram illustrating an embodiment of an audio-visual media microservice third-party module access system;
fig. 3 is a schematic diagram of an electronic device according to an embodiment of the invention.
Detailed Description
The current audiovisual media content resource service platform has poor expansibility, incomplete native platform development function and limited platform maintenance capability.
In view of the above problems, the present invention provides an access method and system for a third-party module of an audio-visual media microservice, and the following describes in detail a specific embodiment of the present invention with reference to the accompanying drawings.
For explaining the audio-visual media micro-service third-party module access method, system and electronic device provided by the present invention, fig. 1, fig. 2 and fig. 3 exemplarily indicate embodiments of the present invention.
The following description of the exemplary embodiment(s) is merely illustrative in nature and is in no way intended to limit the invention, its application, or uses. Techniques and apparatus known to those of ordinary skill in the relevant art may not be discussed in detail, but are intended to be considered a part of the specification where appropriate.
As shown in fig. 1, the method for gesture interaction based on artificial reality according to the embodiment of the present invention includes:
s1: acquiring a service and a data stream of an audio-visual medium, and dividing micro-services according to the service and the data stream to form a micro-service architecture;
s2: taking a pre-generated micro service interface as a unified interface of a micro service architecture and a third-party module, wherein the micro service interface is generated based on a preset API interface specification;
s3: uploading a mirror image package generated by packaging the code of the third-party module and the operating environment to a mirror image warehouse connected with the micro-service architecture through a unified interface;
s4: and calling each mirror image in the mirror image warehouse to form micro service deployment, and enabling the micro service deployment to independently operate based on a preset micro service platform technology stack class.
As shown in fig. 1, step S1 is a process for acquiring a service and a data stream of an audio-visual media, and performing microservice partitioning according to the service and the data stream to form a microservice architecture, in which the process for performing microservice partitioning according to the service and the data stream to form the microservice architecture includes:
s11: analyzing the service and the data stream to obtain a data set;
s12: combing the data set to obtain code logic;
s13: and based on the code logic, dividing the micro-service according to the preset audiovisual media micro-service category to form a micro-service architecture.
Firstly, analyzing the service and the data stream to obtain a data set through step S11, and then forming a code logic, so as to divide the micro-service according to the code logic and combining with the micro-service category, in this embodiment, the micro-service category is a plurality of micro-services of seven domains 340, that is, combining a plurality of micro-services of seven domains 340, the original service is split into independent micro-service architectures suitable for the system as required, the micro-service Architecture can be customized according to the requirements, and is not limited herein, in this embodiment, the micro-service Architecture is an audiovisual Media micro-service Architecture (MMA), which follows the design concept of a hierarchical Architecture of a TOGAF open group Architecture framework organization standard, and includes a technical part (an Architecture part combining micro-service and cloud computing and a functional sub-domain basic service closely related to the audiovisual Media industry technology) and a service part (an audiovisual Media functional sub-domain basic service including seven business domains, a sub-domain service, and a sub-domain service, Platform API service and end-to-end service flow), wherein the basic architecture service layer, the basic subdomain service layer, the functional subdomain corrosion prevention service layer and the functional subdomain basic service layer constitute the technical part of the micro-service architecture, and the subdomain service layer, the platform service layer and the end-to-end service flow layer constitute the service part of the micro-service architecture, so as to create a foundation for the access of a subsequent third module.
Specifically, in this embodiment, for the technical part, in the infrastructure service layer, the system provides infrastructure services common to different layers, and provides functions of user management, authority management, operation audit and the like when basic resources (topic groups are collectively referred to as "cloud resources") such as computation, storage, network and the like are called, so that the functions are encapsulation and calling of the underlying cloud resources, dependence between services can be determined, and the functions can be decoupled from each other; the basic subdomain service layer provides platform basic technical services, and provides basic technical functions and data services for each functional subdomain or platform business service of the upper layer. For example: microservice registration services, communication protocol extension services, API gateway services, and the like; the function subdomain anticorrosion service layer is suitable for decoupling a bottom non-functional architecture technology and a functional technology of which the upper layer is close to a service; the functional sub-domain basic service layer is used for supporting basic services of all functional sub-domain services, visible to sub-domains and invisible to platforms, and is used for arranging sub-domain services, and the sub-domain basic services are usually developed by all sub-domain development teams of the platforms. On the basis of the micro-service bottom layer technology, the layer contains public technologies directly related to audiovisual media, such as micro-service management enhancement technologies applied to audiovisual media industry: efficient docking, dynamic collaboration and traceability tracking.
In this embodiment, for the service portion, the sub-domain service layer is a service provided by each functional sub-domain of the platform, and is visible to the API management platform, and is used for the combined arrangement of platform service services, and may also be used as a basic unit for the higher-layer service flow arrangement. Subdomain services are typically developed by subdomain development teams of the platform, which will expose rich industry attributes of the audiovisual media industry: hundreds of microservices related to business capabilities are defined and specified herein; the platform business service layer is a highly modular business function unit, is formed by combining and arranging different types of sub-domain services, and can be used as an arrangement unit of business processes, such as a program broadcasting approval service, cross-enterprise general business services can be arranged and developed by a core domain development team where functions are located, intra-enterprise general business services can be arranged and developed by an enterprise development team, and important objects of the layer are applications (namely software applications formed by aggregating bottom micro-services): an application store, an application template, and an application management service; in the end-to-end service flow layer, the service flow is composed of service operations executed according to a sequence determined by a certain service rule, in the service of a broadcast television station, cross-domain flows such as a user purchase ordering intelligent cloud clip interaction flow, a media asset library allocation file repair and 4K super-division multiplication service flow belong to a high-level flow from a certain end to a certain end, and the high-level service function usually spans an application domain or a service line and is usually developed by an industry development team. Complex processes such as multi-tenant management, micro-service transaction portals, third-party supervision, automatic test platforms and the like all belong to the range of the layer, an industry development team can have a clear implementation organization structure, and the industry development team can also form a dotted line team by related domain personnel of cross-team to perform development, operation and maintenance work.
As shown in fig. 1, step S2 is a process of generating a micro service interface based on a preset API interface specification, so that the micro service interface is used as a unified interface between the micro service architecture and a third-party module, where the API interface specification is:
the generated micro service interface is in a RESTful API style, and the generated micro service interface is called by an HTTP protocol.
The audio-visual media service is divided into 7 large domains, 340 micro services, the functions of the micro services are different, and if each micro service is provided with a corresponding interface according to the special function, the service interface exposed to the outside of the platform is very complicated. The large number of interfaces not only makes the operation, maintenance, management and arrangement of the micro-services difficult, but also increases the learning and use cost of the platform at the user end.
In order to solve the above problem, in this embodiment, a universal and standardized micro service interface is designed based on API interface specification, the micro service interface is suitable for most micro services, and on the premise of providing micro service functions, the interface difference of different micro services is reduced as much as possible, in this embodiment, the micro service interface includes:
the system comprises a creation service interface, a service identification interface and a service identification interface, wherein the creation service interface is used for creating a service according to user requirements, enabling the created service to bear user private use settings which are always stored and cannot be reset along with the closing of the service (the stored information can be personalized scene configuration and can also be specific materials), and the creation service interface is also used for returning a unique service ID as a service identification; in this embodiment, the interface name is create Service;
the method comprises the steps that a Service operation interface is used for applying for the operation of an IT resource corresponding to a specified Service to enable the Service to enter a working state, interface parameters of the Service operation interface can be added with a callback url according to needs, when a business party needs to be informed in the Service operation process, the callback can be carried out through the url, for example, the result after the Service is operated is informed, the Service is opened (operated) to return a valid certificate of the Service in the current operation period, and the like, wherein the interface name is open Service;
the close Service interface is used for closing a Service, and in this embodiment, the name of the interface is close Service; the method includes that a service information interface is obtained and used for obtaining information such as service names, current running states (percentage in closing and starting and running), resource occupation conditions (running states such as cpu, memory and io) and the like, and in the embodiment, the name of the interface is get SeviceInfo; the destroy and delete Service interface is used for losing invalid data, and the name of the interface is delete Service; the update service class interface is used for modifying information submitted during creation after the service creation is completed, such as a service name and the like, wherein the interface name is as follows: update ServiceInfo;
the acquisition service list type interface is used for acquiring all service lists below a certain user, including simple information, and the interface name is get ServiceList; the service setting interface is used for providing a configuration function for a high-level user to set service parameters by himself when default settings provided by service setting do not meet requirements of the user.
Therefore, the developed micro-service interface only needs to be subjected to simple secondary packaging, the functional boundary is clear, the development cost is low, the implementation is easy, the micro-service interface is designed to shield the concrete functions of the micro-service, and only the relation among the service, the user and the platform needs to be considered for abstraction, so that the complexity of platform management is reduced, and the learning cost of the user is reduced.
As shown in fig. 1, step S3 is a process of packaging the code and the runtime environment of the third party module to generate a mirror package, and uploading the mirror package to a mirror repository connected to the microservice architecture via a unified interface, in which the process of packaging the code and the runtime environment of the third party module to generate the mirror package includes:
s31: analyzing the third-party module to obtain a code and an operating environment;
s32: modifying container content corresponding to a preset basic mirror image by operating the preset basic mirror image, and carrying out mirror image packaging on codes and an operating environment based on the basic mirror image and the container content to form a mirror image package;
if the third-party module is a single-body framework, the process of analyzing the third-party module to acquire codes and an operating environment comprises the following steps:
s311: performing micro-service division on the third-party module to form a third-party sub-module;
s312: and analyzing the third-party sub-modules to obtain codes and operating environments in a classified mode.
In the embodiment, when micro-service division is performed on a third-party module to form a third-party sub-module, division is performed according to five principles, wherein a first rule corresponds to the service part; the second required service has clear boundaries, namely each service has clear responsibility and boundaries, one service corresponds to one service, and the services are mostly in one-way dependence; the third one needs to satisfy the minimum change, that is, the newly added or changed service has a clear service corresponding relationship, or the newly added service or some expanded services, which cannot be realized on one service or the other service, and the change of the affected service required by a certain service should be as few as possible on the premise of meeting the above conditions; the fourth one needs to satisfy the maximum multiplexing principle, namely the divided third-party sub-modules are repeatedly used for energy storage, but not used for one-time application; the fifth item needs to satisfy the basic principle of high cohesion and loose coupling, that is, when business process analysis, business architecture and data architecture planning are performed, the core generates key information such as business process, business function, business data object and the like, so that interaction matrix analysis needs to be performed on the key information to identify cohesion characteristics between the business module and the business data.
In the embodiment shown in fig. 1, step S4 is a process of calling each mirror image in the mirror image warehouse to form a micro service deployment, and making the micro service deployment independently run based on a preset micro service platform technology stack class, where the preset micro service platform technology stack includes a bottom layer and an intermediate layer; wherein,
the bottom layer is an IAAS layer and is configured with a virtual machine or a physical machine;
the middle layer is a CAAS layer and is provided with Docker, k8s and Istio, and the Docker, k8s and Istio are respectively used for container life cycle management, container treatment and micro-service treatment.
Specifically, the whole micro service platform technology stack is divided into two layers, the bottom layer is an IAAS layer which can be a virtual machine or a physical machine, and a container is irrelevant to the implementation form of bottom layer resources; the middle is a CAAS layer which mainly provides container-level services, the CAAS layer comprises Docker, k8s and Istio which respectively correspond to container life cycle management, container treatment and micro-service treatment, the micro-service platform technology stack meets the characteristic requirements of an audio-visual media micro-service architecture, and simultaneously provides container-related services which can lay a foundation for the adaptive access of third-party modules.
Only the micro service platform based on the container can meet the adaptation access of a third-party module which is cross-language, cross-platform and shielding environment dependence, so that the third-party module adaptation access technology based on the micro service platform technology stack is beneficial to improving the expansibility of the micro service platform of the audio-visual media, increasing the platform function, accelerating the content production and improving the content quality, and the third-party module is accessed to the platform to form the ecology of the audio-visual media production and promote the industrial development of the audio-visual media.
As mentioned above, the third party module access method of audio-visual media micro-service provided by the invention firstly obtains the business and data stream of the audio-visual media, and divides the micro-service according to the business and data stream to form the micro-service architecture, then generates the micro-service interface based on the preset API interface specification, makes the micro-service interface as the uniform interface of the micro-service architecture and the third party module, then packs the code and the operation environment of the third party module to generate the mirror image package, uploads the mirror image package to the mirror image warehouse connected with the micro-service architecture through the uniform interface, then calls each mirror image in the mirror image warehouse to form the micro-service deployment, and makes the micro-service deployment independently operate based on the preset micro-service platform technology stack, thereby breaking the technology barrier between the monomer architecture and the micro-service architecture, being beneficial to expanding the function of the native platform, and increasing the platform competitiveness, the method solves the problems of non-standard micro-service division and fuzzy micro-service division principle of the prior micro-service, solves the problems of lack of unified standard, poor safety, low interface efficiency and the like of an API gateway interface, enables the audio-visual media micro-service platform to expand the original functions through the micro-service third-party module adaptive access technology, forms scale, finally forms an audio-visual media ecological ring, effectively improves the manufacturing and spreading capacity of the audio-visual media, adapts to the national development requirement, and optimizes resource allocation.
As shown in fig. 2, the present invention further provides an audiovisual media microservice third-party module access system 100, which implements the audiovisual media microservice third-party module access method described above, and includes:
the architecture establishing module 101 is configured to acquire a service and a data stream of an audio-visual media, and perform microservice division according to the service and the data stream to form a microservice architecture;
the interface generation module 102 is configured to generate a micro service interface based on a preset API interface specification, so that the micro service interface serves as a unified interface between the micro service architecture and a third-party module;
the mirror image uploading module 103 is used for uploading a mirror image package generated by packaging the code of the third-party module and the operating environment to a mirror image warehouse connected with the micro-service architecture through a unified interface;
and the deployment operation module 104 is configured to call each mirror image in the mirror image warehouse to form micro service deployment, and enable the micro service deployment to operate independently based on a preset micro service platform technology stack class.
The architecture establishing module 101 includes:
a data parsing unit 101-1, configured to parse the service and the data stream to obtain a data set;
a logic analysis unit 101-2, configured to comb the data set to obtain a code logic;
the architecture generating unit 101-3 is configured to perform microservice partitioning according to a preset audiovisual media microservice category to form a microservice architecture based on the code logic, where the microservice category is 340 microservices of seven domains in this embodiment.
The specific implementation method of the audiovisual media microservice third-party module access system may refer to the description of the relevant steps in the embodiment corresponding to fig. 1, and is not described herein again.
The invention provides an audio-visual media micro-service third-party module access system, which firstly obtains the business and data stream of audio-visual media through a framework establishing module 101, and carries out micro-service division according to the business and the data stream to form a micro-service framework, then generates a micro-service interface through an interface generating module 102 based on the preset API interface specification, leads the micro-service interface to be used as a uniform interface between the micro-service framework and a third-party module, then packs the code and the operating environment of the third-party module through a mirror image uploading module 103 to generate a mirror image package, uploads the mirror image package to a mirror image warehouse connected with the micro-service framework through the uniform interface, calls each mirror image in the mirror image warehouse through a deployment operating module 104 to form micro-service deployment, leads the micro-service deployment to operate independently based on the preset micro-service platform technology stack, thereby breaking the technical barrier between the monomer framework and the micro-service framework, the method is beneficial to expanding the functions of the native platform, increasing the platform competitiveness, solving the problems of non-standard micro-service division and fuzzy micro-service division principle of the current micro-service, and solving the problems of lack of unified standard, poor safety, low interface efficiency and the like of an API gateway interface, so that the audio-visual media micro-service platform can expand the original functions through the micro-service third-party module adaptive access technology to form scale, finally form an audio-visual media ecological circle, effectively improve the manufacturing and spreading capacity of the audio-visual media, adapt to the national development requirements and optimize the resource allocation.
As shown in fig. 3, the present invention also provides an electronic device, including:
at least one processor; and the number of the first and second groups,
a memory communicatively coupled to the at least one processor; wherein,
the memory stores a computer program executable by the at least one processor to enable the at least one processor to perform the steps of the aforementioned audiovisual media microservice third party module access method.
It will be appreciated by a person skilled in the art that the configuration shown in fig. 3 does not constitute a limitation of the electronic device 1 and may comprise fewer or more components than shown, or a combination of certain components, or a different arrangement of components.
For example, although not shown, the electronic device 1 may further include a power supply (such as a battery) for supplying power to each component, and preferably, the power supply may be logically connected to the at least one processor 10 through a power management device, so as to implement functions of charge management, discharge management, power consumption management, and the like through the power management device. The power supply may also include any component of one or more dc or ac power sources, recharging devices, power failure detection circuitry, power converters or inverters, power status indicators, and the like. The electronic device 1 may further include various sensors, a bluetooth module, a Wi-Fi module, and the like, which are not described herein again.
Further, the electronic device 1 may further include a network interface, and optionally, the network interface may include a wired interface and/or a wireless interface (such as a WI-FI interface, a bluetooth interface, etc.), which are generally used for establishing a communication connection between the electronic device 1 and other electronic devices.
Optionally, the electronic device 1 may further comprise a user interface, which may be a Display (Display), an input unit (such as a Keyboard), and optionally a standard wired interface, a wireless interface. Alternatively, in some embodiments, the display may be an LED display, a liquid crystal display, a touch-sensitive liquid crystal display, an OLED (Organic Light-Emitting Diode) touch device, or the like. The display, which may also be referred to as a display screen or display unit, is suitable for displaying information processed in the electronic device 1 and for displaying a visualized user interface, among other things.
It is to be understood that the described embodiments are for purposes of illustration only and that the scope of the appended claims is not limited to such structures.
The audiovisual media microservice third party module access program 12 stored by the memory 11 in the electronic device 1 is a combination of instructions that, when executed in the processor 10, enable:
acquiring the service and data stream of the audio-visual media, and dividing the micro-service according to the service and data stream to form a micro-service architecture;
generating a micro-service interface based on a preset API interface specification, and enabling the micro-service interface to serve as a unified interface of a micro-service architecture and a third-party module;
packaging codes and operating environments of the third-party module to generate a mirror image package, and uploading the mirror image package to a mirror image warehouse connected with the micro-service architecture through a unified interface;
and calling each mirror image in the mirror image warehouse to form micro service deployment, and enabling the micro service deployment to independently operate based on the preset micro service platform technology stack class.
Specifically, the specific implementation method of the processor 10 for the instruction may refer to the description of the relevant steps in the embodiment corresponding to fig. 1, which is not described herein again.
Further, the integrated modules/units of the electronic device 1, if implemented in the form of software functional units and sold or used as separate products, may be stored in a computer readable storage medium. The computer-readable medium may include: any entity or device capable of carrying said computer program code, recording medium, U-disk, removable hard disk, magnetic disk, optical disk, computer Memory, Read-Only Memory (ROM).
The method, the system and the electronic device for accessing the audio-visual media micro-service third-party module according to the invention are described above by way of example with reference to the accompanying drawings. However, it should be understood by those skilled in the art that various modifications may be made to the audio-visual media microservice third-party module access method, system and electronic device provided by the present invention without departing from the scope of the present invention. Therefore, the scope of the present invention should be determined by the contents of the appended claims.
Claims (9)
1. A method for accessing a third-party module of an audio-visual media micro-service is characterized by comprising the following steps:
acquiring a service and a data stream of an audio-visual medium, and analyzing the service and the data stream to acquire a data set;
combing the data set to obtain code logic;
based on the code logic, dividing the micro-service according to the preset audiovisual media micro-service category to form a micro-service architecture;
taking a pre-generated micro service interface as a unified interface of the micro service architecture and a third-party module, wherein the micro service interface is generated based on a preset API (application program interface) specification;
uploading a mirror image package generated by packaging the code of the third-party module and the operating environment to a mirror image warehouse connected with the micro-service architecture through the unified interface;
and calling each mirror image in the mirror image warehouse to form micro service deployment, and enabling the micro service deployment to independently operate based on a preset micro service platform technology stack class.
2. The method of claim 1, wherein the API interface specification is:
the generated micro service interface is in a RESTful API style, and the generated micro service interface is called by an HTTP protocol.
3. The audiovisual media microservice third party module access method of claim 2,
the micro service interface at least comprises a service establishing interface, a service operating interface, a service closing interface, a service information obtaining interface, a service destroying and deleting interface, a service updating interface, a service list obtaining interface and a service setting interface.
4. The audio-visual media microservice third party module access method of claim 3, wherein the process of packaging code and operating environment of the third party module to generate a mirror package comprises:
analyzing the third-party module to obtain a code and an operating environment;
modifying the container content corresponding to the basic mirror image by operating a preset basic mirror image, and carrying out mirror image packaging on the code and the operating environment based on the basic mirror image and the container content to form a mirror image package.
5. The method of claim 4, wherein if the third-party module is a monolithic architecture, the process of parsing the third-party module to obtain code and an operating environment comprises:
performing micro-service division on the third-party module to form a third-party sub-module;
and analyzing the third-party sub-modules to obtain codes and operating environments in a classified mode.
6. The method of claim 4, wherein the predetermined micro service platform technology stack comprises a bottom layer and an intermediate layer; wherein,
the bottom layer is an IAAS layer and is configured with a virtual machine or a physical machine;
the middle layer is a CAAS layer and is provided with Docker, k8s and Istio, and the Docker, k8s and Istio are respectively used for container life cycle management, container treatment and micro-service treatment.
7. An audiovisual media microservice third party module access system for implementing the audiovisual media microservice third party module access method of any of claims 1-6, comprising;
the architecture building module is used for acquiring the service and the data stream of the audio-visual media and analyzing the service and the data stream to acquire a data set; combing the data set to obtain code logic; based on the code logic, dividing the micro-service according to the preset audiovisual media micro-service category to form a micro-service architecture;
the interface generation module is used for generating a micro-service interface based on a preset API interface specification, so that the micro-service interface is used as a unified interface of the micro-service architecture and a third-party module;
the mirror image uploading module is used for uploading a mirror image package generated by packaging the code of the third-party module and the operating environment to a mirror image warehouse connected with the micro-service architecture through the unified interface;
and the deployment operation module is used for calling each mirror image in the mirror image warehouse to form micro-service deployment and enabling the micro-service deployment to independently operate based on a preset micro-service platform technology stack class.
8. The audiovisual media microservice third party module access system of claim 7, wherein said infrastructure setup module comprises:
the data analysis unit is used for analyzing the service and the data stream to obtain a data set;
a logic analysis unit for combing the data set to obtain code logic;
and the architecture generating unit is used for dividing the micro-service according to the preset audiovisual media micro-service category to form a micro-service architecture based on the code logic.
9. An electronic device, characterized in that the electronic device comprises:
at least one processor; and the number of the first and second groups,
a memory communicatively coupled to the at least one processor; wherein,
the memory stores a computer program executable by the at least one processor to enable the at least one processor to perform the steps in the audiovisual media microservice third party module access method of any of claims 1-6.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202111168739.XA CN113626128B (en) | 2021-10-08 | 2021-10-08 | Audio-visual media micro-service third-party module access method, system and electronic equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202111168739.XA CN113626128B (en) | 2021-10-08 | 2021-10-08 | Audio-visual media micro-service third-party module access method, system and electronic equipment |
Publications (2)
Publication Number | Publication Date |
---|---|
CN113626128A CN113626128A (en) | 2021-11-09 |
CN113626128B true CN113626128B (en) | 2022-04-05 |
Family
ID=78390696
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202111168739.XA Active CN113626128B (en) | 2021-10-08 | 2021-10-08 | Audio-visual media micro-service third-party module access method, system and electronic equipment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN113626128B (en) |
Families Citing this family (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN116450107B (en) * | 2023-04-04 | 2023-12-01 | 北京科乐园网络科技有限公司 | Method and device for secondary development of software by low-code platform and electronic equipment |
CN117424829A (en) * | 2023-10-31 | 2024-01-19 | 慧之安信息技术股份有限公司 | Modbus device access method and system based on micro-service architecture |
CN117270819A (en) * | 2023-11-20 | 2023-12-22 | 北京美络克思科技有限公司 | Service design method, system, medium and equipment supporting single architecture compatible micro service architecture |
CN117793428A (en) * | 2023-12-27 | 2024-03-29 | 北京中科大洋科技发展股份有限公司 | System and method for driving flow equipment |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106330576A (en) * | 2016-11-18 | 2017-01-11 | 北京红马传媒文化发展有限公司 | Automatic scaling and migration scheduling method, system and device for containerization micro-service |
CN111580913A (en) * | 2020-05-09 | 2020-08-25 | 腾讯科技(深圳)有限公司 | Interactive processing method, device and equipment of information stream and computer storage medium |
CN111935321A (en) * | 2020-10-12 | 2020-11-13 | 中国传媒大学 | Converged media micro-service platform based on container cloud |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106130759B (en) * | 2016-06-22 | 2021-02-09 | 白杨 | Service-oriented modular system architecture |
-
2021
- 2021-10-08 CN CN202111168739.XA patent/CN113626128B/en active Active
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106330576A (en) * | 2016-11-18 | 2017-01-11 | 北京红马传媒文化发展有限公司 | Automatic scaling and migration scheduling method, system and device for containerization micro-service |
CN111580913A (en) * | 2020-05-09 | 2020-08-25 | 腾讯科技(深圳)有限公司 | Interactive processing method, device and equipment of information stream and computer storage medium |
CN111935321A (en) * | 2020-10-12 | 2020-11-13 | 中国传媒大学 | Converged media micro-service platform based on container cloud |
Non-Patent Citations (1)
Title |
---|
基于模糊层次分析法的融媒体传播能力评价研究;赵晴 等;《传媒理论》;20210215;26-30 * |
Also Published As
Publication number | Publication date |
---|---|
CN113626128A (en) | 2021-11-09 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN113626128B (en) | Audio-visual media micro-service third-party module access method, system and electronic equipment | |
CN104391689B (en) | Development method of Internet of things application, middleware and PaaS platform | |
CN102033848B (en) | SOA-based three-dimensional design system integrating method and system | |
US11593074B2 (en) | System, method, and apparatus for data-centric networked application development services | |
CN102054224A (en) | SOA (Service Oriented Architecture)-based clothes enterprise collaborative management system development method and system | |
CN109257364B (en) | Multi-core mesh type multi-level cross-domain access control method based on cloud platform | |
US20170192755A1 (en) | Method and Apparatus for Enabling Agile Development of Services in Cloud Computing and Traditional Environments | |
CN102034173A (en) | Service-oriented architecture (SOA) mold information collaborative management system developing method and system | |
CN100596139C (en) | System and method for building component applications using metadata defined mapping between message and data domains | |
Di Martino et al. | Semantic representation of cloud services: a case study for microsoft windows azure | |
CN109343858A (en) | A kind of build a station automatically container deployment system and its working method based on server-side rendering | |
CN103390018A (en) | Web service data modeling and searching method based on SDD (service data description) | |
CN101382893A (en) | On-line assembling method for component based on Web service | |
CN1647040A (en) | Method and system for managing a computer system | |
CN104391701A (en) | Method for developing energy efficiency assessment software | |
Chao | E-services in e-business engineering | |
Yu et al. | Modeling and analysis of mobile cloud computing based on bigraph theory | |
CN112199200B (en) | Resource scheduling method and device, computer equipment and storage medium | |
EP2395468A1 (en) | Semantic user interface data assembling | |
CN102087595A (en) | Method and system for developing patent agency collaborative management system based on SOA (service oriented architecture) | |
Kryvinska et al. | The place and value of SOA in building 2.0-generation enterprise unified vs. ubiquitous communication and collaboration platform | |
CN102109993A (en) | SOA-based patent agency collaborative management system development method and system | |
Sefid‐Dashti et al. | A reference architecture for mobile SOA | |
Filippone et al. | Synthesis of context‐aware business‐to‐business processes for location‐based services through choreographies | |
Zhu et al. | A service-oriented city portal framework and collaborative development platform |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |