Hacker Newsnew | past | comments | ask | show | jobs | submitlogin
Announcing a New Ebook, Docker for Java Developers (nginx.com)
63 points by gtopala on Sept 29, 2016 | hide | past | favorite | 17 comments


I was writing desktop apps and (later) Python during the J2EE boom, so I may be really badly understanding things, but: if you're in a pure-Java workshop, isn't something like a J2EE container the equivalent of Docker? My understanding was that it provided security isolation and containment, while allowing a much richer API, and that it also provided a trivial ability to deploy new versions just by submitting a new .war, similar to how you just upload a new Docker image. Is that not what was going on there? Or maybe it proved insufficient?


Java containers are better viewed as the forerunners to general-purpose PaaSes. They load and health-check the app, route traffic, capture logs, inject services and the like.

Containers are a great building block for PaaSes. Red Hat have built their latest OpenShift on Kubernetes, for example. My own employers, Pivotal, are the majority contributor to Cloud Foundry, another containerising PaaS using a different container system.

Even in Java, folk are moving towards apps that bundle their own container. Spring Boot does with Tomcat by default. It turns out that the giant Java app servers were great, but eventually wound up with the same problem as previous generations of highly shared services: without strong isolation guarantees, it becomes necessary to heavily gateway production to prevent outages or degradations. That backpressure creates de facto waterfall.


> It turns out that the giant Java app servers were great, but eventually wound up with the same problem as previous generations of highly shared services: without strong isolation guarantees, it becomes necessary to heavily gateway production to prevent outages or degradations.

Are you talking about app isolation on an app server? I.e. running multiple WARs/EARs on a single server and not having one app destabilize the whole thing?


Essentially this. In theory it could be done, but I've only seen placs where they wound up with a app-container-per-production-WAR rule.

OS containers are a similar pattern for a similar reason. Stronger isolation simplifies production deployment and management.


What is PaaSes?


PaaS is "Platform as a Service"

https://en.wikipedia.org/wiki/Platform_as_a_service

Think Heroku, Google App Engine, AWS Beanstalk, etc. Cloud providers that give you something like a managed runtime.

As distinct from Infrastructure as a Service which provides lower level infrastructure. Examples are AWS EC2, Google Compute Engine, etc.


Only download these if you want to get harassed by Nginx sales reps. I sent the link to the Docker/Microservices one from a while ago to my entire team and they called all of us several times.


It's a paradox to see announcement of the book with the title "Docker for Java Developers" from nginx people.


Out of interest, why is it 'for Java Developers'? Is it just that it has examples of moving Java apps to Docker, or are there some specifics that need to be considered for Java in Docker vs anything else in Docker?


Anybody have a hard link to the book?


It's sent as an attachment, but I've uploaded it to TinyUpload: http://s000.tinyupload.com/index.php?file_id=824213354083530...


Removed?


edit: misunderstood the parent


I think the point is the parent doesn't want to fill out the form...


[flagged]


Please, no pointless language flaming:

“Please avoid introducing classic flamewar topics unless you have something genuinely new to say about them.”

https://news.ycombinator.com/newsguidelines.html


I'd say he has a point. I'd call it "How to put more cancer in your cancer so you can give cancer to all users" Multibody parametric 3D model of a complex machine in Autodesk Inventor - X amount of RAM and and % CPU load Stupid fucking page with some text and a few pictures, comments and a video - Y amount of RAM and and % CPU load Guess whether X is bigger than Y or naah


Thanks!




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: