Implementation method and implementation system of container-based service center

文档序号:1798195 发布日期:2021-11-05 浏览:10次 中文

阅读说明:本技术 基于容器的服务中心的实现方法及实现系统 (Implementation method and implementation system of container-based service center ) 是由 王旭龙 张华� 于 2021-07-26 设计创作,主要内容包括:本发明公开基于容器的服务中心的实现方法及实现系统,涉及容器在服务实现中的应用技术领域;基于容器,采用开放服务代理协议,将软件、中间件集成到服务中心,提供其他业务应用使用,其中服务中心通过服务注册过程创建集群服务代理,利用集群服务代理触发获取外部服务的调用,服务中心通过服务接入过程创建服务实例,实例化外部服务,服务中心通过服务申请使用过程查询服务,绑定相应业务应用,获取相应外部服务实例证书及服务账号以便使用服务。(The invention discloses a method and a system for realizing a container-based service center, which relate to the technical field of application of containers in service realization; based on a container, integrating software and middleware into a service center by adopting an open service agent protocol to provide other service applications for use, wherein the service center establishes a cluster service agent through a service registration process, triggers and acquires the call of an external service by utilizing the cluster service agent, establishes a service instance through a service access process, instantiates the external service, inquires the service through a service application use process, binds a corresponding service application, and acquires a corresponding external service instance certificate and a service account so as to use the service.)

1. A method for realizing a container-based service center is characterized in that software and middleware are integrated into the service center based on a container by adopting an open service agent protocol to provide other service applications for use, wherein the service center establishes a cluster service agent through a service registration process, the cluster service agent is used for triggering and obtaining external service calling, the service center establishes a service instance through a service access process and instantiates the external service, the service center inquires the service through a service application use process, binds corresponding service applications, and obtains corresponding external service instance certificates and service account numbers so as to use the service.

2. The method for implementing a container-based service center as claimed in claim 1, wherein the service registration process of the service center comprises:

and establishing a cluster service agent according to all used external services through the external connection information, utilizing the communication of the cluster service agent and the external service agent to trigger the calling of obtaining the external services, and returning an external available service list and specification options by the external service agent.

3. The method of claim 2, wherein the service access procedure of the service center comprises:

a service instance is created from the list of available services and the specification options,

the external service agent is instructed to create an instance according to the service directory.

4. A method for implementing a container-based service center according to claim 2 or 3, wherein the service application of the service center is performed by:

querying the available service list and specification options, using an external service agent to obtain the service list and specification options,

receiving a business application, binding corresponding business application, acquiring a corresponding external service instance certificate and a service account, and using corresponding external service.

5. The system for realizing the container-based service center is characterized by comprising a service registration module, a service access module and a service application and use module,

the system is based on a container, adopts an open service agent protocol, integrates software and middleware into a service center and provides other service applications for use, wherein the service center executes a service registration process through a service registration module, creates a cluster service agent, triggers and acquires external service calling by using the cluster service agent, executes the service access process through a service access module, creates a service instance, instantiates the external service, executes the service application use process through a service application use module, inquires the service, binds the corresponding service application, and acquires a corresponding external service instance certificate and a service account number so as to use the service.

6. The system for implementing a container-based service center as claimed in claim 5, wherein the service registration module performs a service registration procedure:

and establishing a cluster service agent according to all used external services through the external connection information, utilizing the communication of the cluster service agent and the external service agent to trigger the calling of obtaining the external services, and returning an external available service list and specification options by the external service agent.

7. The system for implementing a container-based service center as claimed in claim 6, wherein the service access module performs a service access procedure of:

a service instance is created from the list of available services and the specification options,

the external service agent is instructed to create an instance according to the service directory.

8. The system for implementing a container-based service center according to claim 6 or 7, wherein the service application usage module performs a service application usage process of:

querying the available service list and specification options, using an external service agent to obtain the service list and specification options,

receiving a business application, binding corresponding business application, acquiring a corresponding external service instance certificate and a service account, and using corresponding external service.

9. The device for realizing the container-based service center is characterized by comprising at least one memory and at least one processor;

the at least one memory to store a machine readable program;

the at least one processor, configured to invoke the machine readable program to execute the method for implementing the container-based service center according to any one of claims 1 to 4.

Technical Field

The invention discloses a realization method and a realization system, relating to the technical field of application of a container in service realization, in particular to a realization method and a realization system of a container-based service center.

Background

In the information-based construction process, due to the difference between the development environment and the operation environment, the situations of high system service development cost, non-uniform development standards, disjointed development, operation and maintenance, poor system adaptability, low integration level and insufficient process monitoring strength generally exist. Meanwhile, limited by factors such as computer network, database selection, application system architecture and the like, a series of relatively closed information islands are easily formed in a service form taking an application system as a unit objectively, effective cooperative application cannot be realized among different service systems, and interconnection and intercommunication of services cannot be effectively realized among upper and lower-level similar systems.

Disclosure of Invention

Aiming at the problems in the prior art, the invention provides a method and a system for realizing a container-based service center, and the specific scheme provided by the invention is as follows:

a realization method of a container-based service center integrates software and middleware into the service center based on a container by adopting an open service agent protocol to provide other service applications for use, wherein the service center establishes a cluster service agent through a service registration process, the cluster service agent is used for triggering and acquiring external service calling, the service center establishes a service instance through a service access process and instantiates the external service, the service center inquires the service through a service application use process, binds corresponding service applications, and acquires corresponding external service instance certificates and service account numbers so as to use the service.

Further, the service registration process of the service center in the implementation method of the container-based service center is as follows:

and establishing a cluster service agent according to all used external services through the external connection information, utilizing the communication of the cluster service agent and the external service agent to trigger the calling of obtaining the external services, and returning an external available service list and specification options by the external service agent.

Further, the service access process of the service center in the implementation method of the container-based service center is as follows:

a service instance is created from the list of available services and the specification options,

the external service agent is instructed to create an instance according to the service directory.

Further, in the implementation method of the container-based service center, the service application and use process of the service center is as follows:

querying the available service list and specification options, using an external service agent to obtain the service list and specification options,

receiving a business application, binding corresponding business application, acquiring a corresponding external service instance certificate and a service account, and using corresponding external service.

The system for realizing the container-based service center comprises a service registration module, a service access module and a service application and use module,

the system is based on a container, adopts an open service agent protocol, integrates software and middleware into a service center and provides other service applications for use, wherein the service center executes a service registration process through a service registration module, creates a cluster service agent, triggers and acquires external service calling by using the cluster service agent, executes the service access process through a service access module, creates a service instance, instantiates the external service, executes the service application use process through a service application use module, inquires the service, binds the corresponding service application, and acquires a corresponding external service instance certificate and a service account number so as to use the service.

Further, the service registration module in the implementation system of the container-based service center executes a service registration process:

and establishing a cluster service agent according to all used external services through the external connection information, utilizing the communication of the cluster service agent and the external service agent to trigger the calling of obtaining the external services, and returning an external available service list and specification options by the external service agent.

Further, the service access module in the implementation system of the container-based service center executes a service access process:

a service instance is created from the list of available services and the specification options,

the external service agent is instructed to create an instance according to the service directory.

Further, the service application using module in the implementation system of the container-based service center executes the service application using process:

querying the available service list and specification options, using an external service agent to obtain the service list and specification options,

receiving a business application, binding corresponding business application, acquiring a corresponding external service instance certificate and a service account, and using corresponding external service.

An apparatus for implementing a container-based service center, comprising at least one memory and at least one processor;

the at least one memory to store a machine readable program;

the at least one processor is configured to invoke the machine-readable program to execute the method for implementing the container-based service center.

The invention has the advantages that:

the invention provides a method for realizing the container-based service center, which can realize the unified management of the architecture, key components, development process and the like of service application, ensure the high availability and high performance of the service of the whole system and avoid the occurrence of systematic risks. And the stable and reliable operation of the service is ensured. The method has the advantages of simplifying service application integration, shortening construction period, reducing development cost, improving the overall level and quality of service application, enhancing the vitality of service application and ensuring the continuity of technical progress. The unification of normalization, effectiveness, advancement and practicability is realized.

Drawings

FIG. 1 is a schematic flow diagram of the process of the present invention.

FIG. 2 is a schematic diagram of a front-end interface relating to service classification of the system of the present invention.

Detailed Description

The container is a sandbox technology, and the main purpose is to run the application in the container and isolate the application from the outside; and facilitates that this sandbox may be transferred to other host machines. In essence, it is a special process. Resources, files, devices, states and configurations are divided into a single space by name space (Namespace), Control groups (Control groups), and root cut (root) techniques.

The open service broker protocol allows developers to provide services for applications running in the cloud native platform. The essence of the method is abstraction of service life cycle, and the method mainly comprises a service directory (Catalog) which provides description information of service content; service instance creation (Provisioning), creating a service instance; service instance update (Updating), Updating service instances; acquiring a service instance state (Polling last operation); binding (Binding) a service instance to an application so that the application can use the service instance; unbinding (Unbinding) the service instance, Unbinding the service instance from the application; service instance destruction (provisioning), deleting service instance.

The present invention is further described below in conjunction with the following figures and specific examples so that those skilled in the art may better understand the present invention and practice it, but the examples are not intended to limit the present invention.

The invention provides a method for realizing a container-based service center, which is based on a container and adopts an open service agent protocol to integrate software and middleware into the service center and provide other service applications for use, wherein the service center establishes a cluster service agent through a service registration process, triggers and obtains external service calling by using the cluster service agent, establishes a service instance through a service access process, instantiates the external service, inquires service through a service application use process, binds corresponding service applications, and obtains corresponding external service instance certificates and service account numbers so as to use the service.

The method can realize the unified management of the architecture, key components, development process and the like of the service application, ensure the high availability and high performance of the service of the whole system and avoid the occurrence of systematic risks. And the stable and reliable operation of the service is ensured. The method has the advantages of simplifying service application integration, shortening construction period, reducing development cost, improving the overall level and quality of service application, enhancing the vitality of service application and ensuring the continuity of technical progress. The unification of normalization, effectiveness, advancement and practicability is realized.

In a specific application, in some embodiments of the present invention, software and middleware are integrated into a service center based on a container by using an open service agent protocol, so as to provide other service applications.

Wherein the service center performs a service registration process:

and in a corresponding visual page, submitting necessary information such as URL (uniform resource locator) and the like to a background by connecting an external service agent endpoint service broker endpoint, and creating a cluster service broker in a service category.k 8s.io group by the background, wherein the cluster service broker is responsible for the communication details with the external service agent service broker and is created and managed according to all used external services. And the service broker in the cluster is responsible for encapsulating details related to low-level communication, once the ClusterServiceBroker is created, the call for acquiring the external service is automatically triggered, and the external service broker returns an external available service list and available specification options.

The service center performs a service access process:

and receiving the returned available Service list and available specification options, creating a Service instance to instantiate an external Service, commanding an external Service broker to create an instance through a Service directory Catalog, and creating the instance and returning an HTTP response by the external Service broker.

The service center applies for the use process through the service:

querying available service lists and specification selection: the background uses an external service agent service broker to obtain a service list and specification options thereof by calling a kubecect command,

and receiving a service application, and executing binding operation after approval to obtain an external service instance certificate, a service account and the like required to be used when the connection is established for application in the cluster. And accessing the external service instance certificate when the back end creates the ServiceBinding, mounting the certificate to the pod of the application after the certificate is created, and storing the certificate in the volume provider-group-key. The application may mount this volume under the/var/secrets/provider/key.

The implementation process of the invention is applied to project construction, and the problems of information isolated island and the like in information development and construction can be prevented. The advantages of the container technology are fully utilized, a service center is created, effective integration is implemented, and the system adaptability and the integration level are improved; and a unified technical support environment is established for the construction of an application system, a unified development standard is provided, and repeated development is reduced.

The invention also provides a system for realizing the container-based service center, which comprises a service registration module, a service access module and a service application and use module,

the system is based on a container, adopts an open service agent protocol, integrates software and middleware into a service center and provides other service applications for use, wherein the service center executes a service registration process through a service registration module, creates a cluster service agent, triggers and acquires external service calling by using the cluster service agent, executes the service access process through a service access module, creates a service instance, instantiates the external service, executes the service application use process through a service application use module, inquires the service, binds the corresponding service application, and acquires a corresponding external service instance certificate and a service account number so as to use the service.

The information interaction, execution process and other contents between the modules in the system are based on the same concept as the method embodiment of the present invention, and specific contents can be referred to the description in the method embodiment of the present invention, and are not described herein again.

Similarly, the system can realize the unified management of the architecture, key components, development process and the like of the service application, ensure the high availability and high performance of the service of the whole system and avoid the occurrence of systematic risks. And the stable and reliable operation of the service is ensured. The method has the advantages of simplifying service application integration, shortening construction period, reducing development cost, improving the overall level and quality of service application, enhancing the vitality of service application and ensuring the continuity of technical progress. The unification of normalization, effectiveness, advancement and practicability is realized.

The invention also provides a device for implementing the container-based service center, which comprises at least one memory and at least one processor;

the at least one memory to store a machine readable program;

the at least one processor is configured to invoke the machine-readable program to execute the method for implementing the container-based service center.

The contents of information interaction, readable program process execution and the like of the processor in the device are based on the same concept as the method embodiment of the present invention, and specific contents can be referred to the description in the method embodiment of the present invention, and are not described herein again. Similarly, the device can realize the unified management of the architecture, key components, development process and the like of the service application, ensure the high availability and high performance of the service of the whole system and avoid the occurrence of systematic risks. And the stable and reliable operation of the service is ensured. The method has the advantages of simplifying service application integration, shortening construction period, reducing development cost, improving the overall level and quality of service application, enhancing the vitality of service application and ensuring the continuity of technical progress. The unification of normalization, effectiveness, advancement and practicability is realized.

It should be noted that not all steps and modules in the above flows and system structure diagrams are necessary, and some steps or modules may be omitted according to actual needs. The execution order of the steps is not fixed and can be adjusted as required. The system structure described in the above embodiments may be a physical structure or a logical structure, that is, some modules may be implemented by the same physical entity, or some modules may be implemented by a plurality of physical entities, or some components in a plurality of independent devices may be implemented together.

The above-mentioned embodiments are merely preferred embodiments for fully illustrating the present invention, and the scope of the present invention is not limited thereto. The equivalent substitution or change made by the technical personnel in the technical field on the basis of the invention is all within the protection scope of the invention. The protection scope of the invention is subject to the claims.

8页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:一种基于分布式技术的算法封装方法

网友询问留言

已有0条留言

还没有人留言评论。精彩留言会获得点赞!

精彩留言,会给你点赞!