An API repository that allows for the composition and management of microservices

An API registry within container platforms automates service management and deployment, addressing inefficiencies by generating client libraries and enforcing properties, thus enhancing service reliability and compatibility.

JP7562619B2Active Publication Date: 2024-10-07ORACLE INT CORP
View PDF 6 Cites 0 Cited by

Patent Information

Application Number
JP2022185721
Authority / Receiving Office
JP · JP
Patent Type
Patents
Current Assignee / Owner
Priority Date
2017-09-30
Filing Date
2022-11-21
Publication Date
2024-10-07
Estimated Expiration
2038-09-28

AI Technical Summary

Technical Problem

Existing container platforms face challenges in efficiently managing and deploying microservices due to the need for manual configuration and compatibility issues between services, leading to inefficiencies and increased complexity in service interactions.

Method used

An API registry is deployed within a container environment to manage service endpoints, automatically generate client libraries, and enforce properties such as high availability, encryption, and logging, thereby simplifying service interactions and ensuring compatibility.

Benefits of technology

The API registry enhances service deployment and management by providing stable endpoints, automating client library generation, and enforcing service properties, reducing manual effort and improving service reliability and compatibility.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 0007562619000001
    Figure 0007562619000001
  • Figure 0007562619000002
    Figure 0007562619000002
  • Figure 0007562619000003
    Figure 0007562619000003
Patent Text Reader

Abstract

A method, system, and non-transitory computer-readable medium are provided for customizing the deployment and operation of services in a container environment. The method includes receiving, in an API registry, properties of a service that is encapsulated in or to be deployed in a container environment, determining whether the properties of the service affect deployment of the service into the container environment, deploying the service based at least in part on the properties in response to determining that the properties affect deployment of the service, determining whether the properties of the service affect generation of a client library that calls the service in the container environment, and generating the client library based at least in part on the properties in response to determining that the properties affect generation of the client library.
Need to check novelty before this filing date? Find Prior Art

Description

[Technical field]

[0001] CROSS-REFERENCE TO RELATED APPLICATIONS This application claims the benefit of U.S. Provisional Application No. 62 / 566,351, filed September 30, 2017, which is incorporated herein by reference. This application is also related to the following applications, which were filed on the same day as this application and are assigned to a common assignee, each of which is also incorporated herein by reference: U.S. patent application Ser. No. 16 / 147,3 filed on Sept. 28, 2018, entitled API REGISTRY IN A CONTAINER PLATFORM FOR AUTOMATICALLY GENERATING CLIENT CODE LIBRARIES No. 34 (Agent reference number 088325-1090745) U.S. Patent Application 16 / 147,343, filed September 28, 2018, entitled DYNAMIC NODE REBALANCING BETWEEN CONTAINER PLATFORMS (Attorney Docket No. 088325-1090747) U.S. patent application Ser. No. 2016 / 023636, filed on September 28, 2018, entitled OPTIMIZING REDEPLOYMENT OF FUNCTIONS AND SERVICES ACROSS MULTIPLE CONTAINER PLATFORMS AND INSTALLATIONS. No. 16 / 147,332 (Agent reference number 088325-1090748) U.S. Patent Application 16 / 147,351, filed September 28, 2018, entitled REAL-TIME DEBUGGING INSTANCES IN A DEPLOYED CONTAINER PLATFORM (Attorney Docket No. 088325-1090753) [Background technology]

[0002] background Theoretically, containers in any form represent a standardized way of packaging and interacting with information. Containers can be isolated from each other and can be used in parallel without any risk of cross contamination. In the modern software world, the term "container" has acquired a unique meaning. A software container, such as a Docker® container, is a software construct that logically encapsulates and defines a piece of software. The most common type of software encapsulated in a container is an application, a service, or a microservice. Modern containers also include all the software support required for the application / service to run, such as an operating system, libraries, storage volumes, configuration files, application binaries, and other parts of the technology stack that would be found in a typical computing environment. Thus, using this container environment, multiple containers can be created, each running its own service in any environment. Containers can be deployed without any modifications in production data centers, on-premise data centers, cloud computing platforms, etc. Launching a container on the cloud is identical to launching a container on a local workstation.

[0003] Modern service-oriented architectures and cloud computing platforms break down large tasks into many small, specific tasks. Containers can be instantiated to focus on each specific task, and multiple containers can work together to realize sophisticated applications. This is sometimes called a microservices architecture, and each container can use different versions of programming languages ​​and libraries that can be upgraded independently. The isolated nature of the processing within a container makes containers less susceptible to changes compared to changes made to larger, more monolithic architectures. They can be upgraded and replaced with little effort or risk. Although virtual machines can be used to run container platforms, container platforms are much more efficient than traditional virtual machines at running this microservices architecture. Summary of the Invention [Means for solving the problem]

[0004] Quick Overview In some embodiments, a method for customizing the deployment and operation of a service in a container environment may include receiving, in an API registry, properties of a service that is or is to be encapsulated in a container that is or is to be deployed in the container environment. The method may also include the API registry determining whether the properties of the service affect the deployment of the service into the container environment and, in response to a determination that the properties affect the deployment of the service, deploying the service based at least in part on the properties. The method may further include the API registry determining whether the properties of the service affect the generation of a client library that calls the service in the container environment and, in response to a determination that the properties affect the generation of the client library, generating the client library based at least in part on the properties. The method may further include the API registry determining whether the properties of the service affect how calls to the service are processed in the container environment and, in response to a determination that the properties affect how calls to the service are processed, processing the calls to the service based at least in part on the properties.

[0005] In some embodiments, a non-transitory computer-readable medium including instructions that, when executed by one or more processors, cause the one or more processors to perform operations, the operations may include receiving, in an API registry, properties of a service that is or is to be encapsulated in a container that is or is to be deployed in a container environment. The operations may also include the API registry determining whether the properties of the service affect deployment of the service into the container environment, and in response to a determination that the properties affect deployment of the service, deploying the service based at least in part on the properties. The operations may further include the API registry determining whether properties of the service affect generation of a client library that calls the service in the container environment, and in response to a determination that the properties affect generation of the client library, generating the client library based at least in part on the properties. The operations may further include the API registry determining whether properties of the service affect how calls to the service are processed in the container environment, and in response to a determination that the properties affect how calls to the service are processed, processing the calls to the service based at least in part on the properties.

[0006] In some embodiments, a system may include one or more processors and one or more memory devices. The one or more memory devices include instructions that, when executed by the one or more processors, cause the one or more processors to perform operations, which may include receiving, in an API registry, properties of a service that is or is to be encapsulated in a container that is or is to be deployed in a container environment. The operations may also include the API registry determining whether the properties of the service affect deployment of the service into the container environment, and deploying the service based at least in part on the properties in response to a determination that the properties affect deployment of the service. The operations may further include the API registry receiving, in an API registry, properties of a service that is or is to be encapsulated in a container that is or is to be deployed in a container environment. The operations may include determining whether properties of the service affect generation of a client library that calls the service in the container environment, and, in response to a determination that the properties affect generation of the client library, generating the client library based at least in part on the properties. The operations may further include the API registry determining whether properties of the service affect how a call to the service is processed in the container environment, and, in response to a determination that the properties affect how the call to the service is processed, processing the call to the service based at least in part on the properties.

[0007] Any embodiment may include any or all of the following features in any combination, without limitation: The properties may include code that the API registry executes. The properties may include flags that the API registry uses to select a predefined process to execute. The API registry determining whether a property of the service affects deployment of the service into a container environment may include determining that the property indicates that the service should be deployed to the container environment with high availability. Deploying the service based at least in part on the property may include deploying multiple containerized instances of the service into the container environment. Determining whether a property of the service affects generation of a client library that calls the service in a container environment may include determining that the property indicates that the service requires end-to-end encryption. Generating the client library based at least in part on the property may include generating code in the client library that encrypts data before it is sent to the service's endpoint in the service call. Determining whether a property of the service affects generation of a client library that calls the service in a container environment may include determining that the property indicates that the calling service must log usage of the service. Generating the client library based at least in part on the properties may include generating code in the client library that logs usage information of calls to an endpoint of the service. Determining whether a property of the service affects how calls to the service are processed in a container environment may include determining that the property indicates that the service should be instantiated on demand in the container environment.Processing the call to the service based at least in part on the property may include generating a containerized instance of the service in response to the API registry receiving an indication that the calling service sends a request to the service. The client library may include an object class with member functions implementing the API functions to make direct calls to an endpoint of the service. The operations may further include receiving an API definition in the API registry including an endpoint of the service in the container environment and one or more API functions. Properties of the service may be received along with the API definition. The container environment may include a number of services encapsulated in a container. The API registry may be deployed as a service encapsulated in a container within the container environment. The API registry is available to services being developed in an integrated development environment (IDE) and to services already deployed in the container environment. Determining whether the property of the service affects how a call to the service is processed in the container environment may include determining that the property indicates that the service should be rate limited when the service is called in the container environment.

[0008] A further understanding of the nature and advantages of the present invention may be realized by reference to the remaining portions of the specification and the drawings. Like reference numbers used in the several drawings represent the same In some instances, a subscript may be associated with a reference numeral to refer to one of a plurality of similar components. When referring to a reference numeral without referring to an existing subscript, it is intended to refer to all such similar components. [Brief description of the drawings]

[0009] [Figure 1] FIG. 2 illustrates a software architecture and logical organization of a development and runtime environment for services in a container platform according to some embodiments. [Diagram 2] FIG. 1 illustrates a special purpose computer hardware system specifically designed for carrying out the embodiments described herein. [Diagram 3] FIG. 2 illustrates a data organization that may be specific to a container platform used in some of the embodiments described herein. [Figure 4] FIG. 2 illustrates an API registry that can be deployed to an IDE and production / runtime environments according to some embodiments. [Diagram 5] FIG. 1 illustrates a deployment of an API registry for use with a container platform at runtime, according to some embodiments. [Figure 6A] FIG. 1 illustrates a flowchart of a method for deploying an API registry according to some embodiments. [Figure 6B] FIG. 6B illustrates a software structure of a container platform when an API registry is deployed using the flowchart of FIG. 6A according to some embodiments. [Figure 7A] 1 illustrates a flowchart of a method for registering a service in an API registry according to some embodiments. [Figure 7B] 2 illustrates a hardware / software diagram of the steps for registering an API in an API registry, according to some embodiments. [Figure 8] 1A-1D illustrate example graphical and command line interfaces for browsing and selecting APIs registered in an API registry according to some embodiments. [Figure 9] FIG. 2 illustrates a flowchart of a method for using a service registered in an API registry and its corresponding function, according to some embodiments. [Figure 10] FIG. 13 illustrates how an API registry can receive selection of a CreateUser( ) function via a graphical interface. [Figure 11]FIG. 1 illustrates an example of a client library that an API registry automatically generates for a service, according to some embodiments. [Figure 12] FIG. 2 illustrates an embodiment of a client library that includes dynamic bindings between service endpoints and API functions, according to some embodiments. [Figure 13] FIG. 1 illustrates an embodiment of a client library into which additional data can be placed to complete the input data set for a service call, according to some embodiments. [Figure 14] FIG. 2 illustrates a client library that can handle retries when calling a service according to some embodiments. [Figure 15A] FIG. 1 illustrates a method for providing API properties to an API registry according to some embodiments. [Figure 15B] 1 illustrates a hardware / software diagram of how a service can contribute API properties to an API registry according to some embodiments. [Figure 16] 1 illustrates a hardware / software diagram of an API registry using properties to deploy highly available services according to some embodiments. [Figure 17] 1 illustrates a hardware / software diagram of a property that implements end-to-end encryption through an API registry, according to some embodiments. [Figure 18] FIG. 18 illustrates properties for an API registry to implement usage logging for a service 1808, according to some embodiments. [Figure 19] 1 illustrates a hardware / software diagram of a property capable of implementing an authentication protocol for a service according to some embodiments. [Figure 20] 1 illustrates a hardware / software diagram of properties that enable runtime instantiation of a service, according to some embodiments. [Figure 21]1 illustrates a hardware / software diagram of a property that implements a rate limiting function for a service, according to some embodiments. [Figure 22] 1 shows a simplified block diagram of a distributed system for implementing some of the embodiments. [Figure 23] FIG. 1 shows a simplified block diagram of components of a system environment in which services provided by components of a system of an embodiment can be provided as cloud services. [Figure 24] FIG. 1 illustrates an exemplary computer system upon which various embodiments may be implemented. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

[0010] Detailed Description Described herein are embodiments of an application programming interface (API) registry that is part of an integrated development environment (IDE) that allows developers to register services during development and makes these services available to other services both during and after deployment. The API registry can be deployed as part of an orchestrated container platform that runs as a containerized application on the container platform. When a service or microservice is developed and deployed to a container on the container platform, the API registry can locate available endpoints (e.g., IP addresses and port numbers) in the container platform that correspond to the available services by running a discovery process. The API registry can also accept uploads of API definition files that can be used to make raw service endpoints into API functions that are made available through the API registry. The API registry can dynamically bind discovered endpoints to API functions that are kept up to date and made available to other services in the container platform. This provides stable endpoints that other services can statically call while the API registry manages any changes to the binding between API functions and service endpoints. This also simplifies the process of using services in the container platform. Instead of writing code for HTTP calls, new services can access registered services simply by using the API interfaces.

[0011] In some embodiments, the IDE can provide a navigation / browse interface for a developer to locate services available within the container platform and registered in an API registry. For a new service under development, the API registry can automatically generate a set of client libraries that contain all the functionality required for interacting with the registered service when the API registry makes calls to an existing service. For example, some embodiments can generate object classes that contain member functions that correspond to the API calls. During development, the new service can simply instantiate these objects and / or use their member functions to call into the corresponding API. The code in the client libraries governs the direct connection between the calling service and the endpoint of the registered service and can contain code to handle all the functionality required for this interaction. For example, the automatically generated client library can generate object classes that contain member functions that correspond to the API calls. This may include code for packaging and formatting parameters from the call into an HTTP call to a service endpoint, code for arranging data to complete the parameter set for the call, code for packaging the information into a compatible packet (JSON, XML, etc.), code for receiving and parsing result packets, code for handling retries and error conditions, etc. From the perspective of the calling service, the code for handling all of this functionality is generated automatically by the API Registry, which abstracts and encapsulates the details of the service call into a Client Library Object. All that the calling service is required to do is execute member functions of the Client Library Object created by the API Registry.

[0012] In some embodiments, the API registry can also accept uploading of a set of properties that may define the runtime execution of a registered service. This set of properties may be uploaded during development along with the API definition file. These properties may define runtime characteristics such as end-to-end encryption, usage / logging requirements, user authentication, on-demand service instantiation, multiple service deployment instances for high availability, rate / usage limits, and other runtime characteristics. The API registry can ensure that these properties are met by interacting with the container environment during development, deployment, and runtime. During development, the automatically generated client library for the calling service may include code that may be required to execute these properties, such as encryption code, usage logging code, and / or interactions with user authentication services. When a registered service is being deployed, the API registry can instruct the container platform to ensure high reliability of the service during runtime by instantiating multiple instances of the service and / or additional load balancing modules. When a service is called during runtime, the API registry can instantiate the service for on-demand instantiation, limit the number of API calls that can be made to throttle usage, and perform other runtime functions.

[0013] FIG. 1 illustrates the software structure and logical organization of a development and runtime environment for services in a container platform, according to some embodiments. The environment may include an IDE 102 that may be used to develop services and microservices to be deployed on the container platform. The IDE is a software suite that integrates and provides all the basic tools that a service developer can use to write and test new services. The IDE 102 may include a source code editor 106 with a graphical user interface (GUI), code completion capabilities, and a navigate / browse interface that allow developers to write, navigate, integrate, and visualize the source code writing process. The IDE 102 may also include a debugger 110 that includes a mutability interface, an instant mutability interface, an expression evaluation interface, a memory content interface, breakpoint visualization and capabilities, and other debugging functions. The IDE 102 may also include a compiler and / or interpreter 108 for compiling machine code and executing the compiled machine code or interpreted bytecode. The compiler / interpreter 108 may allow developers to use / generate makefiles for different build automation configurations. Some embodiments of the IDE 102 may include a code library 112. A code library contains common code functions, objects, interfaces, and / or other structures that can be linked to services under development and reused across multiple developments.

[0014] Services can be developed in IDE102 and worked through until they are ready to be deployed. The service can then be deployed to a production / deployment environment 104, which may include many different hardware and / or software configurations, including dedicated hardware, virtual machines, and containerized platforms. Prior to this disclosure, when a service 114 was deployed to the production / deployment environment 104, the service 114 did not have run-time access to many of the tools used in the IDE 102. Any functionality required for the service 114 to run in the production / deployment environment 104 had to be packaged from the code library 112 and deployed with the service 114 to the production / deployment environment 104. Additionally, the service 114 is typically deployed without any of the functionality of the debugger 110 or a copy of the source code from the source code editor 106. In effect, the service 114 is deployed to the production / deployment environment 104 with all the functionality required for run-time operation, but stripped of information used only during development.

[0015] 2 illustrates a special purpose computer hardware system specifically designed for carrying out the embodiments described herein. As an example, the service 114 may be an Infrastructure as a Service (IaaS) cloud computing service. The IaaS cloud computing environment 202 may be deployed in a cloud computing environment 202, which is a form of cloud computing that provides virtualized or shared computing resources over a network. The IaaS cloud computing environment 202 may also be deployed in a Software as a Service (SaaS) and / or Platform as a Service (PAS) cloud computing environment 202. Others configured as Platform as a Service (PaaS) architecture The IaaS environment 202 may include or be coupled to a cloud computing environment, such as a cloud service provider (ISP) or a cloud service provider (SSP) based on a public cloud provider (SSP) or a public cloud provider (SPF) based on ...

[0016] Regardless of the type of cloud environment, the service 114 may be deployed on multiple types of hardware / software systems. For example, the service 114 may be deployed on dedicated hardware 206. The dedicated hardware 206 may include hardware resources such as servers, disks, operating systems, software packages, etc. that are specifically assigned to the service 114. For example, a particular server may be assigned to handle traffic flowing to and from the server 114.

[0017] In another example, the services 114 can be deployed on hardware / software that operates as one or more virtual machines 208. A virtual machine is an emulation of a computer system that provides the functionality of dedicated computer hardware 206. However, instead of being dedicated to a specific function, the physical hardware may be shared by multiple different virtual machines. Each virtual machine may provide all the functionality it needs to perform, including a complete operating system. This allows multiple virtual machines with different operating systems to run on the same physical hardware, and multiple services to share one piece of hardware.

[0018] In another example, the service 114 can be deployed on a container platform 210. A container platform differs from a virtual machine 208 in several important ways. First, as described in more detail below in FIG. 3, the container platform 210 packages individual services into containers. Each container shares the host operating system kernel, as well as sharing binaries, libraries, and other read-only components. This allows containers to be extremely lightweight, often only a few megabytes in size. In addition, lightweight containers are very efficient, taking only a few seconds to start up compared to the minutes it takes to boot up a virtual machine. Containers also reduce management overhead by sharing an operating system and other libraries that can be managed together for a set of containers in the container platform 210. Although containers share the same operating system, the operating system provides virtual memory support for isolation, thus providing an isolated platform. Container technologies include Docker® containers, Linux® Libcontainer®, Open Container Initiative (OCI), Kubernetes®, Coe The containers may include, among other things, a standard operating system (OS), Apache Mesos, and the like. These containers may be deployed on a container orchestration platform, sometimes referred to herein simply as “container platform 210.” The container platform maintains automated configuration, orchestration, and management of the deployed software containers. The container platform 210 may provide service discovery, load balancing, health checks, multi-deployment, and the like. The container platform 210 may be realized by a commonly available container platform such as Kubernetes, which runs containers organized into nodes and pods.

[0019] Regardless of the platform 206, 208, 210 on which the service 114 is deployed, the platform 206, 208, 210 may each provide service endpoints 212, 214, 216 that provide public access for calling the service 114. Typically, these endpoints are accessible through HTTP calls and are associated with an IP address and port number. By connecting to the correct IP address and port number, other services can call the service deployed on any of the platforms 206, 208, 210 when made publicly available. Each service, such as the service 114, may include its own proprietary format and data requirements for calling the service. Similarly, each service may return results whose format and data type are specific to that service 114. In addition to service-specific requirements, a particular deployment platform 206, 208, 210 may also include additional requirements for interacting with the service 114, such as programming language, package format (JSON, XML, etc.), etc. that must be conformed to in order to properly interact with the service.

[0020] While the above examples allow for the service 114 to be deployed on any of the above platforms 206, 208, 210, the embodiments described herein are specifically designed for the above container platform 210. Thus, embodiments specifically described as being deployed on a "container platform" can be distinguished from embodiments specifically described as being deployed on a virtual machine platform, on a server or dedicated hardware platform, or generally in an IaaS environment.

[0021] 3 illustrates a data organization that may be specific to a container platform 210 that some of the embodiments described herein use. Generally, any deployment of services to a container platform is deployed into pods 304, 306. A group is a group of one or more application containers (e.g. Docker or rkt). A pod is an abstraction that represents a loop. A pod may also include some shared resources that are commonly available to all containers in the pod. For example, pod 304 includes container 310 and container 312. Pod 304 also includes shared resources 308. These resources may include storage volumes or other information about how containers are run or connected within pod 304. Pod 304 may model an application-specific logical host that includes different service containers 310, 312 that are relatively tightly coupled. For example, service 326 in container 310 may utilize resource 308 and may call service 320 in container 312. Service 320 may also call service 322, which may also call service 324, each of which is deployed in container 312. The output of service 324 may be provided to a network IP address and port 318, which is another common resource shared by pod 304. In this manner, services 320, 322, 324, 326 all work together with shared resource 308 to provide a service that can be accessed by services running in other containers via IP address and port number 318. This service can also be accessed via IP address port 318 by computer systems outside the container platform, such as workstations, laptop computers, smartphones or other computing devices that are not part of the container platform or IaaS environment.

[0022] In the simplest deployment, each container may contain one service and each pod may contain one container that encapsulates a service. For example, a pod 306 contains only one container 314 with only one service 328. This one service is accessible through the pod's 306 IP address and port number 316. Typically, when a service is deployed to a container platform, a container and a pod are instantiated to hold the service. Multiple different pods may be deployed to a container node 302. Generally, pods run within a node. A node represents a worker machine (either virtual or physical) in a container platform. Each node is managed by a "master" that automatically handles scheduling pods within each node. Each node may run a process that is responsible for communication between the master and the node and for managing pods within the containers on the machine represented by the node. Each node may also include a container runtime that is responsible for pulling container images from a registry, unpacking containers, and running services.

[0023] FIG. 4 illustrates an API registry 404 that can be deployed to the IDE 102 and the production / deployment environment 104, according to some embodiments. As mentioned above, when a service 114 is deployed from the IDE 102 to the production / deployment environment 104, there is a technical challenge in that the service 114 loses run-time access to information that is exclusively available within the IDE 102. The API registry 404 is accessible to the service 114 while it is deployed to the production / deployment environment 104 and operating during run-time in this environment. The API registry 404 overcomes the past technical challenge of decoupling development functions from run-time functions by registering services with the API registry 404 during development and providing API definitions and / or API properties to the API registry 404. The information that defines the API is available to new services under development within the IDE 102 and to services already deployed to the production / deployment environment 104. After this registration process is complete, the service 114 can operate using a client library that accesses the API registry 404 during run-time to ensure that the API functions are correctly bound to the current IP address and port number of the corresponding service. The API registry 404 represents a new data structure and processing unit specifically designed to solve these technical challenges.

[0024] Another technical challenge that existed in the art was the realization of service properties when they are deployed to the production / deployment environment 104. For example, if a service is to be deployed with high availability, the developer needs to build a container deployment file that specifically instantiates multiple instances of the service in a container platform and balanced traffic so that the service is always available. Service developers do not always have this expertise and often do not have control over the deployment of their services. As mentioned above, the API registry 404 allows a service to simply select properties such as high availability that the API registry 404 can automatically achieve. This technical solution is possible because the API registry 404 bridges the gap between the IDE 102 and the production / deployment environment 104.

[0025] FIG. 5 illustrates the deployment of an API registry 404 used with the container platform 210 at runtime, according to some embodiments. One of the technical solutions and improvements over existing technologies that the API registry 404 provides is the maintenance of stable endpoints for service calls, as well as simplified access to and automatic code generation for accessing the service calls. Prior to this disclosure, calls between services were point-to-point connections using, for example, HTTP calls to IP addresses and port numbers. When services are updated, replaced, relocated, and redeployed to the container platform 210, the IP addresses and port numbers may change frequently. In this case, all services that called the updated service needed to update the IP addresses and port numbers in the actual code that called the service. The API registry 404 solves this technical problem by providing dynamic binding between the IP addresses and port numbers of the services and the API functions that are made available through the API registry. The client libraries that the API registry 404 automatically generates may include functions that retrieve and / or validate the current IP addresses and port numbers of a particular service by accessing the API registry 404. Thus, a first service connecting to a second service need only generate a client library once to provide a stable, lifetime connection to the second service.

[0026] Another technical problem that the API Registry 404 solves is the automatic generation of client libraries. Prior to this disclosure, a first service that accesses a second service required a developer to write custom code to access the second service. This code may change over time, resulting in incompatibilities between the first and second services, both of which require updates. The API Registry 404 solves this technical problem by uploading API definition files that are used to automatically generate client libraries to call the service. Thus, a service can specifically specify how the calling code in any other service should behave, which ensures compatibility. These client libraries also greatly simplify and encapsulate the code for calling the service. As described below, complex HTTP calls using IP addresses and port numbers can be replaced with simple member functions in the language (e.g., Java, C#, etc.) specific to the calling service. This allows the calling service to select an API function from the API Registry 404, and the code that the function implements can be downloaded to the calling service as a client library.

[0027] FIG. 6A illustrates a flow chart of a method for deploying an API registry 404, according to some embodiments. The method may include deploying an API registry service to a container environment (601). The API registry may be implemented as a service running within a container in the container environment. Thus, the API registry may actively run after a service is deployed in the container environment so that it can be accessed at runtime. The API registry may also be linked to the existing IDE. The method may further include discovering ports for available services in the container platform (603). Once a service is deployed to the container platform, the API registry may initiate a discovery process that sequentially traverses each service deployed to the container platform. For each service, the API registry may discover and record an IP address and port number. The list of IP addresses and port numbers discovered by this process may be stored in a data structure, such as a table, associated with the API registry. Additionally, each IP address and port number may be stored along with the name of the service or other identifier that uniquely identifies the service on the container platform. These initial steps illustrated in the flowchart of FIG. 6A provide a starting point for the API registry to begin operating within the container platform's runtime environment and to make the API registry available to services being developed within the IDE.

[0028] FIG. 6B illustrates the software structure of the container platform 210 when deploying an API registry using the flowchart of FIG. 6A, according to some embodiments. As previously described, the API registry 404 can be deployed in a container 620 in the container platform 210. As previously described in FIG. 3, the container 620 can run in one or more pods on a node. The API registry 404 can be made privately available to any of the other containers in the container platform 210. In some embodiments, the API registry 404 can also be made publicly available to other devices that are not part of the container platform 210. As a containerized service, the API registry 404 can have an IP address and port number that are available to other services. However, since the IP address and port number of the API registry 404 are only used by the code automatically generated in the client library, some embodiments do not need to expose the IP address and port number of the API registry 404. Instead, the IDE's own client library can maintain an up-to-date list of the IP addresses and port numbers of the API registry 404 so that it can be contacted during development, deployment, and execution of other services.

[0029] After being deployed to the container 620, the API registry 404 may perform a discovery process. The discovery process may use a directory listing of nodes in the container platform to identify pods that implement services by IP address and port number. The API registry 404 may then access a unique identifier, such as a number or name, for each available service and store the identifier in the container platform 210 along with each IP address and port number. This discovery process may be performed periodically to discover new services that have been added to the container platform 210 and to identify existing services that have been removed from the container platform 210. As described below, the discovery process may also be used to discover when IP addresses and port numbers change for existing services. For example, the API registry 404 may access a service having endpoints 602, 604, 606, 608, and store the unique identifier in the container platform 210 along with each IP address and port number. In the process described below, API registry 404 can bind each of these endpoints 602, 604, 606, 608 to API functions registered with API registry 404. At some point after this initial discovery, the IP address and / or port number of endpoint 602 may change when the service associated with endpoint 602 is replaced, updated, or revised. API registry 404 can detect the change to endpoint 602 and update the binding to the existing API functions that API registry 404 provides.

[0030] Similarly, API registry 404 can use a discovery process to detect when an endpoint becomes unavailable and subsequently remove the API function associated with the service. In some embodiments, when a service is registered with API registry 404 but the corresponding API function is not currently bound to a valid endpoint, API registry 404 can provide a mock response to any service calling the corresponding API function. For example, if an API is registered for a service that corresponds to endpoint 604, but endpoint 604 is currently unavailable, API registry 404 can intercept calls to endpoint 604 and provide default or dummy data accordingly. This allows services calling the service associated with endpoint 604 to maintain functionality and / or continue the design process without "breaking" their connection to this particular service. Mock / test data scenarios are described in more detail below.

[0031] 7A illustrates a flow chart of a method for registering a service with API registry 404 according to some embodiments. The method may include receiving an upload of an API definition (701). The API definition may be provided in the form of a data packet, a file, or a link to an information repository. The API definition may include any information that can be used to identify and define API functions to be bound to an endpoint associated with the service. For example, some embodiments of an API definition may include the following data: service name or other unique identifier, function names corresponding to the service endpoints and calls, data inputs required to call the service with corresponding descriptions and data types, result data format and data types, current IP address and / or port number, documentation describing the functionality of the API functions to be associated with the endpoint, default or dummy data values ​​to be returned during mock / test scenarios, and any other information that the API registry 404 may use to convert HTTP requests received by the endpoint into client libraries that use API function calls of class data objects.

[0032] The method may also include creating corresponding API functions based on the uploaded API definition (703). These API functions may be automatically generated based on the API definition. Each endpoint of a service may correspond to multiple different API functions. For example, an endpoint implementing a RESTful interface may receive HTTP calls for POST, GET, PUT, and DELETE functions on the same IP address and port number, which may result in, for example, different API functions. For example, if the interface represents a list of users, this may correspond to at least four different API functions, such as GetUser( ), AddUser( ), RemoveUser( ), and UpdateUser( ). Additionally, each API function may correspond to a set of user-specific properties, such as UpdateUser(id), UpdateUser(name), UpdateUser(firstname, lastname), etc. These API functions can be generated and made available to other services via an API registry. It should be noted that, as described in more detail below, services are not required to call these functions through the API Registry. Instead, these functions are made available for browsing in the API Registry, and when selected, the API Registry can generate client libraries that implement these functions in the calling service.

[0033] The method may further include creating a binding in an API registry between the API functions and the corresponding service endpoints (705). Based on the discovery process and the registration process of step 701, the API registry can create dynamic bindings between the endpoints of the services in the container platform and the API functions created by the API registry. In the data structure formed upon discovering available endpoints and services, the API registry can store the corresponding function or set of functions for each endpoint. As described above, the bindings can be updated whenever a service is updated, moved, replaced, or added to the container platform as determined by the discovery process. This allows a client library created in the calling service to verify or receive the current IP address and port number of the service by first consulting the API registry.

[0034] FIG. 7B illustrates a hardware / software diagram of steps for registering an API in the API registry 404, according to some embodiments. As described above, the API registry 404 may be instantiated and executed within a container 620 in the container platform 210. Although the container platform 210 represents a production / deployment environment, the API registry 404 may still be accessible from the IDE 102 used to develop services. Thus, the IDE 102 may provide a mechanism for uploading an API definition file 702 to the API registry 404. Specifically, the user interface of the IDE 102 may include a window or interface that allows a developer to define and / or populate the fields of the API definition file 702. This information, as described above, may include function names, parameter lists, data types, field lengths, object class definitions, IP addresses and port numbers, service names or other unique identifiers, etc. This information may be uploaded to the API registry 404 and linked to a particular IP address and port number of the endpoint 602 by dynamic binding. Finally, the API registry 404 can generate one or more API functions 704 that can be made available via the API registry 404 .

[0035] After a service is registered with the API registry 404 and one or more API functions are generated, the API registry can make these functions available to developers when designing the service. FIG. 8 illustrates an example of a graphical interface 802 and a command line interface 804 for browsing and selecting APIs registered with the API registry 404, according to some embodiments. When programming and developing new services for the container platform, developers can browse and select API functions available for their services by accessing the graphical interface 802. This graphical interface 802 is an example only and is not intended to limit the types of graphical interfaces that can be used to browse and select API functions.

[0036] In this embodiment, the IDE 102 can instruct the graphical interface 802 to provide a list of APIs that are registered in the API registry. In embodiments, APIs are categorized based on endpoints. For example, one endpoint corresponding to a service may provide a RESTful interface for storing user records (e.g., "UserStorage"). The graphical interface 802 may display all API functions (e.g., "CreateUser", "DeleteUser", "UpdateUser", etc.) available through the selected endpoint. Other embodiments may group functions based on the overall service if the service provides multiple endpoints. The graphical interface 802 may receive a selection of one or more API functions to be used by the calling service. The API registry may then provide documentation showing how to use the API function, including required parameters and return values. Those skilled in the art will appreciate that the command line interface 804 may provide similar information and receive similar input as the graphical interface 802.

[0037] The interfaces 802, 804 shown in FIG. 8 provide multiple technical advantages. First, these interfaces 802, 804 provide an up-to-date listing of all APIs registered in the API registry, which corresponds to a list of all services currently available on the container platform. Rather than being required to look up documentation, contact service developers, and / or perform other inefficient tasks to locate a list of available services, service developers can retrieve and display this information in real-time. Additionally, as services are updated, the API definition file can be updated in a corresponding manner, which in turn updates the display shown in FIG. 8 to provide the latest availability information for each API function.

[0038] FIG. 9 illustrates a flow chart of a method for using services registered in an API registry and their corresponding functions, according to some embodiments. The method may include providing an inventory of registered APIs (901). This step may be omitted if the desired service is already known. However, in general, the services may be displayed for browsing and navigation using the interface of FIG. 8 described above. The method may also include receiving a selection of API functions (903). This selection may be received by the API registry from a developer of the service. For example, the developer may select a function to update a database of user records using the CreateUser( ) function described above. Figure 10 shows how the API registry determines the CreateUser() function. Illustrated is that the selection 1002 may be received via the graphical interface 802. Other embodiments may receive the selection via a command line interface or via other input methods provided by the IDE.

[0039] Referring again to FIG. 9, upon receiving the selection of the API functions, the API registry can generate one or more client libraries for the calling service (905). Generating the client libraries can provide the calling service with service endpoints dynamically bound to the API functions. Specifically, the IDE can generate a set of class objects in the IDE that encapsulate the functionality required to directly interface with the service endpoints in the container platform. In some embodiments, the client libraries can include object classes that can be instantiated or used to call member functions that implement the code required to communicate with the service. Examples of these client libraries are described in more detail below.

[0040] The method may further include providing test data (907). The service does not have to be complete when registered in the API registry. Instead, the service may be A service may indicate to the API Registry that it is not yet ready to provide a functional response to the calling service. In some embodiments, an API definition file uploaded to the API Registry may include a specification of the type of information that the service must return before it is functional. When a calling service calls an API function, the client library generated by the API Registry may route the request to the API Registry instead of the service endpoint. The API Registry may then provide a response with a dummy, null, or default value. Alternatively, code within the client library itself may generate default data to be returned to the calling service.

[0041] It should be understood that the specific steps illustrated in FIG. 9 provide a particular method of using an API registry according to various embodiments of the present invention. Other sequences of steps may be performed according to alternative embodiments. For example, alternative embodiments of the present invention may perform the steps outlined above in a different order. In addition, individual steps illustrated in FIG. 9 may include multiple sub-steps that may be performed in various sequences as appropriate for the individual step. Furthermore, other steps may be added or removed depending on the particular application. Those skilled in the art will recognize numerous variations, modifications, and alternatives.

[0042] FIG. 11 illustrates an example of a client library that the API Registry automatically generates for a service, according to some embodiments. The client library 1102 may correspond to a service that stores user records. The client library 1102 and corresponding classes and services are provided for illustrative purposes only and are not intended to be limiting. As previously mentioned, each API function and service can specify how the client library should be generated by an API definition file uploaded to the API Registry. Thus, the principles described below with respect to the "User" service can also be applied to other services.

[0043] To represent the User service, the API registry can generate a User class. When the calling service requests that the API registry generate a client library, the calling service can specify the programming language that the calling service is using. For example, if the calling service is written in Java in an IDE, the API registry can generate a class library in the Java programming language. Alternatively, if the calling service is written in C#, the API registry can generate a class library in the C# programming language. The User class can be generated to have member functions that correspond to the different operations that can be performed through the service endpoint. These member functions can be static member functions, thereby avoiding the need for an instantiated instance of the User class, or they may be used with an instantiated User object.

[0044] In this example, the User service can edit individual user records stored by the service by using a RESTful interface. For example, the API registry can provide the User service with a CreateUser() function. One of the functions that a class library can perform is to parse, filter, and format data provided as parameters to API functions that are sent as data packets directly to the service. In this example, the CreateUser() function returns a For example, a calling service might accept formatted parameters for the user's first name and the user's last name as separate strings. However, the POST command stores the concatenated string of the first name and last name. To accept a user-friendly set of parameters, the client library 1102 can perform a set of operations to format the data received as parameters to the function into a format compatible with the service endpoint. This may include generating header information, changing the format of certain data fields, concatenating data fields, requesting additional data from other sources, performing calculations or data transformations, etc. This may also include packaging the reformatted parameters into a format such as JSON, XML, etc.

[0045] Once the parameters are properly formatted into a package for the service endpoint, the client library 1102 can also handle POST calls to the service. When the client library is generated, it inserts the IP address and port number of the service into the CreateUser( ) function used in the HTTP request to the service. The details of the HTTP request are encapsulated in the CreateUser( ) function. If a developer for a calling service wants to use the POST function made available by the service, instead of writing the code into the library 1102 themselves, they can select the User service from the API registry, which then automatically generates a client library 1102 that contains a User class. Then, to use the POST function, the service developer can simply use the User.CreateUser("John", "Smith", 2112) function to add the user John Smith to the service.

[0046] 12 illustrates an embodiment of a client library 1202 that includes dynamic binding between service endpoints and API functions, according to some embodiments. In this example, when the API registry creates the client library 1202, the CreateUser( ) function includes code 120 that dynamically retrieves the IP address and port number of the service. 4. The calling service 114 can send a request to the API registry 404 at run time by using the GetIPPort( ) function when the calling service 114 is running in a production / deployment environment 104 such as a container platform. The API registry 404 can access its internal table that is constantly updated to maintain the latest bindings between API functions and service endpoints. The API registry 404 can then return the current IP address and port number to the calling service 114. The client library 1202 can then insert the IP address and port number into the HTTP POST code that connects to the service. Because the API registry 404 can be accessed at run time by any calling service in the container platform, no updates or patches are required for any of these services when the IP address for the port number of the service being called changes. Instead, the API registry 404 can provide the latest information each time the service is called. In some embodiments, the GetIPPort( ) function may only call the API registry 404 once an hour, once a day, once a week, etc., minimizing the number of function calls made outside the container for the service 114 under the assumption that service endpoints do not change frequently in a production environment.

[0047] 13 illustrates an embodiment of a client library 1302 in which additional data can be placed to complete the input data set for a service call, according to some embodiments. For simplicity with the client library 1302, the client library 1302 can minimize the number of parameters required from the service developer. Additional data that may be required to make a service call can be retrieved from other sources and therefore may be omitted from the parameter list. Alternatively, these additional parameters can be The client library 1302 may also retrieve directly from these other sources. For example, creating a new user may include specifying a user role for this user. Instead of requiring the service developer to provide the user role as one of the parameters, the client library 1302 may include code 1304 that automatically retrieves the user's role from some other source. In this example, the user role may be retrieved from a database, from another service in the container platform, or from another class that stores user roles in the calling service. In any of these cases, the code 1304 may automatically retrieve the user role and package it as part of the input data for the HTTP POST command sent to the service.

[0048] In addition to preparing and formatting data for input to the service, the client library 1302 can parse and return data received from the service and handle error conditions. In this example, a POST command can return a data packet in a Result variable. Often, a service can return a data packet that contains more information than the calling service requires. Thus, the client library 1302 can parse the data fields in the Result variable, extract the data from the Result variable, and format and package it into a more usable format expected by the user class. In this example, the code 1306 can create a new User object that is returned from the API function by extracting and using fields from the Result variable. In another example that uses a GET command, individual API functions can be created in the User class that extract different fields from the Result variable from the GET command. For example, the User class can provide a GetFirstName(id) function, a GetLastName(id) function, a GetRole(id) function, etc. While each of these functions returns different fields from the Result variable, they can contain very similar code.

[0049] In addition to parsing the results, the client library 1302 can also generate code 1308 to handle error conditions associated with the use of the service. In this example, the code 1308 can determine whether the POST command was successful by testing a status field in the Result variable. If the command was successful, the CreateUser( ) function creates a new User object. If the Post command fails, the function can return a null object instead and / or retry the call to the service.

[0050] Figure 14 illustrates a client library 1402 that can handle retries when calling a service, according to some embodiments. Similar to the example of Figure 13, the client library 1402 determines whether the call was successful by using the status in the Resut variable populated by the POST HTTP call. While that result is unsuccessful, the client library 1402 can continue to retry until the call is successful. Some embodiments can limit the number of retries or add a wait time between retries by using a counter or other mechanism.

[0051] As mentioned above, some embodiments may also provide a set of API properties to the API registry along with the API definition. FIG. 15A illustrates a method of providing API properties to an API registry, according to some embodiments. The method may also include receiving an upload of the API definition (1501). The method may also include receiving an upload of the API properties (1503). The upload of the properties may be part of the same transmission as the upload of the API definition. In some embodiments, the AP I properties may be part of the API definition. In some embodiments, API properties may be one or more flags or predefined data fields that are checked to indicate that the property should be set by the API registry. In some embodiments, API properties need not follow any pre-constructed format, but instead can be represented by instruction codes that allow the API registry to implement features described below, such as authentication, encryption, etc. API properties can be stored with the API definition for each service.

[0052] The method may further include creating an API binding between the service and the API (1505). This operation may be performed as detailed above. In addition, the method may include using the API properties to perform one or more operations associated with the service (1507). The API properties may be used at various phases during the lifecycle of the service. Generally, this can be described as using the API properties to implement functions associated with the properties during deployment of the service, when generating a client library for the service, and / or when calling the service. Examples of each of these functions are described in more detail below.

[0053] It should be understood that the specific steps illustrated in FIG. 15A provide a particular method of providing API properties to an API registry according to various embodiments of the present invention. Other sequences of steps may be performed according to alternative embodiments. For example, alternative embodiments of the present invention may perform the steps outlined above in a different order. In addition, individual steps illustrated in FIG. 15A may include multiple sub-steps that may be performed in various sequences as appropriate for the individual step. Furthermore, other steps may be added or removed depending on the particular application. Those skilled in the art will recognize numerous variations, modifications, and alternatives.

[0054] 15B shows a hardware / software diagram of how a service can contribute API properties to an API registry, according to some embodiments. When developing a service in the IDE 102, a service developer can contribute an API definition file 1502 and one or more properties 1504 to the API registry 404. Because the API registry 404 is accessible at runtime by both the IDE 102 and the container platform, the API registry 404 can store properties 1504 and use these properties to affect how the service is deployed, called, and / or used to generate client libraries, both during development and runtime scenarios.

[0055] FIG. 16 illustrates a hardware / software diagram of an API registry using properties to deploy a highly available service, according to some embodiments. In addition to the API definition file 1505 for a particular service, the API registry 404 may receive a property 1602 indicating that the service should be deployed with high resilience or availability. This property 1602 may be received as a set of instructions for the API registry 404 to execute to deploy the service with high availability. This option allows the developer to define what it means to have "high availability" for this service. For example, the property 1602 may include instructions that cause the API registry 404 to deploy multiple instances 602, 604 of the service to the container platform 210. By executing these instructions, the API registry 404 does not have to make any decisions or judgments itself, but instead simply executes the deployment code provided as part of the property 1602.

[0056] The property 1602 may also be received as a flag or setting that indicates to the API registry 404 the option to execute existing instructions in the API registry 404 to deploy a highly available service. In this option, the API registry 404 does not need to receive any code to execute as the property 1602. Rather, the API registry 404 recognizes the high availability property 1602 and can deploy multiple instances 602, 604 of the service by executing code maintained in the API registry 404. This allows the API registry 404 to define what it means to be "highly available" for the deployment of any service registered in the API registry 404.

[0057] The API registry 404 is connected to the runtime environment of the container platform 210 so that the API registry 404 can interact with the container platform 210 to deploy instances 602, 604 that determine the runtime availability of the service. Note that the two instances 602, 604 of the service shown in Figure 16 are provided by way of example only and are not intended to be limiting. A highly available service may include three or more redundant instances of a service deployed on the container platform.

[0058] Some embodiments may include code in API registry 404 that can be executed as a default. If properties 1602 include only a simple indication that high availability is desired, API registry 404 may execute its own code. If properties 1602 include deployment code for deploying the service, API registry 404 may execute the code in properties 1602 instead. In some cases, properties 1602 may include only a portion of the code necessary to deploy a highly available service. API registry 404 may execute the portion of code provided by properties 1602 and then execute any code not provided by properties 1602 using the code in API registry 404. This allows developers to overwrite existing definitions in API registry 404 of how to implement properties such as high availability, while still allowing API registry 404 to provide a uniform definition for implementing properties that can be used by registered services.

[0059] In some embodiments, the high availability property may also cause the container platform 210 to deploy a load balancing service 606 that distributes requests across multiple instances of the service 602, 604. An endpoint for the load balancing service 606 may be registered with the API registry 404 and made available to other services. Alternatively or additionally, each of the multiple instances of the service 602, 604 may be registered with the API registry 404 as a service endpoint.

[0060] In each of the examples described below, the same principles as those described with respect to FIG. 16 can be applied. For example, any of the properties below may be accompanied by code that can be received by the API registry 404 and used to override the code that the API registry 404 would otherwise execute. Prior to this disclosure, there was no way to create a unified default to execute properties while at the same time allowing service developers to override these properties as needed. Thus, the API registry 404 overcomes the technical challenge by allowing the code to be executed by the API registry 404 as a default, while also allowing the code to be overridden by properties 1602 received from the developer.

[0061] FIG. 17 illustrates a hardware / software diagram of a property implementing end-to-end encryption through an API registry, according to some embodiments. The API registry 404 may receive a property 1704 that indicates or includes code to cause end-to-end encryption to call a service 1708 along with an API definition file 1505. During development, the service 1708 may include its own decryption / encryption code 1710 that decrypts packets received by the service 1708 and encrypts packets returned by the service 1708. Prior to this disclosure, a developer had to provide a specification indicating that users of the service 1708 must provide encryption compatible with the service 1708. This embodiment solves the technical problem by allowing the service 1708 to specify how client libraries are generated in the calling service 1706 to ensure compatibility with the service 1708's encryption.

[0062] In some embodiments, a developer of a service 1708 does not need to include encryption / decryption code 1710 with the service 1708. Instead, the properties 1704 simply instruct the API registry 404 to implement end-to-end encryption for the service 1708. When the service 1708 is deployed to the container platform 210, the API registry 404 can cause the encryption / decryption code 1710 to be inserted into the service 1708 at deployment time. This allows the developer to select between different encryption regimes based on the properties 1704 and / or allows the API registry 404 to select a preferred encryption regime as a default.

[0063] End-to-end encryption not only requires that encryption / decryption code 1710 be inserted into the service 1708 when the service 1708 is deployed or during its development, but also requires that the calling service 1706 includes compatible encryption / decryption code. As mentioned above, when the calling service 1706 needs to use the service 1708, the API registry 404 can generate one or more client libraries 1702 that fully implement the code required to interact with the service 1708 in an easy and efficient manner. When this client library 1702 is generated, the API registry 404 can determine the encryption scheme used by the service 1708 by analyzing the property 1704. Then, based on this property 1704, the API registry 404 can add compatible encryption / decryption code to the client library 1702 for the calling service 1706. Thus, when the calling service 1706 sends a request to the service 1708, the information may be encrypted at the calling service 1706 and decrypted when the service 1708 receives the information. Similarly, the service 1708 can encrypt a response before sending it to the calling service 1706, which can then decrypt the response before sending it outside the client library 1702. This allows this entire encryption process to be completely transparent to the developer of the calling service 1706. Rather than being required to implement a compatible encryption / decryption scheme when calling the service 1706, the property 1704 can ensure that the API registry 404 has already generated compatible encryption / decryption code into the client library 1702 to implement the end-to-end encryption property.

[0064] FIG. 18 illustrates properties 1804 for an API registry to enable usage logging of services 1808, according to some embodiments. Prior to this disclosure, monitoring and logging the frequency, source, success rate, etc. of requests to a service required the service itself to log this information. Alternatively, the container environment would need to monitor the service and log its usage information. Logging information at the service 1808 itself is highly inefficient and requires the service to log usage information. This slows down the throughput for every request it handles. Similarly, the overhead of requiring a container platform to monitor and log every call made to a particular service also represents a significant overhead for scheduling and orchestrating container services. The present embodiment solves this technical problem by inserting code directly into the client libraries for services that call service 1808. This allows the usage of service 1808 to be logged and monitored without any impact on the performance of service 1808 in terms of memory usage or CPU usage.

[0065] In addition to the API definition file 1505, the API registry 404 can receive a property 1804 that indicates or includes code to implement usage logging 1804. When a developer of a calling service 1806 desires to issue a request to the service 1808, the API registry 404 can automatically generate a client library 1802 that includes code for logging activity related to the service 1808. As previously mentioned, this code can be generated based on default code that the API registry 404 manages and executes, or it can be generated by code received with the property 1804 and executed by the API registry 404.

[0066] Code in client library 1802 for logging activity may include a counter that is incremented each time service 1808 is called, a function that causes activity to be logged to a log file when service 1808 is called, and other functions that monitor and record characteristics of requests sent to service 1808 and responses received from service 1808. Depending on the particular embodiment, this code may monitor a number of different types of characteristics associated with requests made to service 1808. For example, some embodiments may log the total number of calls made to service 1808. Some embodiments may log the success rate of responses received from service 1808. Some embodiments may log the type of data sent in a request to service 1808. Some embodiments may log the time service 1808 was called or other external information about when service 1808 was called. Some embodiments may log input and output to and from service 1808 that can be used to debug service 1808. Some embodiments may log any or all of these features, in any combination, without limitation.

[0067] FIG. 19 illustrates a hardware / software diagram of a property 1904 capable of implementing an authentication protocol for a service 1908, according to some embodiments. Some services may require that a user identity be authenticated and that the user be authorized to use the service before responding to a request. Prior to this disclosure, there was a technical challenge that the authentication and authorization procedures were performed in the service 1908 itself. This increased overhead in terms of memory usage and CPU usage for every call the service 1908 received, and increased the latency of the service in response. This resulted in reduced throughput and limited the number of requests the service 1908 could process in a given period of time. These embodiments solve this technical challenge by moving the authentication / authorization code to a client library 1902 that is automatically generated by the API registry 1404.

[0068] When a calling service 1906 wishes to use a service 1908, the API registry 404 can generate a client library 1902 that includes code to perform authorization and / or authentication. In some embodiments, this can include a user identity This may include contacting an external authentication / authorization service 1920 that specifically verifies the user's identity and / or determines whether the user is authorized to use the service 1908. The external authentication / authorization service 1920 may include an access manager, a Lightweight Directory Access Protocol (LDAP) managed Cache, Access Control Lists (ACLs), network authentication The client library 1902 may include a client authentication protocol manager, an authentication protocol manager, etc. The code in the client library 1902 can then send a call to the service 1908 when the authentication / authorization procedure is successful.

[0069] By offloading the authentication / authorization implementation to the API registry 404 and client library 1902, this code can be removed from the service 1908 entirely. Since interactions with the external authentication / authorization service 1920 can often involve significant latency, removing this latency from the service 1908 can increase throughput. Additionally, instead of hard-coding the authentication / authorization implementation into the service 1908, the developer of the service 1908 can instead simply select a predefined authentication / authorization scheme using properties 1904 sent to the API registry 404. The API registry 404 can manage a predefined list of authorizations / authorizations together with the accompanying implementation code of the client library 1902. This also prevents the calling service 1906 from sending requests to the service 1908 that cannot be authorized and / or authenticated. Instead, the client library 1902 may abort the call if the authentication and / or authorization routine fails. This ensures that only authenticated and / or authorized requests are received by the service 1908.

[0070] Another technical improvement that the API registry 404 provides is the ability to upgrade any of the functionality that the properties 1904 provide without being required to change any of the code of any of the registered services. For example, because the authentication / authorization code has been offloaded to the client library 1902 that the API registry 1404 generated, it is possible to change the authentication / authorization regime by updating the client library 1902. There is no need to monitor any of the code in the calling service 1906 or service 1908. Because the code is only changed in one place, this greatly reduces the probability of code integration errors that would otherwise accompany distributed patches sent to all the individual services.

[0071] FIG. 20 shows a hardware / software diagram of properties 2004 enabling runtime instantiation of a service, according to some embodiments. Some services may be used rarely or only for a certain period of time. Therefore, deploying a service to a container platform does not always necessarily lead to actually instantiating an instance of the service in the container, ready to use. Unlike virtual machines, containers can be instantiated and run very quickly. Therefore, a service developer may want to have a service instantiated only when called. A service developer may also want to have a service instantiated only within a certain period of time. Similarly, a service developer may specify that a service instance should be deleted after a certain period of inactivity.

[0072] In addition to receiving the API definition file 1505, the API registry 404 can receive properties 2004 that specify run-time instantiation or other instantiation parameters. For example, the properties can include a specification of one or more time periods during which the service 2008 should be instantiated after deployment. The property may include an indication that the service 2008 should only be instantiated on demand. In another example, the property may specify a timeout period after which the instantiated service 2008 should be removed from the container platform.

[0073] When a calling service 2006 desires to use a service 2008, the API registry 404 can generate code in the client library 2002 that handles the runtime instantiation of the service 2008. For example, a CreateInstance( ) function call in the client library 2002 may result in a call to the API registry 404. The API registry 404 can then communicate with the container platform 210 to determine whether an operating instance of the service 2008 is available. If not, the API registry 404 can instruct the container platform 210 to instantiate an instance of the service 2008 in a container in the container platform 2010. The container platform 210 can then return an endpoint (e.g., an IP address and a port number) to the API registry 404. The API registry 404 can then create a binding between the endpoint and the API function call made to the client library 2002. The API registry 404 can then return this endpoint to the client library 2002, which can then use it to create a direct connection between the calling service 2006 and the newly instantiated service 2008.

[0074] For services that should only be instantiated during predefined periods, the API registry 404 may build a table of instantiation and deletion times for a particular service. Based on these stored instantiation / deletion times, the API registry 404 can instruct the container platform 210 to instantiate or delete instances of the service 2008. The API registry 404 can also specify the number of instances that should be instantiated during these predefined periods. For example, the property 2004 may specify that from 5:00 p.m. to 10:00 p.m., at least 10 instances of the service 2008 are active on the container platform 210. At this time period, the API registry 404 can instruct the container platform 210 to create additional instances.

[0075] FIG. 21 illustrates a hardware / software diagram of a property 2104 implementing a rate limiting function for a service 2108, according to some embodiments. Some services may need to limit the rate at which they receive requests. Other services may not need to limit requests from specific senders or specific types of services. Prior to this disclosure, this function had to be performed by the service itself by determining the source of each request, comparing this source to a whitelist / blacklist, and throttling the rate at which these requests were serviced. As with most of the above examples, imposing this overhead on the service itself would increase the amount of memory and CPU power the service uses, limiting the throughput of the service. These embodiments solve this technical problem by automatically generating rate limiting code into the client libraries generated by the API registry. This allows the service to specify a rate limit via property 2104, without the service 2108 having to implement this function with all its associated overhead.

[0076] When a calling service 2106 wants to send a request to a service 2108, the API registry 404 can automatically generate a client library 2102 that includes the rate limiting code. The registry 404 can determine whether rate limiting of a particular service 2106 is necessary. If not, the client library 2102 can be generated as normal. If the API registry 404 determines that the calling service 2106 should be rate limited (e.g., by comparison to a whitelist / blacklist), the API registry 404 can ensure that the calling service 2106 makes a predetermined maximum number of requests in any given period according to a predetermined rate by adding delays, adding counters, and / or otherwise inserting code into the client library 2102 that implements a rate limiting function. This code may implement a time window during which the rate limiting function is active. This allows the service 2108 to automatically implement rate limiting during high traffic periods.

[0077] Each of the methods described herein may be implemented by a dedicated computer system. Each of the steps of the methods may be performed automatically by the computer system and / or may be provided with input / output requiring a user. For example, a user may provide inputs for each step of the method, and each of these inputs may be provided in response to a particular output generated by the computer system that requires such input. Each input may be received in response to a corresponding requested output. Furthermore, the inputs may be received from a user, received as a data stream from another data system, retrieved from a memory location, retrieved over a network, requested from a web service, and / or the like. Similarly, the outputs may be provided to a user, provided as a data stream to another computer system, stored in a memory location, sent over a network, provided to a web service, and / or the like. That is, each of the steps of the methods described herein may be performed by a computer system and may require any number of inputs to, outputs from, and / or requests to / from the computer system that may or may not require a user. Steps that do not require a user may be said to be performed automatically by the computer system without human intervention. Thus, in light of this disclosure, the steps of each method described herein may be modified to include input and output to and from a user, or may be performed automatically by a computer system without human intervention, where a processor makes some decisions. Additionally, some embodiments of each method described herein may be implemented as a set of instructions stored on a tangible, non-transitory storage medium to form a tangible software product.

[0078] 22 shows a simplified diagram of a distributed system 2200 capable of interacting with any of the above embodiments. In the illustrated embodiment, the distributed system 2200 includes one or more client computing devices 2202, 2204, 2206, and 2208 configured to run and operate client applications such as web browsers, dedicated clients (e.g., Oracle Forms), etc., via one or more networks 2210. A server 2212 may be communicatively coupled to the remote client computing devices 2202, 2204, 2206, and 2208 via the network 2210.

[0079] In various embodiments, server 2212 may be adapted to execute one or more services or software applications provided by one or more of the components of the system. In some embodiments, these services are provided to users of client computing devices 2202, 2204, 2206, and / or 2208 as web-based or cloud services, or as a service. The services provided by these components may be provided under a software as a service (SaaS) model, such that users operating client computing devices 2202, 2204, 2206, and / or 2208 can utilize the services provided by these components by utilizing one or more client applications to interact with server 2212.

[0080] In the configuration shown in the figure, the software components 2218, 2220, and 2222 of the system 2200 are shown as being implemented on the server 2212. In other embodiments, one or more of the components of the system 2200 and / or the services they provide may be implemented by one or more of the client computing devices 2202, 2204, 2206, and / or 2208. A user operating a client computing device may then utilize one or more client applications to use the services provided by these components. These components may be implemented in hardware, firmware, software, or a combination thereof. It should be understood that a variety of different system configurations are possible that may differ from the distributed system 2200. The embodiment shown in the figure is thus an example of a distributed system for implementing the system of the embodiments, and is not intended to be limiting.

[0081] The client computing devices 2202, 2204, 2206, and / or 2208 may be implemented using software such as Microsoft Windows Mobile® and / or various mobile operating systems such as iOS, Windows Phone, Android, BlackBerry 10, Palm OS, and others. The client computing devices may be portable handheld devices (e.g., iPhone®, mobile phones, iPad®, computing tablets, personal digital assistants (PDAs)) or wearable devices (e.g., Google Glass® head mounted displays) running various versions of Microsoft Windows®, Apple Macintosh®, and / or Linux® operating systems and capable of connecting to the Internet, email, short message service (SMS), Blackberry®, or other communication protocols. Client computing devices may be, by way of example, personal computers and mobile devices running various versions of Microsoft Windows®, Apple Macintosh®, and / or Linux® operating systems. The client computing device may be a general purpose personal computer, including a laptop computer, and / or a personal computer system. The client computing device may be any of a variety of operating systems available on the market, including, but not limited to, various GNU / Linux operating systems such as Google Chrome OS. may be workstation computers running any of a variety of possible UNIX or UNIX-like operating systems. Alternatively or additionally, client computing devices 2202, 2204, 2206, and 2208 may be electronic devices, such as thin-client computers, Internet-enabled gaming systems (e.g., Microsoft Xbox game consoles with or without Kinect gesture input devices), and / or personal messaging devices, capable of communicating over network 2210.

[0082] Although the exemplary distributed system 2200 is shown with four client computing devices, any number of client computing devices may be supported. Other devices, such as devices having sensors, etc., may also interact with the server 2212.

[0083] The network 2210 of the distributed system 2200 may be implemented using a network protocol such as, but not limited to, TCP / IP (transmission control protocol / Internet protocol), SNA (systems network architecture), Network 2210 may be any type of network known to those skilled in the art that can support data communications using any of a variety of protocols available on the market, including, for example, Ethernet (registered trademark), Internet packet exchange (IPX), AppleTalk (registered trademark), and the like. By way of example only, network 2210 may be a local area network (LAN), based on, for example, Ethernet, Token Ring, and / or the like. Network 2210 may also be a wide area network and the Internet. This may include, but is not limited to, a virtual private network (VPN), an intranet, an extranet, a public switched telephone network (PSTN), an infrared network, a wireless network (e.g., using the Institute of Electrical and Electronics (IEEE) 802.11 protocol, or the like). Corsuite, Bluetooth, and / or any other wireless protocol The network may include a virtual network, which may include a network operating under any of the above networks, and / or a network that includes any combination of the above and / or other networks.

[0084] Server 2212 may be one or more general purpose computers, dedicated server computers (including, by way of example only, PC (personal computer) servers, UNIX servers, mid-range servers, mainframe computers, rack-mounted servers, etc.), server farms, server clusters, or any other suitable configuration and / or combination. In various embodiments, server 2212 may be adapted to execute one or more services or software applications described in the disclosure above. For example, server 2212 may correspond to a server for executing the processes described above in accordance with embodiments of the present disclosure.

[0085] Server 2212 may run an operating system, including any of the operating systems listed above, as well as commercially available server operating systems. Server 2212 may also run any of a variety of additional server and / or mid-tier applications, including a hypertext transport protocol (HTTP) server, a file transfer protocol (FTP) server, a common gateway interface (CGI) server, a JAVA server, a database server, etc. Exemplary database servers include, but are not limited to, those commercially available from Oracle, Microsoft, Sybase, IBM (International Business Machines), etc.

[0086] In some implementations, the server 2212 may include one or more applications for analyzing and consolidating data feeds and / or event updates received from users of the client computing devices 2202, 2204, 2206, and 2208. By way of example, and without limitation, the data feeds and / or event updates may include Twitter® feeds, Facebook® updates, or real-time updates received from one or more third party sources and continuous data streams. These may include real-time events related to sensor data applications, financial tickers, network performance measurement tools (e.g., network monitoring and traffic management applications), clickstream analysis tools, automobile traffic monitoring, etc. Server 2212 may also include one or more applications for displaying data feeds and / or real-time events via one or more display devices of client computing devices 2202, 2204, 2206, and 2208.

[0087] The distributed system 2200 may also include one or more databases 2214 and 2216. The databases 2214 and 2216 may reside in a variety of locations. As an example, one or more of the databases 2214 and 2216 may reside on a non-transitory storage medium that is local to (and / or within) the server 2212. Alternatively, databases 2214 and 2216 may be located remotely from server 2212 and communicate with server 2212 via a network-based or dedicated connection. In one set of embodiments, databases 2214 and 2216 may be located within a storage area network (SAN). Similarly, any files necessary to perform the functions ascribed to server 2212 may be stored locally to server 2212 and / or remotely from server 2212, as appropriate. In one set of embodiments, databases 2214 and 2216 may include relational databases, such as those provided by Oracle, adapted to store, update, and retrieve data in response to SQL-formatted commands.

[0088] 23 is a simplified block diagram of one or more components of a system environment 2300 in which one or more components of an embodiment system may provide services as cloud services, according to an embodiment of the disclosure. In the embodiment shown, the system environment 2300 includes one or more client computing devices 2304, 2306, and 2308 that a user may use to interact with a cloud infrastructure system 2302 that provides cloud services. The client computing devices may be configured to operate a client application, such as a web browser, a dedicated client application (e.g., Oracle Forms), or any other application that a user of the client computing device may use to interact with the cloud infrastructure system 2302 and thereby use the services provided by the cloud infrastructure system 2302.

[0089] It should be understood that the cloud infrastructure system 2302 depicted in the drawings may have other components than those shown. Additionally, the embodiment depicted in the drawings is only one example of a cloud infrastructure system that may incorporate embodiments of the present invention. In other embodiments, the cloud infrastructure system 2302 may have more or fewer components than those depicted, may combine two or more components, or may have a different configuration or arrangement of components.

[0090] The client computing devices 2304, 2306, and 2308 may be devices similar to those described above for 2202, 2204, 2206, and 2208.

[0091] Although the exemplary system environment 2300 is shown with three client computing devices, any number of client computing devices may be supported. Other devices, such as devices having sensors, etc., may interact with the cloud infrastructure system 2302.

[0092] The network 2310 can facilitate communication and exchange of data between the clients 2304, 2306, and 2308 and the cloud infrastructure system 2302. Each network can be any type of network known to those skilled in the art that can support data communication using any of a variety of protocols available in the market, including those previously described for the network 2210.

[0093] The cloud infrastructure system 2302 may include one or more computers and / or servers, which may include those described above for server 2212.

[0094] In certain embodiments, the cloud infrastructure system provides the following services: may include numerous services made available on demand to users of a cloud infrastructure system, such as online data storage and backup solutions, web-based email services, hosted office suites and document collaboration services, database processing, managed technical support services, and the like. The services offered by a cloud infrastructure system can be dynamically scaled to meet the needs of its users. A specific instantiation of a service offered by a cloud infrastructure system is referred to herein as a "service instance." In general, any service made available to users from a cloud service provider's system over a communications network such as the Internet is referred to as a "cloud service." Typically, in a public cloud environment, the servers and systems that make up the cloud service provider's system are distinct from the customer's own on-premise servers and systems. For example, the cloud service provider's system may host an application, which a user can order and use on demand over a communications network such as the Internet.

[0095] In some examples, services in a computer network cloud infrastructure may include protected computer network access to storage, hosted databases, hosted web servers, software applications, or other services provided to users by a cloud vendor or in other manners known in the art. For example, a service may include password-protected access to remote storage on the cloud over the Internet. As another example, a service may include a web-services-based hosted relational database and scripting language middleware engine for the private use of a networked developer. As another example, a service may include access to an email software application hosted on a cloud vendor's website.

[0096] In certain embodiments, cloud infrastructure system 2302 may include a suite of application, middleware, and database service offerings that are delivered to customers in a self-service, subscription-based, elastically scalable, reliable, highly available, and secure manner. One example of such a cloud infrastructure system is the Oracle Public Cloud offered by the assignee of the present application.

[0097] In various embodiments, the cloud infrastructure system 2302 may be adapted to automatically provision, manage, and track customer subscriptions to the services provided by the cloud infrastructure system 2302. The cloud infrastructure system 2302 may provide cloud services via different deployment models. For example, the services may be provided under a public cloud model, where an organization that sells cloud services (e.g., owned by Oracle) owns the cloud infrastructure system 2302 and makes the services available to the general public or to different industry enterprises. As another example, the services may be provided under a private cloud model, where the cloud infrastructure system 2302 operates solely for one organization and may provide services for one or more entities within this organization. The cloud services may also be provided under a community cloud model, where the cloud infrastructure system 2302 and the services provided by the cloud infrastructure system 2302 are shared by several organizations within an associated community. The cloud services may also be provided under a hybrid cloud model, which is a combination of two or more different models.

[0098] In some embodiments, the services offered by cloud infrastructure system 2302 may include one or more services offered under a Software as a Service (SaaS) category, a Platform as a Service (PaaS) category, an Infrastructure as a Service (IaaS) category, or other category of services including hybrid services. A customer may order one or more services offered by cloud infrastructure system 2302 through a subscription order. Cloud infrastructure system 2302 then performs processing to provide the services for the customer's subscription order.

[0099] In some embodiments, the services provided by the cloud infrastructure system 2302 may include, but are not limited to, application services, platform services, and infrastructure services. In some examples, the application services may be provided by the cloud infrastructure system via a SaaS platform. The SaaS platform may be configured to provide cloud services that fall under the SaaS category. For example, the SaaS platform may provide the ability to build and deliver a suite of on-demand applications on an integrated development and deployment platform. The SaaS platform may manage and control the underlying software and infrastructure to provide the SaaS services. By utilizing the services provided by the SaaS platform, customers may utilize applications that run on the cloud infrastructure system. Customers may obtain application services without the customer having to purchase separate licenses and support. A variety of different SaaS services may be provided. Examples include, but are not limited to, services that provide solutions for sales performance management, enterprise integration, and business flexibility for large organizations.

[0100] In some embodiments, the platform services can be provided by the cloud infrastructure system through a PaaS platform. The PaaS platform can be configured to provide cloud services that fall under the PaaS category. Examples of platform services can include, but are not limited to, services that allow an organization (such as Oracle) to integrate existing applications on a shared common architecture, and the ability to build new applications that drive the shared services provided by the platform. The PaaS platform can manage and control the underlying software and infrastructure to provide the PaaS services. Customers can obtain the PaaS services provided by the cloud infrastructure system without the customer having to purchase separate licenses and support. Examples of platform services can include, but are not limited to, Oracle Java Cloud Service (JCS). ), Oracle Database Cloud Service (DBCS), and others.

[0101] The services offered by the PaaS platform allow customers to employ programming languages ​​and tools supported by the cloud infrastructure system and also control the deployed services. In some embodiments, the platform services offered by the cloud infrastructure system may include database cloud services, middleware cloud services (e.g., Oracle Fusion Middleware services), and Java cloud services. In one embodiment, database cloud services allow organizations to pool database resources and provide database as a service in the form of a database cloud. Middleware cloud services can support a shared services deployment model that allows customers to deliver a wide range of business applications. The cloud infrastructure system may provide a platform for customers to develop and deploy Java applications, and the Java cloud service may provide a platform for customers to deploy Java applications in the cloud infrastructure system.

[0102] A variety of different infrastructure services may be provided by IaaS platforms in a cloud infrastructure system that facilitate management and control of underlying computing resources, such as storage, network, and other fundamental computing resources, for customers who use the services provided by the SaaS and PaaS platforms.

[0103] In particular embodiments, cloud infrastructure system 2302 may also include infrastructure resources 2330 for providing resources used to provide various services to customers of the cloud infrastructure system. In one embodiment, infrastructure resources 2330 may include a pre-integrated and optimized combination of hardware such as servers, storage, and networking resources for running the services offered by the PaaS and SaaS platforms.

[0104] In some embodiments, resources in the cloud infrastructure system 2302 may be shared by multiple users and dynamically reallocated on a per-demand basis. In addition, resources may be allocated to users in different time zones. For example, the cloud infrastructure system 2302 may maximize resource utilization by allowing a first set of users in a first time zone to utilize resources in the cloud infrastructure system for a specified number of hours, and then reallocating those same resources to another set of users in a different time zone.

[0105] In certain embodiments, multiple internal shared services 2332 may be provided that are shared by different components or modules of cloud infrastructure system 2302 and by the services provided by cloud infrastructure system 2302. These internal shared services may include, but are not limited to, security and identity services, integration services, enterprise repository services, enterprise manager services, virus scanning and whitelist services, high availability, backup and recovery services, services to enable cloud support, email services, notification services, file transfer services, etc.

[0106] In particular embodiments, cloud infrastructure system 2302 may provide comprehensive management of cloud services (e.g., SaaS, PaaS, and IaaS services) in the cloud infrastructure system. In one embodiment, cloud management functions may include functionality for provisioning, managing, and tracking customer subscriptions received by cloud infrastructure system 2302.

[0107] In one embodiment, as shown in the figure, cloud management functionality may be provided by one or more modules, such as an order management module 2320, an order orchestration module 2322, an order provisioning module 2324, an order management and monitoring module 2326, and an identity management module 2328. These modules may include or be provided using one or more computers and / or servers, which may be general purpose computers, dedicated server computers, server farms, server clusters, or any other suitable configuration and / or combination.

[0108] In an exemplary operation 2334, a customer using a client device, such as client device 2304, 2306, or 2308, may interact with cloud infrastructure system 2302 by requesting one or more services offered by cloud infrastructure system 2302 and ordering a subscription for one or more services offered by cloud infrastructure system 2302. In particular embodiments, the customer may access and place a subscription order via a cloud user interface (UI), cloud UI 2312, cloud UI 2314, and / or cloud UI 2316. Order information received by cloud infrastructure system 2302 in response to the customer placing an order may include information identifying the customer and one or more services offered by cloud infrastructure system 2302 to which the customer intends to subscribe.

[0109] After a customer places an order, the order information is received via the cloud UI 2312, 2314 and / or 2316.

[0110] In operation 2336, the order is stored in the order database 2318. The order database 2318 may be one of several databases hosted by the cloud infrastructure system 2302 along with other system elements.

[0111] At operation 2338, the order information may be forwarded to the order management module 2320. In some examples, the order management module 2320 may be configured to perform billing and accounting functions related to the order, such as verifying the order and filling the order after verification.

[0112] At operation 2340, information regarding the order is communicated to the order orchestration module 2322. The order orchestration module 2322 may be configured to orchestrate the provisioning of services and resources for an order placed by a customer by utilizing the order information. In some examples, the order orchestration module 2322 may support subscribed services that use the services of the order provisioning module 2324 by orchestrating the provisioning of resources.

[0113] In certain embodiments, the order orchestration module 2322 enables management of business processes associated with each order and applies business logic to determine whether the order should proceed to provisioning. In operation 2342, upon receiving an order for a new subscription, the order orchestration module 2322 sends a request to the order provisioning module 2324 to allocate and configure resources required to fulfill the subscription order. The order provisioning module 2324 enables allocation of resources for the services ordered by the customer. The order provisioning module 2324 provides a level of abstraction between the cloud services provided by the cloud infrastructure system 2302 and the physical implementation layer used to provision resources to provide the requested services. In this way, the order orchestration module 2322 can be decoupled from implementation details such as whether services and resources are actually provisioned on the fly or whether they are pre-provisioned and allocated / assigned after the request.

[0114] At operation 2344 , once the services and resources are provisioned, a notification of the services provided may be sent by the order provisioning module 2324 of the cloud infrastructure system 2302 to the customer of the client device 2304 , 2306 and / or 2308 .

[0115] At operation 2346, the customer's subscription order may be managed and tracked by the order management and monitoring module 2326. In some examples, the order management and monitoring module 2326 may be configured to collect usage statistics for the services in the subscription order, such as storage usage, amount of data transferred, number of users, and amount of system uptime and system downtime.

[0116] In certain embodiments, cloud infrastructure system 2302 may include identity management module 2328. Identity management module 2328 may be configured to provide identity services, such as access management and authorization services in cloud infrastructure system 2302. In some embodiments, identity management module 2328 may manage information about customers who wish to utilize services provided by cloud infrastructure system 2302. Such information may include information authenticating the identities of such customers and information describing actions these customers are authorized to perform with respect to various system resources (e.g., files, directories, applications, communication ports, memory segments, etc.). Identity management module 2328 may also include management of descriptive information about each customer and how and who can access and modify this descriptive information.

[0117] 24 illustrates an exemplary computer system 2400 upon which various embodiments of the present invention may be implemented. System 2400 may be used to implement any of the computer systems described above. As shown in the figure, computer system 2400 includes a processing unit 2404 that communicates with a number of peripheral subsystems via a bus subsystem 2402. These peripheral subsystems may include a processing acceleration unit 2406, an input / output subsystem 2408, a storage subsystem 2418, and a communication subsystem 2424. The storage subsystem 2418 may include a tangible computer readable storage medium 2422 and a system memory 2410.

[0118] Bus subsystem 2402 provides a mechanism for allowing the various components and subsystems of computer system 2400 to communicate with each other in an organized manner. Although bus subsystem 2402 is illustrated generally as a bus, alternative embodiments of the bus subsystem may utilize multiple buses. Bus subsystem 2402 may be any of several types of bus structures including a memory bus or memory controller, a peripheral bus, and a local bus using any of a variety of bus architectures. For example, such architectures include Industry Standard Architecture (ISA) bus, Micro Channel Architecture (MCA) bus, Enhanced ISA (EISA) bus, Video Electronics Standards Association (VESA) local bus, and I It can be implemented as a Mezzanine bus manufactured according to the EEE P1386.1 standard. The PCI bus may include a Peripheral Component Interconnect (PCI) bus.

[0119] The processing unit 2404, which may be implemented as one or more integrated circuits (e.g., conventional microprocessors or microcontrollers), controls the operation of the computer system 2400. One or more processors may be included in the processing unit 2404. These processors may include single-core or multi-core processors. In an embodiment, processing unit 2404 may be implemented as one or more independent processing units 2432 and / or 2434, with single or multi-core processors included in each processing unit. In other embodiments, processing unit 2404 may also be implemented as a quad-core processing unit formed by integrating two dual-core processors into one chip.

[0120] In various embodiments, the processing unit 2404 may execute various programs according to program code and may manage multiple programs or processes running simultaneously. At any given time, some or all of the program code to be executed may reside in the processor 2404 and / or in the memory subsystem 2418. Through appropriate programming, the processor 2404 may provide the various functions described above. The computer system 2400 may further include a processing acceleration unit 2406, which may include a digital signal processor (DSP), a special purpose processor, and / or the like.

[0121] The input / output subsystem 2408 may include user interface input devices and user interface output devices. User interface input devices may include a keyboard, a pointing device such as a mouse or trackball, a touchpad or touch screen integrated into a display, a scroll wheel, a click wheel, a dial, a button, a switch, a keypad, a voice input device with a voice command recognition system, a microphone, and other types of input devices. User interface input devices may include motion sensing and / or gesture recognition devices, such as, for example, a Microsoft Kinect® motion sensor, such as a Microsoft Xbox® 360 game controller, that allows a user to control and interact with the input device through a natural user interface using gestures and spoken commands. User interface input devices may also include a motion sensor, such as a Microsoft Kinect® motion sensor, such as a Microsoft Xbox® 360 game controller, that detects a user's eye activity (e.g., "blinking" while taking a picture and / or selecting a menu) and inputs eye gestures into an input device (e.g., Google Glass®). In addition, the user interface input devices may include a voice recognition sensing device that allows a user to interact with a voice recognition system (e.g., the Siri® navigator) through voice commands.

[0122] User interface input devices may also include, but are not limited to, audio / visual devices such as three-dimensional (3D) mice, joysticks or pointing sticks, game pads and graphic tablets, and speakers, digital cameras, digital camcorders, portable media players, webcams, image scanners, fingerprint scanners, barcode readers 3D scanners, 3D printers, laser distance measuring devices, and eye tracking devices. In addition, user interface input devices may include medical imaging input devices, such as, for example, computed tomography, magnetic resonance imaging, positron emission tomography, medical ultrasound, etc. User interface input devices may also include audio input devices, such as, for example, MIDI keyboards, digital musical instruments, etc.

[0123] User interface output devices may include a display subsystem, indicator lights, or non-visual displays such as audio output devices, etc. The display subsystem may also be a flat panel device such as one that uses a cathode ray tube (CRT), liquid crystal display (LCD) or plasma display, a projection device, a touch screen, etc. In general, when the term "output device" is used, it refers to all possible types of display for outputting information from computer system 2400 to a user or to another computer. It is intended to include devices and mechanisms. For example, user interface output devices may include, but are not limited to, a variety of display devices that visually convey textual, graphical, and audio / video information, such as monitors, printers, speakers, headphones, car navigation systems, plotters, voice output devices, and modems.

[0124] Computer system 2400 may include a storage subsystem 2418 that includes software elements currently shown as being within system memory 2410. The system memory 2410 may store program instructions loadable and executable on the processing unit 2404, as well as data generated during the execution of these programs.

[0125] Depending on the configuration and type of computer system 2400, system memory 2410 may be volatile (e.g., random access memory (RAM)) and / or non-volatile (e.g., read only memory (ROM), flash memory, etc.). Typically, RAM contains data and / or program modules that are immediately accessible to and / or currently being operated on and executed by the processing unit 2404. In some implementations, system memory 2410 may include a number of different types of memory, such as static random access memory (SRAM) or dynamic random access memory (DRAM). In some implementations, a basic input / output system (BIOS), including the basic routines that help transfer information between elements within computer system 2400, for example during startup, may typically be stored in ROM. By way of example and not limitation, system memory 2410 also illustrates application programs 2412, which may include client applications, a web browser, a mid-tier application, a relational database management system (RDBMS), and the like, program data 2414, and an operating system 2416. By way of example, the operating system 2416 may be any of various versions of Microsoft Windows, Apple Macintosh, and / or Linux operating systems, The operating systems supported by the device may include various UNIX or UNIX-like operating systems available in the market (including but not limited to various GNU / Linux operating systems, Google Chrome OS, etc.) and / or mobile operating systems such as iOS, Windows Phone, Android OS, BlackBerry 10 OS, and Palm OS operating systems.

[0126] The storage subsystem 2418 may also provide a tangible computer readable storage medium for storing the basic programming and data constructs that provide the functionality of some embodiments. Software (programs, code modules, instructions) that, when executed by a processor, perform the functions described above may be stored in the storage subsystem 2418. These software modules or instructions may be executed by the processing unit 2404. The storage subsystem y 2418 may also provide a repository for storing data used in accordance with the present invention.

[0127] Storage subsystem 2418 may also include a computer readable storage medium reader 2420 that may be further connected to a computer readable storage medium 2422. Along with system memory 2410, and optionally in combination with system memory 2410, computer readable storage medium 2422 may comprehensively represent remote, local, fixed, and / or removable storage devices plus storage media for containing, storing, transmitting, and retrieving computer readable information on a temporary and / or more permanent basis.

[0128] The computer readable storage medium 2422 containing the code or portions of code may also include any suitable medium known or used in the art, including, but not limited to, storage media and communication media, such as volatile and non-volatile, removable and non-removable media, implemented in any manner or technology for storing and / or transmitting information. This may include tangible computer readable storage media, such as RAM, ROM, Electronically Erasable Programmable ROM (EEPROM), flash memory or other memory technology, CD-ROM, digital versatile disk (DVD) or other optical storage, magnetic cassettes, magnetic tape, magnetic disk storage or other magnetic storage devices, or other tangible computer readable media. This may also include non-tangible computer readable media, such as data signals, data transmissions, or any other medium that can be used to transmit the desired information and that can be accessed by computing system 2400.

[0129] By way of example, the computer readable storage medium 2422 may be a hard disk drive that reads from and writes to a non-removable, non-volatile magnetic medium, a magnetic disk drive that reads from and writes to a removable, non-volatile magnetic disk, and a CD ROM, DVD, Blu-Ray disk, or other optical The computer readable storage medium 2422 may include an optical disk drive that reads from and writes to removable non-volatile optical disks such as media. The computer readable storage medium 2422 may include, but is not limited to, Zip drives, flash memory cards, Universal Serial Bus (USB) flash drives, Secure Digital (SD) cards, DVD disks, digital video tapes, and the like. The computer readable storage medium 2422 may also include non-volatile memory-based solid-state drives (SSDs), such as flash memory-based SSDs, enterprise flash drives, solid-state ROMs, and the like, volatile memory-based SSDs, such as solid-state RAM, dynamic RAM, static RAM, and the like, DRAM-based SSDs, magnetoresistive RAM (MRAM) SSDs, and hybrid SSDs that employ a combination of DRAM and flash memory-based SSDs. The disk drives and their associated computer readable media may provide non-volatile storage of computer readable instructions, data structures, program modules, and other data for the computer system 2400.

[0130] The communications subsystem 2424 provides an interface to other computer systems and networks. The communications subsystem 2424 serves as an interface for receiving data from other systems and transmitting data from the computer system 2400 to other systems. For example, the communications subsystem 2424 allows the computer system 2400 to connect to one or more devices via the Internet. In some embodiments, the communications subsystem 2424 may include a radio frequency (RF) transceiver component for accessing wireless voice and / or data networks (e.g., using cellular technology, advanced data network technologies such as 3G, 4G, or EDGE (enhanced data rates for global evolution), WiFi (IEEE 802.11 family of standards, or other mobile communications technologies, or any combination thereof), a global positioning system (GPS) receiver component, and / or other components. In some embodiments, the communications subsystem 2424 may provide wired network connectivity (e.g., Ethernet) in addition to or instead of a wireless interface.

[0131] In some embodiments, the communications subsystem 2424 communicates with the computer system 2400 on behalf of one or more users, such as structured and / or unstructured data feeds 2426, event streams 2428, event updates 2430, and the like. It is also possible to receive input communication in the form of a voice message.

[0132] As an example, the communication subsystem 2424 may include Twitter feeds, Facebook feeds, Registered trademark) updates, web feeds such as Rich Site Summary (RSS) feeds, and / or may be configured to receive data feeds 2426 in real time from users of social networks and / or other communication services, such as real-time updates from one or more third party sources.

[0133] Additionally, the communications subsystem 2424 may be configured to receive data in the form of a continuous data stream, which may include an event stream 2428 of real-time events and / or event updates 2430 that may be continuous or infinite in nature with no apparent end. Examples of applications that generate continuous data may include, for example, sensor data applications, financial tickers, network performance measurement tools (e.g., network monitoring and traffic management applications), clickstream analysis tools, automobile traffic monitoring, etc.

[0134] The communications subsystem 2424 may also be configured to output structured and / or unstructured data feeds 2426, event streams 2428, event updates 2430, etc. to one or more databases that may communicate with one or more streaming data source computers coupled to the computer system 2400.

[0135] The computer system 2400 may be one of a variety of types, including a handheld portable device (e.g., an iPhone® mobile phone, an iPad® computing tablet, a PDA), a wearable device (e.g., a Google Glass® head mounted display), a PC, a workstation, a mainframe, a kiosk, a server rack, or any other data processing system.

[0136] Due to the ever-changing nature of computers and networks, the description of computer system 2400 shown in the drawings is intended as only one specific example. Many other configurations are possible having more or fewer components than the system shown in the drawings. For example, customized hardware may be used and / or particular elements may be implemented in hardware, firmware, software (including applets), or a combination. Additionally, connections to other computing devices, such as network input / output devices, may be used. Based on the disclosure and teachings provided herein, one of ordinary skill in the art will appreciate other ways and / or methods for implementing various embodiments.

[0137] In the above description, for purposes of explanation, numerous specific details are set forth in order to provide a thorough understanding of various embodiments of the present invention. However, it will be apparent to one skilled in the art that embodiments of the present invention may be practiced without some of these specific details. In other instances, well-known structures and devices are shown in block diagram form.

[0138] The above description provides only exemplary embodiments and is not intended to limit the scope, applicability, or configuration of the present disclosure. Rather, the above description of exemplary embodiments will provide those skilled in the art with an enabling description for implementing the exemplary embodiments. It should be understood that various changes can be made in the function and arrangement of elements without departing from the spirit and scope of the invention as set forth in the following claims.

[0139] In the above description, specific details are provided to provide a thorough understanding of the embodiments. However, it will be understood by those skilled in the art that the embodiments may be practiced without these specific details. It will be understood that, for example, circuits, systems, networks, processes, and other components may be shown as components in block diagram form in order to avoid obscuring the embodiments in unnecessary detail. In other instances, well-known circuits, processes, algorithms, structures, and techniques may be shown without unnecessary detail in order to avoid obscuring the embodiments.

[0140] It is also noted that the particular embodiments may be described as a process that is depicted as a flowchart, a flow diagram, a data flow diagram, a structure diagram, or a block diagram. Although a flowchart may describe operations as a sequential process, many of the operations may be performed in parallel or simultaneously. In addition, the order of operations may be re-arranged. A process terminates when its operations are completed, but may have additional steps not included in the drawings. A process may correspond to a method, a function, a procedure, a subroutine, a subprogram, etc. When a process corresponds to a function, its termination may correspond to a return of the function to the calling function or to the main function.

[0141] The term "computer-readable medium" includes, but is not limited to, portable or fixed storage devices, optical storage devices, wireless channels, and various other media capable of storing, containing, or carrying instructions and / or data. A code segment or machine-executable instruction may represent a procedure, a function, a subprogram, a program, a routine, a subroutine, a module, a software package, a class, or any combination of instructions, data structures, or program statements. A code segment may be coupled to another code segment or a hardware circuit by passing and / or receiving information, data, arguments, parameters, or memory contents. Information, arguments, parameters, data, etc. can be passed, forwarded, or transmitted via any suitable means including memory sharing, message passing, token passing, network transmission, etc.

[0142] Furthermore, the embodiments may be implemented in hardware, software, firmware, middleware, microcode, hardware description languages, or any combination thereof. When implemented in software, firmware, middleware, or microcode, the program code or code segments to perform the necessary tasks may be stored in a machine-readable medium. A processor(s) may perform the necessary tasks.

[0143] In the foregoing specification, aspects of the invention are described with reference to specific embodiments thereof, but those skilled in the art will recognize that the invention is not limited to these embodiments. The various features and aspects of the invention may be used individually or together. Moreover, the embodiments may be utilized in any number of environments and applications beyond those described herein without departing from the broader spirit and scope of the specification. Accordingly, the specification and drawings should be regarded as illustrative rather than restrictive.

[0144] Additionally, for purposes of explanation, the methods are described in a particular order. It should be understood that in alternative embodiments, the methods may be performed in an order different from that described. It should also be understood that the methods may be performed by hardware components or embodied in a sequence of machine-executable instructions. Machine-executable instructions may be used to cause a machine, such as a general-purpose or special-purpose processor or logic circuitry programmed with the instructions, to perform the methods. These machine-executable instructions may be stored on a CD-ROM or other type of optical disk, floppy disk, ROM, RAM, EPROM, EEPROM, magnetic or optical card, or other storage device. The method may be stored on one or more machine-readable media, such as a memory device, a flash memory, or other type of machine-readable medium suitable for storing electronic instructions. Alternatively, the method may be performed by a combination of hardware and software.

Claims

1. 1. A method for customizing the deployment and operation of a service in a container environment, the method being performed by one or more processors upon execution of instructions contained in one or more memory devices, the method comprising: the one or more processors receiving an API definition in an API registry; The API definition is: endpoints of services that are or will be encapsulated in containers that are or will be deployed in the container environment; information defining one or more API functions corresponding to the service; the encapsulation includes the one or more processors generating the one or more API functions based on the API definition; receiving, by the one or more processors, properties of the service along with the API definition in the API registry; determining, by the one or more processors using the API registry, that the property of the service affects deployment of the service into the container environment; and in response to determining that the properties affect deployment of the service, the one or more processors deploy the service based at least in part on the properties.

2. The method of claim 1 , wherein the properties include code that the API registry executes.

3. The method of claim 1 or 2, wherein the properties include a flag that the API registry uses to select a predefined process to execute.

4. 4. The method of claim 1, wherein the step of the one or more processors using the API registry to determine that the property of the service affects the deployment of the service into the container environment includes the step of the one or more processors determining that the property indicates that the service should be deployed to the container environment in a highly available manner.

5. 5. The method of claim 4, wherein the one or more processors deploying the service based at least in part on the properties comprises the one or more processors deploying multiple containerized instances of the service into the container environment.

6. The method of claim 1 , wherein the container environment includes a plurality of services encapsulated in containers.

7. The method of claim 1 , wherein the API registry is deployed as a service encapsulated in a container within the container environment.

8. A program for causing a processor to execute an operation, the operation comprising: receiving an API definition in an API registry; The API definition is: an endpoint for a service that is or will be encapsulated in a container that has or will be deployed in a container environment; information defining one or more API functions corresponding to the service; The encapsulation includes generating the one or more API functions based on the API definition; receiving, in the API registry, properties of the service along with the API definition; the API registry determining that the property of the service affects generation of a client library that calls the service within the container environment; and in response to determining that the properties affect generation of the client library, generating the client library based at least in part on the properties.

9. 9. The program of claim 8, wherein determining that the property of the service affects generation of a client library that calls the service in the container environment comprises determining that the property indicates that the service requires end-to-end encryption.

10. 10. The method of claim 9, wherein generating the client library based at least in part on the properties comprises generating code in the client library that encrypts data before it is sent to an endpoint of the service in a service call.

11. 11. The program of claim 8, wherein determining that the property of the service affects generation of a client library that calls the service in the container environment comprises determining that the property indicates that a calling service should log usage of the service.

12. The method of claim 11 , wherein generating the client library based at least in part on the properties comprises generating code in the client library that logs usage information of calls to an endpoint of the service.

13. The program of claim 8 , wherein the client library includes object classes with member functions that implement API functions for making direct calls to endpoints of the service.

14. The API registry includes: Services being developed in an integrated development environment (IDE), The program according to claim 8 , wherein a service already deployed in the container environment can be used.

15. A program as described in any one of claims 8 to 14, wherein the properties include code to be executed by the API registry or a flag used by the API registry to select a predetermined process to execute.

16. one or more processors; one or more memory devices, the one or more memory devices containing instructions that, when executed by the one or more processors, cause the one or more processors to perform operations, the operations including: receiving an API definition in an API registry; The API definition is: an endpoint of a service that is or will be encapsulated in a container that is or will be deployed in a container environment; information defining one or more API functions corresponding to the service; The encapsulation includes generating the one or more API functions based on the API definition; receiving, in the API registry, properties of the service along with the API definition; the API registry determining that the property of the service affects how a call to the service is processed in the container environment; and in response to determining that the property affects how a call to the service is processed, processing the call to the service based at least in part on the property.

17. 17. The system of claim 16, wherein determining that the property of the service affects how calls to the service are processed in the container environment includes determining that the property indicates that the service should be instantiated on demand in the container environment.

18. 20. The system of claim 17, wherein processing the call to the service based at least in part on the properties includes creating a containerized instance of the service in response to the API registry receiving an indication that a calling service will send a request to the service.

19. 19. The system of claim 16, wherein determining that the property of the service affects how calls to the service are processed in the container environment comprises determining that the property indicates that the service should be rate limited when called in the container environment.

20. A system as described in any one of claims 16 to 19, wherein the properties include code that the API registry executes or flags that the API registry uses to select a predetermined process to execute.

Citation Information

Patent Citations

  • A system and method for modeling and dynamically deploying services within a distributed networking architecture.

    JP2007538313A

  • Endpoint management system providing an application programming interface proxy service

    US20160301739A1

  • Active Representation of a Composite Application

    US20170147319A1

  • Managing delivery of code and dependent data using application containers

    US20170206073A1

  • Systems and methods for providing managed services

    US20170250853A1