32
□ ◇ ○ Heroku Update Ayumu Aizawa ayumin Developer Marketing, Heroku, Inc. 4th Apr, 2013 Developer’s Meetup #8 at Tokyo, Japan

Heroku Update

Embed Size (px)

DESCRIPTION

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

Citation preview

Page 1: 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

Page 2: Heroku Update

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

Page 3: Heroku Update

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.

Page 4: Heroku Update
Page 5: Heroku Update
Page 6: Heroku Update

Heroku Postgres

Page 7: Heroku Update

Postgres 9.2now default

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

Page 8: Heroku Update

New featuresIndex-only scan

Streaming replication improvementJSON datatypeRange Type

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

Page 9: Heroku Update
Page 10: Heroku Update

Double Memory

Page 11: Heroku Update

- 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

Page 12: Heroku Update
Page 13: Heroku Update

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

Java heap size

Page 14: Heroku Update

heroku beta programbeta.heroku.com

Page 15: Heroku Update
Page 16: Heroku Update

Identity

Page 17: Heroku Update
Page 18: Heroku Update

Heroku OAuth(experimental)

Page 19: Heroku Update

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

Page 20: Heroku Update

$ 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

Page 21: Heroku Update

heroku-bouncer heroku/heroku-bouncer

※bouncer : 用心棒

Page 22: Heroku Update

$ 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

Page 23: Heroku Update

$ 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

Page 24: Heroku Update

ayumin-oauth-sample.com

bit.ly/10vn3kY

Page 25: Heroku Update

ayumin-oauth-sample.com

Page 26: Heroku Update
Page 27: Heroku Update
Page 28: Heroku Update
Page 30: Heroku Update

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

Heroku id becomes more social !!!

Conclusion

Page 31: Heroku Update

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

Buy Heroku book now!

Conclusion(cont.)

Page 32: Heroku Update

www.heroku.com

Thank you!