Heroku Update

Post on 08-May-2015

4.474 views 5 download

description

http://herokujp.doorkeeper.jp/events/3405

Transcript of Heroku Update

□ ◇ ○Heroku Update

Ayumu Aizawaayumin

Developer Marketing, Heroku, Inc.4th Apr, 2013

Deve

lope

r’s M

eetu

p #8

at To

kyo,

Japa

n

『HerokuではじめるRailsプログラミング入門』www.amazon.co.jp/dp/4797371838

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 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, 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, 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-K for the most recent fiscal quarter ended July 31, 2011. This document and others 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 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.

Heroku Postgres

Postgres 9.2now default

heroku addons:add heroku-postgresql:dev--version=9.2

New featuresIndex-only scan

Streaming replication improvementJSON datatypeRange Type

http://wiki.postgresql.org/wiki/What's_new_in_PostgreSQL_9.2

Double Memory

- vertical scale approach

- able to deploy more big Apps (e.g. Java)

- able to run more # of thread (e.g. unicorn, Puma)

2X Dyno available (beta)

heroku ps:resize web=2X

https://devcenter.heroku.com/articles/dyno-size

$ cat Procfileweb: java -Xmx1024m -cp target/classes:target/dependency/* HelloWorld

Java heap size

heroku beta programbeta.heroku.com

Identity

Heroku OAuth(experimental)

OAuth SpecificationOAuth1.0 - RFC5840 / OAuth2.0 - RFC 6749

$ curl -i -n -X POST \> -d "client[name]=oauth-sample&client[redirect_uri]=http://localhost:5000/auth/heroku/callback" \> https://api.heroku.com/oauth/clientsHTTP/1.1 201 Created...{ "id":"cafaa8bcbd7a900023bfb70d", "name":"oauth-sample", "description":null, "redirect_uri":"http://localhost:5000/auth/heroku/callback", "secret":"368b70ff11389ebb73634c8b5860827a4a9dc10fc6db0e05", "trusted":false}

Create OAuthClientnote: You can NOT create OAuthClient yet, this is under development

heroku-bouncer heroku/heroku-bouncer

※bouncer : 用心棒

$ cat .envHEROKU_OAUTH_ID=cafaa8bc...HEROKU_OAUTH_SECRET=368b7...

$ cat Gemfilesource :rubygemsgem 'heroku-bouncer'gem 'heroku-api'gem 'sinatra'gem 'thin'

$ cat config.ru require 'heroku/bouncer'require './app'

use Heroku::Bouncer, expose_token: truerun App

$ cat Procfileweb: bundle exec thin start -p $PORT

Consumer App

$ cat app.rbrequire 'heroku-api'

class App < Sinatra::Base

get '/' do api = Heroku::API.new(:api_key => request.env["bouncer.token"]) apps = api.get_apps.body “You have #{apps.size} app(s).” end

end

request.env

ayumin-oauth-sample.com

bit.ly/10vn3kY

ayumin-oauth-sample.com

Heroku Postgres came more better !2X Dyno improves to apps performance !!

Heroku id becomes more social !!!

Conclusion

Follow @herokujp on twitter!Like! facebook.com/herokujp!

Buy Heroku book now!

Conclusion(cont.)

www.heroku.com

Thank you!