Building a Java Play! App on Heroku using
Upcoming SlideShare
Loading in...5

Building a Java Play! App on Heroku using






Total Views
Views on SlideShare
Embed Views



0 Embeds 0

No embeds



Upload Details

Uploaded via as Adobe PDF

Usage Rights

© All Rights Reserved

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
Post Comment
Edit your comment

Building a Java Play! App on Heroku using Building a Java Play! App on Heroku using Presentation Transcript

  • Building a Java Play! App on Herokuusing Database.comThe subtitle goes hereCory McIlroy, Appirio, Community Architect@coryio
  • 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, 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 products, and utilization and selling to larger enterprise customers. Further information on potential factors that could affect the financial results of, inc. is included in our annual report on Form 10-Q for the most recent fiscal quarter ended July 31, 2012. 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., inc. assumes no obligation and does not intend to update these forward-looking statements.
  • Appirio Helps Enterprises Power Their Business withPublic Cloud Solutions Helping Enterprises Become: Efficient Effective Agile Social Mobile Technology-enabled professional services, supported by 500 cloud experts and a 50,000+ cloud developer community 5 years, 300 enterprises, 1.5M users moved to the cloud
  • Agenda  Introductions  Describe the sample app  Quick intro to Heroku and Play  Walkthrough: Heroku/Play  Walkthrough:  Q&A break  Scala in Play teaser
  • Introductions  Who I am • Cory McIlroy (yes, like the golfer, but with a C) • Live in St. Louis, MO • Work at Appirio (, Heroku, CloudSpokes)  Who You are • Java and/or developers? • Admins, Architects, Managers interested in the platform?
  • Consider this example....Softball League Manager- an Existing Application.  Comes with all the great things about • Security and Sharing • Reporting Roster Management • Simple but powerful data management • Extensibility Stats Tracker League Fees League Rankings
  • Extending the App with HerokuWe want some new features...  Public “Leaderboard” • High Volume, especially during playoff season • Need elastic platform, heavy caching  Manager “Sub Finder" app • Fast filter tool • Mobile-friendly • Fetch contact info from
  • How They Fit TogetherTwo touchpoints between the Heroku app and the force.comREST API, slightly different flavors.  Fetch Free-Agents List • Standard "query" REST call • "Index" into Redis for filtering  Fetch Standings • custom apex REST Service • "pass through" JSON
  • Heroku at a GlanceA scalable polyglot platform in the cloud  Scalable & Flexible • Datastore options, right tool for the job • Other Heroku addons • Polyglot support  Better cost model for this application • Scale up/down seasonally  Utilize our java expertise
  • Why the Play Framework? Play 2.0 is a high-productivity Java and Scala web applicationA web framework for the asynchronous age framework that integrates the components and APIs you need for modern web application development.  Light, Fast, Scalable Play is based on a lightweight, stateless, web-friendly architecture  Easy to work with => Dev Productivity and features predictable and minimal resource consumption (CPU, memory, threads) for highly-scalable applications thanks  Designed towards fully Async HTTP model to its reactive model, based on Iteratee IO. --  Type checking, even in routes & view templates  Comprehensive, extensible build system  Powerful, Scala-based templating engine
  • Leaderboard overview
  • Sub Finder overview
  • Heroku Code Walkthrough  Directory Structure  Routes File  Build.scala (deps)  OAuth helper  Controller(s)  Model/Managers  REST helper (“Jesper”)  demo: play compile / git push
  • Code Walkthrough  REST service (composition)  OAuth config
  • Resources  