Who NeedsContainers Anyway?    Dmitry Buzdin Java User Group Latvia
Today we will talkabout containers...
Java is all aboutcontainers, right?
Lightweight Container
Heavyweight Container
EnterpriseContainer
Who usescontainers?
Why do you use   them?
I use Container         Because:•   <Reason 1>•   <Reason 2>•   <Reason 3>•   <Reason 4>•   <Reason 5>•   <Reason 6>
Data and Code Integrity Centralized Configuration Security Performance Total Cost of Ownership Transaction Supporthttp://en...
Thread ManagementLog ManagementHot RedeploysApplication MonitoringDistributed EnvironmentClusteringMultiple Apps on one Se...
What if you have only one application?
multiple appscentralized configshot-redeploysdistributed environment
Can I live without the      container?
Should I write my own    Web Server?
Perhaps not.
Http Server OnlySupports Servlets  Runs Spring
Used in Play! and Elastic Search
Grizzly
Supports Servlets   and more...
Simple - JettyExtensible - Netty Oracle - Grizzly
We can start an appwithout the container!        ... so what?
SimplicityFlexibilityPerformanceDevelopment Speed
Why now?
BrowserGET/POST                  HTML             Server       JSP            Servlet
Browser            JQueryGET/POST             JSON           Server             REST
BrowserGET             HTML      Server
Browser                AJAXGET   JSON      WEB SOCKETS       Server
1 user != 1 thread
BrowserGET   JSON
BrowserQUEUE
Java NIOEvent-Driven      Asynchronous           Non-Blocking
Back to Client-Server
Your app should  run in Jetty
The world is async
JAR      Ignore JavaEE*                 * if you can
Questions
Referenceshttp://jetty.codehaus.org/jetty/http://netty.io/http://grizzly.java.net/
Recognized these words?         Write todmitry@livesheets.com    for the next steps
Do We Need Containers Anyway?
Do We Need Containers Anyway?
Do We Need Containers Anyway?
Do We Need Containers Anyway?
Upcoming SlideShare
Loading in...5
×

Do We Need Containers Anyway?

7,602

Published on

Published in: Technology

Do We Need Containers Anyway?

  1. 1. Who NeedsContainers Anyway? Dmitry Buzdin Java User Group Latvia
  2. 2. Today we will talkabout containers...
  3. 3. Java is all aboutcontainers, right?
  4. 4. Lightweight Container
  5. 5. Heavyweight Container
  6. 6. EnterpriseContainer
  7. 7. Who usescontainers?
  8. 8. Why do you use them?
  9. 9. I use Container Because:• <Reason 1>• <Reason 2>• <Reason 3>• <Reason 4>• <Reason 5>• <Reason 6>
  10. 10. Data and Code Integrity Centralized Configuration Security Performance Total Cost of Ownership Transaction Supporthttp://en.wikipedia.org/wiki/Application_server
  11. 11. Thread ManagementLog ManagementHot RedeploysApplication MonitoringDistributed EnvironmentClusteringMultiple Apps on one Server
  12. 12. What if you have only one application?
  13. 13. multiple appscentralized configshot-redeploysdistributed environment
  14. 14. Can I live without the container?
  15. 15. Should I write my own Web Server?
  16. 16. Perhaps not.
  17. 17. Http Server OnlySupports Servlets Runs Spring
  18. 18. Used in Play! and Elastic Search
  19. 19. Grizzly
  20. 20. Supports Servlets and more...
  21. 21. Simple - JettyExtensible - Netty Oracle - Grizzly
  22. 22. We can start an appwithout the container! ... so what?
  23. 23. SimplicityFlexibilityPerformanceDevelopment Speed
  24. 24. Why now?
  25. 25. BrowserGET/POST HTML Server JSP Servlet
  26. 26. Browser JQueryGET/POST JSON Server REST
  27. 27. BrowserGET HTML Server
  28. 28. Browser AJAXGET JSON WEB SOCKETS Server
  29. 29. 1 user != 1 thread
  30. 30. BrowserGET JSON
  31. 31. BrowserQUEUE
  32. 32. Java NIOEvent-Driven Asynchronous Non-Blocking
  33. 33. Back to Client-Server
  34. 34. Your app should run in Jetty
  35. 35. The world is async
  36. 36. JAR Ignore JavaEE* * if you can
  37. 37. Questions
  38. 38. Referenceshttp://jetty.codehaus.org/jetty/http://netty.io/http://grizzly.java.net/
  39. 39. Recognized these words? Write todmitry@livesheets.com for the next steps
  1. A particular slide catching your eye?

    Clipping is a handy way to collect important slides you want to go back to later.

×