Who Are You Anyway? Identity, a Security and Life Question We All Need to Ask
Do We Need Containers Anyway?
-
Upload
neueda -
Category
Technology
-
view
6.594 -
download
0
Transcript of Do We Need Containers Anyway?
Who Needs Containers Anyway?
Dmitry BuzdinJava User Group Latvia
Today we will talk about containers...
Java is all about containers, right?
Lightweight Container
Heavyweight Container
Enterprise Container
Who uses containers?
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 Support
http://en.wikipedia.org/wiki/Application_server
Thread Management
Log Management
Hot Redeploys
Application Monitoring
Distributed Environment
Clustering
Multiple Apps on one Server
What if you have only one application?
multiple apps
centralized configs
hot-redeploys
distributed 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 Servletsand more...
Simple - Jetty
Extensible - Netty
Oracle - Grizzly
We can start an app without the container!
... so what?
Simplicity
Flexibility
Performance
Development Speed
Why now?
Browser
ServerJSP Servlet
HTMLGET/POST
Browser
ServerREST
JSONGET/POST
JQuery
Browser
Server
HTMLGET
Browser
Server
JSONGETAJAXWEB SOCKETS
1 user != 1 thread
Browser
JSONGET
Browser
QUEUE
Java NIO
Event-Driven
Non-Blocking
Asynchronous
Back to Client-Server
Your app should run in Jetty
The world is async
Ignore JavaEE** if you can
JAR
Questions
References
http://jetty.codehaus.org/jetty/
http://netty.io/
http://grizzly.java.net/
Recognized these words?Write to
[email protected] the next steps