News for hackers. Stuff that matters.
Re:Debunking the Java Performance Myth by RhodesianHunter on Sunday October 22, 2017 @11:16AM (#15527163)
You mentioned Dropwizard early on, in my experience I have found it to be the polar opposite of Spring.

Where Spring is an "everything but the kitchen sink" framework, Dropwizard is just a collection of best-in-class libraries that are easily swapped out if you prefer something else.

I don't get to do so often professionally, but if given my choice of tools ill generally opt for a combination of Dropwizard in Kotlin.

Re:Debunking the Java Performance Myth by cs02rm0 on Sunday October 22, 2017 @12:28PM (#15527539)
For me dropwizard looks like what you'd get from a room if experienced Java guys picking the best of breed to do one thing and one thing well.

Spring boot feels like it was from a room full of people where there's a guy in the corner with a form of tourettes that makes him keep yelling "Spring! Take the Spring option!"

It just isn't always the best option and sure, you can often switch out for something else but that defeats the point of an opinionated collection of the best available choices.

Re:Debunking the Java Performance Myth by jacques_chester on Sunday October 22, 2017 @05:03PM (#15528917)
If you think Spring could make better bundling choices, tell them. They are very open to feedback.

And if they don't qualify as "experienced Java guys" then I don't know who can, short of Gosling.

Re:Debunking the Java Performance Myth by matrix on Sunday October 22, 2017 @12:42PM (#15527624)
Agreed. Kotlin + Dropwizard is an interesting approach. How well do Kotlin and Jersey play together in your experience?
Re:Debunking the Java Performance Myth by RhodesianHunter on Sunday October 22, 2017 @01:10PM (#15527778)
Wonderfully, no complaints so far.

You should add the Jackson Kotlin module so you can pass Kotlin data objects around: https://github.com/FasterXML/jackson-module-kotlin

This combination has made me as productive as I've ever been.

Re:Debunking the Java Performance Myth by traspler on Sunday October 22, 2017 @11:46AM (#15527290)
One big drawback of Dropwizard (at least for us) was that it was very problematic to deploy it as a war in a tomcat environment. There is wizard-in-a-box but there were a lot of issues with that as well.
Re:Debunking the Java Performance Myth by RhodesianHunter on Sunday October 22, 2017 @01:13PM (#15527793)
Yeah, that's definitely a square peg + round hole problem. Dropwizard is intended to be deployed as a "Fat Jar" and does not need tomcat/tomee.

This is nice because it makes it easier to treat your servers like disposable cattle when (almost) all of your configuration and dependencies live in your easily deployed Jar.

Re:Debunking the Java Performance Myth by cs02rm0 on Sunday October 22, 2017 @12:35PM (#15527579)
If you're deploying a dropwizard app as a war in tomcat you're doing something a bit odd.
Re:Debunking the Java Performance Myth by traspler on Tuesday October 24, 2017 @03:32AM (#15539866)
True but sadly project specs sometimes change in odd ways.
Re:Debunking the Java Performance Myth by unscaled on Sunday October 22, 2017 @12:20PM (#15527488)
Well, if you're doing microservices you're usually nullifying most of the benefits of this kind of architecture if you're just deploying them on war files on a single application container.