38
株式会社セールスフォース・ドットコム Herokuテクニカルアカウントマネジャー 相澤歩 @ayumin [email protected] プロフェッショナルのための 実践 Heroku 入門

プロフェッショナルのための 実践 Heroku 入門

Embed Size (px)

Citation preview

Page 1: プロフェッショナルのための 実践 Heroku 入門

株式会社セールスフォース・ドットコム Herokuテクニカルアカウントマネジャー 相澤歩 @ayumin [email protected]

プロフェッショナルのための 実践 Heroku 入門

Page 2: プロフェッショナルのための 実践 Heroku 入門

Safe Harbor “Safe harbor” statement under the Private Securities Litigation Reform Act of 1995: This presentation contains forward-looking statements, the achievement or success of which involves risks, uncertainties, and assumptions. If any such risks or uncertainties materialize or if any of the assumptions proves incorrect, the results of salesforce.com, inc. could differ materially from the results expressed or implied by the forward-looking statements we make. The risks and uncertainties referred to above include ‒ but are not limited to ‒ risks associated with possible fluctuations in our financial and operating results; our rate of growth and anticipated revenue run rate, including our ability to convert deferred revenue and unbilled deferred revenue into revenue and, as appropriate, cash flow, and our ability to grow deferred revenue and unbilled deferred revenue; errors, interruptions or delays in our service or Web hosting; breaches of our security measures; the financial impact of any previous and future acquisitions; the nature of our business model; our ability to continue to release, and gain customer acceptance of, new and improved versions of our service; successful customer deployment and utilization of our existing and future services; changes in our sales cycle; competition; various financial aspects of our subscription model; unexpected increases in attrition or decreases in new business; our ability to realize benefits from strategic partnerships; reliance on third-party computer hardware and software; the emerging markets in which we operate; unique aspects of entering or expanding in international markets; our ability to hire, retain and motivate employees and manage our growth; changes in our customer base; technological developments; regulatory developments; litigation related to intellectual property and other matters, and any related claims, negotiations and settlements; unanticipated changes in our effective tax rate; factors affecting our outstanding convertible notes and credit facility; fluctuations in the number of shares we have outstanding and the price of such shares; foreign currency exchange rates; collection of receivables; interest rates; factors affecting our deferred tax assets and ability to value and utilize them, including the timing of achieving profitability on a pre-tax basis; the potential negative impact of indirect tax exposure; the risks and expenses associated with our real estate and office facilities space; and general developments in the economy, financial markets, and credit markets. Further information on these and other factors that could affect the financial results of salesforce.com, inc. is included in the reports on Forms 10-K, 10-Q and 8-K and in other filings we make with the Securities and Exchange Commission from time to time, including our most recent Form 10-K. These documents are available on the SEC Filings section of the Investor Information section of our website at www.salesforce.com/investor. Any unreleased services or features referenced in this or other presentations, press releases or public statements are not currently available and may not be delivered on time or at all. Customers who purchase our services should make their purchase decisions based upon features that are currently available.

Page 3: プロフェッショナルのための 実践 Heroku 入門

プロフェッショナルのための 実践 Heroku 入門 相澤 歩、arton、鳥井 雪、織田敬子 著 株式会社KADOKAWA 発行 1,800円(本体)

Page 4: プロフェッショナルのための 実践 Heroku 入門

目次

はじめに 第1章 Herokuの概要 第2章 Herokuの利用準備 第3章 アプリケーション開発のポイント 第4章 アドオンによる機能拡張

第5章 本番環境への移行 第6章 Heroku Postgres 第7章 トラブルシューティング 第8章 Herokuのアーキテクチャ 第9章 The Twelve Factor App(邦訳版)

Page 5: プロフェッショナルのための 実践 Heroku 入門

目次

はじめに 第1章 Herokuの概要 第2章 Herokuの利用準備 第3章 アプリケーション開発のポイント 第4章 アドオンによる機能拡張

第5章 本番環境への移行 第6章 Heroku Postgres 第7章 トラブルシューティング 第8章 Herokuのアーキテクチャ 第9章 The Twelve Factor App(邦訳版)

Page 6: プロフェッショナルのための 実践 Heroku 入門
Page 7: プロフェッショナルのための 実践 Heroku 入門

プロフェッショナルなアプリケーション開発者のための 世界で最も先進的なプラットフォームクラウド

Page 8: プロフェッショナルのための 実践 Heroku 入門

いつでもアプリケーションを作成可能 Create Apps Instantly

$ heroku create�

Page 9: プロフェッショナルのための 実践 Heroku 入門

Gitによるシンプルなデプロイ Simple deployment by Git

Page 10: プロフェッショナルのための 実践 Heroku 入門

すぐれたスケーラビリティ Scalability is solved issue

Page 11: プロフェッショナルのための 実践 Heroku 入門

すぐれたスケーラビリティ Scalability is solved issue

Page 12: プロフェッショナルのための 実践 Heroku 入門

あらゆるプログラミング言語・フレームワークに対応 Build and Run Your Apps, Your Way

Page 13: プロフェッショナルのための 実践 Heroku 入門

Heroku Addonによる機能拡張 Add Features to Your Apps with Heroku Addon

Page 14: プロフェッショナルのための 実践 Heroku 入門

Heroku Addonによる機能拡張 Add Features to Your Apps with Heroku Addon

Page 15: プロフェッショナルのための 実践 Heroku 入門

アプリケーションの状況を可視化 Get comprehensive visibility and monitoring

Page 16: プロフェッショナルのための 実践 Heroku 入門

アプリケーションの状況を可視化 Get comprehensive visibility and monitoring

Page 17: プロフェッショナルのための 実践 Heroku 入門

アプリケーションの状況を可視化 Get comprehensive visibility and monitoring

Page 18: プロフェッショナルのための 実践 Heroku 入門

アプリケーションの状況を可視化 Get comprehensive visibility and monitoring

Page 19: プロフェッショナルのための 実践 Heroku 入門

目次

はじめに 第1章 Herokuの概要 第2章 Herokuの利用準備 第3章 アプリケーション開発のポイント 第4章 アドオンによる機能拡張

第5章 本番環境への移行 第6章 Heroku Postgres 第7章 トラブルシューティング 第8章 Herokuのアーキテクチャ 第9章 The Twelve Factor App(邦訳版)

Page 20: プロフェッショナルのための 実践 Heroku 入門

Heroku Toolbelt toolbelt.heroku.com

Page 21: プロフェッショナルのための 実践 Heroku 入門

目次

はじめに 第1章 Herokuの概要 第2章 Herokuの利用準備 第3章 アプリケーション開発のポイント 第4章 アドオンによる機能拡張

第5章 本番環境への移行 第6章 Heroku Postgres 第7章 トラブルシューティング 第8章 Herokuのアーキテクチャ 第9章 The Twelve Factor App(邦訳版)

Page 22: プロフェッショナルのための 実践 Heroku 入門

Heroku上にデプロイするアプリケーションの設計ポイント

ファイルシステムに永続化した情報は揮発する スティッキーセッションが使えない タイムアウトに関する考慮

シェアードナッシングな設計

Page 23: プロフェッショナルのための 実践 Heroku 入門

ファイルの揮発性

コンテナのストレージは揮発する(再起動時に失われる) ため永続化するデータはアプリの外側に保存する 具体的には以下のようなもの:

•  セッション情報

•  ブラウザからアップロードした画像やPDFファイル

•  ログ情報

Page 24: プロフェッショナルのための 実践 Heroku 入門

セッション情報

セッション識別子をロードバランサーなどで検知してセッションを同じアプリケーションコンテナに割当てる機能 PaaSによる効率的なルーティングがアプリ要因で阻害される スティッキーセッションが有効化されていることを前提としたアプリの場合は設計変更が必要になる場合がある

Page 25: プロフェッショナルのための 実践 Heroku 入門

タイムアウト

30秒間応答がないリクエストはタイムアウトで強制終了

Page 26: プロフェッショナルのための 実践 Heroku 入門

タイムアウト

30秒間応答がないリクエストはタイムアウトで強制終了

長い時間がかかる処理はキューに登録し バックグラウンド処理で実行

Page 27: プロフェッショナルのための 実践 Heroku 入門

目次

はじめに 第1章 Herokuの概要 第2章 Herokuの利用準備 第3章 アプリケーション開発のポイント 第4章 アドオンによる機能拡張

第5章 本番環境への移行 第6章 Heroku Postgres 第7章 トラブルシューティング 第8章 Herokuのアーキテクチャ 第9章 The Twelve Factor App(邦訳版)

Page 28: プロフェッショナルのための 実践 Heroku 入門

Heroku Postgres postgres.heroku.com

Page 29: プロフェッショナルのための 実践 Heroku 入門

Dataclips dataclips.heroku.com

Page 30: プロフェッショナルのための 実践 Heroku 入門

目次

はじめに 第1章 Herokuの概要 第2章 Herokuの利用準備 第3章 アプリケーション開発のポイント 第4章 アドオンによる機能拡張

第5章 本番環境への移行 第6章 Heroku Postgres 第7章 トラブルシューティング 第8章 Herokuのアーキテクチャ 第9章 The Twelve Factor App(邦訳版)

Page 31: プロフェッショナルのための 実践 Heroku 入門

Heroku Status status.heroku.com

Page 32: プロフェッショナルのための 実践 Heroku 入門

プラットフォームサポート help.heroku.com

Page 33: プロフェッショナルのための 実践 Heroku 入門

目次

はじめに 第1章 Herokuの概要 第2章 Herokuの利用準備 第3章 アプリケーション開発のポイント 第4章 アドオンによる機能拡張

第5章 本番環境への移行 第6章 Heroku Postgres 第7章 トラブルシューティング 第8章 Herokuのアーキテクチャ 第9章 The Twelve Factor App(邦訳版)

Page 34: プロフェッショナルのための 実践 Heroku 入門

目次

はじめに 第1章 Herokuの概要 第2章 Herokuの利用準備 第3章 アプリケーション開発のポイント 第4章 アドオンによる機能拡張

第5章 本番環境への移行 第6章 Heroku Postgres 第7章 トラブルシューティング 第8章 Herokuのアーキテクチャ 第9章 The Twelve Factor App(邦訳版)

Page 35: プロフェッショナルのための 実践 Heroku 入門

The Twelve Factor App

現代的なアプリケーションを設計、構築、運用するための12の方法論

Heroku創業者のアダム・ウィギンスがプラットフォームサービス上で 稼働する数百のアプリの特性から得た知見をまとめたもの

(原文)http://12factor.net/

(日本語訳)http://twelve-factor-ja.herokuapp.com/

Page 36: プロフェッショナルのための 実践 Heroku 入門

プロフェッショナルのための 実践 Heroku 入門 相澤 歩、arton、鳥井 雪、織田敬子 著 株式会社KADOKAWA 発行 1,800円(本体)

Page 37: プロフェッショナルのための 実践 Heroku 入門

次のセッションは… 開発者の生産性をさらに改善:Heroku DX

Dashboard+Metrics Heroku Button Postgres DbX

Page 38: プロフェッショナルのための 実践 Heroku 入門

Thank you