SlideShare ist ein Scribd-Unternehmen logo
1 von 45
Downloaden Sie, um offline zu lesen
Heroku Inside
Heroku Outside
Dining
Living room
Bar
Basement
Heroku Inside
    Ayumu Aizawa
        Heroku Inc.,
Developer Marketing Advocate
Safe harbor: Safe harbor statement under the Private Securities Litigation Reform Act of 1995:
This presentation may contain forward-looking statements that involve risks, uncertainties, and
assumptions. If any such 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. All statements other than statements of historical fact could be deemed forward-
looking, including any projections of product or service availability, subscriber growth, earnings, revenues,
or other financial items and any statements regarding strategies or plans of management for future
operations, statements of belief, any statements concerning new, planned, or upgraded services or
technology developments and customer contracts or use of our services.
The risks and uncertainties referred to above include – but are not limited to – risks associated with
developing and delivering new functionality for our service, new products and services, our new business
model, our past operating losses, possible fluctuations in our operating results and rate of growth,
interruptions or delays in our Web hosting, breach of our security measures, the outcome of intellectual
property and other litigation, risks associated with possible mergers and acquisitions, the immature market
in which we operate, our relatively limited operating history, our ability to expand, retain, and motivate our
employees and manage our growth, new releases of our service and successful customer deployment, our
limited history reselling non-salesforce.com products, and utilization and selling to larger enterprise
customers. Further information on potential factors that could affect the financial results of salesforce.com,
inc. is included in our annual report on Form 10-Q for the most recent fiscal quarter ended April 30, 2011.
This documents and others containing important disclosures are available on the SEC Filings section of the
Investor Information section of our Web site.
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 the purchase decisions based upon features that are currently available.
Salesforce.com, inc. assumes no obligation and does not intend to update these forward-looking
statements.
自己紹介
Ayumu Aizawa
Heroku Evangelist @ Salesforce.com
Developer Marketing Advocate @ Heroku
 twitter: @ayumin
 Fb: www.facebook.com/ayumu.aizawa
Heroku
What is Heroku?
        Why Heroku?
    Who are using Heroku?
     How to use Heroku?
  When should I try Heroku?
Where are resources of Heroku?
What is Heroku?
• Herokuは、Ruby、Java、Python、Scala、
  Node.js、Clojure など、複数のプログラミング
  言語・フレームワークに対応した、クラウドアプリケ
  ーションの開発を支援する PaaS(Platform-
  as-a-Service)です。
What is Heroku

Agile        Polyglot     Tool

24h

  2-4w
Why Heroku?
• Herokuは、優れた開発者の生産性を
  最大化するプラットフォーム。
 サーバーの存在を意識しなくてよい
 スケーラビリティについて考慮しなくてよい
 プロセス単位で可視化できる
 信頼性・可用性の高いアーキテクチャ
 アドオンシステムによる機能拡張
The 12 Factor App
Herokuは良いWebサービスをつくるための
方法論をカバーしている。

•   Codebase              •   Port binding
•   Dependencies          •   Concurrency
•   Config                •   Disposability
•   Backing Services      •   Dev/prod parity
•   Build, release, run   •   Logs
•   Processes             •   Admin processes
              http://www.12factor.net
Sample App (sinatra)
$ ls
Gemfile       Procfile    app.rb config.ru
$ cat Gemfile
source ‘http://rubygems.org’
gem ‘sinatra’
gem ‘thin’
$ cat config.ru
require ‘./app.rb’
run Sinatra::Application
$ cat app.rb
require ‘sinatra’
get ‘/’ do
 “hello world”
end
$ cat Procfile
web: bundle exec thin –p $PORT –e $RACK_ENV start
Deploy to Heroku
$ git init
Initialized empty Git repository in /path/to/app/.git/
$ git add –A
$ git commit –m ‘initial commit’
[master (root-commit) 5cf507d] initial commit
 4 files changed, 14 insertions(+), 0 deletions(-)
 create mode 100644 Gemfile
 create mode 100644 Procfile
 create mode 100644 app.rb
 create mode 100644 config.ru
$ heroku apps:create –s cedar
http://growing-summer-1456.herokuapp.com/ | git@heroku.com …
Git remote heroku added
$ git push herokumaster
How to use Heroku?
• Herokuクライアントツールをインストール
 Heroku Toolbelt




          https://toolbelt.heroku.com/
Who are using Heroku?
• コンシューマー向けWebアプリケーション
• ソーシャル・メディア連携サービス
• 動画配信サービス
• スマートフォンゲームのサーバーサイド
When should I try Heroku?
            Now!
     http://www.heroku.com
Where are resources of Heroku?

•    導入事例          sucsess.heroku.com
•    プランと価格        heroku.com/pricing
•    技術資料、サポート     devcenter.heroku.com
•    ニュース          news.heroku.com
•    オフィシャルブログ     blog.heroku.com
•    ユーザーコミュニティ    www.facebook.com/herokujp
•    困ったときは        ayumin@heroku.com
Heroku Inside
Architecture Overview
                                   User



                                          Elastic Load barancer



            Control Surface APIs


                                               Dyno Manifold




Developer                                      Logprex
Architecture Overview
Dyno
•   Herokuアーキテクチャを理解するために、
    最も重要な要素のひとつ
Dyno
What is Dyno?
  Dyno Features
How’s Dyno created
What is Dyno

通常のサーバーにおけるプロセスとほぼ同じ。

                 Batch Process
                                 Web Process
       Background Process




いろいろな役割(Process Type)のDynoがある。
What is Dyno
• ひとつひとつのDynoには完全な実行環境が含まれる。



          •   アプリケーション本体
          •   メモリ
          •   設定(環境変数など)
          •   依存ライブラリ
          •   アプリケーション実行環境
              (アプリケーション・コンテナなど)
Dyno Features
• Elasticity
   柔軟な拡張・縮退が可能

• Intelligent Routing
   インテリジェントな経路選択
• Process Management
   プロセス管理

• Distribution & Redundancy
   分散処理と冗長化
Elasticity
•   プロセス単位での拡張、縮退制御が可能


       heroku ps:scale web=5
Elasticity
•   プロセス単位での拡張、縮退制御が可能


       heroku ps:scale web=1
Intelligent Routing
•   Routing Mesh による適切な経路選択
Process management
•   不安定になったDynoは自動的に再起動される
Process management
•   不安定になったDynoは自動的に再起動される
Distribution & Redundancy
•   それぞれのDynoはAWS上に分散配置され、
    完全に独立したリソースを使用している。
How’s Dyno created
Procfile
• Dyno = アプリケーションの実行プロセス
• アプリケーションをリリースした際に、
  Procfileの定義に基づいて生成される

  web: bundle exec rails server -p $PORT -e $RACK_ENV
  worker: bundle exec rake job:work




               web                 worker
Dyno scaling
Process Type毎に独立して拡張可能。




       web   worker   clock
Slug
• Slug = Dynoの元になるオブジェクト
• アプリケーションコードをpushした際に
  各アプリケーションごとに生成される
Slug compiler
• pushされたコードからSlugを生成する。
•   言語・フレームワーク独特のファイル有無によって
    実行環境を判断。
     -buildpackオプションにより明示的に指定することも可能。
Conclusion
Conclusion

• Herokuはアプリケーション開発者の
  生産性を高めることにフォーカスしたPaaS。
• アプリケーションの全ての動作環境を含む
  Dyno単位でプロセス制御が可能。
• デプロイされたコードはSlugオブジェクトに
  変換され、アプリケーションごとに永続化さ
  れる。
When should I try Heroku?
            Now!
     http://www.heroku.com
Where are resources of Heroku?

•    導入事例          sucsess.heroku.com
•    プランと価格        heroku.com/pricing
•    技術資料、サポート     devcenter.heroku.com
•    ニュース          news.heroku.com
•    オフィシャルブログ     blog.heroku.com
•    ユーザーコミュニティ    www.facebook.com/herokujp
•    困ったときは        ayumin@heroku.com
Thank you!
http://www.heroku.com

Weitere ähnliche Inhalte

Was ist angesagt?

NGINX Instance Manager Tames the Sprawl (Japanese version)
NGINX Instance Manager Tames the Sprawl (Japanese version)NGINX Instance Manager Tames the Sprawl (Japanese version)
NGINX Instance Manager Tames the Sprawl (Japanese version)NGINX, Inc.
 
NGINX Plus Hands On Training
NGINX Plus Hands On Training NGINX Plus Hands On Training
NGINX Plus Hands On Training NGINX, Inc.
 
NGINX DX webinar for Digital Campus (Japanese Webinar)
NGINX DX webinar for Digital Campus (Japanese Webinar)NGINX DX webinar for Digital Campus (Japanese Webinar)
NGINX DX webinar for Digital Campus (Japanese Webinar)NGINX, Inc.
 
NGINX App Protect for Secure Coding Webinar
NGINX App Protect for Secure Coding WebinarNGINX App Protect for Secure Coding Webinar
NGINX App Protect for Secure Coding WebinarNGINX, Inc.
 
NGINX Ingress Controller with WAF for Kubernetes
NGINX Ingress Controller with WAF for KubernetesNGINX Ingress Controller with WAF for Kubernetes
NGINX Ingress Controller with WAF for KubernetesNGINX, Inc.
 
API and Modern App Security for Microservices
API and Modern App Security for MicroservicesAPI and Modern App Security for Microservices
API and Modern App Security for MicroservicesNGINX, Inc.
 
NGINX & OpenShift Webinar for Energy Sector
NGINX & OpenShift Webinar for Energy Sector NGINX & OpenShift Webinar for Energy Sector
NGINX & OpenShift Webinar for Energy Sector NGINX, Inc.
 
祝 top-level project Apache Geode
祝 top-level project Apache Geode祝 top-level project Apache Geode
祝 top-level project Apache GeodeTomohiro Ichimura
 
Introducing NGINX App Protect (Japanese Webinar)
Introducing NGINX App Protect (Japanese Webinar)Introducing NGINX App Protect (Japanese Webinar)
Introducing NGINX App Protect (Japanese Webinar)NGINX, Inc.
 
講演資料: コスト最適なプライベートCDNを「NGINX」で実現するWeb最適化セミナー
講演資料: コスト最適なプライベートCDNを「NGINX」で実現するWeb最適化セミナー講演資料: コスト最適なプライベートCDNを「NGINX」で実現するWeb最適化セミナー
講演資料: コスト最適なプライベートCDNを「NGINX」で実現するWeb最適化セミナーNGINX, Inc.
 
Circle of Code with Cloud Foundry
Circle of Code with Cloud FoundryCircle of Code with Cloud Foundry
Circle of Code with Cloud FoundryTomohiro Ichimura
 
NGINX + Ansible Automation Webinar (日本語版)
NGINX + Ansible Automation Webinar (日本語版)NGINX + Ansible Automation Webinar (日本語版)
NGINX + Ansible Automation Webinar (日本語版)NGINX, Inc.
 
Fundamentals of Microservices Japanese Webinar
Fundamentals of Microservices Japanese WebinarFundamentals of Microservices Japanese Webinar
Fundamentals of Microservices Japanese WebinarNGINX, Inc.
 
NGINX Back to Basic 2 Part 2 (Japanese Webinar)
NGINX Back to Basic 2 Part 2 (Japanese Webinar)NGINX Back to Basic 2 Part 2 (Japanese Webinar)
NGINX Back to Basic 2 Part 2 (Japanese Webinar)NGINX, Inc.
 
Myfirst buildpack session_mgmt_20161201
Myfirst buildpack session_mgmt_20161201Myfirst buildpack session_mgmt_20161201
Myfirst buildpack session_mgmt_20161201Tomohiro Ichimura
 
NGINX Solution for Digital Government Architecture
NGINX Solution for Digital Government ArchitectureNGINX Solution for Digital Government Architecture
NGINX Solution for Digital Government ArchitectureNGINX, Inc.
 
「これからはじめるNGINX技術解説~基本編」セミナー (NGINX Back to Basic in JP)
「これからはじめるNGINX技術解説~基本編」セミナー (NGINX Back to Basic in JP)「これからはじめるNGINX技術解説~基本編」セミナー (NGINX Back to Basic in JP)
「これからはじめるNGINX技術解説~基本編」セミナー (NGINX Back to Basic in JP)NGINX, Inc.
 
Garden introduction for dea users public
Garden introduction for dea users   publicGarden introduction for dea users   public
Garden introduction for dea users publicTakehiko Amano
 

Was ist angesagt? (20)

NGINX Instance Manager Tames the Sprawl (Japanese version)
NGINX Instance Manager Tames the Sprawl (Japanese version)NGINX Instance Manager Tames the Sprawl (Japanese version)
NGINX Instance Manager Tames the Sprawl (Japanese version)
 
NGINX Plus Hands On Training
NGINX Plus Hands On Training NGINX Plus Hands On Training
NGINX Plus Hands On Training
 
NGINX DX webinar for Digital Campus (Japanese Webinar)
NGINX DX webinar for Digital Campus (Japanese Webinar)NGINX DX webinar for Digital Campus (Japanese Webinar)
NGINX DX webinar for Digital Campus (Japanese Webinar)
 
NGINX App Protect for Secure Coding Webinar
NGINX App Protect for Secure Coding WebinarNGINX App Protect for Secure Coding Webinar
NGINX App Protect for Secure Coding Webinar
 
NGINX Ingress Controller with WAF for Kubernetes
NGINX Ingress Controller with WAF for KubernetesNGINX Ingress Controller with WAF for Kubernetes
NGINX Ingress Controller with WAF for Kubernetes
 
API and Modern App Security for Microservices
API and Modern App Security for MicroservicesAPI and Modern App Security for Microservices
API and Modern App Security for Microservices
 
Wagby on Cloud Foundry
Wagby on Cloud FoundryWagby on Cloud Foundry
Wagby on Cloud Foundry
 
NGINX & OpenShift Webinar for Energy Sector
NGINX & OpenShift Webinar for Energy Sector NGINX & OpenShift Webinar for Energy Sector
NGINX & OpenShift Webinar for Energy Sector
 
祝 top-level project Apache Geode
祝 top-level project Apache Geode祝 top-level project Apache Geode
祝 top-level project Apache Geode
 
Introducing NGINX App Protect (Japanese Webinar)
Introducing NGINX App Protect (Japanese Webinar)Introducing NGINX App Protect (Japanese Webinar)
Introducing NGINX App Protect (Japanese Webinar)
 
講演資料: コスト最適なプライベートCDNを「NGINX」で実現するWeb最適化セミナー
講演資料: コスト最適なプライベートCDNを「NGINX」で実現するWeb最適化セミナー講演資料: コスト最適なプライベートCDNを「NGINX」で実現するWeb最適化セミナー
講演資料: コスト最適なプライベートCDNを「NGINX」で実現するWeb最適化セミナー
 
Circle of Code with Cloud Foundry
Circle of Code with Cloud FoundryCircle of Code with Cloud Foundry
Circle of Code with Cloud Foundry
 
NGINX + Ansible Automation Webinar (日本語版)
NGINX + Ansible Automation Webinar (日本語版)NGINX + Ansible Automation Webinar (日本語版)
NGINX + Ansible Automation Webinar (日本語版)
 
Fundamentals of Microservices Japanese Webinar
Fundamentals of Microservices Japanese WebinarFundamentals of Microservices Japanese Webinar
Fundamentals of Microservices Japanese Webinar
 
NGINX Back to Basic 2 Part 2 (Japanese Webinar)
NGINX Back to Basic 2 Part 2 (Japanese Webinar)NGINX Back to Basic 2 Part 2 (Japanese Webinar)
NGINX Back to Basic 2 Part 2 (Japanese Webinar)
 
Myfirst buildpack session_mgmt_20161201
Myfirst buildpack session_mgmt_20161201Myfirst buildpack session_mgmt_20161201
Myfirst buildpack session_mgmt_20161201
 
NGINX Solution for Digital Government Architecture
NGINX Solution for Digital Government ArchitectureNGINX Solution for Digital Government Architecture
NGINX Solution for Digital Government Architecture
 
「これからはじめるNGINX技術解説~基本編」セミナー (NGINX Back to Basic in JP)
「これからはじめるNGINX技術解説~基本編」セミナー (NGINX Back to Basic in JP)「これからはじめるNGINX技術解説~基本編」セミナー (NGINX Back to Basic in JP)
「これからはじめるNGINX技術解説~基本編」セミナー (NGINX Back to Basic in JP)
 
Artifact Driven CI/CD
Artifact Driven CI/CDArtifact Driven CI/CD
Artifact Driven CI/CD
 
Garden introduction for dea users public
Garden introduction for dea users   publicGarden introduction for dea users   public
Garden introduction for dea users public
 

Andere mochten auch

Cloudcamp Athens 2011 Presenting Heroku
Cloudcamp Athens 2011 Presenting HerokuCloudcamp Athens 2011 Presenting Heroku
Cloudcamp Athens 2011 Presenting HerokuSavvas Georgiou
 
Heroku Introduction: Scaling customer facing apps & services
Heroku Introduction: Scaling customer facing apps & servicesHeroku Introduction: Scaling customer facing apps & services
Heroku Introduction: Scaling customer facing apps & servicesJohn Stevenson
 
著作権、権利って難しい 技術者もこれだけは知っておきたい知識
著作権、権利って難しい 技術者もこれだけは知っておきたい知識著作権、権利って難しい 技術者もこれだけは知っておきたい知識
著作権、権利って難しい 技術者もこれだけは知っておきたい知識Preferred Networks
 
Introduction to Heroku - CCT London 2013
Introduction to Heroku - CCT London 2013Introduction to Heroku - CCT London 2013
Introduction to Heroku - CCT London 2013John Stevenson
 
(旧版) オープンソースライセンスの基礎と実務
(旧版) オープンソースライセンスの基礎と実務(旧版) オープンソースライセンスの基礎と実務
(旧版) オープンソースライセンスの基礎と実務Yutaka Kachi
 

Andere mochten auch (7)

Cloudcamp Athens 2011 Presenting Heroku
Cloudcamp Athens 2011 Presenting HerokuCloudcamp Athens 2011 Presenting Heroku
Cloudcamp Athens 2011 Presenting Heroku
 
Heroku Introduction: Scaling customer facing apps & services
Heroku Introduction: Scaling customer facing apps & servicesHeroku Introduction: Scaling customer facing apps & services
Heroku Introduction: Scaling customer facing apps & services
 
Heroku Update
Heroku UpdateHeroku Update
Heroku Update
 
著作権、権利って難しい 技術者もこれだけは知っておきたい知識
著作権、権利って難しい 技術者もこれだけは知っておきたい知識著作権、権利って難しい 技術者もこれだけは知っておきたい知識
著作権、権利って難しい 技術者もこれだけは知っておきたい知識
 
Introduction to Heroku - CCT London 2013
Introduction to Heroku - CCT London 2013Introduction to Heroku - CCT London 2013
Introduction to Heroku - CCT London 2013
 
Heroku Compliation Deck
Heroku Compliation DeckHeroku Compliation Deck
Heroku Compliation Deck
 
(旧版) オープンソースライセンスの基礎と実務
(旧版) オープンソースライセンスの基礎と実務(旧版) オープンソースライセンスの基礎と実務
(旧版) オープンソースライセンスの基礎と実務
 

Ähnlich wie Heroku Inside

コンテナ&サーバーレス:トレンドの考察と少し先の未来の展望
コンテナ&サーバーレス:トレンドの考察と少し先の未来の展望コンテナ&サーバーレス:トレンドの考察と少し先の未来の展望
コンテナ&サーバーレス:トレンドの考察と少し先の未来の展望Yoichi Kawasaki
 
Heroku Getting Started
Heroku Getting StartedHeroku Getting Started
Heroku Getting StartedAyumu Aizawa
 
やれる Heroku - Java アプリケーション開発編
やれる Heroku - Java アプリケーション開発編やれる Heroku - Java アプリケーション開発編
やれる Heroku - Java アプリケーション開発編Salesforce Developers Japan
 
楽天がCloud foundryを選んだ理由
楽天がCloud foundryを選んだ理由楽天がCloud foundryを選んだ理由
楽天がCloud foundryを選んだ理由Rakuten Group, Inc.
 
Applications made ​​with twelve factor-app
Applications made ​​with twelve factor-appApplications made ​​with twelve factor-app
Applications made ​​with twelve factor-appKodai Sakabe
 
Scalable Generator: Using Scala in SIer Business (ScalaMatsuri)
Scalable Generator: Using Scala in SIer Business (ScalaMatsuri)Scalable Generator: Using Scala in SIer Business (ScalaMatsuri)
Scalable Generator: Using Scala in SIer Business (ScalaMatsuri)TIS Inc.
 
Cloud Native Appのデプロイ先に関する考察:VM? コンテナ? aPaaS? or Serverless?
Cloud Native Appのデプロイ先に関する考察:VM? コンテナ? aPaaS? or Serverless?Cloud Native Appのデプロイ先に関する考察:VM? コンテナ? aPaaS? or Serverless?
Cloud Native Appのデプロイ先に関する考察:VM? コンテナ? aPaaS? or Serverless?Yosuke Arai
 
技術選択とアーキテクトの役割
技術選択とアーキテクトの役割技術選択とアーキテクトの役割
技術選択とアーキテクトの役割Toru Yamaguchi
 
Ruby コミュニティの文化に学ぶエンタープライズシステム開発の処方箋
Ruby コミュニティの文化に学ぶエンタープライズシステム開発の処方箋Ruby コミュニティの文化に学ぶエンタープライズシステム開発の処方箋
Ruby コミュニティの文化に学ぶエンタープライズシステム開発の処方箋Ayumu Aizawa
 
IBM Bluemix OpenWhisk: IBM Seminar 2016, Tokyo, Japan: The Future of Cloud Pr...
IBM Bluemix OpenWhisk: IBM Seminar 2016, Tokyo, Japan: The Future of Cloud Pr...IBM Bluemix OpenWhisk: IBM Seminar 2016, Tokyo, Japan: The Future of Cloud Pr...
IBM Bluemix OpenWhisk: IBM Seminar 2016, Tokyo, Japan: The Future of Cloud Pr...OpenWhisk
 
第2回HTML5企業Webシステム開発セミナー hifive紹介資料
第2回HTML5企業Webシステム開発セミナー hifive紹介資料第2回HTML5企業Webシステム開発セミナー hifive紹介資料
第2回HTML5企業Webシステム開発セミナー hifive紹介資料Osamu Shimoda
 
Force.comとモバイルでイベント管理実例
Force.comとモバイルでイベント管理実例Force.comとモバイルでイベント管理実例
Force.comとモバイルでイベント管理実例Salesforce Developers Japan
 
MySQL製品概要
MySQL製品概要MySQL製品概要
MySQL製品概要yoyamasaki
 

Ähnlich wie Heroku Inside (20)

コンテナ&サーバーレス:トレンドの考察と少し先の未来の展望
コンテナ&サーバーレス:トレンドの考察と少し先の未来の展望コンテナ&サーバーレス:トレンドの考察と少し先の未来の展望
コンテナ&サーバーレス:トレンドの考察と少し先の未来の展望
 
Social Enterprise Java Apps on Heroku Webinar
Social Enterprise Java Apps on Heroku WebinarSocial Enterprise Java Apps on Heroku Webinar
Social Enterprise Java Apps on Heroku Webinar
 
Ruby開発者のためのHeroku入門
Ruby開発者のためのHeroku入門Ruby開発者のためのHeroku入門
Ruby開発者のためのHeroku入門
 
Node.js開発者のためのHeroku入門
Node.js開発者のためのHeroku入門Node.js開発者のためのHeroku入門
Node.js開発者のためのHeroku入門
 
Force.com開発基礎
Force.com開発基礎Force.com開発基礎
Force.com開発基礎
 
Heroku Getting Started
Heroku Getting StartedHeroku Getting Started
Heroku Getting Started
 
やれる Heroku - Java アプリケーション開発編
やれる Heroku - Java アプリケーション開発編やれる Heroku - Java アプリケーション開発編
やれる Heroku - Java アプリケーション開発編
 
Python開発者のためのHeroku入門
Python開発者のためのHeroku入門Python開発者のためのHeroku入門
Python開発者のためのHeroku入門
 
楽天がCloud foundryを選んだ理由
楽天がCloud foundryを選んだ理由楽天がCloud foundryを選んだ理由
楽天がCloud foundryを選んだ理由
 
PHP開発者のためのHeroku入門
PHP開発者のためのHeroku入門PHP開発者のためのHeroku入門
PHP開発者のためのHeroku入門
 
Applications made ​​with twelve factor-app
Applications made ​​with twelve factor-appApplications made ​​with twelve factor-app
Applications made ​​with twelve factor-app
 
Scalable Generator: Using Scala in SIer Business (ScalaMatsuri)
Scalable Generator: Using Scala in SIer Business (ScalaMatsuri)Scalable Generator: Using Scala in SIer Business (ScalaMatsuri)
Scalable Generator: Using Scala in SIer Business (ScalaMatsuri)
 
Cloud Native Appのデプロイ先に関する考察:VM? コンテナ? aPaaS? or Serverless?
Cloud Native Appのデプロイ先に関する考察:VM? コンテナ? aPaaS? or Serverless?Cloud Native Appのデプロイ先に関する考察:VM? コンテナ? aPaaS? or Serverless?
Cloud Native Appのデプロイ先に関する考察:VM? コンテナ? aPaaS? or Serverless?
 
Oss事例紹介資料20141111 明日の認証会議 掲載用
Oss事例紹介資料20141111 明日の認証会議 掲載用Oss事例紹介資料20141111 明日の認証会議 掲載用
Oss事例紹介資料20141111 明日の認証会議 掲載用
 
技術選択とアーキテクトの役割
技術選択とアーキテクトの役割技術選択とアーキテクトの役割
技術選択とアーキテクトの役割
 
Ruby コミュニティの文化に学ぶエンタープライズシステム開発の処方箋
Ruby コミュニティの文化に学ぶエンタープライズシステム開発の処方箋Ruby コミュニティの文化に学ぶエンタープライズシステム開発の処方箋
Ruby コミュニティの文化に学ぶエンタープライズシステム開発の処方箋
 
IBM Bluemix OpenWhisk: IBM Seminar 2016, Tokyo, Japan: The Future of Cloud Pr...
IBM Bluemix OpenWhisk: IBM Seminar 2016, Tokyo, Japan: The Future of Cloud Pr...IBM Bluemix OpenWhisk: IBM Seminar 2016, Tokyo, Japan: The Future of Cloud Pr...
IBM Bluemix OpenWhisk: IBM Seminar 2016, Tokyo, Japan: The Future of Cloud Pr...
 
第2回HTML5企業Webシステム開発セミナー hifive紹介資料
第2回HTML5企業Webシステム開発セミナー hifive紹介資料第2回HTML5企業Webシステム開発セミナー hifive紹介資料
第2回HTML5企業Webシステム開発セミナー hifive紹介資料
 
Force.comとモバイルでイベント管理実例
Force.comとモバイルでイベント管理実例Force.comとモバイルでイベント管理実例
Force.comとモバイルでイベント管理実例
 
MySQL製品概要
MySQL製品概要MySQL製品概要
MySQL製品概要
 

Mehr von Ayumu Aizawa

Introducing Fn Project
Introducing Fn ProjectIntroducing Fn Project
Introducing Fn ProjectAyumu Aizawa
 
Heroku HTTP API Design Guide
Heroku HTTP API Design GuideHeroku HTTP API Design Guide
Heroku HTTP API Design GuideAyumu Aizawa
 
PaaSに適したアプリケーション設計 がもたらすメリット
PaaSに適したアプリケーション設計がもたらすメリットPaaSに適したアプリケーション設計がもたらすメリット
PaaSに適したアプリケーション設計 がもたらすメリットAyumu Aizawa
 
Heroku Changelog in 2013
Heroku Changelog in 2013Heroku Changelog in 2013
Heroku Changelog in 2013Ayumu Aizawa
 
Connected Products
Connected ProductsConnected Products
Connected ProductsAyumu Aizawa
 
Heroku Update Jul, 2013
Heroku Update Jul, 2013Heroku Update Jul, 2013
Heroku Update Jul, 2013Ayumu Aizawa
 
Heroku - Forget Servers!!
Heroku - Forget Servers!!Heroku - Forget Servers!!
Heroku - Forget Servers!!Ayumu Aizawa
 
Using Ruby2.0 on Heroku
Using Ruby2.0 on HerokuUsing Ruby2.0 on Heroku
Using Ruby2.0 on HerokuAyumu Aizawa
 
Enterprise Heroku for Java
Enterprise Heroku for JavaEnterprise Heroku for Java
Enterprise Heroku for JavaAyumu Aizawa
 
カスタムアプリケーションプラットフォーム Salesforce Heroku ~ ソーシャルアプリケーションを支える技術 ~
カスタムアプリケーションプラットフォーム Salesforce Heroku~ ソーシャルアプリケーションを支える技術 ~カスタムアプリケーションプラットフォーム Salesforce Heroku~ ソーシャルアプリケーションを支える技術 ~
カスタムアプリケーションプラットフォーム Salesforce Heroku ~ ソーシャルアプリケーションを支える技術 ~Ayumu Aizawa
 
Herokuのご紹介
Herokuのご紹介Herokuのご紹介
Herokuのご紹介Ayumu Aizawa
 
(Ruby + Agile) x Cloud = Like!
(Ruby + Agile) x Cloud = Like!(Ruby + Agile) x Cloud = Like!
(Ruby + Agile) x Cloud = Like!Ayumu Aizawa
 
Heroku Introduction
Heroku IntroductionHeroku Introduction
Heroku IntroductionAyumu Aizawa
 
Herokuのご紹介
Herokuのご紹介Herokuのご紹介
Herokuのご紹介Ayumu Aizawa
 
Building scalablewebapps
Building scalablewebappsBuilding scalablewebapps
Building scalablewebappsAyumu Aizawa
 
SIerのなかのRubyistが書くべき成果物の具体例
SIerのなかのRubyistが書くべき成果物の具体例SIerのなかのRubyistが書くべき成果物の具体例
SIerのなかのRubyistが書くべき成果物の具体例Ayumu Aizawa
 

Mehr von Ayumu Aizawa (20)

Introducing Fn Project
Introducing Fn ProjectIntroducing Fn Project
Introducing Fn Project
 
Heroku HTTP API Design Guide
Heroku HTTP API Design GuideHeroku HTTP API Design Guide
Heroku HTTP API Design Guide
 
PaaSに適したアプリケーション設計 がもたらすメリット
PaaSに適したアプリケーション設計がもたらすメリットPaaSに適したアプリケーション設計がもたらすメリット
PaaSに適したアプリケーション設計 がもたらすメリット
 
Heroku
HerokuHeroku
Heroku
 
Heroku Changelog in 2013
Heroku Changelog in 2013Heroku Changelog in 2013
Heroku Changelog in 2013
 
Connected Products
Connected ProductsConnected Products
Connected Products
 
Heroku Update Jul, 2013
Heroku Update Jul, 2013Heroku Update Jul, 2013
Heroku Update Jul, 2013
 
Heroku - Forget Servers!!
Heroku - Forget Servers!!Heroku - Forget Servers!!
Heroku - Forget Servers!!
 
Heroku Postgres
Heroku PostgresHeroku Postgres
Heroku Postgres
 
Using Ruby2.0 on Heroku
Using Ruby2.0 on HerokuUsing Ruby2.0 on Heroku
Using Ruby2.0 on Heroku
 
Enterprise Heroku for Java
Enterprise Heroku for JavaEnterprise Heroku for Java
Enterprise Heroku for Java
 
Heroku
Heroku Heroku
Heroku
 
カスタムアプリケーションプラットフォーム Salesforce Heroku ~ ソーシャルアプリケーションを支える技術 ~
カスタムアプリケーションプラットフォーム Salesforce Heroku~ ソーシャルアプリケーションを支える技術 ~カスタムアプリケーションプラットフォーム Salesforce Heroku~ ソーシャルアプリケーションを支える技術 ~
カスタムアプリケーションプラットフォーム Salesforce Heroku ~ ソーシャルアプリケーションを支える技術 ~
 
Herokuのご紹介
Herokuのご紹介Herokuのご紹介
Herokuのご紹介
 
(Ruby + Agile) x Cloud = Like!
(Ruby + Agile) x Cloud = Like!(Ruby + Agile) x Cloud = Like!
(Ruby + Agile) x Cloud = Like!
 
Heroku Introduction
Heroku IntroductionHeroku Introduction
Heroku Introduction
 
Herokuのご紹介
Herokuのご紹介Herokuのご紹介
Herokuのご紹介
 
Building scalablewebapps
Building scalablewebappsBuilding scalablewebapps
Building scalablewebapps
 
Heroku in Japan
Heroku in JapanHeroku in Japan
Heroku in Japan
 
SIerのなかのRubyistが書くべき成果物の具体例
SIerのなかのRubyistが書くべき成果物の具体例SIerのなかのRubyistが書くべき成果物の具体例
SIerのなかのRubyistが書くべき成果物の具体例
 

Kürzlich hochgeladen

プレイマットのパターン生成支援ツールの評価
プレイマットのパターン生成支援ツールの評価プレイマットのパターン生成支援ツールの評価
プレイマットのパターン生成支援ツールの評価sugiuralab
 
新人研修のまとめ 2024/04/12の勉強会で発表されたものです。
新人研修のまとめ       2024/04/12の勉強会で発表されたものです。新人研修のまとめ       2024/04/12の勉強会で発表されたものです。
新人研修のまとめ 2024/04/12の勉強会で発表されたものです。iPride Co., Ltd.
 
20240412_HCCJP での Windows Server 2025 Active Directory
20240412_HCCJP での Windows Server 2025 Active Directory20240412_HCCJP での Windows Server 2025 Active Directory
20240412_HCCJP での Windows Server 2025 Active Directoryosamut
 
Amazon SES を勉強してみる その12024/04/12の勉強会で発表されたものです。
Amazon SES を勉強してみる その12024/04/12の勉強会で発表されたものです。Amazon SES を勉強してみる その12024/04/12の勉強会で発表されたものです。
Amazon SES を勉強してみる その12024/04/12の勉強会で発表されたものです。iPride Co., Ltd.
 
プレイマットのパターン生成支援ツール
プレイマットのパターン生成支援ツールプレイマットのパターン生成支援ツール
プレイマットのパターン生成支援ツールsugiuralab
 
IoT in the era of generative AI, Thanks IoT ALGYAN.pptx
IoT in the era of generative AI, Thanks IoT ALGYAN.pptxIoT in the era of generative AI, Thanks IoT ALGYAN.pptx
IoT in the era of generative AI, Thanks IoT ALGYAN.pptxAtomu Hidaka
 
PHP-Conference-Odawara-2024-04-000000000
PHP-Conference-Odawara-2024-04-000000000PHP-Conference-Odawara-2024-04-000000000
PHP-Conference-Odawara-2024-04-000000000Shota Ito
 

Kürzlich hochgeladen (7)

プレイマットのパターン生成支援ツールの評価
プレイマットのパターン生成支援ツールの評価プレイマットのパターン生成支援ツールの評価
プレイマットのパターン生成支援ツールの評価
 
新人研修のまとめ 2024/04/12の勉強会で発表されたものです。
新人研修のまとめ       2024/04/12の勉強会で発表されたものです。新人研修のまとめ       2024/04/12の勉強会で発表されたものです。
新人研修のまとめ 2024/04/12の勉強会で発表されたものです。
 
20240412_HCCJP での Windows Server 2025 Active Directory
20240412_HCCJP での Windows Server 2025 Active Directory20240412_HCCJP での Windows Server 2025 Active Directory
20240412_HCCJP での Windows Server 2025 Active Directory
 
Amazon SES を勉強してみる その12024/04/12の勉強会で発表されたものです。
Amazon SES を勉強してみる その12024/04/12の勉強会で発表されたものです。Amazon SES を勉強してみる その12024/04/12の勉強会で発表されたものです。
Amazon SES を勉強してみる その12024/04/12の勉強会で発表されたものです。
 
プレイマットのパターン生成支援ツール
プレイマットのパターン生成支援ツールプレイマットのパターン生成支援ツール
プレイマットのパターン生成支援ツール
 
IoT in the era of generative AI, Thanks IoT ALGYAN.pptx
IoT in the era of generative AI, Thanks IoT ALGYAN.pptxIoT in the era of generative AI, Thanks IoT ALGYAN.pptx
IoT in the era of generative AI, Thanks IoT ALGYAN.pptx
 
PHP-Conference-Odawara-2024-04-000000000
PHP-Conference-Odawara-2024-04-000000000PHP-Conference-Odawara-2024-04-000000000
PHP-Conference-Odawara-2024-04-000000000
 

Heroku Inside

  • 5. Bar
  • 7. Heroku Inside Ayumu Aizawa Heroku Inc., Developer Marketing Advocate
  • 8. Safe harbor: Safe harbor statement under the Private Securities Litigation Reform Act of 1995: This presentation may contain forward-looking statements that involve risks, uncertainties, and assumptions. If any such 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. All statements other than statements of historical fact could be deemed forward- looking, including any projections of product or service availability, subscriber growth, earnings, revenues, or other financial items and any statements regarding strategies or plans of management for future operations, statements of belief, any statements concerning new, planned, or upgraded services or technology developments and customer contracts or use of our services. The risks and uncertainties referred to above include – but are not limited to – risks associated with developing and delivering new functionality for our service, new products and services, our new business model, our past operating losses, possible fluctuations in our operating results and rate of growth, interruptions or delays in our Web hosting, breach of our security measures, the outcome of intellectual property and other litigation, risks associated with possible mergers and acquisitions, the immature market in which we operate, our relatively limited operating history, our ability to expand, retain, and motivate our employees and manage our growth, new releases of our service and successful customer deployment, our limited history reselling non-salesforce.com products, and utilization and selling to larger enterprise customers. Further information on potential factors that could affect the financial results of salesforce.com, inc. is included in our annual report on Form 10-Q for the most recent fiscal quarter ended April 30, 2011. This documents and others containing important disclosures are available on the SEC Filings section of the Investor Information section of our Web site. 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 the purchase decisions based upon features that are currently available. Salesforce.com, inc. assumes no obligation and does not intend to update these forward-looking statements.
  • 9. 自己紹介 Ayumu Aizawa Heroku Evangelist @ Salesforce.com Developer Marketing Advocate @ Heroku twitter: @ayumin Fb: www.facebook.com/ayumu.aizawa
  • 11. What is Heroku? Why Heroku? Who are using Heroku? How to use Heroku? When should I try Heroku? Where are resources of Heroku?
  • 12. What is Heroku? • Herokuは、Ruby、Java、Python、Scala、 Node.js、Clojure など、複数のプログラミング 言語・フレームワークに対応した、クラウドアプリケ ーションの開発を支援する PaaS(Platform- as-a-Service)です。
  • 13. What is Heroku Agile Polyglot Tool 24h 2-4w
  • 14. Why Heroku? • Herokuは、優れた開発者の生産性を 最大化するプラットフォーム。  サーバーの存在を意識しなくてよい  スケーラビリティについて考慮しなくてよい  プロセス単位で可視化できる  信頼性・可用性の高いアーキテクチャ  アドオンシステムによる機能拡張
  • 15. The 12 Factor App Herokuは良いWebサービスをつくるための 方法論をカバーしている。 • Codebase • Port binding • Dependencies • Concurrency • Config • Disposability • Backing Services • Dev/prod parity • Build, release, run • Logs • Processes • Admin processes http://www.12factor.net
  • 16. Sample App (sinatra) $ ls Gemfile Procfile app.rb config.ru $ cat Gemfile source ‘http://rubygems.org’ gem ‘sinatra’ gem ‘thin’ $ cat config.ru require ‘./app.rb’ run Sinatra::Application $ cat app.rb require ‘sinatra’ get ‘/’ do “hello world” end $ cat Procfile web: bundle exec thin –p $PORT –e $RACK_ENV start
  • 17. Deploy to Heroku $ git init Initialized empty Git repository in /path/to/app/.git/ $ git add –A $ git commit –m ‘initial commit’ [master (root-commit) 5cf507d] initial commit 4 files changed, 14 insertions(+), 0 deletions(-) create mode 100644 Gemfile create mode 100644 Procfile create mode 100644 app.rb create mode 100644 config.ru $ heroku apps:create –s cedar http://growing-summer-1456.herokuapp.com/ | git@heroku.com … Git remote heroku added $ git push herokumaster
  • 18. How to use Heroku? • Herokuクライアントツールをインストール  Heroku Toolbelt https://toolbelt.heroku.com/
  • 19. Who are using Heroku? • コンシューマー向けWebアプリケーション • ソーシャル・メディア連携サービス • 動画配信サービス • スマートフォンゲームのサーバーサイド
  • 20. When should I try Heroku? Now! http://www.heroku.com
  • 21. Where are resources of Heroku? • 導入事例 sucsess.heroku.com • プランと価格 heroku.com/pricing • 技術資料、サポート devcenter.heroku.com • ニュース news.heroku.com • オフィシャルブログ blog.heroku.com • ユーザーコミュニティ www.facebook.com/herokujp • 困ったときは ayumin@heroku.com
  • 23. Architecture Overview User Elastic Load barancer Control Surface APIs Dyno Manifold Developer Logprex
  • 24. Architecture Overview Dyno • Herokuアーキテクチャを理解するために、 最も重要な要素のひとつ
  • 25. Dyno
  • 26. What is Dyno? Dyno Features How’s Dyno created
  • 27. What is Dyno 通常のサーバーにおけるプロセスとほぼ同じ。 Batch Process Web Process Background Process いろいろな役割(Process Type)のDynoがある。
  • 28. What is Dyno • ひとつひとつのDynoには完全な実行環境が含まれる。 • アプリケーション本体 • メモリ • 設定(環境変数など) • 依存ライブラリ • アプリケーション実行環境 (アプリケーション・コンテナなど)
  • 29. Dyno Features • Elasticity 柔軟な拡張・縮退が可能 • Intelligent Routing インテリジェントな経路選択 • Process Management プロセス管理 • Distribution & Redundancy 分散処理と冗長化
  • 30. Elasticity • プロセス単位での拡張、縮退制御が可能 heroku ps:scale web=5
  • 31. Elasticity • プロセス単位での拡張、縮退制御が可能 heroku ps:scale web=1
  • 32. Intelligent Routing • Routing Mesh による適切な経路選択
  • 33. Process management • 不安定になったDynoは自動的に再起動される
  • 34. Process management • 不安定になったDynoは自動的に再起動される
  • 35. Distribution & Redundancy • それぞれのDynoはAWS上に分散配置され、 完全に独立したリソースを使用している。
  • 37. Procfile • Dyno = アプリケーションの実行プロセス • アプリケーションをリリースした際に、 Procfileの定義に基づいて生成される web: bundle exec rails server -p $PORT -e $RACK_ENV worker: bundle exec rake job:work web worker
  • 39. Slug • Slug = Dynoの元になるオブジェクト • アプリケーションコードをpushした際に 各アプリケーションごとに生成される
  • 40. Slug compiler • pushされたコードからSlugを生成する。 • 言語・フレームワーク独特のファイル有無によって 実行環境を判断。  -buildpackオプションにより明示的に指定することも可能。
  • 42. Conclusion • Herokuはアプリケーション開発者の 生産性を高めることにフォーカスしたPaaS。 • アプリケーションの全ての動作環境を含む Dyno単位でプロセス制御が可能。 • デプロイされたコードはSlugオブジェクトに 変換され、アプリケーションごとに永続化さ れる。
  • 43. When should I try Heroku? Now! http://www.heroku.com
  • 44. Where are resources of Heroku? • 導入事例 sucsess.heroku.com • プランと価格 heroku.com/pricing • 技術資料、サポート devcenter.heroku.com • ニュース news.heroku.com • オフィシャルブログ blog.heroku.com • ユーザーコミュニティ www.facebook.com/herokujp • 困ったときは ayumin@heroku.com