-
Notifications
You must be signed in to change notification settings - Fork 251
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
improve README and add story-based introduction (#190)
* improve README and add story-based introduction * add platform arch diagram * comments * comments
- Loading branch information
1 parent
bd53e15
commit a3981e2
Showing
7 changed files
with
76 additions
and
54 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
# Introduction | ||
|
||
This doc gives an introduction of the specification in a story-based format. It help end users and developers to quickly understand and implement the protocol. | ||
|
||
In the following, we are going through a story of application delivery lifecycle. The storyline goes as: | ||
|
||
1. The _developer_ creates a web application; | ||
2. The _application operator_ deploys instances of that application, and configures it with operation traits, e.g. autoscaling; | ||
3. The _infrastructure operator_ decides which underlying technology is used to handle the deployment and operations. | ||
|
||
## App Developer: Develop Apps | ||
|
||
First of all, we have developers who create an online shopping app. They know how to write and test the code. The program takes a few parameters: log level, http port, metrics port. To let the developers focus on development, application operators (either human or automated operation platforms) takes care of the operational tasks. This provides a "serverless" experience to the developers. But, the developers still need to develop and package the application, and deliver it to the application operators. | ||
|
||
How app developers deliver it? The answer is that they will define a _ComponentSchematic_ yaml. In _Open Application Model_, each piece of program is described as a _ComponentSchematic_ yaml by app developer. Any information that app operator needs to know about the program will be defined within. For example, the container image packaging the program and the program parameters will be written in a _ComponentSchematic_ yaml. | ||
|
||
The below diagram demonstrates the workflow: | ||
|
||
![alt](./assets/dev2ops.png) | ||
|
||
## App Operator: Deploy and Maintain Apps | ||
|
||
Deploying an application requires runtime traits configuration and live instances deployment. The app operator applies runtime configuration like replica size, autoscaling policy, which cluster to deploy in a _ApplicationConfiguration_ yaml. Writing and deploying a _ApplicationConfiguration_ yaml is equivalent to deploying an app. The underlying platform will create live instances of _ComponentSchematic_ and attach operational traits to them according to the _ApplicationConfiguration_ spec. | ||
|
||
The below diagram demonstrates the workflow: | ||
|
||
![alt](./assets/ops-deploy-app.png) | ||
|
||
## Infra Operator: Configure Platform Capabilities | ||
|
||
Now that the app operator deploys a _ComponentSchematic_ yaml. How does it happen in real? The power comes from the underlying platforms. | ||
|
||
Each platform provides a group of application deployment and operational capabilities. Infrastructure operators are responsible for declaring, installing, and maintaining the underlying services that are available on the platform. For example, infra operator might choose the Load Balancer technology of a specific cloud provider to expose the service. | ||
|
||
The below diagram demonstrates the platform architecture: | ||
|
||
![alt](./assets/platform_arch.png) | ||
|
||
[Scylla](https://github.com/microsoft/scylla) is a reference implementation based on Kubernetes. Give it a try to gain hands-on experience. | ||
|
||
## The Benefits? Portable Apps! | ||
|
||
Focused on the separation of development concerns from operational considerations through a platform-agnostic application model, Open Application Model provides a set of tools for building portable containerized applications on systems like Kubernetes. | ||
|
||
For end users, they enjoy portable apps across platforms. If an app could be deployed and used on one provider, it should be able to on any other providers. We define must-implement, recommended, and candidate types in _core_, _standard_, and _extended_ APIs. This will ensure portability and provide extensibility in the same spec. Of course, not everything is portable and the primary concern of such an interface is that it is a "lowest-common denominator". Our aspiration is to build a vendor-neutral, community-owned spec and the most popular APIs will be embraced and added to the specification over time. In this way, the evolution will ensure that most users will be successful in building cloud native applications via the Open Application Model. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
# Notational Conventions | ||
|
||
The key words "MUST", "MUST NOT", "REQUIRED", "SHALL", "SHALL NOT", "SHOULD", | ||
"SHOULD NOT", "RECOMMENDED", "NOT RECOMMENDED", "MAY", and "OPTIONAL" are to be | ||
interpreted as described in [RFC 2119][rfc2119]. | ||
|
||
The key words "unspecified", "undefined", and "implementation-defined" are to be | ||
interpreted as described in the [rationale for the C99 | ||
standard][c99-unspecified]. | ||
|
||
An implementation IS compliant if it satisfies all the MUST, REQUIRED, and SHALL | ||
requirements. | ||
|
||
An implementation IS NOT compliant if it fails to satisfy one or more of the | ||
MUST, REQUIRED, or SHALL requirements. | ||
|
||
[rfc2119]: http://tools.ietf.org/html/rfc2119 | ||
[c99-unspecified]: http://www.open-std.org/jtc1/sc22/wg14/www/C99RationaleV5.10.pdf#page=18 |