Heroku Update

6,357 views

Published on

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

Published in: Technology

Heroku Update

  1. Developer’s Meetup #8 at Tokyo, Japan □◇○ Heroku Update Ayumu Aizawa ayumin Developer Marketing, Heroku, Inc. 4th Apr, 2013
  2. 『HerokuではじめるRailsプログラミング入門』 www.amazon.co.jp/dp/4797371838
  3. Safe harborSafe harbor statement under the Private Securities Litigation Reform Act of 1995: This presentation may contain forward-lookingstatements that involve risks, uncertainties, and assumptions. If any such uncertainties materialize or if any of the assumptionsproves 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 anyprojections of subscriber growth, earnings, revenues, or other financial items and any statements regarding strategies or plans ofmanagement for future operations, statements of belief, any statements concerning new, planned, or upgraded services ortechnology 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 newfunctionality for our service, our new business model, our past operating losses, possible fluctuations in our operating results andrate of growth, interruptions or delays in our Web hosting, breach of our security measures, risks associated with possible mergersand acquisitions, the immature market in which we operate, our relatively limited operating history, our ability to expand, retain, andmotivate our employees and manage our growth, new releases of our service and successful customer deployment, our limitedhistory reselling non-salesforce.com products, and utilization and selling to larger enterprise customers. Further information onpotential factors that could affect the financial results of salesforce.com, inc. is included in our annual report on Form 10-K for themost recent fiscal quarter ended July 31, 2011. This document and others are available on the SEC Filings section of the InvestorInformation section of our Web site.Any unreleased services or features referenced in this or other press releases or public statements are not currently available andmay not be delivered on time or at all. Customers who purchase our services should make the purchase decisions based uponfeatures that are currently available. Salesforce.com, inc. assumes no obligation and does not intend to update these forward-looking statements.
  4. Heroku Postgres
  5. Postgres 9.2 now defaultheroku addons:add heroku-postgresql:dev --version=9.2
  6. New features Index-only scan Streaming replication improvement JSON datatype Range Typehttp://wiki.postgresql.org/wiki/Whats_new_in_PostgreSQL_9.2
  7. Double Memory
  8. 2X Dyno available (beta) heroku ps:resize web=2X https://devcenter.heroku.com/articles/dyno-size- vertical scale approach- able to deploy more big Apps (e.g. Java)- able to run more # of thread (e.g. unicorn, Puma)
  9. Java heap size$ cat Procfileweb: java -Xmx1024m -cp target/classes:target/dependency/* HelloWorld
  10. heroku beta program beta.heroku.com
  11. Identity
  12. Heroku OAuth (experimental)
  13. OAuth SpecificationOAuth1.0 - RFC5840 / OAuth2.0 - RFC 6749
  14. Create OAuthClient note: You can NOT create OAuthClient yet, this is under development$ 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}
  15. heroku-bouncer heroku/heroku-bouncer※bouncer : 用心棒
  16. Consumer App$ cat .env $ cat config.ruHEROKU_OAUTH_ID=cafaa8bc... require heroku/bouncerHEROKU_OAUTH_SECRET=368b7... require ./app use Heroku::Bouncer, expose_token: true$ cat Gemfile run Appsource :rubygemsgem heroku-bouncergem heroku-apigem sinatra $ cat Procfilegem thin web: bundle exec thin start -p $PORT
  17. request.env$ cat app.rbrequire heroku-apiclass 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).” endend
  18. ayumin-oauth-sample.com bit.ly/10vn3kY
  19. ayumin-oauth-sample.com
  20. ayumin/heroku-oauth-sample
  21. Conclusion Heroku Postgres came more better !2X Dyno improves to apps performance !! Heroku id becomes more social !!!
  22. Conclusion(cont.)Follow @herokujp on twitter!Like! facebook.com/herokujp! Buy Heroku book now!
  23. Thank you! www.heroku.com

×