Heroku for Java

1,730 views

Published on

Presentation held for Miles internally. Norwegian only.

Published in: Technology, News & Politics
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total views
1,730
On SlideShare
0
From Embeds
0
Number of Embeds
12
Actions
Shares
0
Downloads
5
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

Heroku for Java

  1. 1. Heroku for Java<br />Miles Session September 2011<br />Anders Sveen<br />
  2. 2. Heroku<br />$$$<br />
  3. 3. Cloud<br />Software<br />IaaS<br />PaaS<br />SaaS<br />
  4. 4. IaaS<br />SaaS<br />PaaS<br />
  5. 5. Fleksibilitet<br />Trafikkvariasjoner<br />Utvikling<br />Miljøer<br />Forskning<br />
  6. 6. Vs.<br />
  7. 7. Dynos<br />postgresql<br />Kjører JVM<br />Gratis<br />git push<br />Polyglot<br />Maven<br />
  8. 8. public static void main(String[] args) throws Exception{ <br /> Server server = new Server(Integer.valueOf(System.getenv("PORT"))); ServletContextHandlercontext = new ServletContextHandler(ServletContextHandler.SESSIONS); context.setContextPath("/"); <br />server.setHandler(context);<br />context.addServlet(new ServletHolder(new HelloWorld()),"/*"); server.start();<br />server.join();<br />}<br /><dependencies><br /><dependency><br /> <groupId>org.eclipse.jetty</groupId><br /> <artifactId>jetty-servlet</artifactId><br /> <version>7.4.4.v20110707</version><br /></dependency><br /><dependency><br /> <groupId>javax.servlet</groupId><br /> <artifactId>servlet-api</artifactId><br /> <version>2.5</version><br /></dependency><br /></dependencies><br />web: shdoit-webapp/target/bin/webapp<br />
  9. 9. Fare for regn?<br />
  10. 10. Dårligeklær…?<br />
  11. 11. Skiftermaskin<br />Timeout<br />Én request avgangen<br />Ikkenoefilsystem<br />
  12. 12. Begrenssessionstørrelse<br />REST<br />Unngå session<br />Lettvektscontainer<br />Uavhengigskalering<br />
  13. 13. Lekeplass<br /><ul><li>http://bikestatus.herokuapp.com/stations
  14. 14. http://mappami.org
  15. 15. http://morning-ice-8535.herokuapp.com/</li>

×