SlideShare a Scribd company logo
© 2019, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Morning Session:
CTO のための⼀歩進んだコンテナ⼊⾨
© 2019, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
⾃⼰紹介
松⽥ 和樹 (Kazuki Matsuda)
アマゾン ウェブサービス ジャパン株式会社
スタートアップ ソリューションアーキテクト
• 前職 : 広告領域で BigData を扱うスタートアップ
• 現職 : スタートアップの技術⽀援をしつつ、⾏きたいところを物⾊
• #Container #BigData #DevOps #Elasticsearch #Aerospike
• 好きな AWS サービス : AWS Fargate, AWS Chalice
© 2019, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
※ これからコンテナを始める⽅へ
© 2019, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
AWS Startup ブログにて
© 2019, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
今⽇話すこと
• 現場で Kubernetes を使いたいと⾔い出した時に考えること
• Amazon における DevOps とマイクロサービス
対象︓Seed 〜 Mid ステージなスタートアップ
© 2019, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
• Docker 使いたい
• 機能が豊富
• デファクトスタンダード
• マイクロサービス化したい
• 使ってみたい
Kubernetes 使いたいです。
© 2019, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
まず前提として、 ※ CTOs にわざわざ⾔うことでも無いですが
• Why を聞きすぎない。
• CTO が判断しすぎない。
• 聞き⽅によってはネガティブに受け取られたりも
• ⾃発的に使いたいといい出したのはポジティブですよね︖
CTO 視点で excuse する
(危なそうなときはストップをかける必要も)
© 2019, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Kubernetes について
© 2019, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Kubernetes (k8s) とは
• 複数のホスト間でコンテナ化されたアプリ
ケーションを管理する OSS
• デプロイ、メンテナンス、スケーリングと
いった基本的な機能を提供している
• Cloud Native Computing Foundation (CNCF)
によって管理、推進されている
© 2019, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Kubernetes の(特に)いいところ
• Custom Resource Definition (CDR)
• Kubernetes はプラットフォーム。
• 平たく⾔えば⾃分たちで AWS を作っているようなもの。
• その仕様が標準化されており、CDR で⾃社向けに拡張できる
ことがメリット。
• OSS の多さとコミュニティ
• 公開されている OSS で、⾃社のプロダクトを⼤きく前進させ
るものがあるのであれば使わない⼿はない。
• コミュニティ活動を通して、プレゼンスの向上に繋がることも
© 2019, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Kubernetes は機能が多い︖
⽴ち位置の違いから⽣まれるアプローチ差異の例
設定情報管理
Parameter Store
(AWS Systems Manager)
ConfigMap
秘密情報管理 AWS Secrets Manager Secrets
サービスディスカバリ AWS Cloud Map Service, etc.
バッチジョブ
Amazon CloudWatch Events,
AWS Step Functions
Jobs, CronJob
認証・認可 AWS IAM RBAC, Service Accounts, etc.
© 2019, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Kubernetes のスタートアップにとって微妙なところ
• Kubernetes はプラットフォーム
• 平たく⾔えば⾃分たちで AWS を作っているようなもの
• その管理運⽤をしなければならない。
• キャパシティ
• セキュリティ
• Pods が正常に配置されているか等の確認も
• あなた達が作りたいのはプラットフォームですか︖
• 本当にやりたいことは、価値のあるプロダクトを世の中に届ける
ことですよね︖
© 2019, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Kubernetes のスタートアップにとって微妙なところ
• 単に Docker を使いたいだけならオーバーキル気味︖
• とはいえ、デファクトスタンダードですよね︖
• What is a standard ? MySQL があれば PostgreSQL は要らないのか
• 社外へのプレゼンス、採⽤⾯
• では、マイクロサービスならどうか︖
• サービスメッシュは要るのか︖
© 2019, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
マイクロサービスについて考える
© 2019, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Amazon における
マイクロサービスや DevOps の考え⽅
© 2019, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
The Amazon Way
Photo credit: jurvetson via Visual Hunt / CC BY
© 2019, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Amazon.com in 2001
© 2019, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
モノリシックな開発サイクル
releasetestbuild
開発者 デリバリーパイプラインサービス
© 2019, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
モノリシックなアーキテクチャの問題点
• 密結合
• メンテナンスと維持が難しい
• ソースコードが複雑に絡み合い、マージ⼀つでも⼀苦労
• ビルドやテストがとにかく時間がかかる
• デプロイがボトルネック
• デプロイが⼀⼤イベントとなる
• 1つのプロセスで提供される
• スケールが難しい
© 2019, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
マイクロサービス アーキテクチャ
マイクロサービスアーキテクチャは1つのアプリケーションを 小さなサービス
で、各々のプロセスで実行され、 HTTP の API のような Lightweight なメカ
ニズムで通信するようにする開発スタイルのアプローチです。
これらのサービスは ビジネスケイパビリティ から構築され、完全自動化され
た 個別のデプロイ ができます。
サービスの 集中型のマネジメントを最小化 し、サービスは 異なるプログラミ
ング言語 で書かれ、 異なるデータストレージ が使われます。
-- James Lewis and Martin Fowler
© 2019, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Two Pizza Rule
• 全ての所有権
• 全ての説明責任
© 2019, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Two Pizza Teams の働き⽅
“サービスチーム”と呼ぶ
“プリミティブ”に所有し、構築
• プロダクトプランニング (ロードマップ)
• 開発
• 運⽤/カスタマーサポート
“You build it, you run it”
⼤きな組織の⼀部分を構成する
(Amazon.com, AWS, Prime, etc)
© 2019, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
伝統的なシステムでは 開発と運⽤の間に壁がある。
そんな壁はぶん投げてしまえ。
忘れてしまってもいい。Amazon では不要だ。
You build it, you run it
開発者も⽇々の運⽤に参加しなさい。
そうすれば カスタマーのフィードバックが得られる。
これが、サービスの質を⾼めるのだ。
-- Werner Vogels in May 2006 / Amazon.com CTO
© 2019, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Microservices の開発ライフサイクル
開発者 デリバリーパイプラインサービス
releasetestbuild
releasetestbuild
releasetestbuild
releasetestbuild
releasetestbuild
releasetestbuild
© 2019, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
QA は誰が︖
The Two
Pizza
Team
© 2019, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
オンコール
は誰が︖
The Two
Pizza
Team
© 2019, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Ops は
何をするのか
Not
Exist
© 2019, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Amazon における DevOps とは何か?
DevOps =
開発者 顧客
releasetestbuild
plan monitor
デリバリのパイプライン
フィードバックループ
ソフトウェア開発のライフサイクル
無駄やボトルネックを取り除くことで、
ライフサイクルを効率化し、⾼速化すること
© 2019, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Culture
文化
Practices
習慣
Tools
ツール
3 Keys of successful DevOps
© 2019, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Culture
• 壁を取り払う
• Dev と Ops
• DevOps チーム間
• 中間プロセス
• 所有権と説明責任をチームに
• 個⼈に対する責任は⼩さく
• ⼀般的に⼤きなチームは、⼩さなチームより遅い
• 常に改善をして⾼みを⽬指し、How には柔軟さを残す
© 2019, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Amazon Our Leadership Principles (OLP)
• Customer Obsession
• Ownership
• Invent and Simplify
• Are Right, A Lot
• Learn and Be Curious
• Hire and Develop The Best
• Insist on the Highest
Standards
• Think Big
• Bias for Action
• Frugality
• Earn Trust
• Dive Deep
• Have Backbone; Disagree and
Commit
• Deliver Results
https://www.amazon.jobs/jp/principles
© 2019, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
OLP を3つピックアップ
Customer Obsession
リーダーはカスタマーを起点に考え⾏動します。カスタマーから信頼を獲得し、
維持していくために全⼒を尽くします。リーダーは競合に注意を払いますが、
何よりもカスタマーを中⼼に考えることにこだわります。
Ownership
リーダーにはオーナーシップが必要です。リーダーは⻑期的な視野で考え、短
期的な結果のために、⻑期的な価値を犠牲にしません。リーダーは⾃分のチー
ムだけでなく、会社全体のために⾏動します。リーダーは「それは私の仕事で
はありません」とは決して⼝にしません。
Bias for Action
ビジネスではスピードが重要です。多くの意思決定や⾏動はやり直すこともで
きるため、⼤がかりな分析や検討を必要としません。計算されたリスクをとる
ことも⼤切です。
© 2019, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Conway の法則
いかなる組織のシステム設計においても、⽣成される設計は、
組織のコミュニケーション構造のコピーとなる。
-- Melvin Conway, 1967
© 2019, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
まとめ
© 2019, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
まとめ
• ちゃんと考えて選定する(切実)
• 技術を使うこと⾃体が⽬的になっていても問題はない
(それ⾃体を⾃覚していれば)
• 共通基盤的なものが、逆にマイクロサービスを阻害しないか
• 良い技術やツールであっても、⾃社の⽬的にマッチしないこ
とは多くある
• Amazon はマイクロサービスを採⽤している企業の⼀つ
• Amazon において、マイクロサービスは単なるシステムの構
造ではなく、働き⽅や会社の構造そのもの。
• マイクロサービスはツールや技術で実現するものでは無い
© 2019, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Q&A
© 2019, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Thank you!

More Related Content

PDF
[CTO Night & Day 2019] グローバルのサービス展開に向けたマルチリージョンアーキテクチャ- #ctonight
PDF
[CTO Night & Day 2019] よくある課題を一気に解説!御社の技術レベルがアップする 2019 秋期講習 #ctonight
PDF
[CTO Night & Day 2019] AWS のコスト最適化 #ctonight
PDF
[CTO Night & Day 2019] CTO のためのセキュリティ for Seed ~ Mid Stage #ctonight
PDF
[CTO Night & Day 2019] 高可用性アーキテクチャについて考える #ctonight
PDF
[CTO Night & Day 2019] AWS Amplify で Web/Mobile 爆速スケーラブル Serverless 開発 #ctonight
PDF
[CTO Night & Day 2019] Amazon Pinpoint でかゆいところに手が届くユーザー動向分析とセグメント通知 #ctonight
PDF
[CTO Night & Day 2019] Amazon Culture #ctonight
[CTO Night & Day 2019] グローバルのサービス展開に向けたマルチリージョンアーキテクチャ- #ctonight
[CTO Night & Day 2019] よくある課題を一気に解説!御社の技術レベルがアップする 2019 秋期講習 #ctonight
[CTO Night & Day 2019] AWS のコスト最適化 #ctonight
[CTO Night & Day 2019] CTO のためのセキュリティ for Seed ~ Mid Stage #ctonight
[CTO Night & Day 2019] 高可用性アーキテクチャについて考える #ctonight
[CTO Night & Day 2019] AWS Amplify で Web/Mobile 爆速スケーラブル Serverless 開発 #ctonight
[CTO Night & Day 2019] Amazon Pinpoint でかゆいところに手が届くユーザー動向分析とセグメント通知 #ctonight
[CTO Night & Day 2019] Amazon Culture #ctonight

What's hot (20)

PDF
AWS and PCI DSS
PDF
[CTO Night & Day 2019] ML services: MLOps #ctonight
PDF
[CTO Night & Day 2019] AWS Database Overview -データベースの選択指針- #ctonight
PDF
20190726 pub sec_Edtech_webiner
PPTX
re:Invent 2018 ML サービスアップデート
PDF
[CTO Night & Day 2019] AWS で構築するデータレイク基盤と amazon.com での導入事例 #ctonight
PPTX
AWS Nightschool20180618
PPTX
It in the future and cloud
PDF
[CTO Night & Day 2019] Blockchain on AWS #ctonight
PDF
20190724 pub sec_education_webinar
PDF
AWSの様々なアーキテクチャ
PPTX
Japan Wrap Up re:Invent2018
PPTX
JAWS FESTA 2018
PDF
20180516 AWS Black Belt Online Seminar Amazon Connect
PDF
[最新版は別にございます! Descriptionをご確認ください] AWS Black Belt Online Seminar AWS re:Inven...
PDF
【12/5 最新版】AWS Black Belt Online Seminar AWS re:Invent 2018 アップデート情報
PPTX
Jaws kagoshima 20191028
PDF
PubSec Webinar Healthcare session
PPTX
20170826 Oita JAWS
PDF
AWS Black Belt Online Seminar AWS Amplify
AWS and PCI DSS
[CTO Night & Day 2019] ML services: MLOps #ctonight
[CTO Night & Day 2019] AWS Database Overview -データベースの選択指針- #ctonight
20190726 pub sec_Edtech_webiner
re:Invent 2018 ML サービスアップデート
[CTO Night & Day 2019] AWS で構築するデータレイク基盤と amazon.com での導入事例 #ctonight
AWS Nightschool20180618
It in the future and cloud
[CTO Night & Day 2019] Blockchain on AWS #ctonight
20190724 pub sec_education_webinar
AWSの様々なアーキテクチャ
Japan Wrap Up re:Invent2018
JAWS FESTA 2018
20180516 AWS Black Belt Online Seminar Amazon Connect
[最新版は別にございます! Descriptionをご確認ください] AWS Black Belt Online Seminar AWS re:Inven...
【12/5 最新版】AWS Black Belt Online Seminar AWS re:Invent 2018 アップデート情報
Jaws kagoshima 20191028
PubSec Webinar Healthcare session
20170826 Oita JAWS
AWS Black Belt Online Seminar AWS Amplify
Ad

Similar to [CTO Night & Day 2019] CTO のための一歩進んだコンテナ入門 #ctonight (20)

PDF
AWS における Microservices Architecture と DevOps を推進する組織と人とツール
PDF
ハイブリットクラウド環境におけるモダンアプリケーション開発
PDF
クラウド時代のソフトウェアアーキテクチャ
PDF
20200708サーバーレスでのAPI管理の考え方
PDF
Kubecon NA 2019 Recap: Your Path to Production Ready Kubernetes hosted by Wea...
PDF
20210415 amazonelastickubernetesservice devops_game_development
PDF
クラウドを積極活用した サービスの開発のために
PDF
20201118 AWS Black Belt Online Seminar 形で考えるサーバーレス設計 サーバーレスユースケースパターン解説
PPTX
インフラ系自主トレするならAWS
PDF
2019-Nov-23 Pivotalのプロセスとプラットフォーム@DellTechnologies FORUM
PDF
Kubernetes 導入から始める DevOps について
PDF
AWSでDockerを扱うためのベストプラクティス
PDF
Cloud Native市場動向およびRancher Labsが提供するKubernetes Everywhere戦略について
PDF
AWSでアプリ開発するなら 知っておくべこと
PPTX
オレ流クラウドデザイン
PPTX
成長していくサービスとAWS
PDF
Ossを使ったazureでのdev ops
PDF
AWSで実現するクラウドネイティブなアプリ開発のポイント
PDF
Architecting on Alibaba Cloud - Fundamentals - 2018
PDF
AWS Black Belt Online Seminar 2017 Docker on AWS
AWS における Microservices Architecture と DevOps を推進する組織と人とツール
ハイブリットクラウド環境におけるモダンアプリケーション開発
クラウド時代のソフトウェアアーキテクチャ
20200708サーバーレスでのAPI管理の考え方
Kubecon NA 2019 Recap: Your Path to Production Ready Kubernetes hosted by Wea...
20210415 amazonelastickubernetesservice devops_game_development
クラウドを積極活用した サービスの開発のために
20201118 AWS Black Belt Online Seminar 形で考えるサーバーレス設計 サーバーレスユースケースパターン解説
インフラ系自主トレするならAWS
2019-Nov-23 Pivotalのプロセスとプラットフォーム@DellTechnologies FORUM
Kubernetes 導入から始める DevOps について
AWSでDockerを扱うためのベストプラクティス
Cloud Native市場動向およびRancher Labsが提供するKubernetes Everywhere戦略について
AWSでアプリ開発するなら 知っておくべこと
オレ流クラウドデザイン
成長していくサービスとAWS
Ossを使ったazureでのdev ops
AWSで実現するクラウドネイティブなアプリ開発のポイント
Architecting on Alibaba Cloud - Fundamentals - 2018
AWS Black Belt Online Seminar 2017 Docker on AWS
Ad

More from Amazon Web Services Japan (20)

PDF
202205 AWS Black Belt Online Seminar Amazon VPC IP Address Manager (IPAM)
PDF
202205 AWS Black Belt Online Seminar Amazon FSx for OpenZFS
PDF
202204 AWS Black Belt Online Seminar AWS IoT Device Defender
PDF
Infrastructure as Code (IaC) 談義 2022
PDF
202204 AWS Black Belt Online Seminar Amazon Connect を活用したオンコール対応の実現
PDF
202204 AWS Black Belt Online Seminar Amazon Connect Salesforce連携(第1回 CTI Adap...
PDF
Amazon Game Tech Night #25 ゲーム業界向け機械学習最新状況アップデート
PPTX
20220409 AWS BLEA 開発にあたって検討したこと
PDF
202202 AWS Black Belt Online Seminar AWS Managed Rules for AWS WAF の活用
PDF
202203 AWS Black Belt Online Seminar Amazon Connect Tasks.pdf
PDF
SaaS テナント毎のコストを把握するための「AWS Application Cost Profiler」のご紹介
PDF
Amazon QuickSight の組み込み方法をちょっぴりDD
PDF
マルチテナント化で知っておきたいデータベースのこと
PDF
機密データとSaaSは共存しうるのか!?セキュリティー重視のユーザー層を取り込む為のネットワーク通信のアプローチ
PDF
パッケージソフトウェアを簡単にSaaS化!?既存の資産を使ったSaaS化手法のご紹介
PDF
202202 AWS Black Belt Online Seminar Amazon Connect Customer Profiles
PDF
Amazon Game Tech Night #24 KPIダッシュボードを最速で用意するために
PDF
202202 AWS Black Belt Online Seminar AWS SaaS Boost で始めるSaaS開発⼊⾨
PPTX
[20220126] JAWS-UG 2022初頭までに葬ったAWSアンチパターン大紹介
PDF
202111 AWS Black Belt Online Seminar AWSで構築するSmart Mirrorのご紹介
202205 AWS Black Belt Online Seminar Amazon VPC IP Address Manager (IPAM)
202205 AWS Black Belt Online Seminar Amazon FSx for OpenZFS
202204 AWS Black Belt Online Seminar AWS IoT Device Defender
Infrastructure as Code (IaC) 談義 2022
202204 AWS Black Belt Online Seminar Amazon Connect を活用したオンコール対応の実現
202204 AWS Black Belt Online Seminar Amazon Connect Salesforce連携(第1回 CTI Adap...
Amazon Game Tech Night #25 ゲーム業界向け機械学習最新状況アップデート
20220409 AWS BLEA 開発にあたって検討したこと
202202 AWS Black Belt Online Seminar AWS Managed Rules for AWS WAF の活用
202203 AWS Black Belt Online Seminar Amazon Connect Tasks.pdf
SaaS テナント毎のコストを把握するための「AWS Application Cost Profiler」のご紹介
Amazon QuickSight の組み込み方法をちょっぴりDD
マルチテナント化で知っておきたいデータベースのこと
機密データとSaaSは共存しうるのか!?セキュリティー重視のユーザー層を取り込む為のネットワーク通信のアプローチ
パッケージソフトウェアを簡単にSaaS化!?既存の資産を使ったSaaS化手法のご紹介
202202 AWS Black Belt Online Seminar Amazon Connect Customer Profiles
Amazon Game Tech Night #24 KPIダッシュボードを最速で用意するために
202202 AWS Black Belt Online Seminar AWS SaaS Boost で始めるSaaS開発⼊⾨
[20220126] JAWS-UG 2022初頭までに葬ったAWSアンチパターン大紹介
202111 AWS Black Belt Online Seminar AWSで構築するSmart Mirrorのご紹介

[CTO Night & Day 2019] CTO のための一歩進んだコンテナ入門 #ctonight

  • 1. © 2019, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Morning Session: CTO のための⼀歩進んだコンテナ⼊⾨
  • 2. © 2019, Amazon Web Services, Inc. or its Affiliates. All rights reserved. ⾃⼰紹介 松⽥ 和樹 (Kazuki Matsuda) アマゾン ウェブサービス ジャパン株式会社 スタートアップ ソリューションアーキテクト • 前職 : 広告領域で BigData を扱うスタートアップ • 現職 : スタートアップの技術⽀援をしつつ、⾏きたいところを物⾊ • #Container #BigData #DevOps #Elasticsearch #Aerospike • 好きな AWS サービス : AWS Fargate, AWS Chalice
  • 3. © 2019, Amazon Web Services, Inc. or its Affiliates. All rights reserved. ※ これからコンテナを始める⽅へ
  • 4. © 2019, Amazon Web Services, Inc. or its Affiliates. All rights reserved. AWS Startup ブログにて
  • 5. © 2019, Amazon Web Services, Inc. or its Affiliates. All rights reserved. 今⽇話すこと • 現場で Kubernetes を使いたいと⾔い出した時に考えること • Amazon における DevOps とマイクロサービス 対象︓Seed 〜 Mid ステージなスタートアップ
  • 6. © 2019, Amazon Web Services, Inc. or its Affiliates. All rights reserved. • Docker 使いたい • 機能が豊富 • デファクトスタンダード • マイクロサービス化したい • 使ってみたい Kubernetes 使いたいです。
  • 7. © 2019, Amazon Web Services, Inc. or its Affiliates. All rights reserved. まず前提として、 ※ CTOs にわざわざ⾔うことでも無いですが • Why を聞きすぎない。 • CTO が判断しすぎない。 • 聞き⽅によってはネガティブに受け取られたりも • ⾃発的に使いたいといい出したのはポジティブですよね︖ CTO 視点で excuse する (危なそうなときはストップをかける必要も)
  • 8. © 2019, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Kubernetes について
  • 9. © 2019, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Kubernetes (k8s) とは • 複数のホスト間でコンテナ化されたアプリ ケーションを管理する OSS • デプロイ、メンテナンス、スケーリングと いった基本的な機能を提供している • Cloud Native Computing Foundation (CNCF) によって管理、推進されている
  • 10. © 2019, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Kubernetes の(特に)いいところ • Custom Resource Definition (CDR) • Kubernetes はプラットフォーム。 • 平たく⾔えば⾃分たちで AWS を作っているようなもの。 • その仕様が標準化されており、CDR で⾃社向けに拡張できる ことがメリット。 • OSS の多さとコミュニティ • 公開されている OSS で、⾃社のプロダクトを⼤きく前進させ るものがあるのであれば使わない⼿はない。 • コミュニティ活動を通して、プレゼンスの向上に繋がることも
  • 11. © 2019, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Kubernetes は機能が多い︖ ⽴ち位置の違いから⽣まれるアプローチ差異の例 設定情報管理 Parameter Store (AWS Systems Manager) ConfigMap 秘密情報管理 AWS Secrets Manager Secrets サービスディスカバリ AWS Cloud Map Service, etc. バッチジョブ Amazon CloudWatch Events, AWS Step Functions Jobs, CronJob 認証・認可 AWS IAM RBAC, Service Accounts, etc.
  • 12. © 2019, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Kubernetes のスタートアップにとって微妙なところ • Kubernetes はプラットフォーム • 平たく⾔えば⾃分たちで AWS を作っているようなもの • その管理運⽤をしなければならない。 • キャパシティ • セキュリティ • Pods が正常に配置されているか等の確認も • あなた達が作りたいのはプラットフォームですか︖ • 本当にやりたいことは、価値のあるプロダクトを世の中に届ける ことですよね︖
  • 13. © 2019, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Kubernetes のスタートアップにとって微妙なところ • 単に Docker を使いたいだけならオーバーキル気味︖ • とはいえ、デファクトスタンダードですよね︖ • What is a standard ? MySQL があれば PostgreSQL は要らないのか • 社外へのプレゼンス、採⽤⾯ • では、マイクロサービスならどうか︖ • サービスメッシュは要るのか︖
  • 14. © 2019, Amazon Web Services, Inc. or its Affiliates. All rights reserved. マイクロサービスについて考える
  • 15. © 2019, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Amazon における マイクロサービスや DevOps の考え⽅
  • 16. © 2019, Amazon Web Services, Inc. or its Affiliates. All rights reserved. The Amazon Way Photo credit: jurvetson via Visual Hunt / CC BY
  • 17. © 2019, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Amazon.com in 2001
  • 18. © 2019, Amazon Web Services, Inc. or its Affiliates. All rights reserved. モノリシックな開発サイクル releasetestbuild 開発者 デリバリーパイプラインサービス
  • 19. © 2019, Amazon Web Services, Inc. or its Affiliates. All rights reserved. モノリシックなアーキテクチャの問題点 • 密結合 • メンテナンスと維持が難しい • ソースコードが複雑に絡み合い、マージ⼀つでも⼀苦労 • ビルドやテストがとにかく時間がかかる • デプロイがボトルネック • デプロイが⼀⼤イベントとなる • 1つのプロセスで提供される • スケールが難しい
  • 20. © 2019, Amazon Web Services, Inc. or its Affiliates. All rights reserved. マイクロサービス アーキテクチャ マイクロサービスアーキテクチャは1つのアプリケーションを 小さなサービス で、各々のプロセスで実行され、 HTTP の API のような Lightweight なメカ ニズムで通信するようにする開発スタイルのアプローチです。 これらのサービスは ビジネスケイパビリティ から構築され、完全自動化され た 個別のデプロイ ができます。 サービスの 集中型のマネジメントを最小化 し、サービスは 異なるプログラミ ング言語 で書かれ、 異なるデータストレージ が使われます。 -- James Lewis and Martin Fowler
  • 21. © 2019, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Two Pizza Rule • 全ての所有権 • 全ての説明責任
  • 22. © 2019, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Two Pizza Teams の働き⽅ “サービスチーム”と呼ぶ “プリミティブ”に所有し、構築 • プロダクトプランニング (ロードマップ) • 開発 • 運⽤/カスタマーサポート “You build it, you run it” ⼤きな組織の⼀部分を構成する (Amazon.com, AWS, Prime, etc)
  • 23. © 2019, Amazon Web Services, Inc. or its Affiliates. All rights reserved. 伝統的なシステムでは 開発と運⽤の間に壁がある。 そんな壁はぶん投げてしまえ。 忘れてしまってもいい。Amazon では不要だ。 You build it, you run it 開発者も⽇々の運⽤に参加しなさい。 そうすれば カスタマーのフィードバックが得られる。 これが、サービスの質を⾼めるのだ。 -- Werner Vogels in May 2006 / Amazon.com CTO
  • 24. © 2019, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Microservices の開発ライフサイクル 開発者 デリバリーパイプラインサービス releasetestbuild releasetestbuild releasetestbuild releasetestbuild releasetestbuild releasetestbuild
  • 25. © 2019, Amazon Web Services, Inc. or its Affiliates. All rights reserved. QA は誰が︖ The Two Pizza Team
  • 26. © 2019, Amazon Web Services, Inc. or its Affiliates. All rights reserved. オンコール は誰が︖ The Two Pizza Team
  • 27. © 2019, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Ops は 何をするのか Not Exist
  • 28. © 2019, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Amazon における DevOps とは何か? DevOps = 開発者 顧客 releasetestbuild plan monitor デリバリのパイプライン フィードバックループ ソフトウェア開発のライフサイクル 無駄やボトルネックを取り除くことで、 ライフサイクルを効率化し、⾼速化すること
  • 29. © 2019, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Culture 文化 Practices 習慣 Tools ツール 3 Keys of successful DevOps
  • 30. © 2019, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Culture • 壁を取り払う • Dev と Ops • DevOps チーム間 • 中間プロセス • 所有権と説明責任をチームに • 個⼈に対する責任は⼩さく • ⼀般的に⼤きなチームは、⼩さなチームより遅い • 常に改善をして⾼みを⽬指し、How には柔軟さを残す
  • 31. © 2019, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Amazon Our Leadership Principles (OLP) • Customer Obsession • Ownership • Invent and Simplify • Are Right, A Lot • Learn and Be Curious • Hire and Develop The Best • Insist on the Highest Standards • Think Big • Bias for Action • Frugality • Earn Trust • Dive Deep • Have Backbone; Disagree and Commit • Deliver Results https://www.amazon.jobs/jp/principles
  • 32. © 2019, Amazon Web Services, Inc. or its Affiliates. All rights reserved. OLP を3つピックアップ Customer Obsession リーダーはカスタマーを起点に考え⾏動します。カスタマーから信頼を獲得し、 維持していくために全⼒を尽くします。リーダーは競合に注意を払いますが、 何よりもカスタマーを中⼼に考えることにこだわります。 Ownership リーダーにはオーナーシップが必要です。リーダーは⻑期的な視野で考え、短 期的な結果のために、⻑期的な価値を犠牲にしません。リーダーは⾃分のチー ムだけでなく、会社全体のために⾏動します。リーダーは「それは私の仕事で はありません」とは決して⼝にしません。 Bias for Action ビジネスではスピードが重要です。多くの意思決定や⾏動はやり直すこともで きるため、⼤がかりな分析や検討を必要としません。計算されたリスクをとる ことも⼤切です。
  • 33. © 2019, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Conway の法則 いかなる組織のシステム設計においても、⽣成される設計は、 組織のコミュニケーション構造のコピーとなる。 -- Melvin Conway, 1967
  • 34. © 2019, Amazon Web Services, Inc. or its Affiliates. All rights reserved. まとめ
  • 35. © 2019, Amazon Web Services, Inc. or its Affiliates. All rights reserved. まとめ • ちゃんと考えて選定する(切実) • 技術を使うこと⾃体が⽬的になっていても問題はない (それ⾃体を⾃覚していれば) • 共通基盤的なものが、逆にマイクロサービスを阻害しないか • 良い技術やツールであっても、⾃社の⽬的にマッチしないこ とは多くある • Amazon はマイクロサービスを採⽤している企業の⼀つ • Amazon において、マイクロサービスは単なるシステムの構 造ではなく、働き⽅や会社の構造そのもの。 • マイクロサービスはツールや技術で実現するものでは無い
  • 36. © 2019, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Q&A
  • 37. © 2019, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Thank you!