Heroku for Java

  • Published on
    12-May-2015

  • View
    1.490

  • Download
    0

Embed Size (px)

DESCRIPTION

Presentation held for Miles internally. Norwegian only.

Transcript

  • 1.Heroku for Java
    Miles Session September 2011
    Anders Sveen

2. Heroku
$$$
3. Cloud
Software
IaaS
PaaS
SaaS
4. IaaS
SaaS
PaaS
5. Fleksibilitet
Trafikkvariasjoner
Utvikling
Miljer
Forskning
6. Vs.
7. Dynos
postgresql
Kjrer JVM
Gratis
git push
Polyglot
Maven
8. public static void main(String[] args) throws Exception{
Server server = new Server(Integer.valueOf(System.getenv("PORT"))); ServletContextHandlercontext = new ServletContextHandler(ServletContextHandler.SESSIONS); context.setContextPath("/");
server.setHandler(context);
context.addServlet(new ServletHolder(new HelloWorld()),"/*"); server.start();
server.join();
}


org.eclipse.jetty
jetty-servlet
7.4.4.v20110707


javax.servlet
servlet-api
2.5


web: shdoit-webapp/target/bin/webapp
9. Fare for regn?
10. Drligeklr?
11. Skiftermaskin
Timeout
n request avgangen
Ikkenoefilsystem
12. Begrenssessionstrrelse
REST
Unng session
Lettvektscontainer
Uavhengigskalering
13. Lekeplass

  • http://bikestatus.herokuapp.com/stations

14. http://mappami.org 15. http://morning-ice-8535.herokuapp.com/