This post was originally written by Albert T. Wong in this blog: http://developerblog.redhat.com/2015/10/12/optimizing-twelve-factor-app-red-hat-openshift/

OpenShift Enterprise by Red Hat was designed to be application architecture agnostic. In addition to running traditional stateful and/or legacy-type workloads, OpenShift Enterprise seamlessly provides support for modern, stateless Twelve-Factor applications. This document provides a guide on how to optimize the architecture and deployment of your Twelve-Factor applications on OpenShift Enterprise.

Note: The Twelve-Factor app is a methodology for building apps in modern cloud environments. Read more athttp://12factor.net/.

Factor Relationship
Codebase One codebase tracked in revision control, many deploys.OpenShift Enterprise can build and deploy applications directly from their source code repositories.
Dependencies Explicitly declare and isolate dependencies.
OpenShift Enterprise allows native language dependency management systems to be used. Maven, Gem, CPAN, and more are all supported for their respective languages.
Config Store config in the environment.

OpenShift Enterprise provides multiple interfaces to inject environmental configuration data.
Backing Services Treat backing services as attached resources.
OpenShift Enterprise provides many native backing services (databases, message brokers, and more) and additionally enables developers to easily consume external services, too.
Build, release, run Strictly separate build and run stages.
OpenShift Enterprise strictly separates the build, release and run stages of the codebase and can integrate into many 3rd party build/release/run applications, enabling Continuous Integration and Continuous Deployment (CI/CD).
Processes Execute the app as one or more stateless processes.
OpenShift Enterprise natively incorporates Docker containers in its deployable units. Docker containers are stateless and portable.
Port binding Export services via port binding.
OpenShift Enterprise allows applications to directly bind to and consume ports, and expose the services they provide both internally within OpenShift as well as externally.
Concurrency Scale out via the process model.
OpenShift Enterprise allows for manual or automated scaling of applications, and can support true “web-scale” app deployments.
Disposability Maximize robustness with fast startup and graceful shutdown.
Containers come and containers go. OpenShift Enterprise’s use of containers enables both fast startup and graceful shutdown, all behind a robust set of tooling.
Dev/prod parity Keep development, staging, and production as similar as possible.
“Environments” in OpenShift enterprise only differ in name. Whether there is only production or 100 steps to production, the underlying infrastructure and application architectures don’t change.
Logs Treat logs as event streams.
OpenShift Enterprise aggregates application log data from all instances with no special handling required by the developer. Logs can be viewed via a number of different mechanisms.
Admin processes Run admin/management tasks as one-off processes.
OpenShift Enterprise provides capabilities for pre- and post-deployment hooks, as well as for cron-type jobs and other “admin/management tasks”.

 

Author

Albert Wong
Senior Solution Architect at Red Hat
@alberttwong

Full Article

To read more about this post, see the full article at https://access.redhat.com/articles/1752483


執筆者紹介

UI_Icon-Red_Hat-Close-A-Black-RGB

チャンネル別に見る

automation icon

自動化

テクノロジー、チームおよび環境に関する IT 自動化の最新情報

AI icon

AI (人工知能)

お客様が AI ワークロードをどこでも自由に実行することを可能にするプラットフォームについてのアップデート

open hybrid cloud icon

オープン・ハイブリッドクラウド

ハイブリッドクラウドで柔軟に未来を築く方法をご確認ください。

security icon

セキュリティ

環境やテクノロジー全体に及ぶリスクを軽減する方法に関する最新情報

edge icon

エッジコンピューティング

エッジでの運用を単純化するプラットフォームのアップデート

Infrastructure icon

インフラストラクチャ

世界有数のエンタープライズ向け Linux プラットフォームの最新情報

application development icon

アプリケーション

アプリケーションの最も困難な課題に対する Red Hat ソリューションの詳細

Virtualization icon

仮想化

オンプレミスまたは複数クラウドでのワークロードに対応するエンタープライズ仮想化の将来についてご覧ください