News for hackers. Stuff that matters.
Re:Ask HN: Any web startups using Java? by Egregore on Tuesday November 23, 2010 @05:37AM (#1933264)
There is play framework, which is very good and comparable to RoR.
Re:Ask HN: Any web startups using Java? by dabeeeenster on Tuesday November 23, 2010 @07:20AM (#1933461)
We're a Java house and just launched http://www.jigsawbox.com using the Play Framework (http://www.playframework.org/).

Play is seriously, seriously good. We used to build on top of a fairly heavy but powerful stack of Spring, Hibernate and Struts2/Wicket (depending on the app). Although there's a lot of power there there's also a lot of tangled XML and you need to do a fair amount of gymnastics to get through it all. Server restarts are common and painful. Getting exception stacks that run 200 classes deep are IMHO a bad sign.

Play is a total breath of fresh air. REALLY well thought out, clean, simple, fast:

- almost no server restarts needed, - runs very very quickly in production - stateless, so zero downtime deployments are trivial - great community - extendable with modules

Then there are all the little things. Libraries to do things like encryption and image resizing are built in and just work. Everything just works.

I can't recommend it enough. It really does liberate Java from the Enterprise shackles.

Re:Ask HN: Any web startups using Java? by jwn on Tuesday November 23, 2010 @09:13AM (#1933692)
I'm an experienced Java developer, but a bit of a novice when it comes to webapps on Java. I've tried Java EE, Spring, Hibernate, etc and hated all of them with a passion. For writing simple apps it was a mountain of configuration and framework.

I've got to agree that Play is a breath of fresh air. It doesn't hide/automate as much as RoR, which I appreciate. It's really easy to get going with and it's made writing web apps feel quite natural.

Re:Ask HN: Any web startups using Java? by Uchikoma on Tuesday November 23, 2010 @08:17AM (#1933565)
Not sure Play will scale using Excepitons for flow management.
Re:Ask HN: Any web startups using Java? by erwanl on Tuesday November 23, 2010 @04:53PM (#1935529)
It does scale, believe me. In order to scale you have to be able to load balance to accommodate a higher load.

Using exceptions for flow management doesn't prevent you from adding more boxes. If you're thinking it can cause performances problems, I have an app in prod; here are some numbers: * With a single box, we can do about 500 req/s for a dynamic page, accessing the database * It appears that the bottleneck is the template engine. If we cache the result (thus serving a "pseudo static" page) the exceptions-based control flow is still there but we serve up to 1000 req/s. (That's more than Apache can do to serve static content on the same machine).

So yes, Play does scale!