Live data from Hacker News

HTTP+JSON Services in Modern Java

nerds.airbnb.com

1–10 of 18 posts

Re: HTTP+JSON Services in Modern Java

#4
Thanks for the introduction to Twitter Commons! I've used Dropwizard in the past and loved it. It seems like the shared libraries of both frameworks -- Jetty, Jersey, and Jackson -- provide them with an equally strong foundation. Guice seems to be provided by default in Twitter Commons whereas it's provided via a separate module in Dropwizard, so that's more or less another commonality between them. Can anyone describe differences or pros/cons between using these two frameworks? (Similarly, who was being referenced in the phrase "an opinionated framework that forces certain patterns on you")?

Re: HTTP+JSON Services in Modern Java

#5
This would be a far better article if it was interwoven with actual code examples. Otherwise, you'd have to switch back and forth between a copy and their code and the blog page to actually grok what they're talking about.

Re: HTTP+JSON Services in Modern Java

#6
Could you talk about how you're deploying these services. Coming from passenger world, I found jetty deployment to be a bit complex.

are you using maven, etc.? I would be very interested to find out how a ruby centric dev shop is handling Java deployments and builds.

P. S. how about mocks and testing?

Re: HTTP+JSON Services in Modern Java

#7

Could you talk about how you're deploying these services. Coming from passenger world, I found jetty deployment to be a bit complex. are you using maven, etc.? I would be very interested to find out how a ruby centric dev shop is handling Java deployments and builds. P. S. how about mocks and testing?

jetty is best deployed embedded

Re: HTTP+JSON Services in Modern Java

#8

I've build REST applications in Java using the Restlet library before, anyone knows some of the advantages of Jersey over Restlet?

I haven't played with Restlet. From my experience Jersey's magic sauce is its annotations. Jersey's featured set of annotations can allow for expressive source code. Basically I can create and define my API with less boilerplate source code.

Re: HTTP+JSON Services in Modern Java

#10
post #4

Thanks for the introduction to Twitter Commons! I've used Dropwizard in the past and loved it. It seems like the shared libraries of both frameworks -- Jetty, Jersey, and Jackson -- provide them with an equally strong foundation. Guice seems to be provided by default in Twitter Commons whereas it's provided via a separate module in Dropwizard, so that's more or less another commonality between them. Can anyone descri…

I can't speak for Tobi, but my guess is he was talking about Rails. DHH isn't coy about having strong opinions.
Post reply on HN